/* ═══════════════════════════════════════════════════════════════════════════
   landing.css — page d'accueil publique `/` (vue `home.ejs`).

   Chargée UNIQUEMENT sur la landing via `extraCss` (cf partials/head.ejs) :
   c'est une couche marketing autonome (échelle typo, rythme vertical, formes
   décoratives) qui n'a rien à faire sur le dashboard ou l'admin.

   Les couleurs brutes sont autorisées ICI — l'audit `color-audit.test.js` ne
   scanne que les fichiers .ejs du dossier views. Elles restent néanmoins
   regroupées en variables `--lp-…` en tête de fichier, et la vue n'en écrit
   aucune en dur.

   ATTENTION : ne jamais écrire de glob `**` suivi d'un slash dans ces
   commentaires — la séquence ferme le commentaire CSS et le navigateur avale
   silencieusement la règle suivante (c'est arrivé ici : tout le bloc `.lp`,
   donc tous les tokens, avait disparu sans erreur console).

   Thème : light par défaut, dark piloté par `.dark` sur <html> (cf THEMING.md).
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ── */
.lp {
  --lp-brand:        #4263eb;
  --lp-brand-2:      #22d3ee;
  --lp-brand-lift:   #8ba6f8;
  --lp-accent:       #f59e0b;
  --lp-ink:          #050513;
  --lp-ink-soft:     rgba(5, 5, 19, 0.62);
  --lp-ink-faint:    rgba(5, 5, 19, 0.58);
  --lp-surface:      #ffffff;
  --lp-surface-2:    #f4f6fb;
  --lp-surface-3:    #eef2f9;
  --lp-line:         rgba(5, 5, 19, 0.10);
  --lp-line-strong:  rgba(5, 5, 19, 0.16);
  --lp-shadow:       0 30px 60px 0 rgba(0, 15, 32, 0.10);
  --lp-shadow-sm:    0 8px 24px 0 rgba(0, 15, 32, 0.07);
  --lp-grad:         linear-gradient(120deg, #4263eb 0%, #22d3ee 100%);
  --lp-grad-soft:    linear-gradient(120deg, rgba(66, 99, 235, .12) 0%, rgba(34, 211, 238, .12) 100%);
  /* `--lp-grad` finit sur du cyan clair : du blanc dessus tombe à ~1.6:1 en fin
   * de rampe. Toute surface pleine qui porte du texte blanc (CTA, panneau admin,
   * bouton principal, pastilles) utilise donc cette variante assombrie, qui
   * garde >= 5.3:1 d'un bout à l'autre. `--lp-grad` reste pour les bordures,
   * fonds d'icône et liserés, où le ratio texte ne s'applique pas. */
  --lp-grad-deep:    linear-gradient(120deg, #2f47b8 0%, #0e7490 100%);
  --lp-sweep:        #0b1130;
  --lp-sweep-ink:    #ffffff;
  --lp-ok:           #115e59;
  --lp-ok-bg:        rgba(16, 185, 129, .13);
  --lp-warn:         #92400e;
  --lp-warn-bg:      rgba(245, 158, 11, .14);
  --lp-danger:       #b91c1c;
  --lp-danger-bg:    rgba(239, 68, 68, .13);
  --lp-radius:       24px;
  --lp-radius-sm:    16px;
  --lp-section:      clamp(72px, 9vw, 130px);

  /* Calibrage AA : `--lp-ink-faint` était à 0.42 → 2.9:1 sur blanc, sous le
   * seuil 4.5:1 pour du texte de 12-14 px (libellés de stats, descriptions de
   * plans, bas de footer). 0.58 le remonte à ~4.7:1. Même logique pour
   * `--lp-ok` / `--lp-warn`, dont les pastilles sont en 11 px gras. */

  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--lp-ink-soft);
  background: var(--lp-surface);
  -webkit-font-smoothing: antialiased;
}

.dark .lp {
  --lp-ink:         #f5f7fb;
  --lp-ink-soft:    rgba(245, 247, 251, 0.68);
  --lp-ink-faint:   rgba(245, 247, 251, 0.52);   /* 0.45 plafonnait à 4.3:1 — cf note AA ci-dessus */
  --lp-surface:     #0a0a14;
  --lp-surface-2:   #11111d;
  --lp-surface-3:   #171726;
  --lp-line:        rgba(255, 255, 255, 0.10);
  --lp-line-strong: rgba(255, 255, 255, 0.18);
  --lp-shadow:      0 30px 60px 0 rgba(0, 0, 0, 0.45);
  --lp-shadow-sm:   0 8px 24px 0 rgba(0, 0, 0, 0.35);
  --lp-ok:          #34d399;
  --lp-ok-bg:       rgba(16, 185, 129, .16);
  --lp-warn:        #fbbf24;
  --lp-warn-bg:     rgba(245, 158, 11, .16);
  --lp-danger:      #f87171;
  --lp-danger-bg:   rgba(239, 68, 68, .18);
}

/* Le <body> du layout landing ne doit hériter ni du fond applicatif
   ni des orbes de `brand.css` (la landing pose les siennes). */
body.lp-body {
  margin: 0;
  background-color: #ffffff;
  background-image: none;
}
.dark body.lp-body { background-color: #0a0a14; }

/* ── Rythme & conteneur ── */
.lp-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}
.lp-section { padding-block: var(--lp-section); position: relative; }
.lp-section--tight { padding-block: calc(var(--lp-section) * .62); }
.lp-section--flush { padding-top: 0; }
.lp-section--alt { background: var(--lp-surface-2); }

/* ── Typographie ── */
.lp h1, .lp h2, .lp h3, .lp h4 {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  color: var(--lp-ink);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
.lp-h1 { font-size: clamp(38px, 5.8vw, 76px); line-height: 1.03; font-weight: 700; letter-spacing: -0.03em; }
.lp-h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.14; letter-spacing: -0.04em; }
.lp-h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; }
.lp-h4 { font-size: 17px; line-height: 1.35; }
.lp-lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.62; color: var(--lp-ink-soft); margin: 0; }
.lp-p { font-size: 15px; line-height: 1.65; color: var(--lp-ink-soft); margin: 0; }
.lp-grad-text {
  background: var(--lp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lp-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .02em; }

/* ── Eyebrow / chips ── */
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-surface);
  font-size: 12.5px; font-weight: 600; letter-spacing: .01em;
  color: var(--lp-ink);
  box-shadow: var(--lp-shadow-sm);
}
.lp-eyebrow i { color: var(--lp-accent); font-size: 13px; }
.lp-eyebrow--plain { box-shadow: none; background: var(--lp-surface-3); border-color: transparent; }

.lp-head { max-width: 720px; }
.lp-head--center { margin-inline: auto; text-align: center; }
.lp-head > * + * { margin-top: 18px; }

/* ── Boutons ── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.lp-btn:hover { transform: translateY(-2px); }

/* Remplissage balayé — l'effet de survol signature de la référence : un bloc
 * plein glissé depuis la gauche avec `transform-origin: right bottom`, ce qui
 * lui donne cette entrée légèrement pivotée. Le `z-index: 0` sur le bouton crée
 * le contexte d'empilement qui permet au pseudo en `z-index: -1` de se poser
 * AU-DESSUS du fond du bouton mais SOUS son texte. */
.lp-btn { position: relative; overflow: hidden; z-index: 0; isolation: isolate; }
.lp-btn::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  transform: translateX(-165%);
  transform-origin: right bottom;
  transition: transform .38s cubic-bezier(.4, 0, .2, 1);
}
.lp-btn:hover::before { transform: translateX(0); }

.lp-btn--primary {
  background: var(--lp-grad-deep);
  color: #fff;
  box-shadow: 0 10px 26px rgba(66, 99, 235, .32);
}
/* Teinte de balayage fixe dans les deux thèmes : la dériver de `--lp-ink`
 * donnerait du blanc sur blanc en sombre. */
.lp-btn--primary::before { background: var(--lp-sweep); }
.lp-btn--primary:hover { color: var(--lp-sweep-ink); box-shadow: 0 16px 34px rgba(66, 99, 235, .40); }

.lp-btn--ghost {
  background: var(--lp-surface);
  color: var(--lp-ink);
  border-color: var(--lp-line-strong);
}
.lp-btn--ghost::before { background: var(--lp-grad-deep); }
.lp-btn--ghost:hover { color: #fff; border-color: transparent; }
.lp-btn--sm { padding: 10px 18px; font-size: 13.5px; }
.lp-btn--block { width: 100%; }

.lp-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--lp-ink); font-weight: 600; font-size: 14px; text-decoration: none;
  border-bottom: 1px solid var(--lp-line-strong); padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease, gap .18s ease;
}
.lp-link:hover { color: var(--lp-brand); border-color: var(--lp-brand); gap: 11px; }

/* ═══════════════ NAV ═══════════════ */
.lp-nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--lp-surface);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@supports (backdrop-filter: blur(1px)) {
  .lp-nav { background: color-mix(in srgb, var(--lp-surface) 84%, transparent); backdrop-filter: blur(14px); }
}
.lp-nav[data-stuck='1'] { border-bottom-color: var(--lp-line); box-shadow: var(--lp-shadow-sm); }
.lp-nav__inner { display: flex; align-items: center; gap: 20px; height: 82px; }
/* `flex: none` sur les deux niveaux : sans lui, le lien de marque se comprime
 * comme n'importe quel element flex quand la barre manque de place, et l'image
 * en `width: auto` tombe a zero pixel de large. Constate sous 560px, ou le logo
 * disparaissait purement et simplement. */
.lp-nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; margin-inline-end: auto; flex: none;
}
/* Le fichier est recadre sur son contenu (rapport 3.947:1), donc la hauteur
 * pilote directement la taille percue du verrou. L'ancien `logofmz.png`
 * enfermait le meme dessin dans 21 % de la hauteur d'une toile 1536x1024 :
 * regle a 44px, il n'en affichait que 9px de haut. */
.lp-nav__brand img { height: 44px; width: auto; object-fit: contain; flex: none; }
@media (max-width: 900px) { .lp-nav__brand img { height: 38px; } }
@media (max-width: 640px) { .lp-nav__brand img { height: 34px; } }
/* Le mot-symbole « ModzBot » fait partie de l'image : repeter le nom a cote
 * doublait la marque. Le nom accessible du lien reste porte par son
 * `aria-label`. */
.lp-nav__links { display: none; align-items: center; gap: 4px; }
.lp-nav__links a {
  padding: 9px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--lp-ink-soft); text-decoration: none;
  transition: color .16s ease, background-color .16s ease;
}
.lp-nav__links a:hover { color: var(--lp-ink); background: var(--lp-surface-3); }
.lp-nav__actions { display: flex; align-items: center; gap: 8px; }
.lp-nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--lp-line-strong); background: var(--lp-surface);
  color: var(--lp-ink); cursor: pointer;
}
.lp-nav__drawer {
  display: none; flex-direction: column;
  padding: 4px 0 20px;
  border-top: 1px solid var(--lp-line);
}
.lp-nav__drawer[data-open='1'] { display: flex; }
.lp-nav__drawer a {
  padding: 14px 6px; font-size: 15px; font-weight: 500;
  color: var(--lp-ink); text-decoration: none;
  border-bottom: 1px solid var(--lp-line);
}
@media (min-width: 1000px) {
  .lp-nav__links { display: flex; }
  .lp-nav__burger { display: none; }
  .lp-nav__drawer { display: none !important; }
}

/* Sous 640px la barre ne tient plus le logo, le selecteur de theme, deux
 * boutons et le menu. On garde le logo et le menu, tout le reste bascule dans
 * le tiroir. La CTA principale ne se perd pas pour autant : celle du hero est
 * immediatement visible juste en dessous.
 *
 * La regle est portee par `.lp-nav--landing` et non par `.lp-nav` : la barre de
 * l'ecran de choix de serveur n'a pas de tiroir, y masquer les actions ferait
 * disparaitre la deconnexion et le selecteur de theme sans rien pour les
 * remplacer.
 *
 * Le repli `display: none` reste AVANT la requete media : place apres, il
 * gagnait a toutes les largeurs a specificite egale, et le bloc n'apparaissait
 * jamais. */
.lp-nav__drawer-cta { display: none; }
@media (max-width: 640px) {
  .lp-nav--landing .lp-nav__actions > :not(.lp-nav__burger) { display: none; }
  .lp-nav--landing .lp-nav__drawer-cta {
    display: flex; flex-direction: column; gap: 10px; padding: 16px 0 4px;
  }
}

/* Barres SANS tiroir (etat, connexion) : rien ne peut recueillir les actions
 * masquees, on degrade donc par etapes au lieu de tout cacher.
 *   - sous 640px l'action secondaire disparait ;
 *   - sous 480px l'action principale se reduit a son icone.
 * Mesure a l'origine de la regle : a 380px, `.lp-nav__actions` sortait de
 * 65px hors de la barre. */
@media (max-width: 640px) {
  .lp-nav:not(.lp-nav--landing) .lp-nav__actions .lp-btn--ghost { display: none; }
}
@media (max-width: 480px) {
  .lp-btn--collapse { padding-inline: 12px; }
  .lp-btn--collapse > span { display: none; }
}

/* ═══════════════ HERO ═══════════════ */
.lp-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(52px, 7vw, 92px) clamp(60px, 7vw, 100px);
  /* La référence pose un dégradé vertical bleuté→blanc sur toute la bannière :
   * c'est lui qui « assoit » le hero au lieu de le laisser flotter sur du blanc. */
  background: linear-gradient(180deg, var(--lp-surface-2) 0%, var(--lp-surface) 100%);
}
.lp-hero__grid { display: grid; gap: clamp(40px, 5vw, 64px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 1000px) { .lp-hero__grid { grid-template-columns: 1.05fr .95fr; } }
.lp-hero__title { margin-top: 22px; }
.lp-hero__lead { margin-top: 22px; max-width: 560px; }
.lp-hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.lp-hero__note { margin-top: 18px; font-size: 13px; color: var(--lp-ink-faint); display: flex; align-items: center; gap: 8px; }

/* Formes décoratives — 100 % CSS, aucune image à charger. */
.lp-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.lp-shapes > i { position: absolute; display: block; border-radius: 50%; }

/* Orbes : la référence utilise de vraies taches de couleur poussées à
 * `blur(200-300px)`, pas des dégradés radiaux doux. La différence se voit —
 * on obtient une lumière colorée diffuse plutôt qu'un halo net.
 * Rayon réduit vs la référence (300px) : au-delà de ~160px le coût de
 * composition devient visible au scroll sur mobile. */
.lp-shape-1 {
  width: 620px; height: 620px; top: -300px; left: -220px;
  background: rgba(66, 99, 235, .40);
  filter: blur(150px);
}
.lp-shape-2 {
  width: 560px; height: 560px; bottom: -300px; right: -160px;
  background: rgba(34, 211, 238, .34);
  filter: blur(140px);
}
.lp-shape-3 {
  width: 300px; height: 300px; top: 10%; right: 6%;
  border-radius: 42%;
  background: conic-gradient(from 0deg, rgba(66,99,235,.30), rgba(34,211,238,.30), rgba(245,158,11,.22), rgba(66,99,235,.30));
  filter: blur(70px);
  animation: lp-spin 24s linear infinite;
}
@media (max-width: 780px) {
  .lp-shape-1 { width: 380px; height: 380px; filter: blur(100px); }
  .lp-shape-2 { width: 340px; height: 340px; filter: blur(95px); }
  .lp-shape-3 { display: none; }
}
.dark .lp-shape-1 { background: rgba(66, 99, 235, .34); }
.dark .lp-shape-2 { background: rgba(34, 211, 238, .22); }

.lp-hero > .lp-container { position: relative; z-index: 1; }

/* ── Faisceaux verticaux ──
 * L'effet le plus caractéristique de la référence : de fines règles verticales
 * parcourues par un trait lumineux qui descend (ou remonte) en boucle. C'est
 * ce qui empêche le hero de paraître figé une fois les apparitions terminées.
 * Purement décoratif → conteneur `aria-hidden`, et coupé sous 900 px où les
 * colonnes n'ont plus la place de les accueillir sans bruit visuel. */
.lp-beams { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.lp-beam {
  position: absolute; top: 0; bottom: 0; width: 1px;
  background: var(--lp-line);
}
.lp-beam::after {
  content: '';
  position: absolute; left: -1px;
  width: 3px; height: 76px; opacity: .55;
  background: linear-gradient(180deg, rgba(66, 99, 235, 0) 0%, var(--lp-brand) 100%);
  animation: lp-beam-down 5s ease-in-out infinite;
}
.lp-beam--up::after {
  background: linear-gradient(0deg, rgba(34, 211, 238, 0) 0%, var(--lp-brand-2) 100%);
  animation-name: lp-beam-up;
}
.lp-beam:nth-child(1) { left: 11%; }
.lp-beam:nth-child(2) { left: 34%; }
.lp-beam:nth-child(3) { right: 31%; }
.lp-beam:nth-child(4) { right: 9%; }
.lp-beam:nth-child(2)::after { animation-delay: 1.6s; }
.lp-beam:nth-child(3)::after { animation-delay: .8s; }
.lp-beam:nth-child(4)::after { animation-delay: 2.4s; }
@media (max-width: 900px) { .lp-beams { display: none; } }

@keyframes lp-beam-down {
  0%   { top: -90px;  opacity: 0; }
  12%  { opacity: .55; }
  88%  { opacity: .55; }
  100% { top: 100%;   opacity: 0; }
}
@keyframes lp-beam-up {
  0%   { bottom: -90px; opacity: 0; }
  12%  { opacity: .55; }
  88%  { opacity: .55; }
  100% { bottom: 100%;  opacity: 0; }
}

@keyframes lp-spin       { to { transform: rotate(360deg); } }
/* Flottements de la référence : amplitude faible, `alternate` plutôt qu'un
 * aller-retour codé en dur dans les keyframes. */
@keyframes lp-up-down    { to { transform: translateY(-10px); } }
@keyframes lp-left-right { to { transform: translateX(-14px); } }

/* Grille pointillée en fond de section. */
.lp-dots::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--lp-line-strong) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 0%, transparent 75%);
}
.lp-dots > .lp-container { position: relative; z-index: 1; }

/* ── Carte « console » du hero ── */
.lp-console {
  position: relative;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow);
  overflow: hidden;
  animation: lp-up-down 2.8s ease-in-out infinite alternate;
}
.lp-console__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--lp-line);
  background: var(--lp-surface-2);
}
.lp-console__dots { display: flex; gap: 6px; }
.lp-console__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--lp-line-strong); display: block; }
.lp-console__title { font-size: 12.5px; font-weight: 600; color: var(--lp-ink-faint); }
.lp-console__body { padding: 20px; display: grid; gap: 10px; }
.lp-console__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--lp-surface-2);
  border: 1px solid transparent;
  transition: border-color .2s ease, transform .2s ease;
}
.lp-console__row:hover { border-color: var(--lp-brand); transform: translateX(3px); }
.lp-console__ico {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 11px; flex: none;
  background: var(--lp-grad-soft); color: var(--lp-brand); font-size: 15px;
}
.dark .lp-console__ico { color: var(--lp-brand-lift); }
.lp-console__meta { min-width: 0; }
.lp-console__meta strong { display: block; font-size: 13.5px; color: var(--lp-ink); font-weight: 600; }
.lp-console__meta span { font-size: 12px; color: var(--lp-ink-faint); }
.lp-console__state {
  margin-inline-start: auto; flex: none;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  background: var(--lp-ok-bg); color: var(--lp-ok);
}
.lp-console__state--warn { background: var(--lp-warn-bg); color: var(--lp-warn); }

/* ── Bandeau de stats ── */
.lp-stats {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  background: var(--lp-line);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  overflow: hidden;
}
@media (min-width: 760px) { .lp-stats { grid-template-columns: repeat(4, 1fr); } }
.lp-stat { background: var(--lp-surface); padding: 26px 22px; text-align: center; }
.lp-stat__value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; line-height: 1;
  color: var(--lp-ink);
}
.lp-stat__label { margin-top: 9px; font-size: 13px; color: var(--lp-ink-faint); }

/* ═══════════════ Grilles ═══════════════ */
.lp-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px)  { .lp-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px)  { .lp-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .lp-grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 620px)  { .lp-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .lp-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.lp-grid--head { margin-top: clamp(36px, 4vw, 56px); }

.lp-card {
  position: relative;
  padding: 28px 26px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); border-color: var(--lp-line-strong); }
.lp-card__ico {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 16px;
  background: var(--lp-grad-soft); color: var(--lp-brand);
  font-size: 21px; margin-bottom: 20px;
  transition: transform .32s cubic-bezier(.34, 1.4, .64, 1), background-color .32s ease;
}
.lp-card:hover .lp-card__ico { transform: rotate(-8deg) scale(1.08); }
.dark .lp-card__ico { color: var(--lp-brand-lift); }
.lp-card h3 { margin-bottom: 10px; }
.lp-card__foot { margin-top: 18px; }
.lp-card__tag {
  position: absolute; top: 20px; inset-inline-end: 20px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px;
  background: var(--lp-surface-3); color: var(--lp-ink-faint);
}

/* ── Bandeau défilant de pastilles ──
 * Deux rangées en sens opposés, à la manière des bandes de marques du
 * template. La piste est dupliquée et décalée de -50 % : la boucle est donc
 * sans raccord visible. Le survol met en pause, sinon on ne peut pas cliquer
 * une pastille en mouvement. */
.lp-marquee {
  margin-top: 34px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.lp-marquee + .lp-marquee { margin-top: 12px; }
.lp-marquee__track {
  display: flex; gap: 10px; width: max-content;
  animation: lp-marquee 46s linear infinite;
}
.lp-marquee--rev .lp-marquee__track { animation-direction: reverse; }
.lp-marquee:hover .lp-marquee__track,
.lp-marquee:focus-within .lp-marquee__track { animation-play-state: paused; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* Pastilles « module » */
.lp-mods { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.lp-mods-more { margin-top: 24px; }
.lp-mod {
  display: inline-flex; align-items: center; gap: 9px; flex: none;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--lp-line);
  background: var(--lp-surface);
  font-size: 13.5px; font-weight: 500; color: var(--lp-ink);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.lp-mod:hover { border-color: var(--lp-brand); transform: translateY(-2px); }
.lp-mod i { font-size: 14px; color: var(--lp-brand); }
.dark .lp-mod i { color: var(--lp-brand-lift); }

/* ═══════════════ Deux modes ═══════════════ */
.lp-split { display: grid; gap: clamp(28px, 4vw, 52px); grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 980px) { .lp-split { grid-template-columns: repeat(2, 1fr); } }

.lp-mode {
  position: relative;
  display: flex; flex-direction: column;
  padding: 34px 30px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
}
.lp-mode--accent {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--lp-surface), var(--lp-surface)) padding-box,
    var(--lp-grad) border-box;
  box-shadow: var(--lp-shadow);
}
.lp-mode__kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lp-brand);
}
.dark .lp-mode__kicker { color: var(--lp-brand-lift); }
.lp-mode h3 { margin: 12px 0 10px; }
.lp-mode .lp-checks { flex: 1; }
.lp-mode__cta { margin-top: 28px; }

.lp-checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 13px; }
.lp-checks li { display: flex; gap: 11px; font-size: 14.5px; line-height: 1.5; color: var(--lp-ink-soft); }
.lp-checks li i { flex: none; margin-top: 2px; font-size: 15px; color: var(--lp-ok); }
.lp-checks li b { color: var(--lp-ink); font-weight: 600; }
.lp-checks--muted li i { color: var(--lp-ink-faint); }

/* ═══════════════ Piliers techniques ═══════════════ */
.lp-pillars {
  display: grid; gap: 1px; grid-template-columns: 1fr;
  background: var(--lp-line);
  border: 1px solid var(--lp-line);
  border-radius: var(--lp-radius);
  overflow: hidden;
  margin-top: clamp(36px, 4vw, 56px);
}
@media (min-width: 760px)  { .lp-pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lp-pillars { grid-template-columns: repeat(4, 1fr); } }
.lp-pillar { background: var(--lp-surface); padding: 30px 26px; }
.lp-pillar > i { font-size: 22px; color: var(--lp-brand); }
.dark .lp-pillar > i { color: var(--lp-brand-lift); }
.lp-pillar h3 { margin: 16px 0 9px; font-size: 17px; }

.lp-specs { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .lp-specs { grid-template-columns: repeat(2, 1fr); } }
.lp-specs li {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 18px; border-radius: 14px;
  background: var(--lp-surface); border: 1px solid var(--lp-line);
  font-size: 14px; color: var(--lp-ink);
}
.lp-specs li i { color: var(--lp-brand); font-size: 15px; flex: none; }
.dark .lp-specs li i { color: var(--lp-brand-lift); }

/* ═══════════════ Pricing ═══════════════ */
.lp-plans {
  display: grid; gap: 20px; grid-template-columns: 1fr;
  margin-top: clamp(36px, 4vw, 56px); align-items: stretch;
}
@media (min-width: 700px)  { .lp-plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .lp-plans--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .lp-plans--3 { grid-template-columns: repeat(3, 1fr); } }
.lp-plan {
  display: flex; flex-direction: column;
  padding: 30px 26px;
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  transition: transform .22s ease, box-shadow .22s ease;
}
.lp-plan:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.lp-plan--featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--lp-surface), var(--lp-surface)) padding-box,
    var(--lp-grad) border-box;
  box-shadow: var(--lp-shadow);
}
.lp-plan__badge {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: var(--lp-grad-deep); color: #fff;
  margin-bottom: 14px;
}
.lp-plan__name { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; color: var(--lp-ink); }
.lp-plan__price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 4px; }
.lp-plan__price b { font-family: 'Space Grotesk', sans-serif; font-size: 38px; font-weight: 700; line-height: 1; color: var(--lp-ink); }
.lp-plan__price span { font-size: 13px; color: var(--lp-ink-faint); }
.lp-plan__desc { font-size: 13.5px; line-height: 1.55; color: var(--lp-ink-faint); }
.lp-plan .lp-checks { flex: 1; }
.lp-plan__cta { margin-top: 26px; }

/* ═══════════════ FAQ ═══════════════ */
.lp-faq { display: grid; gap: 12px; margin-top: clamp(30px, 3vw, 44px); }
.lp-faq__item {
  border-radius: var(--lp-radius-sm);
  border: 1px solid var(--lp-line);
  background: var(--lp-surface);
  overflow: hidden;
  transition: border-color .2s ease;
}
.lp-faq__item[open] { border-color: var(--lp-line-strong); }
.lp-faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--lp-ink);
  cursor: pointer; list-style: none;
}
.lp-faq__q::-webkit-details-marker { display: none; }
.lp-faq__q i { flex: none; font-size: 14px; color: var(--lp-ink-faint); transition: transform .22s ease; }
.lp-faq__item[open] .lp-faq__q i { transform: rotate(45deg); color: var(--lp-brand); }
.lp-faq__a { padding: 0 24px 22px; font-size: 14.5px; line-height: 1.65; color: var(--lp-ink-soft); }

/* ═══════════════ CTA final ═══════════════ */
.lp-cta {
  position: relative; overflow: hidden;
  border-radius: clamp(24px, 3vw, 34px);
  padding: clamp(44px, 6vw, 76px) clamp(26px, 5vw, 64px);
  background: var(--lp-grad-deep);
  text-align: center;
}
.lp-cta::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 90% at 50% 120%, rgba(255,255,255,.22), rgba(255,255,255,0) 70%);
}
.lp-cta h2, .lp-cta p { color: #fff; position: relative; z-index: 1; }
.lp-cta p { opacity: .93; margin-top: 16px; }
.lp-cta__actions { position: relative; z-index: 1; margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.lp-cta .lp-btn--ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.34); }
.lp-cta .lp-btn--ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); }
.lp-cta .lp-btn--primary { background: #fff; color: #1e2a5a; box-shadow: 0 12px 30px rgba(0,0,0,.20); }

/* ═══════════════ Footer ═══════════════ */
.lp-footer { background: var(--lp-surface-2); border-top: 1px solid var(--lp-line); padding-block: clamp(48px, 5vw, 72px) 28px; }
.lp-footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .lp-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .lp-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.lp-footer__brand img { height: 60px; width: auto; object-fit: contain; }
.lp-footer__brand p { margin-top: 16px; max-width: 330px; font-size: 14px; line-height: 1.6; color: var(--lp-ink-soft); }
.lp-footer h4 {
  font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--lp-ink-faint);
  margin-bottom: 16px;
}
.lp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.lp-footer ul a { font-size: 14px; color: var(--lp-ink-soft); text-decoration: none; transition: color .16s ease; }
.lp-footer ul a:hover { color: var(--lp-brand); }
.lp-footer__bottom {
  margin-top: clamp(36px, 4vw, 56px); padding-top: 22px;
  border-top: 1px solid var(--lp-line);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 13px; color: var(--lp-ink-faint);
}
.lp-footer__bottom nav { margin-inline-start: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.lp-footer__owner {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px;
  font-size: 14px; color: var(--lp-ink-soft); text-decoration: none;
  transition: color .16s ease;
}
.lp-footer__owner:hover { color: var(--lp-brand); }
.lp-footer__owner b { color: var(--lp-ink); font-weight: 600; }
.lp-footer__owner i { font-size: 12px; }
.lp-footer__bottom a { color: var(--lp-ink-faint); text-decoration: none; }
.lp-footer__bottom a:hover { color: var(--lp-brand); }

/* ═══════════════ Apparitions ═══════════════ */
.lp-fade { opacity: 0; transform: translateY(26px); }
.lp-fade.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.lp-fade[data-delay='1'].is-in { transition-delay: .08s; }
.lp-fade[data-delay='2'].is-in { transition-delay: .16s; }
.lp-fade[data-delay='3'].is-in { transition-delay: .24s; }
.lp-fade[data-delay='4'].is-in { transition-delay: .32s; }

/* Révélation caractère par caractère — équivalent du `_split_text` de la
   référence (qui l'obtient via GSAP SplitText). Son état de départ exact :
   `translate(0, 50px) rotate(1deg)` + `opacity: 0`. Le léger pivot est ce qui
   distingue l'effet d'un simple fondu montant, alors on le garde.
   Le découpage est fait par landing.js : le HTML servi reste un titre en texte
   brut, donc indexable et lisible par un lecteur d'écran. */
.lp-reveal .lp-w { display: inline-block; white-space: nowrap; }
.lp-reveal .lp-c {
  display: inline-block;
  transform: translateY(50px) rotate(1deg);
  opacity: 0;
}
.lp-reveal.is-in .lp-c {
  transform: none;
  opacity: 1;
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .55s ease-out;
  transition-delay: calc(var(--i, 0) * 22ms);
}

/* Sans JS : rien ne doit rester invisible (progressive enhancement, cf
   claude/ACCESSIBILITY.md — fallback no-JS obligatoire). */
.no-js .lp-fade { opacity: 1; transform: none; }
.no-js .lp-reveal .lp-c { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .lp-fade, .lp-fade.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lp-reveal .lp-c { transform: none !important; opacity: 1 !important; transition: none !important; }
  /* Tout ce qui boucle indéfiniment s'arrête : faisceaux, orbe tournante,
     flottement de la console, bandeaux défilants. */
  .lp-console, .lp-shape-3, .lp-beam::after, .lp-marquee__track { animation: none !important; }
  .lp-beam::after { display: none; }
  .lp-marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .lp-marquee__track { flex-wrap: wrap; width: 100%; }
  .lp-btn::before { transition: none; }
  .lp-btn:hover, .lp-card:hover, .lp-plan:hover, .lp-mod:hover, .lp-console__row:hover { transform: none; }
  .lp-card:hover .lp-card__ico { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SÉLECTION DE SERVEUR — `guild-select.ejs`

   Même langage visuel que la landing : c'est le premier écran après la
   connexion Discord, il ne doit pas donner l'impression de changer de produit.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hero allégé : la page est fonctionnelle, pas promotionnelle. */
.lp-hero--slim { padding-block: clamp(34px, 4.5vw, 58px) clamp(26px, 3vw, 40px); }
.lp-hero--slim .lp-h1 { font-size: clamp(29px, 3.6vw, 46px); }

/* Barre de compte — remplace la nav marketing sur cet écran. */
.lp-account { display: flex; align-items: center; gap: 10px; }
.lp-account__avatar {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--lp-line-strong); object-fit: cover; flex: none;
}
.lp-account__name { font-size: 14px; font-weight: 500; color: var(--lp-ink); }
@media (max-width: 560px) { .lp-account__name { display: none; } }
.lp-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--lp-line-strong); background: var(--lp-surface);
  color: var(--lp-ink-soft); text-decoration: none; cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.lp-icon-btn:hover { color: var(--lp-brand); border-color: var(--lp-brand); }

/* Disposition : panneau admin à gauche, serveurs à droite. */
.lp-select { display: grid; gap: clamp(20px, 3vw, 34px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .lp-select--admin { grid-template-columns: 320px 1fr; } }

.lp-group + .lp-group { margin-top: 30px; }
.lp-group__label {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase;
  color: var(--lp-ink-faint);
}
.lp-group__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lp-ok); flex: none; }
.lp-group__dot--idle { background: var(--lp-ink-faint); }
.lp-group__list { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .lp-group__list--dense { grid-template-columns: repeat(2, 1fr); } }

/* ── Carte serveur ── */
.lp-server {
  display: flex; align-items: center; gap: 15px;
  padding: 16px 18px;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  text-decoration: none;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}
/* Liseré de marque qui se déroule du haut au survol — écho discret du
   `banner8__border__shape` de la référence, appliqué à un élément de liste. */
.lp-server::before {
  content: '';
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0;
  width: 3px; background: var(--lp-grad);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .26s cubic-bezier(.22, .61, .36, 1);
}
.lp-server:hover { transform: translateY(-2px); box-shadow: var(--lp-shadow-sm); border-color: var(--lp-line-strong); }
.lp-server:hover::before { transform: scaleY(1); transform-origin: top; }
.lp-server--muted { opacity: .62; }
.lp-server--muted:hover { opacity: 1; }

.lp-server__icon { position: relative; flex: none; }
.lp-server__icon > img,
.lp-server__icon > span {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  object-fit: cover; overflow: hidden;
  border: 1px solid var(--lp-line-strong);
  background: var(--lp-grad-soft);
  font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--lp-brand);
}
.dark .lp-server__icon > span { color: var(--lp-brand-lift); }
.lp-server__crown {
  position: absolute; top: -5px; inset-inline-end: -5px;
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--lp-accent); color: #fff; font-size: 8px;
  border: 2px solid var(--lp-surface);
}
.lp-server__body { min-width: 0; flex: 1; }
.lp-server__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lp-server__name {
  font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--lp-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.lp-server__facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 6px; }
.lp-server__fact { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--lp-ink-faint); }
.lp-server__fact i { font-size: 11px; }
.lp-server__fact b { color: var(--lp-ink-soft); font-weight: 600; }
.lp-server__go { flex: none; font-size: 14px; color: var(--lp-ink-faint); transition: color .2s ease, transform .2s ease; }
.lp-server:hover .lp-server__go { color: var(--lp-brand); transform: translateX(3px); }

/* ── Étiquettes d'état ── */
.lp-tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: var(--lp-surface-3); color: var(--lp-ink-faint);
}
.lp-tag i { font-size: 9px; }
.lp-tag--ok    { background: var(--lp-ok-bg);   color: var(--lp-ok); }
.lp-tag--warn  { background: var(--lp-warn-bg); color: var(--lp-warn); }
.lp-tag--brand { background: var(--lp-grad-soft); color: var(--lp-brand); }
.lp-tag--down  { background: var(--lp-danger-bg); color: var(--lp-danger); }
/* `idle` est deja l'apparence par defaut : la classe existe pour que la vue
   puisse composer `lp-tag--<etat>` sans cas particulier. */
.lp-tag--idle  { background: var(--lp-surface-3); color: var(--lp-ink-faint); }
.dark .lp-tag--brand { color: var(--lp-brand-lift); }

/* ── Panneau admin ── */
.lp-admin {
  display: flex; flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--lp-radius);
  background: var(--lp-grad-deep);
  text-decoration: none;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 44px rgba(66, 99, 235, .30);
  transition: transform .22s ease, box-shadow .22s ease;
}
.lp-admin:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgba(66, 99, 235, .38); }
.lp-admin::after {
  content: ''; position: absolute; pointer-events: none;
  width: 220px; height: 220px; border-radius: 50%;
  top: -90px; inset-inline-end: -70px;
  background: rgba(255, 255, 255, .16);
}
.lp-admin > * { position: relative; z-index: 1; }
.lp-admin__ico {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 17px;
  background: rgba(255, 255, 255, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .40);
  color: #fff; font-size: 26px;
  margin-bottom: 18px;
}
.lp-admin__title { font-family: 'Space Grotesk', sans-serif; font-size: 19px; font-weight: 600; color: #fff; }
.lp-admin__sub { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .93); }
.lp-admin__links { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.lp-admin__links li { display: flex; align-items: center; gap: 9px; font-size: 13px; color: rgba(255, 255, 255, .93); }
.lp-admin__links i { font-size: 12px; flex: none; }
.lp-admin__cta {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .20);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: #fff;
}
.lp-admin__cta i { transition: transform .2s ease; }
.lp-admin:hover .lp-admin__cta i { transform: translateX(3px); }

/* ── État vide ── */
.lp-empty {
  text-align: center;
  padding: clamp(38px, 6vw, 64px) 26px;
  border-radius: var(--lp-radius);
  border: 1px dashed var(--lp-line-strong);
  background: var(--lp-surface);
}
.lp-empty__ico {
  display: grid; place-items: center; margin: 0 auto 20px;
  width: 68px; height: 68px; border-radius: 22px;
  background: var(--lp-grad-soft); color: var(--lp-brand); font-size: 30px;
}
.dark .lp-empty__ico { color: var(--lp-brand-lift); }
.lp-empty p { margin: 10px auto 24px; max-width: 380px; }

/* ── Pied de page minimal ── */
.lp-footer--slim { background: transparent; border-top: 1px solid var(--lp-line); padding-block: 22px; }
.lp-footer--slim .lp-footer__bottom { margin-top: 0; padding-top: 0; border-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .lp-server:hover, .lp-admin:hover { transform: none; }
  .lp-server::before, .lp-server__go, .lp-admin__cta i { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE D'ÉTAT — `status.ejs`

   Frise de disponibilité facon page d'etat publique : une barrette par jour
   mesure, sur la fenetre de retention d'`UptimeCheck`.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Palette d'etat, partagee par la pastille, le point et la barrette. Quatre
   valeurs et pas trois : « non mesure » n'est pas « operationnel ». */
.lp-state--ok   { --lp-state: var(--lp-ok);         --lp-state-bg: var(--lp-ok-bg); }
.lp-state--warn { --lp-state: var(--lp-warn);       --lp-state-bg: var(--lp-warn-bg); }
.lp-state--down { --lp-state: var(--lp-danger);     --lp-state-bg: var(--lp-danger-bg); }
.lp-state--idle { --lp-state: var(--lp-ink-faint);  --lp-state-bg: var(--lp-surface-3); }

/* ── Banniere ── */
.lp-status-hero { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 26px); }
.lp-status-hero .lp-h1 { font-size: clamp(24px, 3.1vw, 40px); line-height: 1.15; }
.lp-status-hero__meta {
  margin-top: 10px; font-size: 14px; color: var(--lp-ink-faint);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.lp-status-orb {
  display: grid; place-items: center; flex: none;
  width: clamp(56px, 7vw, 78px); height: clamp(56px, 7vw, 78px);
  border-radius: 26px;
  font-size: clamp(26px, 3.2vw, 34px);
  background: var(--lp-state-bg); color: var(--lp-state);
  box-shadow: 0 0 0 8px var(--lp-state-bg);
}
.lp-status-live { display: inline-flex; align-items: center; gap: 7px; color: var(--lp-ok); font-weight: 600; }
.lp-status-live__dot {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ── Point d'etat ── */
.lp-state-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--lp-state); }
.lp-state-dot--ok   { background: var(--lp-ok); }
.lp-state-dot--warn { background: var(--lp-warn); }
.lp-state-dot--down { background: var(--lp-danger); }
.lp-state-dot--idle { background: var(--lp-ink-faint); }
.lp-group__dot--down { background: var(--lp-danger); }

/* ── En-tete de la liste + legende ── */
.lp-status-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 10px 20px; margin-bottom: 14px;
}
.lp-status-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  font-size: 12px; color: var(--lp-ink-faint); margin: 0;
}
.lp-status-legend__key { display: inline-flex; align-items: center; gap: 6px; }
.lp-status-legend .lp-tick { height: 12px; }

/* ── Une ligne de service ── */
.lp-status-list { display: grid; gap: 12px; }
.lp-status-row {
  padding: 20px 22px;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
}
.lp-status-row__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.lp-status-row__name {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: 15.5px; font-weight: 600;
  color: var(--lp-ink);
}
.lp-status-row__right { display: inline-flex; align-items: center; gap: 10px; }
.lp-status-row__lat { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--lp-ink-faint); }
.lp-status-row__foot {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-top: 10px;
  font-size: 12px; color: var(--lp-ink-faint);
}
.lp-status-row__foot > :first-child,
.lp-status-row__foot > :last-child { flex: none; }
@media (max-width: 620px) {
  /* Les deux bornes de la frise ne servent a rien quand la place manque :
     c'est le pourcentage qui porte l'information. */
  .lp-status-row__foot > :first-child,
  .lp-status-row__foot > :last-child { display: none; }
  .lp-status-row__foot { justify-content: center; }
}
.lp-status-row__sla { text-align: center; flex: 1; }
.lp-status-row__sla strong { color: var(--lp-ink); font-weight: 700; }
.lp-status-row__note { font-size: 12.5px; color: var(--lp-ink-faint); }

/* ── Frise de disponibilite ──
   `min-width: 2px` plutot qu'une largeur fixe : la frise doit tenir dans sa
   ligne a toutes les largeurs, quitte a affiner les barrettes. */
.lp-ticks { display: flex; align-items: stretch; gap: 2px; height: 34px; }
.lp-tick {
  display: block; flex: 1 1 0; min-width: 2px;
  border-radius: 2px;
  background: var(--lp-state, var(--lp-ink-faint));
  opacity: .85;
  transition: opacity .15s ease, transform .15s ease;
}
.lp-tick:hover { opacity: 1; transform: scaleY(1.12); }
.lp-tick.lp-state--idle { opacity: .35; }

/* Plancher de la frise : 90 barrettes a 2px plus 89 gouttieres de 2px font
 * 358px incompressibles, ce qui debordait des 420px. On resserre plutot que
 * de masquer des journees : une frise amputee mentirait sur la fenetre que son
 * `aria-label` annonce. */
@media (max-width: 700px) {
  .lp-ticks { gap: 1px; height: 28px; }
  .lp-tick { min-width: 1px; border-radius: 1px; }
}

/* ── Encart d'incident ou de maintenance ── */
.lp-notice {
  padding: 22px 24px;
  border-radius: var(--lp-radius-sm);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  border-inline-start: 3px solid var(--lp-line-strong);
}
.lp-notice + .lp-notice { margin-top: 12px; }
.lp-notice--warn { border-inline-start-color: var(--lp-warn); }
.lp-notice--down { border-inline-start-color: var(--lp-danger); }
.lp-notice__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.lp-notice__head .lp-h4 { margin-inline-end: 4px; }
.lp-notice__meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 14px; font-size: 12.5px; color: var(--lp-ink-faint);
}
.lp-notice__meta i { font-size: 12px; }
.lp-notice__svc { font-family: 'JetBrains Mono', monospace; }

/* ── Fil des mises a jour d'un incident ── */
.lp-timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 20px; position: relative; }
.lp-timeline::before {
  content: ''; position: absolute; inset-block: 6px; inset-inline-start: 3px;
  width: 1px; background: var(--lp-line-strong);
}
.lp-timeline__item { position: relative; padding-bottom: 16px; }
.lp-timeline__item:last-child { padding-bottom: 0; }
.lp-timeline__item::before {
  content: ''; position: absolute; inset-inline-start: -20px; top: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--lp-brand); box-shadow: 0 0 0 3px var(--lp-surface);
}
.lp-timeline__item time { font-size: 12px; color: var(--lp-ink-faint); }
.lp-timeline__status {
  margin-inline-start: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--lp-brand);
}
.dark .lp-timeline__status { color: var(--lp-brand-lift); }
.lp-timeline__item .lp-p { margin-top: 4px; font-size: 14px; }

/* ── Utilitaires d'espacement, pour ne pas ecrire de style en ligne ── */
.lp-mt-0  { margin-bottom: 0; }
.lp-mt-14 { margin-top: 14px; }
.lp-mt-22 { margin-top: 22px; }

@media (prefers-reduced-motion: reduce) {
  .lp-status-live__dot { animation: none; }
  .lp-tick:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CARTES DE SERVEUR — details visuels
   ═══════════════════════════════════════════════════════════════════════════ */

/* Teinte deterministe pour un serveur sans icone. Deux serveurs differents ne
   se ressemblent pas, et la meme guilde garde toujours la meme couleur. */
.lp-server__icon > span[class*='lp-avatar--'] {
  background: var(--lp-av-bg, var(--lp-grad-soft));
  color: var(--lp-av-ink, var(--lp-brand));
  border-color: transparent;
}
.lp-avatar--violet  { --lp-av-bg: rgba(124, 58, 237, .16);  --lp-av-ink: #6d28d9; }
.lp-avatar--cyan    { --lp-av-bg: rgba(6, 182, 212, .16);   --lp-av-ink: #0e7490; }
.lp-avatar--emerald { --lp-av-bg: rgba(16, 185, 129, .16);  --lp-av-ink: #047857; }
.lp-avatar--amber   { --lp-av-bg: rgba(245, 158, 11, .18);  --lp-av-ink: #92400e; }
.lp-avatar--rose    { --lp-av-bg: rgba(244, 63, 94, .15);   --lp-av-ink: #be123c; }
.lp-avatar--sky     { --lp-av-bg: rgba(14, 165, 233, .16);  --lp-av-ink: #0369a1; }
.lp-avatar--indigo  { --lp-av-bg: rgba(99, 102, 241, .16);  --lp-av-ink: #4338ca; }
.lp-avatar--orange  { --lp-av-bg: rgba(249, 115, 22, .16);  --lp-av-ink: #9a3412; }
.dark .lp-avatar--violet  { --lp-av-ink: #c4b5fd; }
.dark .lp-avatar--cyan    { --lp-av-ink: #67e8f9; }
.dark .lp-avatar--emerald { --lp-av-ink: #6ee7b7; }
.dark .lp-avatar--amber   { --lp-av-ink: #fcd34d; }
.dark .lp-avatar--rose    { --lp-av-ink: #fda4af; }
.dark .lp-avatar--sky     { --lp-av-ink: #7dd3fc; }
.dark .lp-avatar--indigo  { --lp-av-ink: #a5b4fc; }
.dark .lp-avatar--orange  { --lp-av-ink: #fdba74; }

/* Pastille d'etat d'une instance privee, posee sur l'icone du serveur. */
.lp-server__pulse {
  position: absolute; inset-block-end: -2px; inset-inline-end: -2px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--lp-surface);
  background: var(--lp-ink-faint);
}
.lp-pulse--ok   { background: var(--lp-ok); }
.lp-pulse--warn { background: var(--lp-warn); }
.lp-pulse--down { background: var(--lp-danger); }
/* Seul « en ligne » respire : une pastille arretee ne doit pas clignoter. */
.lp-pulse--ok::after {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid var(--lp-ok);
  opacity: 0; animation: lp-halo 2.4s ease-out infinite;
}
@keyframes lp-halo {
  0%   { transform: scale(.6); opacity: .7; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* Jauge d'equipement : combien de modules actifs sur le catalogue. */
.lp-gauge { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.lp-gauge__bar {
  position: relative; flex: 1; height: 5px; border-radius: 999px;
  background: var(--lp-surface-3); overflow: hidden;
}
.lp-gauge__fill {
  position: absolute; inset-block: 0; inset-inline-start: 0;
  border-radius: 999px; background: var(--lp-grad);
  transition: width .5s cubic-bezier(.22, .61, .36, 1);
}
.lp-gauge__val {
  flex: none;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: var(--lp-ink-faint);
}

/* Rappel des domaines d'un administrateur qui en porte plusieurs. */
.lp-admin__roles { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.lp-admin__role {
  padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
  .lp-pulse--ok::after { animation: none; display: none; }
  .lp-gauge__fill { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONNEXION — `auth/login.ejs`

   Carte centree sur le decor de la landing. La page n'a qu'une action, tout le
   reste sert a expliquer ce que la connexion Discord donne et ne donne pas.
   ═══════════════════════════════════════════════════════════════════════════ */

.lp-auth {
  display: flex; align-items: center;
  min-height: calc(100vh - 82px - 80px);   /* barre + pied de page */
  padding-block: clamp(36px, 6vw, 72px);
}
.lp-auth > .lp-container { width: 100%; }

.lp-auth__card {
  width: 100%; max-width: 520px; margin-inline: auto;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 42px);
  border-radius: var(--lp-radius);
  background: var(--lp-surface);
  border: 1px solid var(--lp-line);
  box-shadow: var(--lp-shadow);
  text-align: center;
}
.lp-auth__ico { display: block; margin-bottom: 22px; }
.lp-auth__ico img { height: clamp(46px, 6vw, 60px); width: auto; object-fit: contain; }
.lp-auth__titre { margin-bottom: 12px; }
.lp-auth__lead { margin-inline: auto; max-width: 400px; }
.lp-auth__cta { margin-top: 28px; }

/* Bandeau d'etat : echec du rappel OAuth, ou confirmation de deconnexion. */
.lp-auth__alerte {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 26px; padding: 13px 16px;
  border-radius: 14px;
  background: var(--lp-ok-bg); color: var(--lp-ok);
  font-size: 13.5px; line-height: 1.5; text-align: start;
}
.lp-auth__alerte i { flex: none; margin-top: 1px; font-size: 15px; }
.lp-auth__alerte--erreur { background: var(--lp-danger-bg); color: var(--lp-danger); }

.lp-auth__parrainage {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 7px 14px;
  border-radius: 999px;
  background: var(--lp-grad-soft); color: var(--lp-brand);
  font-size: 12.5px;
}
.dark .lp-auth__parrainage { color: var(--lp-brand-lift); }
.lp-auth__parrainage b { font-family: 'JetBrains Mono', monospace; }

/* Ce que la connexion donne, et ce qu'elle ne donne pas. */
.lp-auth__acces {
  margin-top: 30px; padding-top: 26px;
  border-top: 1px solid var(--lp-line);
  text-align: start;
}
.lp-auth__acces-titre {
  margin: 0 0 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--lp-ink-faint);
}
.lp-auth__acces-titre--refus { margin-top: 24px; }
.lp-auth__acces .lp-checks { margin-top: 0; gap: 14px; }
.lp-auth__acces .lp-checks li { font-size: 13.5px; }
.lp-auth__acces .lp-checks li span { line-height: 1.5; }
.lp-checks--refus li i { color: var(--lp-ink-faint); }
.lp-checks--refus li { color: var(--lp-ink-faint); }

.lp-auth__mentions {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--lp-line);
  font-size: 12.5px; line-height: 1.6; color: var(--lp-ink-faint);
}
.lp-auth__mentions a { color: var(--lp-ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.lp-auth__mentions a:hover { color: var(--lp-brand); }

.lp-auth__aide {
  margin: 26px auto 0; max-width: 520px;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--lp-ink-faint);
}
