/* ==========================================================================
   KatteCraft — site vitrine
   Style minimaliste inspiré des fonds dégradés flous : verre dépoli,
   typographie douce, palette aurore boréale (thème nordique).
   ========================================================================== */

:root {
  --bg: #0c1220;
  --texte: #eef2f7;
  --texte-doux: rgba(238, 242, 247, 0.72);
  --texte-faible: rgba(238, 242, 247, 0.45);
  --verre: rgba(255, 255, 255, 0.055);
  --verre-fort: rgba(255, 255, 255, 0.10);
  --bord: rgba(255, 255, 255, 0.12);
  --accent: #4fd1c5;
  --radius: 20px;
  --police: "Poppins", "Segoe UI", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--police);
  background: var(--bg);
  color: var(--texte);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Fond aurore (dégradés flous animés) ---------- */

.aurore {
  position: fixed;
  inset: -20%;
  z-index: -1;
  pointer-events: none;
  /* Dégradés très étalés : effet "flou" sans filter (le blur GPU coûte trop cher) */
  background:
    radial-gradient(55% 60% at 18% 22%, rgba(79, 209, 197, 0.32), transparent 72%),
    radial-gradient(58% 64% at 82% 18%, rgba(139, 92, 246, 0.28), transparent 72%),
    radial-gradient(62% 66% at 74% 82%, rgba(217, 119, 87, 0.26), transparent 72%),
    radial-gradient(56% 60% at 22% 84%, rgba(56, 128, 246, 0.26), transparent 72%),
    radial-gradient(44% 48% at 50% 50%, rgba(46, 196, 138, 0.14), transparent 72%);
  will-change: transform;
  animation: derive-aurore 26s ease-in-out infinite alternate;
}

@keyframes derive-aurore {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -2%, 0) scale(1.06); }
  100% { transform: translate3d(-2.5%, 2%, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .aurore { animation: none; }
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 3.5vw, 2.6rem);
  padding: 1.35rem 1rem;
  /* Pas de backdrop-filter : le flou "live" doit rééchantillonner tout ce qui
     défile derrière à chaque frame de scroll (coûteux quel que soit le rayon).
     Fond quasi opaque à la place : même lisibilité, zéro recalcul par frame. */
  background: linear-gradient(rgba(12, 18, 32, 0.92), rgba(12, 18, 32, 0.78) 80%, rgba(12, 18, 32, 0.4));
  transform: translateZ(0);
}

.nav a {
  color: var(--texte-doux);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--texte); }

.nav a.actif {
  color: var(--texte);
  font-weight: 700;
}

/* ---------- Structure ---------- */

.contenu { max-width: 1120px; margin: 0 auto; padding: 0 1.4rem; }

/* Variante large (boutique) : cartes façon comparateur pleine largeur */
.contenu.contenu-large { max-width: 1560px; }

.section { padding: 4.5rem 0; }

.section h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  font-weight: 500;
  text-align: center;
  margin-bottom: 1.2rem;
  letter-spacing: 0.01em;
}

.section .sous-titre {
  text-align: center;
  color: var(--texte-doux);
  max-width: 760px;
  margin: 0 auto 2.6rem;
  line-height: 1.75;
  font-weight: 300;
  font-size: 0.98rem;
}

/* ---------- Héros (accueil) ---------- */

.heros {
  min-height: calc(100vh - 76px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.4rem 5rem;
  gap: 1.4rem;
}

.heros .embleme { width: 118px; height: 118px; filter: drop-shadow(0 10px 34px rgba(79, 209, 197, 0.35)); }

.heros h1 {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.heros h1 .k { color: var(--accent); }

.heros .accroche {
  color: var(--texte-doux);
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  max-width: 620px;
  line-height: 1.7;
}

.heros .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.fleche-bas {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--texte-doux);
  font-size: 1.5rem;
  animation: flotte 2.2s ease-in-out infinite;
  text-decoration: none;
}

@keyframes flotte {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--bord);
  background: var(--verre-fort);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--texte);
  font-family: var(--police);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.17);
  transform: translateY(-2px);
}

.btn.principal {
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.85), rgba(56, 128, 246, 0.75));
  border-color: transparent;
  color: #fff;
}

.btn.principal:hover { filter: brightness(1.08); }

/* ---------- Cartes verre ---------- */

.carte {
  background: var(--verre);
  border: 1px solid var(--bord);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1.8rem;
}

.grille-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.carte .icone { font-size: 1.7rem; margin-bottom: 0.7rem; display: block; }

.carte h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 0.55rem; }

.carte p { color: var(--texte-doux); font-size: 0.92rem; line-height: 1.7; font-weight: 300; }

/* Cartes « Nouveauté » (accueil) : badge en haut à droite */
.carte.nouveaute { position: relative; }

.badge-nouveau {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0f1a;
  background: linear-gradient(135deg, #4fd1c5, #38b2f6);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px -4px rgba(79, 209, 197, 0.6);
}

/* ---------- Statistiques ---------- */

.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(2rem, 8vw, 6rem);
  text-align: center;
}

.stats .valeur { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 700; }

.stats .libelle { color: var(--texte-doux); font-weight: 300; margin-top: 0.2rem; }

/* ---------- IP à copier ---------- */

.ip-serveur {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.25);
  color: var(--texte);
  font-family: "Consolas", monospace;
  font-size: 1.02rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ip-serveur:hover { border-color: var(--accent); background: rgba(0, 0, 0, 0.4); }

.ip-serveur .copie { font-size: 0.8rem; color: var(--texte-faible); font-family: var(--police); }

/* ---------- Pied de page ---------- */

.pied {
  margin-top: 4rem;
  padding: 2.4rem 1.4rem 2.8rem;
  text-align: center;
  color: var(--texte-faible);
  font-size: 0.85rem;
  font-weight: 300;
}

.pied a { color: var(--texte-doux); text-decoration: none; margin: 0 0.7rem; }
.pied a:hover { color: var(--texte); }
.pied .liens { margin-bottom: 0.8rem; }

.pied .legal { margin-bottom: 0.9rem; font-size: 0.8rem; }
.pied .legal a { color: var(--texte-faible); }
.pied .legal a:hover { color: var(--texte-doux); }

/* ==========================================================================
   BOUTIQUE — cartes de rang façon comparateur
   ========================================================================== */

.boutique-titre {
  text-align: center;
  padding: 3rem 1rem 0.4rem;
}

.boutique-titre h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 600; }

.boutique-titre p { color: var(--texte-doux); font-weight: 300; margin-top: 0.6rem; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.2rem;
  align-items: start;
  padding: 2.6rem 0 1rem;
}

.plan {
  position: relative;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--teinte) 55%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--teinte) 11%, transparent), rgba(255, 255, 255, 0.03) 40%),
    rgba(10, 15, 26, 0.9);
  /* Pas de backdrop-filter : sur 3 grandes cartes qui défilent au-dessus du
     fond aurore animé, le flou "live" doit rééchantillonner tout ce qui est
     derrière à CHAQUE frame de scroll — c'est ça le vrai coût, pas le rayon
     de flou. Fond quasi opaque à la place : look quasi identique, zéro
     recalcul par frame → scroll fluide. */
  box-shadow: 0 0 44px -12px color-mix(in srgb, var(--teinte) 45%, transparent);
  padding: 2.6rem 2.1rem 1.8rem;
  /* Couche de composition dédiée par carte (aide le rendu du shine animé) */
  transform: translateZ(0);
  /* PAS de contain:paint : ça clippe aussi les enfants en position absolue qui
     dépassent la carte (ex. le badge en top:-13px) — c'est ce qui coupait le
     badge en haut des cartes Roi/Jarl/Skarl. */
}

/* Teintes conversion (gradation rareté turquoise → violet → or), choisies pour ne pas
   se confondre avec les grades modération (vert Support, bleu Modo, rose Admin, rouge Fondateur).
   Alignées sur les couleurs réelles en jeu (chat/tab/nametag) — Jarl en #AA00AA (DARK_PURPLE
   vanilla exact) depuis le 2026-07-13, pour que le site ne promette pas une teinte différente
   de ce que le joueur voit réellement en jeu. */
.plan.roi   { --teinte: #ffaa00; }
.plan.jarl  { --teinte: #AA00AA; }
.plan.skarl { --teinte: #40E0D0; }

.plan .badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0a0f1a;
  background: var(--teinte);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: 0 4px 18px -4px var(--teinte);
}

.plan .entete { text-align: center; margin-bottom: 1.6rem; }

.plan .entete .nom {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teinte);
  text-shadow: 0 0 26px color-mix(in srgb, var(--teinte) 60%, transparent);
}

.plan .entete .promesse {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--texte-doux);
  margin-top: 0.45rem;
}

.plan .entete .prix { margin-top: 0.9rem; font-weight: 700; font-size: 1.6rem; }

.plan .entete .prix small { font-size: 0.75rem; font-weight: 300; color: var(--texte-faible); }

.plan .categorie {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teinte);
  margin: 1.7rem 0 0.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid color-mix(in srgb, var(--teinte) 30%, transparent);
}

.plan .ligne {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.62rem 0.15rem;
  font-size: 0.87rem;
  font-weight: 300;
  color: var(--texte-doux);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.plan .ligne:last-of-type { border-bottom: none; }

.plan .ligne .pic { width: 1.25rem; text-align: center; flex-shrink: 0; opacity: 0.85; }

.plan .ligne .txt { flex: 1; line-height: 1.45; }

.plan .ligne .val {
  font-weight: 700;
  color: var(--teinte);
  font-size: 0.91rem;
  white-space: nowrap;
}

.plan .ligne.absente { opacity: 0.32; }
.plan .ligne.absente .val { color: var(--texte-faible); font-weight: 400; }

/* Ligne d'avantage exclusif : texte teinté comme le badge (style bay.life) */
.plan .ligne.exclu .txt { color: var(--teinte); font-weight: 400; }

.plan .exclusif {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teinte) 22%, transparent);
  color: var(--teinte);
  border: 1px solid color-mix(in srgb, var(--teinte) 45%, transparent);
  flex-shrink: 0;
  /* Reflet brillant qui balaie le badge périodiquement */
  position: relative;
  overflow: hidden;
}

.plan .exclusif::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -75%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent,
    rgba(255, 255, 255, 0.75) 50%,
    transparent);
  transform: skewX(-20deg);
  animation: exclusif-brille 3.2s ease-in-out infinite;
}

@keyframes exclusif-brille {
  0%   { left: -75%; }
  38%  { left: 130%; }
  100% { left: 130%; } /* pause entre deux passages */
}

/* Même reflet sur le badge « Expérience ultime » de la carte Roi */
.plan.roi .badge {
  overflow: hidden;
}

/* Bouton 90 jours du Roi : même reflet premium que les badges EXCLUSIF */
.plan.roi .achats a.plein {
  position: relative;
  overflow: hidden;
}

.plan.roi .achats a.plein::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -75%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent,
    rgba(255, 255, 255, 0.55) 50%,
    transparent);
  transform: skewX(-20deg);
  animation: exclusif-brille 3.2s ease-in-out infinite;
  pointer-events: none; /* le reflet ne bloque jamais le clic */
}

.plan.roi .badge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -75%;
  width: 45%;
  background: linear-gradient(105deg,
    transparent,
    rgba(255, 255, 255, 0.8) 50%,
    transparent);
  transform: skewX(-20deg);
  animation: exclusif-brille 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .plan .exclusif::after,
  .plan.roi .badge::after,
  .plan.roi .achats a.plein::after { animation: none; display: none; }
}

.plan .achats {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.plan .achats a {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 0.6rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--texte);
  border: 1px solid color-mix(in srgb, var(--teinte) 45%, transparent);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.plan .achats a:hover { transform: translateY(-2px); filter: brightness(1.1); }

.plan .achats a.plein {
  background: var(--teinte);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 26px -8px var(--teinte);
}

.notes-boutique {
  text-align: center;
  color: var(--texte-faible);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 2.1;
  padding: 2.2rem 1rem 0;
}

/* ==========================================================================
   WIKI & RÈGLEMENT — pages de lecture
   ========================================================================== */

.page-titre { text-align: center; padding: 3rem 1rem 0.6rem; }

.page-titre h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); font-weight: 600; }

.page-titre p {
  color: var(--texte-doux);
  font-weight: 300;
  margin: 0.7rem auto 0;
  max-width: 660px;
  line-height: 1.7;
}

.wiki-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.8rem 0 0.6rem;
}

.wiki-nav a {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: 0.83rem;
  color: var(--texte-doux);
  text-decoration: none;
  border: 1px solid var(--bord);
  background: var(--verre);
  transition: background 0.2s ease, color 0.2s ease;
}

.wiki-nav a:hover { background: var(--verre-fort); color: var(--texte); }

.article {
  margin-top: 2rem;
  scroll-margin-top: 96px;
}

.article .carte { padding: 2rem 2.1rem; }

.article h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: left;
}

.article p { color: var(--texte-doux); line-height: 1.85; font-weight: 300; font-size: 0.93rem; margin-bottom: 0.8rem; }

.article ul { list-style: none; margin: 0.4rem 0 0.8rem; }

.article li {
  color: var(--texte-doux);
  font-weight: 300;
  font-size: 0.93rem;
  line-height: 1.8;
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.article li::before {
  content: "›";
  position: absolute;
  left: 0.3rem;
  color: var(--accent);
  font-weight: 700;
}

.article strong { color: var(--texte); font-weight: 600; }

.article code {
  font-family: "Consolas", monospace;
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  padding: 0.1rem 0.45rem;
  color: #9be8df;
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8rem 0 1rem;
  font-size: 0.88rem;
}

.article th {
  text-align: left;
  color: var(--texte);
  font-weight: 600;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.article td {
  color: var(--texte-doux);
  font-weight: 300;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Règlement */

.regle {
  display: flex;
  gap: 1.1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.regle:last-child { border-bottom: none; }

.regle .num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--verre-fort);
  border: 1px solid var(--bord);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
}

.regle .texte { color: var(--texte-doux); font-weight: 300; font-size: 0.93rem; line-height: 1.75; }

.regle .texte strong { color: var(--texte); font-weight: 600; display: block; margin-bottom: 0.15rem; }

/* ==========================================================================
   ACCUEIL v2 — hero plein écran, stats animées, destins, étapes
   ========================================================================== */

.heros-v2 {
  position: relative;
  min-height: 100vh;
  padding-bottom: 8rem;
  overflow: hidden;
}

.heros-centre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  position: relative;
  z-index: 2;
}

/* Étoiles scintillantes (positions/durées via nth-child, aucune image) */
.etoiles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.etoiles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.25;
  animation: scintille 3.6s ease-in-out infinite;
}

.etoiles span:nth-child(1)  { top: 12%; left: 8%;  animation-delay: 0s; }
.etoiles span:nth-child(2)  { top: 22%; left: 18%; animation-delay: 0.7s; width: 2px; height: 2px; }
.etoiles span:nth-child(3)  { top: 9%;  left: 32%; animation-delay: 1.4s; }
.etoiles span:nth-child(4)  { top: 28%; left: 43%; animation-delay: 2.1s; width: 2px; height: 2px; }
.etoiles span:nth-child(5)  { top: 14%; left: 57%; animation-delay: 0.4s; }
.etoiles span:nth-child(6)  { top: 24%; left: 68%; animation-delay: 1.1s; }
.etoiles span:nth-child(7)  { top: 10%; left: 79%; animation-delay: 1.8s; width: 2px; height: 2px; }
.etoiles span:nth-child(8)  { top: 30%; left: 90%; animation-delay: 2.5s; }
.etoiles span:nth-child(9)  { top: 44%; left: 12%; animation-delay: 1.6s; width: 2px; height: 2px; }
.etoiles span:nth-child(10) { top: 40%; left: 30%; animation-delay: 0.9s; }
.etoiles span:nth-child(11) { top: 46%; left: 72%; animation-delay: 2.2s; }
.etoiles span:nth-child(12) { top: 38%; left: 88%; animation-delay: 0.2s; width: 2px; height: 2px; }

@keyframes scintille {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.4); }
}

.hero-badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  animation: badge-pulse 2.6s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 209, 197, 0.35); }
  50%      { box-shadow: 0 0 22px 2px rgba(79, 209, 197, 0.25); }
}

.hero-titre {
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: 0.07em;
  background: linear-gradient(180deg, #ffffff 30%, #9be8df 75%, #4fd1c5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(79, 209, 197, 0.35);
}

.hero-titre .k { color: transparent; }

/* Gros bouton « Jouer » : deux lignes, dégradé, halo pulsant */
.btn-jouer {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1.05rem 2.6rem;
  border-radius: 18px;
  border: none;
  cursor: pointer;
  font-family: var(--police);
  color: #fff;
  background: linear-gradient(135deg, #4fd1c5, #38b2f6 60%, #8b5cf6);
  background-size: 180% 180%;
  box-shadow: 0 14px 44px -10px rgba(79, 209, 197, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  animation: jouer-vague 6s ease-in-out infinite;
}

@keyframes jouer-vague {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.btn-jouer:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 54px -10px rgba(79, 209, 197, 0.75);
}

.btn-jouer .jouer-libelle {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.btn-jouer .jouer-ip {
  font-family: "Consolas", monospace;
  font-size: 0.8rem;
  opacity: 0.85;
}

.btn-jouer .copie { font-family: var(--police); font-size: 0.78rem; }

.btn-hero-second {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 1.9rem;
  border-radius: 18px;
  border: 1px solid var(--bord);
  background: var(--verre-fort);
  color: var(--texte);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.18s ease;
}

.btn-hero-second:hover { background: rgba(255, 255, 255, 0.17); transform: translateY(-3px); }

.btn-hero-second .pastille {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #43e97b;
  box-shadow: 0 0 10px #43e97b;
  animation: badge-pulse 2s ease-in-out infinite;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  margin-top: 0.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.6rem;
  color: var(--texte-doux);
  font-size: 0.86rem;
  font-weight: 300;
  margin-top: 0.4rem;
}

/* Montagnes en silhouette au bas du hero */
.montagnes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(120px, 18vw, 260px);
  z-index: 1;
  pointer-events: none;
}

.heros-v2 .fleche-bas { z-index: 3; }

/* ---------- Bande de statistiques animées ---------- */

.bande-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 2.4rem 0 0.6rem;
  text-align: center;
}

.bande-stats .stat {
  padding: 1.4rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--bord);
  background: var(--verre);
}

.bande-stats .stat-num {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(79, 209, 197, 0.4);
}

.bande-stats .stat-libelle { color: var(--texte-doux); font-weight: 300; font-size: 0.9rem; margin-top: 0.2rem; }

/* ---------- Destins (3 grandes cartes de style de jeu) ---------- */

.destins {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.destin {
  --teinte: var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 2.2rem 1.9rem;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--teinte) 40%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--teinte) 12%, transparent), rgba(255, 255, 255, 0.02) 55%),
    rgba(10, 15, 26, 0.75);
  text-decoration: none;
  color: var(--texte);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.destin:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--teinte) 80%, transparent);
  box-shadow: 0 24px 60px -18px color-mix(in srgb, var(--teinte) 55%, transparent);
}

.destin.conquerant { --teinte: #e05d5d; }
.destin.marchand   { --teinte: #ffaa00; }
.destin.aventurier { --teinte: #8b5cf6; }

.destin .destin-icone { font-size: 2.2rem; }

.destin h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teinte);
}

.destin > p { color: var(--texte-doux); font-weight: 300; font-style: italic; font-size: 0.92rem; }

.destin ul { list-style: none; margin-top: 0.4rem; }

.destin li {
  color: var(--texte-doux);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.9;
  padding-left: 1.3rem;
  position: relative;
}

.destin li::before {
  content: "›";
  position: absolute;
  left: 0.25rem;
  color: var(--teinte);
  font-weight: 700;
}

.destin .destin-lien {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teinte);
}

/* ---------- Bandeau Discord ---------- */

.bandeau-discord {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 2.6rem 2.4rem;
  border-radius: 24px;
  border: 1px solid var(--bord);
  background:
    radial-gradient(80% 140% at 12% 20%, rgba(88, 101, 242, 0.28), transparent 65%),
    var(--verre);
}

.bandeau-discord h2 { text-align: left; margin-bottom: 0.5rem; font-size: 1.4rem; }

.bandeau-discord p { color: var(--texte-doux); font-weight: 300; font-size: 0.94rem; line-height: 1.7; max-width: 560px; }

/* ---------- Étapes pour rejoindre ---------- */

.etapes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.etape {
  text-align: center;
  padding: 1.9rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--bord);
  background: var(--verre);
}

.etape .etape-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-weight: 800;
  color: #0a0f1a;
  background: linear-gradient(135deg, #4fd1c5, #38b2f6);
  box-shadow: 0 8px 24px -6px rgba(79, 209, 197, 0.6);
  margin-bottom: 0.9rem;
}

.etape h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.45rem; }

.etape p { color: var(--texte-doux); font-weight: 300; font-size: 0.88rem; line-height: 1.7; }

/* ---------- Apparition au scroll ----------
   L'état masqué (.reveal-prep) est posé par JS : sans JS, tout reste visible. */

.reveal.reveal-prep { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }

.reveal.reveal-prep.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .etoiles span, .hero-badge, .btn-jouer, .btn-hero-second .pastille { animation: none; }
}

/* ==========================================================================
   COMPTE & ACTUS — formulaires, code de liaison, articles
   ========================================================================== */

.contenu-etroit { max-width: 860px; }

.formes-compte {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}

.forme h2 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.6rem; }

.forme-note { color: var(--texte-doux); font-weight: 300; font-size: 0.88rem; line-height: 1.7; margin-bottom: 1rem; }

.forme label, #forme-article label {
  display: block;
  color: var(--texte-doux);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.forme input, #forme-article input[type="text"], #forme-article textarea {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--bord);
  background: rgba(0, 0, 0, 0.3);
  color: var(--texte);
  font-family: var(--police);
  font-size: 0.95rem;
  font-weight: 300;
}

#forme-article textarea { resize: vertical; line-height: 1.7; }

.forme input:focus, #forme-article input:focus, #forme-article textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.forme-erreur {
  color: #ff8f8f;
  font-size: 0.86rem;
  font-weight: 400;
  margin-bottom: 0.8rem;
}

.code-liaison {
  font-family: "Consolas", monospace;
  font-size: clamp(1.2rem, 3.5vw, 1.7rem);
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  letter-spacing: 0.12em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin: 1.1rem 0;
  user-select: all;
}

.lien-bouton {
  background: none;
  border: none;
  padding: 0;
  color: #9be8df;
  font-family: var(--police);
  font-size: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.barre-admin {
  text-align: center;
  color: var(--texte-doux);
  font-size: 0.9rem;
  padding-top: 1.6rem;
}

.actu-carte {
  display: block;
  text-decoration: none;
  color: var(--texte);
  margin-bottom: 1.1rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.actu-carte:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

.actu-carte h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 0.3rem; }

.actu-carte > p:last-child { color: var(--texte-doux); font-weight: 300; font-size: 0.9rem; line-height: 1.7; }

.actu-meta { color: var(--texte-faible); font-size: 0.8rem; font-weight: 300; margin-bottom: 0.7rem; }

.actu-brouillon {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffca70;
  border: 1px solid rgba(255, 202, 112, 0.5);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  vertical-align: middle;
}

.actu-contenu p { color: var(--texte-doux); line-height: 1.85; font-weight: 300; font-size: 0.95rem; margin-bottom: 0.9rem; }

.actu-contenu ul { list-style: none; margin: 0.4rem 0 0.9rem; }

.actu-contenu li {
  color: var(--texte-doux);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  padding-left: 1.4rem;
  position: relative;
}

.actu-contenu li::before {
  content: "›";
  position: absolute;
  left: 0.3rem;
  color: var(--accent);
  font-weight: 700;
}

.actu-contenu strong { color: var(--texte); font-weight: 600; }

.case { display: flex; align-items: center; gap: 0.5rem; font-weight: 300 !important; }

.case input { width: auto !important; margin: 0 !important; }

.editeur-boutons { display: flex; gap: 0.8rem; margin-top: 1.2rem; flex-wrap: wrap; }

/* Lien Compte mis en avant dans la nav */
.nav .lien-compte {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}

.nav .lien-compte:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav { gap: 1.1rem; font-size: 0.9rem; flex-wrap: wrap; }
  .plans { grid-template-columns: 1fr; }
  .article .carte { padding: 1.5rem 1.2rem; }
  .bandeau-discord { justify-content: center; text-align: center; }
  .bandeau-discord h2 { text-align: center; }
}
