/* Police style Minecraft : Monocraft (licence libre SIL OFL 1.1, par Idrees Hassan) */
@font-face {
  font-family: "Monocraft";
  src: url("https://cdn.jsdelivr.net/gh/IdreesInc/Monocraft@main/dist/Monocraft-ttf/Monocraft.ttf") format("truetype");
  font-display: swap;
}

/* ============================================================
   STYLE - Record & Post
   Couleurs principales : change-les ici
   ============================================================ */
:root {
  --rouge: #c4232f;
  --rouge-clair: #e0313f;
  --rouge-sombre: #6e1219;
  --fond: #121216;
  --fond-2: #18181d;
  --carte: #1f1f26;
  --bord: #2e2e38;
  --texte: #eae7e4;
  --gris: #9a98a6;
  --rose: #ffb7d0;
  --pixel: "Monocraft", "Silkscreen", monospace;
  --corps: "Monocraft", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--corps);
  color: var(--texte);
  background-color: var(--fond);
  background-image: repeating-linear-gradient(135deg, #15151a 0 34px, #111115 34px 68px);
  line-height: 1.6;
  letter-spacing: -.2px;
  overflow-x: hidden;
  -webkit-font-smoothing: none;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--pixel); background: #0c0c0f; border: 1px solid var(--bord); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

#petales { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
section, header, footer { position: relative; z-index: 1; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block; font-family: var(--pixel); font-size: 15px; letter-spacing: .5px;
  padding: 14px 26px; border-radius: 6px; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  border: 2px solid transparent;
}
.btn-rouge { background: var(--rouge); box-shadow: 0 4px 0 var(--rouge-sombre); }
.btn-rouge:hover { background: var(--rouge-clair); transform: translateY(-2px); box-shadow: 0 6px 0 var(--rouge-sombre); }
.btn-sombre { background: var(--carte); border-color: var(--bord); box-shadow: 0 4px 0 #0a0a0c; }
.btn-sombre:hover { border-color: var(--rouge); transform: translateY(-2px); }
.btn-petit { padding: 8px 16px; font-size: 13px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 68px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  transition: background .3s, box-shadow .3s;
}
.nav.colle { background: rgba(14,14,18,.92); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--bord); }
.nav-logo img { height: 44px; image-rendering: pixelated; }
.nav-liens { display: flex; align-items: center; gap: 26px; font-family: var(--pixel); font-size: 13px; }
.nav-liens a:not(.btn) { color: var(--gris); transition: color .15s; }
.nav-liens a:not(.btn):hover { color: #fff; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; width: 26px; height: 3px; background: #fff; margin: 5px 0; }

/* ---------- Hero ---------- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 100px 20px 60px; overflow: hidden; }
.hero-halo { position: absolute; width: 900px; height: 600px; left: 50%; top: 48%; transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center, rgba(196,35,47,.35), transparent 65%); pointer-events: none; }
.hero-contenu { position: relative; }
.hero-logo { width: min(640px, 90vw); image-rendering: pixelated; filter: drop-shadow(0 12px 30px rgba(0,0,0,.6)); animation: flotte 5s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-10px); } }
.hero-slogan { margin: 22px 0 34px; font-size: clamp(18px, 2.3vw, 24px); color: #d8d4d0; }
.rec { font-family: var(--pixel); color: var(--rouge-clair); animation: clignote 1.2s steps(2) infinite; }
@keyframes clignote { 50% { opacity: .25; } }

.ip-carte {
  display: inline-block; min-width: 330px; padding: 18px 28px; border-radius: 10px; cursor: pointer;
  background: rgba(20,20,26,.9); border: 2px solid var(--bord); transition: border-color .2s, transform .2s;
}
.ip-carte:hover { border-color: var(--rouge); transform: scale(1.03); }
.ip-statut { font-size: 13px; color: var(--gris); display: flex; align-items: center; justify-content: center; gap: 8px; }
.point { width: 10px; height: 10px; border-radius: 50%; background: #666; }
.point.on { background: #4ade80; box-shadow: 0 0 10px #4ade80; animation: pulse 1.6s infinite; }
.point.off { background: #ef4444; }
@keyframes pulse { 50% { box-shadow: 0 0 2px #4ade80; } }
.ip-adresse { font-family: var(--pixel); font-size: 26px; margin: 6px 0 2px; letter-spacing: 1px; }
.ip-copier { font-size: 12px; color: var(--gris); }
.hero-boutons { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-fleche { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--gris); font-size: 20px; animation: flotte 2s infinite; }

/* ---------- Chiffres ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1000px; margin: 0 auto; background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; overflow: hidden; }
.chiffre { padding: 26px 10px; text-align: center; border-right: 1px solid var(--bord); }
.chiffre:last-child { border-right: 0; }
.chiffre b { display: block; font-family: var(--pixel); font-size: 34px; color: var(--rouge-clair); line-height: 1.2; }
.chiffre span { color: var(--gris); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 110px 24px; max-width: 1200px; margin: 0 auto; }
.section-sombre { max-width: none; background: rgba(10,10,13,.75); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.section-sombre > * { max-width: 1150px; margin-left: auto; margin-right: auto; }
.titre { font-family: var(--pixel); font-size: clamp(30px, 4.5vw, 46px); text-align: center; line-height: 1.1; }
.titre span { position: relative; padding: 0 6px; }
.titre span::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 5px; background: var(--rouge); box-shadow: 0 3px 0 var(--rouge-sombre); }
.sous-titre { text-align: center; color: var(--gris); margin: 26px auto 50px; max-width: 640px; }
.titre-petit { font-family: var(--pixel); font-size: 22px; text-align: center; margin: 70px 0 24px; }

/* ---------- Jeux ---------- */
.jeux { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.jeu {
  background: var(--carte); border: 2px solid var(--bord); border-radius: 12px; padding: 22px;
  position: relative; overflow: hidden; transition: transform .25s, border-color .25s, box-shadow .25s;
}
.jeu::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--c); }
.jeu:hover { transform: translateY(-6px); border-color: var(--c); box-shadow: 0 14px 30px -12px var(--c); }
.jeu h3 { font-family: var(--pixel); font-size: 20px; margin: 16px 0 8px; color: var(--c); }
.jeu p { color: #c9c6cf; font-size: 15px; }
.jeu-icone { width: 64px; height: 64px; }
.jeu-icone svg { width: 100%; height: 100%; image-rendering: pixelated; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li { font-size: 12px; padding: 3px 10px; border-radius: 20px; background: #15151a; border: 1px solid var(--bord); color: var(--gris); }
.jeu-bientot { opacity: .65; }
.jeu-bientot .tags li { color: var(--c); border-color: var(--c); }

/* ---------- Quêtes ---------- */
.quetes { display: flex; align-items: stretch; gap: 0; }
.quete { flex: 1; background: var(--carte); border: 2px solid var(--bord); border-radius: 12px; padding: 24px 18px; text-align: center; }
.quete-num { width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center; font-family: var(--pixel); font-size: 22px; background: var(--rouge); border-radius: 8px; box-shadow: 0 4px 0 var(--rouge-sombre); }
.quete h3 { font-family: var(--pixel); font-size: 16px; margin-bottom: 6px; }
.quete p { color: var(--gris); font-size: 14px; }
.quete-trait { width: 40px; align-self: center; height: 4px; background: repeating-linear-gradient(90deg, var(--rouge) 0 8px, transparent 8px 14px); }
.quete-fin { border-color: #4ade80; }
.quete-fin .quete-num { background: #2f9e57; box-shadow: 0 4px 0 #1b5e33; }
.atouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 50px; }
.atout { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 18px 20px; display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; }
.atout span { font-size: 28px; grid-row: span 2; }
.atout p { color: var(--gris); font-size: 14px; }

/* ---------- Classements ---------- */
.maj { display: block; font-size: 12px; margin-top: 4px; color: #6e6c7a; }
.onglets { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }
.onglet { font-family: var(--pixel); font-size: 13px; padding: 9px 16px; border-radius: 6px; background: var(--carte); border: 2px solid var(--bord); color: var(--gris); cursor: pointer; transition: all .15s; }
.onglet:hover { color: #fff; }
.onglet.actif { background: var(--rouge); border-color: var(--rouge); color: #fff; box-shadow: 0 3px 0 var(--rouge-sombre); }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 18px; min-height: 260px; }
.marche { width: 170px; text-align: center; animation: monte .5s ease both; }
@keyframes monte { from { opacity: 0; transform: translateY(30px); } }
.marche img { width: 72px; height: 72px; image-rendering: pixelated; border-radius: 6px; }
.marche .nom { font-weight: 800; margin: 6px 0 2px; overflow: hidden; text-overflow: ellipsis; }
.marche .score { color: var(--gris); font-size: 13px; }
.marche .socle { margin-top: 12px; border-radius: 8px 8px 0 0; display: grid; place-items: center; font-family: var(--pixel); font-size: 34px; }
.marche.p1 .socle { height: 130px; background: linear-gradient(#e7b62e, #a87b12); }
.marche.p2 .socle { height: 95px; background: linear-gradient(#c9ccd3, #85888f); }
.marche.p3 .socle { height: 70px; background: linear-gradient(#d48a4c, #8f5426); }
.marche.p1 { animation-delay: .1s; } .marche.p3 { animation-delay: .2s; }
.liste-top { list-style: none; max-width: 520px; margin: 30px auto 0; counter-reset: rang 3; }
.liste-top li { counter-increment: rang; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--carte); border: 1px solid var(--bord); border-radius: 8px; margin-bottom: 8px; }
.liste-top li::before { content: "#" counter(rang); font-family: var(--pixel); color: var(--gris); width: 34px; }
.liste-top img { width: 28px; height: 28px; image-rendering: pixelated; border-radius: 4px; }
.liste-top .score { margin-left: auto; color: var(--gris); font-size: 14px; }
.vide { text-align: center; color: var(--gris); }

/* ---------- Grades ---------- */
.echelle { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.grade { font-family: var(--pixel); font-size: 15px; padding: 10px 18px; border-radius: 6px; background: #15151a; border: 2px solid var(--g); color: var(--g); box-shadow: 0 0 18px -8px var(--g); transition: transform .15s; }
.grade:hover { transform: translateY(-3px) scale(1.05); }
.avantages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.avantages div { background: var(--carte); border: 1px solid var(--bord); border-radius: 10px; padding: 16px; text-align: center; }
.avantages b { display: block; }
.avantages span { color: var(--gris); font-size: 13px; }
.staff { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.membre { background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 18px 22px; text-align: center; width: 170px; transition: transform .2s; }
.membre:hover { transform: translateY(-4px); }
.membre img { width: 80px; height: 80px; image-rendering: pixelated; }
.membre .nom { font-weight: 800; margin-top: 8px; }
.membre .badge { display: inline-block; margin-top: 6px; font-family: var(--pixel); font-size: 11px; padding: 3px 10px; border-radius: 4px; color: #fff; }

/* ---------- Règles ---------- */
.regles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 50px; }
.regle { display: flex; gap: 16px; background: var(--carte); border: 1px solid var(--bord); border-left: 4px solid var(--rouge); border-radius: 10px; padding: 20px; }
.regle-num { font-family: var(--pixel); font-size: 28px; color: var(--rouge-clair); line-height: 1; }
.regle h3 { font-size: 17px; margin-bottom: 4px; }
.regle p { color: var(--gris); font-size: 14px; }
.note { text-align: center; color: var(--gris); margin-top: 30px; }

/* ---------- Rejoindre ---------- */
.etapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 50px; }
.etape { background: var(--carte); border: 1px solid var(--bord); border-radius: 12px; padding: 22px; }
.etape > b { font-family: var(--pixel); font-size: 30px; color: var(--rouge-clair); }
.etape h3 { font-size: 17px; margin: 6px 0; }
.etape p { color: var(--gris); font-size: 14px; }
.ip-inline { cursor: pointer; }

/* ---------- Pied ---------- */
.pied { text-align: center; padding: 60px 20px 40px; color: #6e6c7a; font-size: 13px; }
.pied img { height: 60px; image-rendering: pixelated; opacity: .8; }
.pied-liens { display: flex; justify-content: center; gap: 18px; margin: 16px 0; font-family: var(--pixel); }
.pied-liens a:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 30px; left: 50%; transform: translate(-50%, 120px); opacity: 0; z-index: 99; background: #2f9e57; color: #fff; font-family: var(--pixel); padding: 12px 22px; border-radius: 8px; box-shadow: 0 4px 0 #1b5e33; transition: transform .3s, opacity .3s; }
.toast.vu { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Apparition au scroll ---------- */
.revele { opacity: 0; transform: translateY(26px); transition: opacity .6s, transform .6s; }
.revele.vu { opacity: 1; transform: none; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .nav { padding: 0 18px; }
  .nav-burger { display: block; }
  .nav-liens { position: fixed; top: 68px; left: 0; right: 0; flex-direction: column; gap: 18px; padding: 24px; background: rgba(14,14,18,.97); border-bottom: 1px solid var(--bord); transform: translateY(-130%); transition: transform .3s; }
  .nav-liens.ouvert { transform: none; }
  .chiffres { grid-template-columns: repeat(2, 1fr); margin: 0 16px; }
  .chiffre:nth-child(2) { border-right: 0; }
  .chiffre:nth-child(-n+2) { border-bottom: 1px solid var(--bord); }
  .quetes { flex-direction: column; }
  .quete-trait { width: 4px; height: 26px; background: repeating-linear-gradient(180deg, var(--rouge) 0 8px, transparent 8px 14px); }
  .atouts, .avantages, .regles, .etapes { grid-template-columns: 1fr; }
  .marche { width: 110px; }
  .ip-carte { min-width: 0; width: 100%; }
}
