/* Cloudlifer — Cloud Chill palette */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@600;700;800&display=swap");

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

:root {
  /* Palette principale */
  --cannabis: #1e6f5c;
  --neon: #39ff14;
  --neon-hover: #22c55e;
  --cloud-dark: #0f172a;
  --smoke: #6b7280;
  --mist: #e5e7eb;
  --violet-haze: #7c3aed;
  --sky: #38bdf8;
  /* Surfaces */
  --card: #1e293b;
  --card-elevated: #243045;
  /* Lux (optionnel — accents discrets) */
  --lux-green: #14532d;
  --lux-gold: #d4af37;
  --lux-black: #020617;

  --text: var(--mist);
  --text-muted: var(--smoke);
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);

  --grad-smoke: linear-gradient(165deg, rgba(30, 111, 92, 0.45) 0%, var(--cloud-dark) 42%, var(--cloud-dark) 100%);
  --grad-haze: linear-gradient(125deg, var(--violet-haze) 0%, var(--sky) 100%);

  --glow-neon: 0 0 20px rgba(57, 255, 20, 0.35);
  --glow-neon-strong: 0 0 28px rgba(57, 255, 20, 0.5);
  --glow-sky: 0 0 24px rgba(56, 189, 248, 0.25);
  --glow-violet: 0 0 28px rgba(124, 58, 237, 0.3);
  --shadow-soft: 0 20px 50px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 8px 32px rgba(15, 23, 42, 0.6);

  --font: "Inter", system-ui, sans-serif;
  --font-display: "Outfit", var(--font);
  --r-sm: 8px;
  --r: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Hauteur fixe du bandeau (fond) — le logo peut dépasser */
  --nav-bar: 85px;
  --nav-logo-slot: clamp(150px, 32vw, 300px);
  --nav-logo-clear: 0;
  --max: 1100px;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--cloud-dark);
  background-image: var(--grad-smoke),
    radial-gradient(ellipse 90% 70% at 85% -10%, rgba(124, 58, 237, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 0% 100%, rgba(56, 189, 248, 0.1), transparent 50%);
  background-attachment: fixed;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--mist);
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(100% - 1.5rem, var(--max));
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

/* ——— Flash (OAuth retour) ——— */

.flash {
  width: min(100% - 1.5rem, var(--max));
  margin: 0.5rem auto 0;
  padding: 0.65rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
}

.flash--ok {
  color: var(--mist);
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.flash--err {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
}

/* ——— Admin : toast rôles Discord ——— */

.clz-role-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--mist);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(56, 189, 248, 0.08);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.clz-role-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.clz-role-toast__title {
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
}

.clz-role-toast__msg {
  font-weight: 500;
  color: var(--text-muted);
}

/* ——— Top bar ——— */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  max-width: 100%;
  display: flex;
  align-items: center;
  /* visible : évite la scrollbar (hidden sur un axe force souvent auto sur l’autre) */
  overflow: visible;
  height: var(--nav-bar);
  min-height: var(--nav-bar);
  max-height: var(--nav-bar);
  padding-block: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-sizing: border-box;
}

.topbar__inner {
  position: relative;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
  box-sizing: border-box;
}

/* Liens dans la bande fine ; espace à gauche pour ne pas passer sous le logo */
.topbar__cluster {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding-left: var(--nav-logo-slot);
  box-sizing: border-box;
  overflow: visible;
}

.topbar__links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem 0.65rem;
  min-width: 0;
}

.topbar__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s;
}

.topbar__link:hover {
  color: var(--mist);
  background: rgba(30, 41, 59, 0.55);
}

.topbar__dropdown-wrap {
  position: relative;
  flex-shrink: 0;
  z-index: 60;
}

.topbar__user {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 11.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sky);
  padding: 0.2rem 0.55rem 0.2rem 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.08);
  cursor: pointer;
  outline: none;
  min-width: 0;
}

.topbar__user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.25);
  background: rgba(15, 23, 42, 0.6);
}

.topbar__user-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar__dropdown-wrap:hover .topbar__user,
.topbar__user:focus-visible {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.14);
}

.topbar__dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 11rem;
  max-height: min(50vh, 240px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.35rem;
  margin: 0;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.topbar__dropdown-wrap:hover .topbar__dropdown,
.topbar__dropdown-wrap:focus-within .topbar__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.topbar__dropdown-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem 0.55rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.15rem;
}

.topbar__dropdown-role {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  color: var(--mist);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.topbar__dropdown-link {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.topbar__dropdown-link:hover {
  color: var(--mist);
  background: rgba(30, 41, 59, 0.85);
}

.topbar__logo {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
  pointer-events: auto;
  filter: drop-shadow(0 8px 24px rgba(2, 6, 23, 0.45));
}

.topbar__logo img {
  display: block;
  height: clamp(68px, 16vw, 140px);
  width: auto;
  max-width: min(420px, calc(100vw - var(--nav-logo-slot) - 2rem));
  object-fit: contain;
}

@media (max-width: 640px) {
  :root {
    --nav-bar: 44px;
    --nav-logo-slot: clamp(118px, 36vw, 200px);
    --nav-logo-clear: clamp(2.5rem, 18vw, 4rem);
  }

  .topbar__logo {
    left: 0.5rem;
  }

  .topbar__links {
    gap: 0.25rem 0.45rem;
  }

  .topbar__link {
    font-size: 0.7rem;
    padding: 0.26rem 0.28rem;
  }

  .topbar__logo img {
    height: clamp(68px, 16vw, 80px);
    max-width: min(300px, 72vw);
  }
}

/* ——— Buttons (néon réservé au primaire) ——— */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: transform 0.15s ease, background 0.25s var(--ease), border-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--ghost {
  color: var(--text-muted);
  background: transparent;
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  color: var(--mist);
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(30, 41, 59, 0.65);
  box-shadow: var(--glow-sky);
}

.btn--solid {
  color: var(--lux-black);
  background: var(--neon);
  border-color: transparent;
  box-shadow: var(--glow-neon);
}

.btn--solid:hover {
  background: var(--neon-hover);
  box-shadow: var(--glow-neon-strong);
}

.btn--menu {
  color: var(--mist);
  background: var(--card);
  border-color: var(--line-strong);
}

.btn--menu:hover {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: var(--glow-violet);
}

/* Discord brand (approx #5865F2) */
.btn--discord {
  color: #fff;
  background: #5865f2;
  border-color: transparent;
}

.btn--discord:hover {
  background: #4752c4;
  color: #fff;
  filter: brightness(1.05);
}

.btn--block {
  width: 100%;
  margin-top: 0.5rem;
}

/* ——— Page + smoke orbs (slow float) ——— */

.page {
  flex: 1;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  padding-top: var(--nav-logo-clear);
  padding-bottom: 3rem;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

.page::before {
  top: 8vh;
  right: 0;
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  background: rgba(124, 58, 237, 0.35);
  animation: smoke-drift-right 22s ease-in-out infinite;
}

.page::after {
  bottom: 5vh;
  left: 0;
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  background: rgba(30, 111, 92, 0.4);
  animation: smoke-drift-left 22s ease-in-out infinite;
  animation-delay: -11s;
}

@keyframes smoke-drift-right {
  0%,
  100% {
    transform: translate(35%, 0) scale(1);
  }
  33% {
    transform: translate(calc(35% + 12px), -10px) scale(1.04);
  }
  66% {
    transform: translate(calc(35% - 10px), 8px) scale(0.97);
  }
}

@keyframes smoke-drift-left {
  0%,
  100% {
    transform: translate(-35%, 0) scale(1);
  }
  33% {
    transform: translate(calc(-35% - 10px), -8px) scale(1.04);
  }
  66% {
    transform: translate(calc(-35% + 12px), 10px) scale(0.97);
  }
}

@keyframes float-gentle {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* ——— Mot d’accueil (connecté) ——— */

.welcome {
  z-index: 1;
  margin: 0.15rem auto 0.35rem;
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.welcome__name {
  color: var(--sky);
  font-weight: 600;
}

/* ——— Dashboard (compte Discord) ——— */

.dashboard {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 3rem;
  max-width: 52rem;
  margin: 0 auto;
}

.dashboard__page-head {
  margin-bottom: 1.5rem;
}

.dashboard__title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 800;
  color: var(--mist);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.dashboard__lead {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dashboard__card {
  position: relative;
  z-index: 1;
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1rem;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.dashboard__card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mist);
  margin: 0 0 0.75rem;
}

.dashboard__profile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.dashboard__avatar {
  width: 96px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(2, 6, 23, 0.5);
}

.dashboard__profile-text {
  min-width: 0;
  flex: 1;
}

.dashboard__profile .dashboard__card-title {
  margin-bottom: 0.25rem;
}

.dashboard__profile-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.5rem;
}

.dashboard__profile-head .dashboard__card-title {
  margin-bottom: 0;
  min-width: 0;
}

.dashboard__profile-name-cluster {
  display: flex;
  flex-direction: row;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
}

/* Only as wide as the text so badge images stay on the same row (not below). */
.dashboard__profile-name-cluster > .dashboard__card-title {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  min-width: 0;
}

.dashboard__user-tags {
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: center;
  flex: 0 0 auto;
}

.dashboard__user-badge-wrap {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  position: relative;
}

/* Infobulle stylée (le natif `title` sur <img> ne peut pas être mis en forme). */
.dashboard__user-badge-wrap[data-title]::after {
  content: attr(data-title);
  position: absolute;
  left: 50%;
  bottom: 45px;
  transform: translateX(50%) translateY(4px);
  padding: 0.4rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mist);
  text-align: center;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  width: 150px;
  white-space: normal;
  word-wrap: break-word;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 60;
}

.dashboard__user-badge-wrap[data-title]:hover::after,
.dashboard__user-badge-wrap[data-title]:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dashboard__user-badge-wrap[data-title]:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.55);
  outline-offset: 3px;
  border-radius: 6px;
}

.dashboard__user-badge-img {
  display: block;
  height: 3.35em;
  width: auto;
  max-height: 2.75rem;
  max-width: 6rem;
  object-fit: contain;
  object-position: left center;
}

.dashboard__discord-id {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.55rem;
  margin-left: auto;
  text-align: right;
}

.dashboard__discord-id-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}

.dashboard__code--inline {
  font-size: 0.75rem;
  padding: 0.12rem 0.38rem;
  max-width: 100%;
  display: inline-block;
  overflow-wrap: anywhere;
}

.dashboard__sub {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.dashboard__sep {
  margin: 0 0.35rem;
  opacity: 0.6;
}

.dashboard__email {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--sky);
  word-break: break-all;
}

.dashboard__muted {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.dashboard__muted a {
  color: var(--sky);
}

.dashboard__notice {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mist);
  line-height: 1.5;
  padding: 0.65rem 0.75rem;
  border-radius: var(--r-sm);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.dashboard__guild-nick {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.dashboard__guild-nick strong {
  color: var(--mist);
  font-weight: 600;
}

.dashboard__label {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dashboard__roles {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dashboard__role-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--mist);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
}

.dashboard__role-pill-Fondateur {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--mist);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.22);
}

.dashboard__role-pill-Administrateur {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--mist);
  background: rgba(239, 68, 68, 0.35);
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.dashboard__role-pill-Developpeur {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--mist);
  background: rgba(248, 56, 56, 0.12);
  border: 1px solid rgba(248, 56, 56, 0.22);
}

.dashboard__role-pill-Modérateur {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--mist);
  background: rgba(235, 248, 56, 0.278);
  border: 1px solid rgba(111, 248, 56, 0.22);
}

.dashboard__role-pill-CloudLiferz {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--mist);
  background: rgba(2, 75, 0, 0.514);
  border: 1px solid rgba(2, 75, 0, 0.514);
}

.dashboard__role-pill-Liferz {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  color: var(--mist);
  background: rgba(2, 48, 140, 0.472);
  border: 1px solid rgba(2, 48, 140, 0.472);
}

.dashboard__dates-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 2.5rem;
  margin: 1rem 0 0;
  padding: 0;
}

.dashboard__dates-group {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  margin: 0;
  min-width: 0;
  flex: 1 1 16rem;
}

.dashboard__dates-row dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.dashboard__dates-row dd {
  margin: 0;
  min-width: 0;
}

.dashboard__id-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard__id-list .dashboard__code {
  font-size: 0.75rem;
}

.dashboard__dl {
  margin: 0;
}

.dashboard__row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem 1rem;
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
}

.dashboard__row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.dashboard__row dt {
  margin: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.dashboard__row dd {
  margin: 0;
  color: var(--mist);
  min-width: 0;
  word-break: break-word;
}

.dashboard__mono {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
}

.dashboard__code {
  font-family: ui-monospace, monospace;
  font-size: 0.8125rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--line);
  color: var(--sky);
  word-break: break-all;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn--small {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.dashboard__feed {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.dashboard__feed-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mist);
  margin: 0 0 0.35rem;
}

.dashboard__feed-lead {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.dashboard__feed .flash {
  width: 100%;
  margin: 0 0 1rem;
  text-align: left;
}

.dashboard__feed-compose {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.35);
}

.dashboard__feed-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashboard__feed-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.dashboard__feed-file {
  font-size: 0.8125rem;
  color: var(--mist);
}

.dashboard__feed-textarea,
.dashboard__feed-comment-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.85);
  color: var(--mist);
  resize: vertical;
  min-height: 2.75rem;
}

.dashboard__feed-textarea:focus,
.dashboard__feed-comment-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
}

.dashboard__feed-empty {
  margin: 0;
}

.dashboard__feed-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.dashboard__feed-post {
  margin: 0;
  padding: 1rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.28);
}

.dashboard__feed-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

.dashboard__feed-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  min-width: 0;
}

.dashboard__feed-post-delete {
  flex-shrink: 0;
  margin: 0;
  margin-left: auto;
}

.dashboard__feed-author {
  color: var(--sky);
  font-weight: 600;
}

.dashboard__feed-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.dashboard__feed-caption {
  margin: 0 0 0.65rem;
  font-size: 0.875rem;
  color: var(--mist);
  line-height: 1.5;
}

.dashboard__feed-media {
  margin: 0 0 0.75rem;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.25);
}

.dashboard__feed-img {
  display: block;
  width: 100%;
  max-height: min(70vh, 520px);
  object-fit: contain;
  margin: 0 auto;
}

.dashboard__feed-video {
  display: block;
  width: 100%;
  max-height: min(70vh, 520px);
}

.dashboard__feed-comments {
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dashboard__feed-comment {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.55);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--mist);
}

.dashboard__feed-comment-main {
  flex: 1;
  min-width: 0;
}

.dashboard__feed-comment-author {
  font-weight: 600;
  color: var(--sky);
  margin-right: 0.35rem;
}

.dashboard__feed-comment-body {
  display: inline;
}

.dashboard__feed-comment-time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dashboard__feed-comment-delete {
  flex-shrink: 0;
  margin: 0;
}

.btn--feed-delete {
  color: #fca5a5;
  background: rgba(127, 29, 29, 0.25);
  border-color: rgba(248, 113, 113, 0.35);
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
}

.btn--feed-delete:hover {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(127, 29, 29, 0.4);
}

.dashboard__feed-comment-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
}

.dashboard__feed-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 0.875rem;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.85);
  color: var(--mist);
}

.dashboard__feed-input:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.12);
}

.dashboard__feed-compose-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.btn--feed-publish {
  padding: 0.45rem 1.25rem;
  font-size: 0.8125rem;
  width: auto;
  align-self: flex-end;
}

.dashboard__feed-pin {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--mist);
  cursor: pointer;
  user-select: none;
}

.dashboard__feed-pin input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--sky);
}

.dashboard__feed-post--pinned {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.12);
}

.dashboard__feed-pin-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.2);
  color: var(--sky);
}

.dashboard__feed-post-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--mist);
  line-height: 1.35;
}

.dashboard__feed-like-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
}

.dashboard__feed-like-count {
  color: var(--text-muted);
}

.dashboard__feed-like-form {
  margin: 0;
}

.dashboard__feed-author--link {
  text-decoration: none;
}

.dashboard__feed-author--link:hover {
  text-decoration: underline;
}

.btn.is-liked {
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.45);
  background: rgba(22, 101, 52, 0.25);
}

.player-profile {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}

.player-profile__body {
  flex: 1;
  min-width: 0;
}

.player-profile__head {
  margin-bottom: 0.5rem;
}

.player-profile .dashboard__profile-name-cluster .player-profile__name {
  margin-bottom: 0;
}

.player-profile__name {
  margin: 0 0 0.5rem;
}

.player-profile__dates {
  margin-top: 0.75rem;
}

.dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1.5rem;
}

.dashboard__account-with-ring {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.clz-role-refresh-ring {
  display: inline-flex;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  vertical-align: middle;
}

.clz-role-refresh-ring__svg {
  width: 100%;
  height: 100%;
}

.clz-role-refresh-ring__track {
  stroke: var(--line-strong);
  opacity: 0.65;
}

.clz-role-refresh-ring__progress {
  stroke: var(--sky);
  stroke-linecap: round;
  stroke-dasharray: 100.531;
  stroke-dashoffset: 100.531;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.35));
}

.rules-prose {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.rules-prose p {
  margin: 0 0 0.85rem;
}

.rules-prose p:last-child {
  margin-bottom: 0;
}

.rules-prose ul {
  margin: 0;
  padding-left: 1.15rem;
}

.rules-prose li {
  margin: 0.4rem 0;
}

.rules-prose li:first-child {
  margin-top: 0;
}

.rules-prose li:last-child {
  margin-bottom: 0;
}

.rules-prose strong {
  color: var(--mist);
  font-weight: 600;
}

.rules-prose a {
  color: var(--sky);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rules-prose a:hover {
  color: var(--mist);
}

/* ——— Staff (organigramme) ——— */

.staff-page {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 3rem;
  max-width: 62rem;
  margin: 0 auto;
}

.staff-org {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.staff-org__root-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}

.staff-org__trunk {
  width: 2px;
  height: 1.25rem;
  margin: 0 auto;
  background: linear-gradient(to bottom, rgba(56, 189, 248, 0.45), rgba(148, 163, 184, 0.35));
  border-radius: 1px;
}

.staff-org__branches {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.25rem;
  width: 100%;
  position: relative;
  border-top: 2px solid rgba(148, 163, 184, 0.22);
}

.staff-org__branch {
  flex: 1 1 10rem;
  max-width: 25rem;
  display: flex;
  justify-content: center;
  position: relative;
}

.staff-org__branch::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 50%;
  width: 2px;
  height: 1rem;
  margin-left: -1px;
  background: rgba(148, 163, 184, 0.28);
  border-radius: 1px;
}

.staff-node {
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: var(--r);
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.staff-org__root-wrap .staff-node {
  max-width: 28rem;
}

.staff-node__role {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}

.staff-node__desc {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.staff-node__people {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mist);
}

.staff-node__people li + li {
  margin-top: 0.25rem;
}

.staff-node--owner {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.12), var(--shadow-soft);
}

.staff-node--owner .staff-node__role {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.staff-node--admin {
  border-color: rgba(239, 68, 68, 0.35);
}

.staff-node--admin .staff-node__role {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.staff-node--mod {
  border-color: rgba(34, 197, 94, 0.35);
}

.staff-node--mod .staff-node__role {
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.staff-node--dev {
  border-color: rgba(56, 189, 248, 0.4);
}

.staff-node--dev .staff-node__role {
  color: var(--sky);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.staff-node--support {
  border-color: rgba(167, 139, 250, 0.4);
}

.staff-node--support .staff-node__role {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3);
}

.staff-legend {
  margin-top: 0.25rem;
}

@media (min-width: 720px) {
  .staff-org__branches {
    gap: 1rem 0.75rem;
  }

  .staff-org__branch {
    flex: 1 1 0;
    min-width: 9.5rem;
  }
}

@media (max-width: 520px) {
  .staff-org__branch::before {
    display: none;
  }

  .staff-org__branches {
    border-top: none;
    padding-top: 0.5rem;
  }

  .staff-org__trunk {
    height: 0.85rem;
  }
}

@media (max-width: 480px) {
  .dashboard__row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .dashboard__dates-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .dashboard__dates-group {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .dashboard__dates-row dt {
    white-space: normal;
  }
}

/* ——— Hero ——— */

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: end;
    gap: 3rem;
  }
}

.hero > * {
  min-width: 0;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cannabis);
  margin-bottom: 1rem;
  animation: float-gentle 5.5s ease-in-out infinite;
}

.hero__label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad-haze);
  border-radius: 2px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 6vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--mist);
}

.hero__title em {
  font-style: normal;
  background: var(--grad-haze);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1.75rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 38ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero__panel {
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(155deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.88));
  box-shadow: var(--shadow-card);
  padding: 1.35rem;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: visible;
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 20px,
    rgba(56, 189, 248, 0.03) 20px,
    rgba(56, 189, 248, 0.03) 21px
  );
  pointer-events: none;
}

.hero__panel-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.hero__panel-title {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.hero__dots {
  display: flex;
  gap: 6px;
}

.hero__dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero__dots span:first-child {
  background: var(--violet-haze);
  box-shadow: var(--glow-violet);
}

.hero__dots span:nth-child(2) {
  background: var(--lux-gold);
  opacity: 0.85;
}

.hero__dots span:nth-child(3) {
  background: var(--sky);
  box-shadow: var(--glow-sky);
}

.hero__lines {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}

.hero__line {
  height: 9px;
  border-radius: 4px;
  background: rgba(229, 231, 235, 0.06);
}

.hero__line--short {
  width: 58%;
}

.hero__line--accent {
  width: 78%;
  background: linear-gradient(90deg, rgba(30, 111, 92, 0.55), rgba(56, 189, 248, 0.15), transparent);
}

.hero__voice-count {
  position: relative;
  z-index: 1;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.hero__voice-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--mist);
  margin-right: 0.25rem;
  vertical-align: -0.08em;
}

.hero__voice-presence {
  position: relative;
  z-index: 1;
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__voice-presence-note {
  opacity: 0.75;
  font-size: 0.72rem;
}

.hero__voice-sub {
  position: relative;
  z-index: 1;
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero__voice-chans {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0 0 0.65rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hero__voice-chans li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.hero__voice-chan-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__voice-chan-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}

.hero__voice-chan-n {
  color: var(--sky);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: default;
  outline: none;
  border-radius: 4px;
}

.hero__voice-chan-wrap--tip .hero__voice-chan-n {
  cursor: help;
  text-decoration: underline dotted rgba(56, 189, 248, 0.45);
  text-underline-offset: 3px;
}

.hero__voice-chan-n:focus-visible {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.hero__voice-tooltip {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 9rem;
  max-width: min(16rem, 70vw);
  padding: 0.45rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--mist);
  text-align: left;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), visibility 0.18s;
}

.hero__voice-tooltip-line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__voice-chan-wrap:hover .hero__voice-tooltip,
.hero__voice-chan-wrap:focus-within .hero__voice-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero__voice-empty {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.hero__voice-hint {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.65rem;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.8;
}

.hero__voice-fallback {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.hero__voice-fallback strong {
  color: var(--mist);
}

.hero__lines--foot {
  margin-top: auto;
  padding-top: 1rem;
}

/* ——— Sections ——— */

.section {
  position: relative;
  z-index: 1;
  padding: clamp(1.75rem, 4vw, 3rem) 0;
}

.section__head {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .section__head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
}

.section__head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.65rem, 3vw, 2.125rem);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--mist);
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 36ch;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-width: 0;
  padding: 1.15rem 1.2rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 4px 24px rgba(2, 6, 23, 0.25);
  transition: border-color 0.3s var(--ease), background 0.3s, transform 0.35s var(--ease), box-shadow 0.3s;
}

.tile:hover {
  border-color: rgba(124, 58, 237, 0.35);
  background: var(--card-elevated);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.tile__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--line-strong);
  background: rgba(30, 111, 92, 0.25);
}

.tile h3 {
  margin: 0 0 0.15rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--mist);
}

.tile p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tile__btn {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.tile__btn:hover {
  color: var(--sky);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.08);
  box-shadow: var(--glow-sky);
}

/* ——— Page d’accueil ——— */

.hero__intro {
  min-width: 0;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.hero__chip {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.5);
  margin: 0;
}

.hero__chip em {
  font-style: normal;
  color: var(--neon);
  text-shadow: var(--glow-neon);
}

.hero__panel-lead {
  position: relative;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mist);
  margin: 0 0 0.85rem;
}

.hero__queue {
  position: relative;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero__queue li {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__queue strong {
  color: var(--neon);
  font-weight: 700;
}

.hero__queue-accent {
  text-shadow: var(--glow-neon);
}

.hero__queue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cannabis);
  flex-shrink: 0;
}

.hero__queue-dot--sky {
  background: var(--sky);
  box-shadow: var(--glow-sky);
}

.hero__queue-dot--violet {
  background: var(--violet-haze);
  box-shadow: var(--glow-violet);
}

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.home-feature {
  padding: 1.35rem 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.65));
  box-shadow: 0 4px 22px rgba(2, 6, 23, 0.28);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s;
}

.home-feature:hover {
  border-color: rgba(30, 111, 92, 0.45);
  box-shadow: var(--shadow-card);
}

.home-feature h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--mist);
}

.home-feature p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.home-feature__tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.6rem;
}

.home-cta {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: var(--r-lg);
  border: 1px solid rgba(56, 189, 248, 0.2);
  text-align: center;
  background: linear-gradient(145deg, rgba(30, 111, 92, 0.2), rgba(15, 23, 42, 0.88), rgba(124, 58, 237, 0.12));
  box-shadow: var(--shadow-soft);
}

.home-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  color: var(--mist);
}

.home-cta p {
  margin: 0 auto 1.35rem;
  max-width: 42ch;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.home-cta .btn {
  margin: 0.25rem;
}

/* ——— Footer ——— */

.site-footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--violet-haze);
}

.site-footer__stats {
  flex-basis: 100%;
  width: 100%;
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  text-align: center;
}

.site-footer__stats strong {
  color: var(--text);
  font-weight: 600;
}

.site-footer__copy {
  width: 100%;
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.85;
}

@media (min-width: 640px) {
  .site-footer__copy {
    width: auto;
    margin-left: auto;
  }
}

/* ——— Modals ——— */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-height: min(88vh, 680px);
  overflow: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, var(--card) 0%, rgba(15, 23, 42, 0.98) 100%);
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(124, 58, 237, 0.12);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s var(--ease);
}

.modal.is-open .modal__panel {
  transform: translateY(0) scale(1);
}

.modal--sheet .modal__panel {
  max-width: 440px;
}

.modal--fullscreen {
  padding: 0;
  align-items: stretch;
}

.modal--fullscreen .modal__backdrop {
  display: none;
}

.modal--fullscreen .modal__panel {
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  border-radius: 0;
  border: none;
  background: var(--cloud-dark);
  background-image: var(--grad-smoke);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}

.modal--fullscreen.is-open .modal__panel {
  transform: translateY(0);
}

.modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

.modal__top h2 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--mist);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(30, 41, 59, 0.6);
  color: var(--mist);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}

.icon-btn:hover {
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--sky);
  box-shadow: var(--glow-sky);
}

.modal__body {
  padding: 1.2rem;
}

.modal--fullscreen .modal__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 26rem;
  margin-inline: auto;
  width: 100%;
}

.modal__hint {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.modal__hint--warn {
  font-size: 0.8125rem;
  color: #fca5a5;
}

.modal__hint code {
  font-size: 0.78em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--line);
}

.modal__footer-hint {
  margin: 1.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

.modal__link-btn {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 600;
  color: var(--sky);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.modal__link-btn:hover {
  color: var(--neon);
}

.nav-modal__link {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 5.5vw, 2.65rem);
  letter-spacing: -0.03em;
  color: var(--mist);
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s, padding-left 0.3s var(--ease);
}

.nav-modal__link:hover {
  color: var(--sky);
  padding-left: 0.25rem;
}

.nav-modal__link:last-of-type {
  border-bottom: none;
}

.nav-modal__cta {
  margin-top: 2rem;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-stack label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-stack input {
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(15, 23, 42, 0.85);
  color: var(--mist);
}

.form-stack input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.form-stack input:focus {
  outline: none;
  border-color: var(--violet-haze);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}
