@font-face { font-family: 'Exo 2'; src: url('/fonts/Exo2-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #120a18; --bg-2: #180e20; --panel: #21142b; --panel-2: #2a1a37;
  --line: rgba(214, 120, 255, .14); --line-2: rgba(214, 120, 255, .3);
  --text: #f7efff; --muted: #bba8cb; --faint: #7d6b8d;
  --mag: #d65cf0; --mag-2: #a83bd6; --mag-dark: #57187a; --lav: #e6b8ff;
  --green: #5cc45a; --green-dark: #2f7d32; --red: #f05870; --gold: #f2c46d;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Exo 2', system-ui, sans-serif; font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--lav); }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88em; padding: .1em .4em; border-radius: 6px; background: rgba(214, 92, 240, .12); color: var(--lav); white-space: nowrap; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; background: var(--mag); color: #fff; border-radius: 8px; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 40px); }
.center { text-align: center; justify-content: center; }
.mt { margin-top: 2.2em; }
.mag { color: var(--mag); text-shadow: 0 3px 0 var(--mag-dark); }

/* Liens masqués quand le réglage est vide */
.sans-discord .need-discord, .sans-boutique .need-boutique, .sans-eco .need-eco, .sans-support .need-support { display: none !important; }
.only-sans-boutique { display: none; }
.sans-boutique .only-sans-boutique { display: block; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 30; background: rgba(18, 10, 24, .86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a { padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; }
.menu a:hover { color: var(--text); background: rgba(214, 92, 240, .1); }
.menu a[aria-current="page"] { color: var(--text); background: rgba(214, 92, 240, .16); }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(92, 196, 90, .4); background: rgba(92, 196, 90, .1); color: #9be59a; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.live[hidden] { display: none; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.live .dot, .etat.on .dot { background: var(--green); box-shadow: 0 0 10px rgba(92, 196, 90, .8); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.menu-btn span:not(.sr) { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Boutons en relief */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; border-bottom: 4px solid var(--mag-dark); background: linear-gradient(180deg, var(--mag), var(--mag-2)); color: #fff; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .1s, filter .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }
.btn-ghost { background: var(--panel-2); border-bottom-color: #120a18; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-main { background: linear-gradient(180deg, #6fd46c, var(--green-dark)); border-bottom-color: #1b4d1d; }
.btn.done { background: linear-gradient(180deg, #6fd46c, var(--green-dark)); border-bottom-color: #1b4d1d; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 22px; }
.note { color: var(--muted); font-size: .95rem; margin: 14px 0 0; }

/* Héros */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 820px); display: grid; align-items: center; padding: 60px 0 90px; background: radial-gradient(560px 380px at 50% 42%, rgba(214, 92, 240, .32), transparent 70%), radial-gradient(900px 500px at 50% 120%, rgba(92, 196, 90, .1), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.vines { position: absolute; left: -90px; bottom: -110px; width: 560px; opacity: .3; pointer-events: none; }
.vines-r { left: auto; right: -90px; top: -120px; bottom: auto; transform: scale(-1, -1); }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-logo { margin: 0; width: min(720px, 92%); }
.hero-logo img { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }
.hero-tag { margin: 6px 0 26px; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.2rem); font-weight: 600; }
.ip-big { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 34px 12px; border: 0; border-radius: 14px; border-bottom: 6px solid var(--mag-dark); background: linear-gradient(180deg, #e57af7, var(--mag-2)); color: #fff; font: inherit; cursor: pointer; box-shadow: 0 0 0 4px #1d0f27, 0 14px 40px rgba(214, 92, 240, .35); transition: transform .1s, filter .15s; }
.ip-big:hover { filter: brightness(1.07); }
.ip-big:active { transform: translateY(3px); border-bottom-width: 3px; }
.ip-big-val { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 900; letter-spacing: .02em; text-shadow: 0 3px 0 rgba(60, 10, 90, .6); }
.ip-big-hint { font-size: .85rem; font-weight: 700; opacity: .85; }
.ip-big.done { background: linear-gradient(180deg, #6fd46c, var(--green-dark)); border-bottom-color: #1b4d1d; }
.hero-live { margin: 18px 0 0; color: #9be59a; font-weight: 650; }
.hero-live.off, [data-live-txt].off { color: var(--muted); }
.down { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); border: 1px solid var(--line-2); }
.down:hover { color: var(--text); }
.chev { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* Bouton adresse de l'en-tête */
.top-ip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; border-bottom: 3px solid var(--mag-dark); background: linear-gradient(180deg, var(--mag), var(--mag-2)); color: #fff; font: inherit; font-weight: 800; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.top-ip svg { width: 14px; height: 14px; fill: currentColor; }
.top-ip.done { background: linear-gradient(180deg, #6fd46c, var(--green-dark)); border-bottom-color: #1b4d1d; }

/* Rejoindre (accueil) */
.join-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.join-steps { counter-reset: n; list-style: none; padding: 0; margin: 22px 0 18px; display: grid; gap: 12px; }
.join-steps li { counter-increment: n; position: relative; padding: 2px 0 0 46px; min-height: 30px; color: var(--muted); }
.join-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(214, 92, 240, .16); color: var(--lav); font-weight: 800; }
.join-steps strong { color: var(--text); }
.text-link { font-weight: 700; }
.join-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 46px 28px; border-radius: 22px; text-align: center; border: 1px solid var(--line-2); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(214, 92, 240, .25), transparent 65%), repeating-conic-gradient(#22132e 0 25%, #1b0f25 0 50%) 0 0 / 28px 28px; }
.join-ip { padding: 10px 18px; border-radius: 10px; background: #0f0716; border: 2px solid var(--mag); color: #fff; font-size: 1.3rem; font-weight: 700; }
.join-ver { color: var(--muted); font-size: .9rem; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 26px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--mag); }
.stat[hidden] { display: none; }
.stat strong { font-size: 2.4rem; line-height: 1.1; font-weight: 900; color: var(--text); }
.stat span { color: var(--muted); font-weight: 600; }
.stat:first-child { border-left-color: var(--green); }

/* Activités */
.activities { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; align-items: start; }
.activities-txt { position: sticky; top: 100px; }
.act-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.act-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.act-list .ico { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: rgba(214, 92, 240, .12); }
.act-list h3 { margin: 0 0 2px; font-size: 1.05rem; }
.act-list p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; cursor: pointer; font-weight: 750; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; color: var(--mag); transition: transform .2s; }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Bandeau Discord */
.band { padding: 52px 0; background: linear-gradient(120deg, var(--mag-2), #6d28d9); border-block: 4px solid var(--mag-dark); }
.band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { margin-bottom: 6px; }
.band p { margin: 0; color: #f3e3ff; }
.btn-light { background: #fff; color: var(--mag-dark); border-bottom-color: #c9b2dd; }

/* Adresse */
.ip { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label label" "value btn"; gap: 6px 12px; align-items: center; max-width: 560px; padding: 14px 14px 14px 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); margin-top: 26px; }
.ip-label { grid-area: label; color: var(--muted); font-size: .85rem; font-weight: 600; }
.ip-value { grid-area: value; padding: 0; background: none; color: var(--text); font-size: 1.35rem; font-weight: 700; overflow-wrap: anywhere; white-space: normal; }
.ip .btn { grid-area: btn; }

/* Sections */
.section { padding: clamp(50px, 7vw, 84px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.sub { color: var(--muted); font-size: 1.08rem; max-width: 46em; }
.page-head { padding: clamp(46px, 7vw, 80px) 0 10px; background: radial-gradient(600px 300px at 85% 0%, rgba(214, 92, 240, .2), transparent 70%); }
.page-head + .section { padding-top: 34px; }

/* Serveurs */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.mode { display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; border-top: 4px solid var(--mag); }
.mode:hover { border-color: var(--line-2); transform: translateY(-3px); }
.mode-survie { border-top-color: var(--green); }
.mode-skyblock { border-top-color: var(--mag); }
.mode-lobby { border-top-color: var(--gold); }
.mode-head, .mode-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.mode-head h3, .mode-title h2 { margin: 0; }
.mode-head h3 { font-size: 1.4rem; }
.mode p { color: var(--muted); flex: 1; }
.more { color: var(--lav); font-weight: 700; }
.etat { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); color: var(--muted); font-size: .85rem; font-weight: 700; }
.mode-title .etat { margin-left: 4px; }
.etat.on { color: #9be59a; background: rgba(92, 196, 90, .12); }
.etat.off .dot { background: var(--red); }
.etat.soon { color: var(--lav); background: rgba(214, 92, 240, .14); }
.etat.soon .dot { background: var(--mag); }
.tag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: rgba(214, 92, 240, .16); color: var(--lav); font-size: .85rem; font-weight: 700; vertical-align: middle; }
.tag-red { background: rgba(240, 88, 112, .15); color: #ff9aab; font-size: .75rem; padding: 2px 9px; margin-left: 6px; }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--mag); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mode-survie .ico { stroke: var(--green); }
.mode-lobby .ico { stroke: var(--gold); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.features.three { grid-template-columns: repeat(3, 1fr); }
.feature { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature .ico { margin-bottom: 12px; }
.feature p { color: var(--muted); margin: 0; }
.flag { color: var(--faint); font-weight: 800; }

/* Grades */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.ranks-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ranks-mini li, .rank-plate { display: inline-block; padding: 8px 18px; border-radius: 10px; font-weight: 800; color: #fff; border-bottom: 4px solid rgba(0, 0, 0, .35); text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.ranks-mini li { display: block; }
.ranks-mini li:nth-child(1) { margin-left: 0; } .ranks-mini li:nth-child(2) { margin-left: 18px; } .ranks-mini li:nth-child(3) { margin-left: 36px; } .ranks-mini li:nth-child(4) { margin-left: 54px; } .ranks-mini li:nth-child(5) { margin-left: 72px; }
.r1, .r1 .rank-plate { background: linear-gradient(180deg, #a0784d, #7a5631); }
.r2, .r2 .rank-plate { background: linear-gradient(180deg, #6fc86c, #2f7d32); }
.r3, .r3 .rank-plate { background: linear-gradient(180deg, #5aa8e8, #2b6aa8); }
.r4, .r4 .rank-plate { background: linear-gradient(180deg, #f2c46d, #b8812a); }
.r5, .r5 .rank-plate { background: linear-gradient(180deg, #e06df5, #8a2bb8); }
.rc .rank-plate { background: linear-gradient(180deg, #ff7f9c, #c23b62); }
.rank-plate.rs { background: linear-gradient(180deg, #8f7bd0, #4e3a8c); min-width: 160px; text-align: center; }
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 24px 0; }
.rank { background: none !important; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background-color: var(--panel) !important; }
.rank-lvl { color: var(--faint); font-size: .85rem; font-weight: 600; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.staff { display: grid; gap: 12px; margin-top: 22px; }
.staff-row { display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.staff-row p { margin: 0; color: var(--muted); }

/* Étapes et règles */
.steps, .rules { counter-reset: n; list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.steps li, .rules li { counter-increment: n; position: relative; padding: 20px 22px 20px 78px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.steps li::before, .rules li::before { content: counter(n); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(180deg, var(--mag), var(--mag-2)); border-bottom: 3px solid var(--mag-dark); font-weight: 800; }
.steps h3, .rules h3 { margin-bottom: 4px; }
.steps p, .rules p { margin: 0; color: var(--muted); }
.steps.small li { padding-block: 16px; }
.steps.small li::before { top: 12px; }

/* Barème */
.table-wrap { overflow-x: auto; margin-top: 24px; border-radius: var(--radius); border: 1px solid var(--line); }
.bareme { width: 100%; border-collapse: collapse; background: var(--panel); }
.bareme th, .bareme td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.bareme thead th { background: var(--panel-2); color: var(--muted); font-size: .9rem; font-weight: 700; }
.bareme tbody th { font-weight: 650; }
.bareme tbody tr:last-child > * { border-bottom: 0; }
.bareme tr.grave { background: rgba(240, 88, 112, .06); }
.bareme tr.grave td { color: #ffb3bf; font-weight: 650; }

/* Liens */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 24px; }
.link-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.link-card:hover { border-color: var(--line-2); }
.link-card span { color: var(--muted); font-size: .95rem; }

/* Pied */
.foot { padding: 40px 0 34px; border-top: 1px solid var(--line); background: #0e0713; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 18px; max-width: 560px; }
.foot-brand img { flex: none; width: 160px; height: auto; }
.foot-brand p { margin: 0; color: var(--muted); font-size: .92rem; }
.foot-ip { color: var(--lav); font-weight: 700; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: flex-end; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--text); }
.legal { grid-column: 1 / -1; margin: 6px 0 0; color: var(--faint); font-size: .85rem; }
.legal a { color: var(--muted); }

/* Tablette et mobile */
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .live { order: 2; margin-left: auto; }
  .top-ip { order: 3; }
  .menu-btn { order: 4; margin-left: 0; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; display: none; flex-direction: column; padding: 10px 20px 18px; background: rgba(18, 10, 24, .97); border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; }
  .split, .join-in, .activities { grid-template-columns: 1fr; }
  .activities-txt { position: static; }
  .vines { width: 340px; }
  .modes, .features, .features.three { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-in { gap: 12px; }
  .live { padding: 5px 10px; font-size: .8rem; }
  .modes, .features, .features.three { grid-template-columns: 1fr; }
  .ip { grid-template-columns: 1fr; grid-template-areas: "label" "value" "btn"; }
  .ip .btn { width: 100%; }
  .steps li, .rules li { padding: 72px 18px 18px; }
  .steps li::before, .rules li::before { top: 18px; left: 18px; }
  .steps.small li { padding: 16px 18px 16px 72px; }
  .staff-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-brand { flex-direction: column; align-items: flex-start; }
  .ip-big { padding-inline: 22px; }
  .stat strong { font-size: 2rem; }
  .foot-links { justify-content: flex-start; }
  .ranks-mini li { margin-left: 0 !important; }
  .bareme thead { display: none; }
  .bareme, .bareme tbody, .bareme tr, .bareme th, .bareme td { display: block; }
  .bareme tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .bareme th, .bareme td { padding: 2px 0; border: 0; }
  .bareme td::before { content: attr(data-label) " : "; color: var(--faint); font-weight: 600; }
}
@media (max-width: 520px) { .brand span, .top-ip { display: none; } .live { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
