/* Frontline Zero — le site vitrine. Mêmes couleurs que le jeu (html/css/theme.css du mod). */

:root {
  --fond: #07090a;
  --fond-2: #0c110d;
  --acier-900: #0b0f0c;
  --acier-800: #121813;
  --acier-700: #1a221c;
  --acier-600: #253027;
  --acier-500: #344236;
  --acier-300: #7f8e82;
  --acier-100: #d7e0d8;
  --blanc: #f2f6f1;
  --vert: #8be33b;
  --vert-vif: #b6ff5c;
  --vert-sombre: #3f7a16;
  --vert-lueur: rgba(139, 227, 59, 0.35);
  --rouge: #ff4b3e;
  --orange: #ffad33;
  --r-common: #c8ccd0;
  --r-uncommon: #5bd45b;
  --r-rare: #4f8dff;
  --r-epic: #c060ff;
  --r-legendary: #ffb52e;
  --trait: rgba(139, 227, 59, 0.18);
  --trait-fort: rgba(139, 227, 59, 0.5);
  --verre: rgba(14, 19, 15, 0.72);
  --police: "Bahnschrift", "DIN Alternate", "DIN Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --mono: "Bahnschrift", "Consolas", ui-monospace, monospace;
  --biseau: 14px;
  --marge: clamp(16px, 4vw, 48px);
  --largeur: 1240px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.55;
  color: var(--acier-100);
  background: var(--fond);
  overflow-x: hidden;
}

/* Grain et lignes de balayage sur tout le site : une image vue à travers une optique. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

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

a {
  color: var(--vert-vif);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  color: var(--blanc);
}

code {
  font-family: var(--mono);
  color: var(--vert-vif);
}

::selection {
  color: var(--acier-900);
  background: var(--vert);
}

:focus-visible {
  outline: 2px solid var(--vert-vif);
  outline-offset: 3px;
}

/* Barre de défilement aux couleurs du jeu */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--fond);
}

::-webkit-scrollbar-thumb {
  background: var(--acier-600);
  border: 2px solid var(--fond);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--vert-sombre);
}

/* ---------------------------------------------------------------- écran d'arrivée */

.chargement {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--fond);
  transition: opacity 0.7s ease, visibility 0.7s;
}

.chargement.fini {
  opacity: 0;
  visibility: hidden;
}

.chargement-logo {
  width: min(220px, 50vw);
  filter: drop-shadow(0 0 30px var(--vert-lueur));
  animation: pulsation 1.6s ease-in-out infinite;
}

.chargement-barre {
  width: min(260px, 60vw);
  height: 3px;
  background: var(--acier-700);
  overflow: hidden;
}

.chargement-barre i {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, transparent, var(--vert-vif), transparent);
  animation: balayage 1.1s ease-in-out infinite;
}

.chargement-texte {
  font-size: 13px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--acier-300);
}

@keyframes pulsation {
  50% { transform: scale(1.04); filter: drop-shadow(0 0 50px var(--vert-lueur)); }
}

@keyframes balayage {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}

/* Barre de progression de lecture */
.defilement {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 120;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--vert-sombre), var(--vert-vif));
  box-shadow: 0 0 10px var(--vert);
}

/* Viseur (souris, écrans larges seulement) : un curseur du système depuis le 12/10/2026 — dessiné
   par JavaScript, il traînait derrière la souris sur un portable modeste. Plus d'élément .viseur. */
.viseur {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, width 0.2s, height 0.2s, margin 0.2s;
}

.viseur i {
  position: absolute;
  background: var(--vert-vif);
  box-shadow: 0 0 6px var(--vert);
}

.viseur i:nth-child(1), .viseur i:nth-child(2) { left: 50%; width: 2px; height: 9px; margin-left: -1px; }
.viseur i:nth-child(1) { top: 0; }
.viseur i:nth-child(2) { bottom: 0; }
.viseur i:nth-child(3), .viseur i:nth-child(4) { top: 50%; height: 2px; width: 9px; margin-top: -1px; }
.viseur i:nth-child(3) { left: 0; }
.viseur i:nth-child(4) { right: 0; }

.viseur.actif { opacity: 1; }

.viseur.cible {
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
}

.viseur.cible i { background: var(--rouge); box-shadow: 0 0 8px var(--rouge); }

/* Les deux viseurs, en variables : toutes les règles « cursor » du site s'en servent (une règle
   plus précise, comme .bouton, gardait sinon la main du système). Sans souris : rien de changé. */
@media (hover: hover) and (pointer: fine) {
  :root {
    --viseur: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20x%3D%2214.5%22%20y%3D%22-0.5%22%20width%3D%223%22%20height%3D%2212%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221%22%2F%3E%3Crect%20x%3D%2214.5%22%20y%3D%2220.5%22%20width%3D%223%22%20height%3D%2212%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221%22%2F%3E%3Crect%20x%3D%22-0.5%22%20y%3D%2214.5%22%20width%3D%2212%22%20height%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221%22%2F%3E%3Crect%20x%3D%2220.5%22%20y%3D%2214.5%22%20width%3D%2212%22%20height%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%220%22%20width%3D%222%22%20height%3D%2211%22%20fill%3D%22%23b6ff5c%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%2221%22%20width%3D%222%22%20height%3D%2211%22%20fill%3D%22%23b6ff5c%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2215%22%20width%3D%2211%22%20height%3D%222%22%20fill%3D%22%23b6ff5c%22%2F%3E%3Crect%20x%3D%2221%22%20y%3D%2215%22%20width%3D%2211%22%20height%3D%222%22%20fill%3D%22%23b6ff5c%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%2215%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23b6ff5c%22%2F%3E%3C%2Fsvg%3E") 16 16, crosshair;
    --viseur-cible: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2232%22%20height%3D%2232%22%20viewBox%3D%220%200%2032%2032%22%3E%3Crect%20x%3D%2214.5%22%20y%3D%22-0.5%22%20width%3D%223%22%20height%3D%2212%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221%22%2F%3E%3Crect%20x%3D%2214.5%22%20y%3D%2220.5%22%20width%3D%223%22%20height%3D%2212%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221%22%2F%3E%3Crect%20x%3D%22-0.5%22%20y%3D%2214.5%22%20width%3D%2212%22%20height%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221%22%2F%3E%3Crect%20x%3D%2220.5%22%20y%3D%2214.5%22%20width%3D%2212%22%20height%3D%223%22%20fill%3D%22none%22%20stroke%3D%22%23000%22%20stroke-opacity%3D%22.55%22%20stroke-width%3D%221%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%220%22%20width%3D%222%22%20height%3D%2211%22%20fill%3D%22%23ff4d4d%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%2221%22%20width%3D%222%22%20height%3D%2211%22%20fill%3D%22%23ff4d4d%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2215%22%20width%3D%2211%22%20height%3D%222%22%20fill%3D%22%23ff4d4d%22%2F%3E%3Crect%20x%3D%2221%22%20y%3D%2215%22%20width%3D%2211%22%20height%3D%222%22%20fill%3D%22%23ff4d4d%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%2215%22%20width%3D%222%22%20height%3D%222%22%20fill%3D%22%23ff4d4d%22%2F%3E%3C%2Fsvg%3E") 16 16, pointer;
  }
  body {
    cursor: var(--viseur);
  }
  a, button, .inclinable, .produit, .vitrine-scene, label, select, summary {
    cursor: var(--viseur-cible);
  }
  input[type="text"], input[type="search"], textarea {
    cursor: text;
  }
}

/* ---------------------------------------------------------------- boutons */

.bouton {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 0;
  cursor: var(--viseur-cible, pointer);
  clip-path: polygon(var(--biseau) 0, 100% 0, calc(100% - var(--biseau)) 100%, 0 100%);
  transition: transform 0.2s ease, box-shadow 0.2s, background 0.2s, color 0.2s;
  overflow: hidden;
}

.bouton svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bouton-plein {
  color: var(--acier-900);
  background: var(--vert);
}

.bouton-plein:hover {
  background: var(--vert-vif);
  box-shadow: 0 0 30px var(--vert-lueur);
}

/* Un éclat qui traverse le bouton au survol */
.bouton-plein::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.bouton-plein:hover::after {
  transform: translateX(120%);
}

.bouton-contour {
  color: var(--vert-vif);
  background: rgba(139, 227, 59, 0.08);
  box-shadow: inset 0 0 0 1px var(--trait-fort);
}

.bouton-contour:hover {
  background: rgba(139, 227, 59, 0.16);
}

.bouton-petit {
  padding: 9px 18px;
  font-size: 13px;
}

.bouton-grand {
  padding: 18px 34px;
  font-size: 17px;
}

/* ---------------------------------------------------------------- navigation */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--marge);
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}

.nav.colle {
  padding-top: 9px;
  padding-bottom: 9px;
  background: rgba(7, 9, 10, 0.94);
  box-shadow: 0 1px 0 var(--trait);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanc);
}

.nav-logo img {
  width: 42px;
  height: 42px;
}

.nav-logo b {
  color: var(--vert);
}

.nav-liens {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}

.nav-liens a {
  position: relative;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  white-space: nowrap; /* « Match à mort » se coupait sur trois lignes */
  text-transform: uppercase;
  color: var(--acier-100);
}

.nav-liens a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  background: var(--vert);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-liens a:hover::after,
.nav-liens a.actif::after {
  transform: scaleX(1);
}

.nav-liens a.actif {
  color: var(--vert-vif);
}

.nav-droite {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Le lien Discord de la barre : l'icône, et le mot sur grand écran. */
.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--acier-100);
  text-decoration: none;
}

.nav-discord svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.nav-discord:hover {
  color: #8c9eff;
}

@media (max-width: 900px) {
  .nav-discord span {
    display: none;
  }
}

/* Le choix de la langue : deux segments, celui de la page allumé. */
.langues {
  display: flex;
  border: 1px solid var(--trait-fort);
}

.langues a {
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--acier-300);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

.langues a:hover {
  color: var(--blanc);
}

.langues a[aria-current] {
  color: var(--fond);
  background: var(--vert);
}

/* Bonus d'XP sous l'état du serveur : orange plein en cours, contour s'il est à venir. */
.heros-bonus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--acier-100);
}

.heros-bonus b {
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1206;
  background: var(--orange, #ffad33);
}

.heros-bonus.a-venir b {
  color: var(--orange, #ffad33);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--orange, #ffad33);
}

.etat-mini {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--acier-300);
  white-space: nowrap;
}

.etat-mini i,
.pastille {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acier-500);
}

.en-ligne .etat-mini i,
.etat-mini.en-ligne i,
.pastille.en-ligne {
  background: var(--vert);
  box-shadow: 0 0 0 0 var(--vert-lueur);
  animation: signal 1.8s ease-out infinite;
}

.etat-mini.hors-ligne i,
.pastille.hors-ligne {
  background: var(--rouge);
}

.etat-mini.maintenance i,
.pastille.maintenance {
  background: var(--orange);
}

@keyframes signal {
  0% { box-shadow: 0 0 0 0 rgba(139, 227, 59, 0.6); }
  100% { box-shadow: 0 0 0 10px rgba(139, 227, 59, 0); }
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: none;
  border: 1px solid var(--trait-fort);
  cursor: var(--viseur-cible, pointer);
}

.nav-burger i {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--vert-vif);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- accueil */

.heros {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 110px var(--marge) 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(139, 227, 59, 0.16), transparent 60%),
    linear-gradient(180deg, #0a1410 0%, #07100b 55%, var(--fond) 100%);
  isolation: isolate;
}

.heros-ciel {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.heros-brume {
  position: absolute;
  left: -20%;
  right: -20%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(160, 200, 150, 0.12), transparent 65%);
  will-change: transform; /* plus de flou : le dégradé est déjà doux, et le flou animé coûtait cher */
}

.heros-brume-1 {
  bottom: 18%;
  height: 40%;
  animation: brume 26s ease-in-out infinite alternate;
}

.heros-brume-2 {
  bottom: 0;
  height: 35%;
  opacity: 0.8;
  animation: brume 34s ease-in-out infinite alternate-reverse;
}

@keyframes brume {
  from { transform: translateX(-6%); }
  to { transform: translateX(6%); }
}

.heros-montagnes,
.heros-foret {
  position: absolute;
  left: -5%;
  width: 110%;
  pointer-events: none;
}

.heros-montagnes {
  bottom: 12%;
  z-index: 2;
  height: 38%;
  fill: #0d1a12;
  opacity: 0.9;
}

.heros-foret {
  bottom: -1px;
  z-index: 3;
  height: 26%;
  fill: #050806;
}

.heros-largage {
  position: absolute;
  top: 13%;
  left: 0;
  right: 0;
  z-index: 2;
  height: 40%;
  pointer-events: none;
}

.avion {
  position: absolute;
  top: 0;
  left: -220px;
  width: 150px;
  fill: #0b130d;
  opacity: 0.85;
  animation: vol 22s linear infinite;
}

@keyframes vol {
  0% { transform: translate(0, 40px); }
  100% { transform: translate(calc(100vw + 440px), -20px); }
}

.voile {
  position: absolute;
  top: 20px;
  width: 26px;
  height: 22px;
  opacity: 0;
  animation: descente 22s linear infinite;
}

/* La voile : un arc et ses suspentes, dessinés en CSS */
.voile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 9px;
  border-radius: 13px 13px 3px 3px;
  background: linear-gradient(90deg, #3a4a2a, var(--vert) 50%, #3a4a2a);
}

.voile::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 3px;
  right: 3px;
  height: 13px;
  background:
    linear-gradient(to bottom right, transparent 48%, rgba(200, 210, 200, 0.5) 50%, transparent 52%) left / 50% 100% no-repeat,
    linear-gradient(to bottom left, transparent 48%, rgba(200, 210, 200, 0.5) 50%, transparent 52%) right / 50% 100% no-repeat;
}

.v1 { left: 22%; animation-delay: 3.6s; }
.v2 { left: 34%; animation-delay: 5.1s; }
.v3 { left: 52%; animation-delay: 7.6s; }
.v4 { left: 66%; animation-delay: 9.4s; }

@keyframes descente {
  0% { opacity: 0; transform: translate(0, 30px) rotate(0deg); }
  3% { opacity: 0.9; }
  20% { transform: translate(40px, 210px) rotate(8deg); }
  32% { opacity: 0.8; transform: translate(60px, 330px) rotate(-6deg); }
  36% { opacity: 0; transform: translate(66px, 360px); }
  100% { opacity: 0; }
}

.heros-contenu {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
}

.heros-logo {
  width: min(460px, 78vw);
  height: auto;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 40px rgba(139, 227, 59, 0.25));
  animation: arrivee 1.4s cubic-bezier(0.2, 1.2, 0.3, 1) both;
  animation-delay: 0.4s;
}

@keyframes arrivee {
  from { opacity: 0; transform: translateY(40px) scale(0.85); }
  to { opacity: 1; transform: none; }
}

.heros-accroche {
  margin: 10px 0 6px;
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blanc);
  text-shadow: 0 0 24px rgba(139, 227, 59, 0.35);
}

.heros-sous {
  max-width: 620px;
  margin: 0 0 30px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--acier-100);
  animation: arrivee 1s ease both 1.1s;
}

.heros-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  animation: arrivee 1s ease both 1.3s;
}

/* Trouver un soldat, dès l'accueil : champ, loupe, bouton, suggestions sous le champ. */
.heros-recherche {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(520px, 100%);
  margin-top: 26px;
  padding: 6px 6px 6px 14px;
  background: var(--verre);
  border: 1px solid var(--trait-fort);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: arrivee 1s ease both 1.5s;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.heros-recherche:focus-within {
  border-color: var(--vert-vif);
  box-shadow: 0 0 18px var(--vert-lueur);
}

.heros-recherche > svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--vert);
  stroke-width: 2;
  stroke-linecap: round;
}

.heros-recherche input {
  flex: 1;
  min-width: 0;
  height: 38px;
  font: inherit;
  font-size: 16px;
  color: var(--blanc);
  background: none;
  border: 0;
  outline: none;
}

.recherche-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px;
  list-style: none;
  text-align: left;
  background: rgba(10, 14, 11, 0.96);
  border: 1px solid var(--trait-fort);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

.recherche-suggestions li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  cursor: var(--viseur-cible, pointer);
}

.recherche-suggestions li.actif,
.recherche-suggestions li:hover {
  background: rgba(139, 227, 59, 0.12);
}

.recherche-suggestions li.vide {
  cursor: default;
  color: var(--acier-300);
}

.recherche-suggestions .recherche-nom {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--blanc);
}

.recherche-suggestions small {
  font-weight: 400;
  font-size: 12px;
  color: var(--acier-300);
}

.heros-etat {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 9px 18px;
  font-size: 14px;
  color: var(--acier-100);
  background: var(--verre);
  border: 1px solid var(--trait);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: arrivee 1s ease both 1.5s;
}

.heros-etat b {
  color: var(--vert-vif);
}

.heros-suite {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 5;
  width: 28px;
  height: 46px;
  margin-left: -14px;
  border: 2px solid var(--trait-fort);
  border-radius: 14px;
}

.heros-suite span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--vert-vif);
  animation: molette 1.8s ease-in-out infinite;
}

@keyframes molette {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 0; }
}

/* ---------------------------------------------------------------- chiffres */

.chiffres {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--largeur);
  margin: -50px auto 0;
  padding: 0 var(--marge);
  gap: 1px;
}

.chiffre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 12px;
  text-align: center;
  background: var(--verre);
  border-top: 2px solid var(--vert);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.chiffre b {
  font-family: var(--mono);
  font-size: clamp(30px, 4.5vw, 50px);
  font-weight: 700;
  line-height: 1;
  color: var(--blanc);
  text-shadow: 0 0 22px var(--vert-lueur);
  font-variant-numeric: tabular-nums;
}

.chiffre span {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--acier-300);
}

/* ---------------------------------------------------------------- sections */

.section {
  position: relative;
  max-width: var(--largeur);
  margin: 0 auto;
  padding: clamp(80px, 11vw, 140px) var(--marge) 0;
}

.titre-bloc {
  max-width: 760px;
  margin-bottom: 48px;
}

.sur-titre {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--vert);
}

.sur-titre::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--vert);
}

.titre-bloc h2,
.telecharger h2 {
  font-size: clamp(32px, 5.5vw, 62px);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.titre-bloc p {
  margin: 16px 0 0;
  font-size: 18px;
}

/* Titres : les lettres arrivent une à une (découpées par site.js) */
.titre-anime .lettre {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(6deg);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.titre-anime.vu .lettre {
  opacity: 1;
  transform: none;
}

/* Apparition au défilement */
[data-revele] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--delai, 0s);
}

[data-revele].vu {
  opacity: 1;
  transform: none;
}

.vide {
  color: var(--acier-300);
}

/* ---------------------------------------------------------------- le jeu */

.cartes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  perspective: 1000px;
}

.carte {
  position: relative;
  padding: 28px 24px 26px;
  background: linear-gradient(160deg, rgba(26, 34, 28, 0.9), rgba(12, 17, 13, 0.92));
  border: 1px solid var(--trait);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.3s, opacity 0.8s ease;
}

/* Le reflet suit la souris (variables posées par site.js) */
.carte::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 227, 59, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.carte:hover {
  border-color: var(--trait-fort);
}

.carte:hover::before {
  opacity: 1;
}

.carte svg {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  fill: none;
  stroke: var(--vert);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px var(--vert-lueur));
  transform: translateZ(30px);
}

.carte h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-style: italic;
  text-transform: uppercase;
  transform: translateZ(20px);
}

.carte p {
  margin: 0;
  font-size: 15px;
  color: var(--acier-100);
}

/* ---------------------------------------------------------------- déploiement */

.deploiement-grille {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.zone-carte {
  position: sticky;
  top: 110px;
}

.zone-carte svg {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--trait);
}

.zone-fond {
  fill: #0e1a11;
}

.zone-quadrillage path {
  stroke: rgba(139, 227, 59, 0.08);
  stroke-width: 1;
}

.zone-tempete {
  transform-origin: 200px 200px;
}

.zone-cercle {
  fill: none;
  stroke: var(--blanc);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.5));
}

.zone-cible {
  fill: none;
  stroke: var(--vert-vif);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  animation: tourne 14s linear infinite;
  transform-origin: 232px 176px;
}

@keyframes tourne {
  to { transform: rotate(360deg); }
}

.zone-vol {
  stroke: var(--orange);
  stroke-width: 2;
  stroke-dasharray: 4 8;
  animation: trace 1.4s linear infinite;
}

@keyframes trace {
  to { stroke-dashoffset: -24; }
}

.zone-joueur {
  fill: var(--vert-vif);
  animation: pulsation-point 1.4s ease-in-out infinite;
}

@keyframes pulsation-point {
  50% { r: 8; }
}

.zone-legende {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--acier-300);
}

.zone-legende span:first-child {
  color: var(--rouge);
}

.etapes {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: etape;
}

.etapes li {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--trait);
}

.etapes li::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 70px;
  bottom: -26px;
  width: 2px;
  background: var(--trait);
}

.etapes li:last-child::before {
  display: none;
}

.etapes b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-family: var(--mono);
  font-size: 22px;
  color: var(--acier-300);
  border: 1px solid var(--trait-fort);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: color 0.4s, background 0.4s;
}

.etapes li.allume b {
  color: var(--acier-900);
  background: var(--vert);
}

.etapes h3 {
  margin-bottom: 6px;
  font-size: 22px;
  font-style: italic;
  text-transform: uppercase;
}

.etapes p {
  margin: 0;
  font-size: 16px;
}

/* ---------------------------------------------------------------- caisses */

.vitrine {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vitrine-scene {
  --couleur: var(--r-legendary);
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(620px, 100%);
  height: 380px;
}

.vitrine-halo {
  position: absolute;
  bottom: 30px;
  left: 50%;
  width: 70%;
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 70%, var(--couleur), transparent 65%);
  opacity: 0.35;
  transition: background 0.5s;
  animation: respiration 3.4s ease-in-out infinite;
  will-change: transform, opacity; /* le flou de 30 px, animé, est retiré : le dégradé suffit */
}

/* Un rai de lumière qui monte de la caisse */
.vitrine-halo::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  bottom: 10%;
  height: 160%;
  background: linear-gradient(0deg, var(--couleur), transparent);
  opacity: 0.4;
}

@keyframes respiration {
  50% { opacity: 0.55; transform: translateX(-50%) scale(1.06); }
}

.vitrine-scene img {
  position: relative;
  z-index: 2;
  width: min(480px, 88%);
  height: auto;
  margin-bottom: 44px;
  filter: drop-shadow(0 22px 22px rgba(0, 0, 0, 0.6));
  animation: flotte 4.2s ease-in-out infinite;
  transition: opacity 0.25s, transform 0.25s;
}

.vitrine-scene img.change {
  opacity: 0;
  transform: scale(0.9) translateY(20px);
}

@keyframes flotte {
  50% { translate: 0 -12px; }
}

.vitrine-choix {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.vitrine-choix button {
  --couleur: var(--r-common);
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--couleur);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid color-mix(in srgb, var(--couleur) 40%, transparent);
  cursor: var(--viseur-cible, pointer);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.vitrine-choix [data-rarete="uncommon"] { --couleur: var(--r-uncommon); }
.vitrine-choix [data-rarete="rare"] { --couleur: var(--r-rare); }
.vitrine-choix [data-rarete="epic"] { --couleur: var(--r-epic); }
.vitrine-choix [data-rarete="legendary"] { --couleur: var(--r-legendary); }

.vitrine-choix button.actif,
.vitrine-choix button:hover {
  color: var(--acier-900);
  background: var(--couleur);
  box-shadow: 0 0 22px color-mix(in srgb, var(--couleur) 50%, transparent);
}

.vitrine-aide {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--acier-300);
}

.autres-conteneurs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 70px;
}

.autres-conteneurs figure {
  margin: 0;
  padding: 26px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(26, 34, 28, 0.6), transparent);
  border: 1px solid var(--trait);
}

.autres-conteneurs img {
  height: 160px;
  width: auto;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.autres-conteneurs figure:hover img {
  transform: translateY(-8px) scale(1.05) rotate(-2deg);
}

.autres-conteneurs figcaption b {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  font-style: italic;
  text-transform: uppercase;
  color: var(--blanc);
}

/* ---------------------------------------------------------------- progression */

.grades {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  margin-bottom: 50px;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.grades-piste {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: defile 60s linear infinite;
}

.grades:hover .grades-piste {
  animation-play-state: paused;
}

@keyframes defile {
  to { transform: translateX(-50%); }
}

.grade {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 110px;
  text-align: center;
}

.grade img {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 0 10px rgba(139, 227, 59, 0.25));
  transition: transform 0.3s;
}

.grade:hover img {
  transform: scale(1.15) rotate(-4deg);
}

.grade span {
  font-size: 12px;
  line-height: 1.2;
  color: var(--acier-100);
}

.grade small {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--vert);
}

.classement-liste {
  margin: 0;
  padding: 0;
  list-style: none;
}

.classement-liste li {
  display: grid;
  grid-template-columns: 48px 44px 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, rgba(26, 34, 28, 0.85), rgba(12, 17, 13, 0.6));
  border-left: 3px solid var(--acier-500);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
  transition-delay: var(--delai, 0s);
}

.classement-liste.vu li {
  opacity: 1;
  transform: none;
}

.classement-liste li.vide {
  display: block;
  opacity: 1;
  transform: none;
}

.classement-liste .place {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--acier-300);
}

.classement-liste li:nth-child(1) { border-left-color: var(--r-legendary); }
.classement-liste li:nth-child(1) .place { color: var(--r-legendary); }
.classement-liste li:nth-child(2) { border-left-color: var(--r-common); }
.classement-liste li:nth-child(2) .place { color: var(--r-common); }
.classement-liste li:nth-child(3) { border-left-color: #c78a4a; }
.classement-liste li:nth-child(3) .place { color: #c78a4a; }

.classement-liste img {
  width: 40px;
  height: 40px;
}

.classement-liste .nom {
  font-size: 18px;
  font-weight: 700;
  color: var(--blanc);
}

.classement-liste .nom small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--acier-300);
}

.classement-liste .valeur {
  font-family: var(--mono);
  text-align: right;
  color: var(--vert-vif);
}

.classement-liste .valeur small {
  display: block;
  font-size: 11px;
  color: var(--acier-300);
}

/* ---------------------------------------------------------------- nouveautés */

.journal {
  position: relative;
  max-width: 900px;
  padding-left: 34px;
}

.journal::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 0;
  left: 9px;
  width: 2px;
  background: linear-gradient(180deg, var(--vert), transparent);
}

.entree {
  position: relative;
  margin-bottom: 18px;
  background: rgba(26, 34, 28, 0.5);
  border: 1px solid var(--trait);
}

.entree::before {
  content: "";
  position: absolute;
  top: 22px;
  left: -31px;
  width: 14px;
  height: 14px;
  background: var(--fond);
  border: 2px solid var(--vert);
  transform: rotate(45deg);
}

.entree summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 16px 20px;
  cursor: var(--viseur-cible, pointer);
  list-style: none;
}

.entree summary::-webkit-details-marker {
  display: none;
}

.entree summary time {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--vert);
}

.entree summary h3 {
  flex: 1;
  font-size: 19px;
  font-style: italic;
}

.entree summary::after {
  content: "+";
  font-size: 22px;
  color: var(--vert);
  transition: transform 0.3s;
}

.entree[open] summary::after {
  transform: rotate(45deg);
}

.entree ul {
  margin: 0;
  padding: 0 20px 18px 38px;
  list-style: none;
}

.entree li {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 15px;
}

/* + ajout, - correctif, X retrait */
.entree .signe {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
  color: var(--acier-300);
  border: 1px solid currentColor;
}

.entree .signe.ajout { color: var(--vert); }
.entree .signe.correctif { color: var(--orange); }
.entree .signe.retrait { color: var(--rouge); }

.journal-plus {
  margin-top: 6px;
}

/* ---------------------------------------------------------------- boutique */

.bandeau-fictif {
  margin: -20px 0 28px;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--blanc);
  background: repeating-linear-gradient(-45deg, rgba(255, 173, 51, 0.12) 0 14px, rgba(255, 173, 51, 0.04) 14px 28px);
  border-left: 3px solid var(--orange);
}

.bandeau-fictif b {
  color: var(--orange);
}

.boutique-onglets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.boutique-onglets button {
  padding: 10px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--acier-100);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--trait);
  cursor: var(--viseur-cible, pointer);
}

.boutique-onglets button.actif {
  color: var(--acier-900);
  background: var(--vert);
  border-color: var(--vert);
}

.produits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.produit {
  --couleur: var(--vert);
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(26, 34, 28, 0.9), rgba(10, 14, 11, 0.95));
  border: 1px solid var(--trait);
  overflow: hidden;
  animation: produit 0.5s ease both;
  animation-delay: var(--delai, 0s);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

@keyframes produit {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
}

.produit:hover {
  transform: translateY(-6px);
  border-color: var(--couleur);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px color-mix(in srgb, var(--couleur) 25%, transparent);
}

.produit-visuel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  background: radial-gradient(ellipse at 50% 80%, color-mix(in srgb, var(--couleur) 30%, transparent), transparent 70%);
}

.produit-visuel img {
  max-height: 130px;
  width: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.6));
  transition: transform 0.4s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.produit:hover .produit-visuel img {
  transform: scale(1.08) rotate(-3deg);
}

.produit-etiquette {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acier-900);
  background: var(--couleur);
}

.produit-corps {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 16px 18px 18px;
}

.produit-corps h3 {
  font-size: 19px;
  font-style: italic;
}

.produit-corps p {
  flex: 1;
  margin: 0;
  font-size: 14px;
  color: var(--acier-300);
}

.produit-pied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.prix {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--blanc);
}

.prix small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--acier-300);
}

/* La musique : en bas à droite, toujours là. */
.musique-bouton {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 14px;
  color: var(--vert-vif);
  background: var(--verre);
  border: 1px solid var(--trait-fort);
  cursor: var(--viseur-cible, pointer);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.musique-bouton:hover {
  box-shadow: 0 0 18px var(--vert-lueur);
}

.musique-bouton svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.musique-bouton .coupe {
  display: none;
}

/* L'égaliseur danse tant que la musique joue. */
.egaliseur {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.egaliseur i {
  width: 3px;
  height: 30%;
  background: currentColor;
}

.musique-bouton.joue .egaliseur i {
  animation: egaliseur 0.9s ease-in-out infinite alternate;
}

.musique-bouton.joue .egaliseur i:nth-child(2) { animation-delay: -0.3s; }
.musique-bouton.joue .egaliseur i:nth-child(3) { animation-delay: -0.6s; }
.musique-bouton.joue .egaliseur i:nth-child(4) { animation-delay: -0.15s; }

@keyframes egaliseur {
  from { height: 20%; }
  to { height: 100%; }
}

.musique-bouton.muet {
  color: var(--acier-300);
  border-color: var(--trait);
}

.musique-bouton.muet .ondes {
  display: none;
}

.musique-bouton.muet .coupe {
  display: inline;
}

.musique-bouton.muet .egaliseur {
  display: none;
}

/* Le panier, au-dessus du bouton de musique */
.panier-bouton {
  position: fixed;
  right: 20px;
  bottom: 80px;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--acier-900);
  background: var(--vert);
  border: 0;
  border-radius: 50%;
  cursor: var(--viseur-cible, pointer);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--vert-lueur);
}

.panier-bouton.visible {
  display: flex;
  animation: rebond 0.5s cubic-bezier(0.2, 1.6, 0.4, 1);
}

@keyframes rebond {
  from { transform: scale(0.3); }
}

.panier-bouton svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.panier-bouton span {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  color: var(--blanc);
  background: var(--rouge);
  border-radius: 11px;
}

.panier {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  background: var(--acier-800);
  border-left: 1px solid var(--trait-fort);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.panier.ouvert {
  transform: none;
}

.panier > header,
.panier > footer {
  padding: 18px 20px;
}

.panier > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--trait);
}

.panier h3 {
  font-size: 22px;
  font-style: italic;
  text-transform: uppercase;
}

.panier-fermer {
  width: 38px;
  height: 38px;
  font-size: 26px;
  line-height: 1;
  color: var(--acier-100);
  background: none;
  border: 1px solid var(--trait);
  cursor: var(--viseur-cible, pointer);
}

.panier-lignes {
  flex: 1;
  margin: 0;
  padding: 12px 20px;
  overflow-y: auto;
  list-style: none;
}

.panier-lignes li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--trait);
}

.panier-lignes .qte {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
}

.panier-lignes button {
  width: 28px;
  height: 28px;
  font: inherit;
  color: var(--vert-vif);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--trait);
  cursor: var(--viseur-cible, pointer);
}

.panier > footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--trait);
}

.panier-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}

.panier-total b {
  font-family: var(--mono);
  color: var(--vert-vif);
}

.panier small {
  font-size: 12px;
  color: var(--acier-300);
  text-align: center;
}

.voile-fond {
  position: fixed;
  inset: 0;
  z-index: 125;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.voile-fond.ouvert {
  opacity: 1;
  visibility: visible;
}

.modale {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 140;
  width: min(440px, calc(100% - 32px));
  padding: 30px 28px;
  text-align: center;
  background: var(--acier-800);
  border: 1px solid var(--trait-fort);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -46%) scale(0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.modale.ouvert {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.modale h3 {
  margin-bottom: 12px;
  font-size: 26px;
  font-style: italic;
  text-transform: uppercase;
  color: var(--vert-vif);
}

.modale p {
  margin: 0 0 20px;
}

/* ---------------------------------------------------------------- télécharger */

.telecharger {
  padding-bottom: clamp(80px, 10vw, 130px);
}

.telecharger-carte {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(24px, 4vw, 50px);
  align-items: center;
  padding: clamp(28px, 5vw, 56px);
  background:
    radial-gradient(ellipse at 0% 50%, rgba(139, 227, 59, 0.18), transparent 60%),
    linear-gradient(135deg, var(--acier-700), var(--acier-900));
  border: 1px solid var(--trait-fort);
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 40px 100%, 0 calc(100% - 40px));
  overflow: hidden;
}

.telecharger-carte::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0 75%, rgba(139, 227, 59, 0.1) 85%, transparent 95%);
  animation: tourne 8s linear infinite;
  pointer-events: none;
}

.telecharger-carte > * {
  position: relative;
  z-index: 1;
}

.telecharger-carte img {
  width: 100%;
  height: auto;
  animation: flotte 5s ease-in-out infinite;
  filter: drop-shadow(0 0 40px var(--vert-lueur));
}

.telecharger-carte p {
  max-width: 560px;
}

.telecharger-infos {
  font-size: 14px;
  color: var(--acier-300);
}

.telecharger-etapes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.telecharger-etapes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.telecharger-etapes b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  color: var(--acier-900);
  background: var(--vert);
  border-radius: 50%;
}

/* ---------------------------------------------------------------- pied */

.pied {
  padding: 40px var(--marge) 50px;
  text-align: center;
  border-top: 1px solid var(--trait);
  background: var(--acier-900);
}

.pied-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  color: var(--blanc);
}

.pied-logo img {
  width: 48px;
  height: 48px;
}

.pied-logo b {
  color: var(--vert);
}

.pied p {
  margin: 12px auto 0;
  max-width: 620px;
  font-size: 13px;
  color: var(--acier-300);
}

.pied-liens {
  display: flex;
  justify-content: center;
  gap: 22px;
}

/* ---------------------------------------------------------------- écrans moyens et petits */

@media (max-width: 1100px) {
  .cartes {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* Le menu replié sous 1300 px (1100 avant le 12/10/2026) : sept liens ne tiennent plus en ligne
   à côté du logo et des boutons sur un écran de portable. */
@media (max-width: 1300px) {
  .nav-burger {
    display: block;
  }

  .nav-liens {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 80px var(--marge) 30px;
    background: rgba(7, 9, 10, 0.97);
    border-bottom: 1px solid var(--trait-fort);
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.2, 1);
    z-index: -1;
  }

  .nav-liens.ouvert {
    transform: none;
  }

  .nav-liens a {
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--trait);
  }

  .nav-liens a::after {
    display: none;
  }

}

@media (max-width: 900px) {
  .etat-mini span {
    display: none;
  }

  .chiffres {
    grid-template-columns: repeat(2, 1fr);
  }

  .deploiement-grille {
    grid-template-columns: 1fr;
  }

  .zone-carte {
    position: relative;
    top: 0;
    max-width: 420px;
    margin: 0 auto;
  }

  .autres-conteneurs {
    grid-template-columns: 1fr 1fr;
  }

  .telecharger-carte {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .telecharger-carte img {
    width: 180px;
    margin: 0 auto;
  }

  .telecharger-carte p {
    margin-left: auto;
    margin-right: auto;
  }

  .telecharger-etapes {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .nav-logo span {
    display: none;
  }

  .nav-droite .bouton {
    display: none;
  }

  .cartes,
  .autres-conteneurs {
    grid-template-columns: 1fr;
  }

  .heros-actions .bouton {
    width: 100%;
  }

  .vitrine-scene {
    height: 260px;
  }

  .classement-liste li {
    grid-template-columns: 34px 34px 1fr auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .classement-liste li .valeur:last-child {
    display: none;
  }

  .classement-liste img {
    width: 32px;
    height: 32px;
  }

  .etapes li {
    grid-template-columns: 48px 1fr;
  }

  .etapes b {
    width: 48px;
    height: 48px;
    font-size: 17px;
  }

  .etapes li::before {
    left: 23px;
    top: 58px;
  }
}

/* Moins de mouvement pour qui le demande : tout reste, sans animation. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-revele],
  .titre-anime .lettre,
  .classement-liste li {
    opacity: 1;
    transform: none;
  }

  .avion,
  .voile {
    display: none;
  }
}

/* ---------------------------------------------------------------- profil public (joueur.php) */

.page-profil main.profil {
  min-height: 70vh;
  padding-top: 110px;
  padding-bottom: 80px;
}

.profil-recherche {
  margin-bottom: 34px;
}

.profil-recherche-champ {
  display: flex;
  gap: 10px;
  max-width: 460px;
}

.profil-recherche input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--blanc);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--trait-fort);
  outline: none;
}

.profil-recherche input:focus {
  border-color: var(--vert-vif);
  box-shadow: 0 0 12px var(--vert-lueur);
}

.profil-tete {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 40px);
  padding: clamp(18px, 3vw, 30px);
  background: var(--verre);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--vert);
}

.profil-insigne {
  flex: none;
  width: clamp(88px, 14vw, 140px);
  height: auto;
  filter: drop-shadow(0 0 18px var(--vert-lueur));
}

.profil-identite {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.profil-identite .sur-titre {
  margin-bottom: 0;
}

.profil-nom {
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.profil-niveau {
  margin: 4px 0 0;
  font-size: 18px;
  color: var(--acier-100);
}

.profil-niveau b {
  color: var(--vert-vif);
}

.profil-jauge {
  height: 8px;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.07);
}

.profil-jauge i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--vert-sombre), var(--vert-vif));
  box-shadow: 0 0 10px var(--vert-lueur);
}

.profil-suite,
.profil-depuis {
  color: var(--acier-300);
  font-size: 13px;
}

.profil-titre {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 42px 0 14px;
  font-size: 22px;
  font-style: italic;
  text-transform: uppercase;
}

.profil-compte {
  font-size: 14px;
  font-style: normal;
  text-transform: none;
  color: var(--acier-300);
}

.profil-places,
.profil-stats {
  display: grid;
  gap: 10px;
}

.profil-places {
  grid-template-columns: repeat(4, 1fr);
}

.profil-stats {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.profil-place,
.profil-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--verre);
  border: 1px solid var(--trait);
}

.profil-place b,
.profil-stat b {
  font-size: 26px;
  color: var(--blanc);
}

.profil-place span,
.profil-stat span {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--acier-300);
}

.profil-place.podium-1 { border-color: var(--r-legendary); }
.profil-place.podium-1 b { color: var(--r-legendary); }
.profil-place.podium-2 b { color: var(--r-common); }
.profil-place.podium-3 b { color: #c78a4a; }

.profil-defis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.profil-defis li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: var(--verre);
  border: 1px solid var(--trait);
  border-left: 3px solid var(--vert);
}

.profil-defis li.du-jour {
  border-left-color: var(--orange);
}

.profil-defis li b {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.profil-defis li span {
  color: var(--acier-100);
  font-size: 14px;
}

.profil-defi-pied {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}

.profil-defi-pied span,
.profil-defi-pied time {
  font-size: 12px !important;
  color: var(--acier-300) !important;
}

.profil-defi-pied .profil-xp {
  color: var(--vert-vif) !important;
}

/* Le classement de l'épreuve de tir, sous le classement général */
.classement-tir {
  margin-top: 36px;
}

.classement-tir > p.vide {
  margin: -4px 0 14px;
  font-size: 14px;
}

/* Lien du classement de l'accueil vers le profil */
.classement-liste a.nom {
  color: inherit;
  text-decoration: none;
}

.classement-liste a.nom:hover {
  color: var(--vert-vif);
}

/* Recherche d'un soldat, sous le classement de l'accueil */
.classement-recherche {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin-top: 18px;
}

.classement-recherche input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  font: inherit;
  color: var(--blanc);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--trait-fort);
  outline: none;
}

@media (max-width: 1100px) {
  .profil-nav {
    display: none;
  }
}

@media (max-width: 700px) {
  .profil-tete {
    flex-direction: column;
    align-items: flex-start;
  }

  .profil-places {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------------- machines modestes (12/10/2026)
   Posé par site.js (html.leger) quand la machine a peu de cœurs ou de mémoire : les flous de fond
   et les animations décoratives sans fin s'arrêtent, le reste du site est inchangé. */
html.leger * {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

html.leger .heros-brume,
html.leger .vitrine-halo,
html.leger .heros-montagnes,
html.leger .heros-foret {
  animation: none !important;
}

/* ---------------------------------------------------------------- le hub, sous les grades */

.hub {
  margin-top: 56px;
}

.hub > h3 {
  margin-bottom: 18px;
  font-size: 22px;
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
}

/* ---------------------------------------------------------------- carrousel (12/10/2026)
   --par-vue cartes visibles ; la piste glisse d'une carte (sa largeur + l'écart) par cran. */

.carrousel {
  --par-vue: 4;
  --ecart: 16px;
  position: relative;
  width: 100%; /* la section centre ses enfants : sans largeur, le carrousel n'en avait aucune */
  max-width: var(--largeur);
  margin: 0 auto;
}

.carrousel-fenetre {
  overflow: hidden;
  /* de quoi laisser déborder l'inclinaison des cartes au survol */
  padding: 14px 6px;
  margin: -14px -6px;
}

.carrousel-piste {
  display: flex;
  gap: var(--ecart);
  perspective: 1000px;
  transform: translateX(calc(var(--i, 0) * -1 * (100% + var(--ecart)) / var(--par-vue)));
  transition: transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform;
}

.carrousel-piste.sans-transition {
  transition: none;
}

.carrousel-piste > .carte {
  flex: 0 0 calc((100% - (var(--par-vue) - 1) * var(--ecart)) / var(--par-vue));
}

.carrousel-fleche {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 9, 10, 0.85);
  border: 1px solid var(--trait-fort);
  color: var(--vert-vif);
  cursor: var(--viseur-cible, pointer);
}

.carrousel-fleche:hover {
  background: var(--vert-sombre);
}

.carrousel-fleche svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
}

.carrousel-prec { left: -22px; }
.carrousel-suiv { right: -22px; }

.carrousel-points {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carrousel-points button {
  width: 22px;
  height: 4px;
  padding: 0;
  border: 0;
  background: var(--acier-600);
  transition: background 0.3s, width 0.3s;
  cursor: var(--viseur-cible, pointer);
}

.carrousel-points button.actif {
  width: 40px;
  background: var(--vert);
}

@media (max-width: 1100px) {
  .carrousel { --par-vue: 2; }
  .carrousel-prec { left: 4px; }
  .carrousel-suiv { right: 4px; }
}

@media (max-width: 600px) {
  .carrousel { --par-vue: 1; }
}
