/* ── BASE ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --red: #E03030; --red2: #FF4444;
    --bg: #0a0a0a; --bg2: #101010; --bg3: #161616; --bg4: #1c1c1c;
    --card: #111111; --card2: #151515;
    --white: #FFFFFF; --gray: #888; --light: #ccc;
    --border: rgba(255,255,255,0.07);
    --nav: 64px; --max: 1140px; --px: clamp(16px,4vw,60px);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg); color: var(--light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden; line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.red { color: var(--red); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--red); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--px); }

/* Typed.js cursor */
.typed-cursor { color: var(--red); font-weight: 300; }

/* Titre NOXA RP — animation CSS pure au chargement */
.hero-title {
    opacity: 0;
    transform: translateY(28px);
    animation: heroIn .8s cubic-bezier(.16,1,.3,1) 2.1s forwards;
}
@keyframes heroIn {
    to { opacity: 1; transform: translateY(0); }
}
.hero-title .red { color: var(--red); }

/* Bouton rejoindre — lueur pulsante */
.btn-red { animation: pulse-glow 2.8s ease-in-out infinite; }
@keyframes pulse-glow {
    0%,100% { box-shadow: 0 0 0 0 rgba(224,48,48,0); }
    50%      { box-shadow: 0 0 22px 5px rgba(224,48,48,.3); }
}

/* Logo hero — pulse lumineux */
.hero-logo-mark {
    animation: logo-pulse 3s ease-in-out infinite;
}
@keyframes logo-pulse {
    0%,100% { filter: brightness(1) drop-shadow(0 0 0px rgba(224,48,48,0)); }
    50%      { filter: brightness(1.15) drop-shadow(0 0 14px rgba(224,48,48,.5)); }
}

/* ── FOND GLOBAL FIXE ───────────────────────────────────────────────────── */
#site-bg {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
}
#site-bg img {
    width: 100%; height: 100%; object-fit: cover;
    object-position: center top; opacity: .65;
}
.bg-overlay {
    position: absolute; inset: 0;
    background: rgba(6,6,6,.3);
}

/* ── PARTICLES ──────────────────────────────────────────────────────────── */
#particles {
    position: fixed; inset: 0; z-index: -1;
    pointer-events: none; width: 100%; height: 100%;
}

/* ── SECTIONS TRANSPARENTES ─────────────────────────────────────────────── */
#nav, .hero, .page-section, footer { position: relative; z-index: 1; }
.page-section { background: transparent; }
.page-section.dark { background: rgba(4,4,4,.45); }

/* ── LOADER ─────────────────────────────────────────────────────────────── */

#loader {
    position: fixed; inset: 0; z-index: 9000; background: var(--bg);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    transition: opacity .5s, visibility .5s;
}
#loader.out { opacity: 0; visibility: hidden; }
.ld-logo { width: 60px; height: 60px; background: var(--red); border-radius: 14px; padding: 10px; object-fit: contain; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.06)} }
.ld-bar { width: 140px; height: 1px; background: rgba(255,255,255,.1); }
.ld-fill { height: 100%; background: var(--red); animation: lfill 1.8s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes lfill { from{width:0} to{width:100%} }

/* ── NAV ────────────────────────────────────────────────────────────────── */
#nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 800;
    height: var(--nav);
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
#nav.scrolled {
    background: rgba(8,8,8,.92);
    backdrop-filter: blur(16px);
    border-color: var(--border);
}
.nav-wrap {
    max-width: var(--max); margin: 0 auto; padding: 0 var(--px);
    height: 100%; display: flex; align-items: center; gap: 32px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-icon { width: 32px; height: 32px; background: var(--red); border-radius: 7px; padding: 4px; overflow: hidden; }
.brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: .95rem; font-weight: 900; color: var(--white); letter-spacing: .5px; }
.brand-name em { color: var(--red); font-style: normal; }
.brand-sub { font-size: .55rem; font-weight: 600; letter-spacing: 2px; color: var(--gray); margin-top: 2px; }
.nav-links { display: flex; list-style: none; gap: 4px; margin: 0 auto; }
.nl {
    padding: 6px 16px; border-radius: 100px;
    font-size: .85rem; font-weight: 500; color: var(--gray);
    transition: all .2s;
}
.nl:hover { color: var(--white); }
.nl.active { background: var(--red); color: var(--white); }
.nav-join {
    background: var(--red); color: var(--white);
    padding: 8px 18px; border-radius: 8px;
    font-size: .85rem; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
    transition: opacity .2s; flex-shrink: 0;
}
.nav-join span { font-size: 1rem; font-weight: 400; }
.nav-join:hover { opacity: .85; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.burger span { display: block; width: 20px; height: 1.5px; background: var(--white); transition: all .25s; border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU */
.mmenu {
    display: none; position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0;
    background: rgba(8,8,8,.97); backdrop-filter: blur(20px); z-index: 799;
    flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.mmenu.open { display: flex; }
.mmenu a { font-size: 2rem; font-weight: 800; color: var(--gray); padding: 14px 32px; border-radius: 12px; transition: color .2s; }
.mmenu a:hover { color: var(--white); }
.mm-join { background: var(--red) !important; color: var(--white) !important; font-size: 1.1rem !important; margin-top: 20px; }

/* ── HERO ───────────────────────────────────────────────────────────────── */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center;
    justify-content: center; text-align: center;
    padding-top: var(--nav); overflow: hidden;
}
/* légère lueur rouge dans le hero */
.hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 60% at 50% 30%, rgba(180,20,20,.15) 0%, transparent 70%);
}
.hero-inner { position: relative; z-index: 2; padding: clamp(60px,10vw,100px) var(--px); width: 100%; }
.hero-eyebrow {
    display: inline-block; font-size: clamp(.65rem,1.5vw,.75rem);
    font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: var(--gray); margin-bottom: clamp(20px,3vw,32px);
}
.hero-logo-mark {
    width: clamp(48px,8vw,72px); height: clamp(48px,8vw,72px);
    background: var(--red); border-radius: clamp(12px,2vw,18px);
    padding: clamp(8px,1.5vw,14px); margin: 0 auto clamp(16px,2.5vw,24px);
}
.hero-logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.hero-title {
    font-size: clamp(3.5rem,12vw,9rem); font-weight: 900;
    color: var(--white); line-height: .95; letter-spacing: -.03em;
    margin-bottom: clamp(16px,2.5vw,28px);
    word-wrap: break-word;
}
.hero-desc {
    font-size: clamp(.9rem,1.8vw,1.05rem); color: var(--gray);
    max-width: 480px; margin: 0 auto clamp(28px,4vw,40px);
    line-height: 1.75; word-wrap: break-word;
}
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: clamp(40px,6vw,72px); }
.btn-red { background: var(--red); color: var(--white); padding: clamp(11px,2vw,14px) clamp(20px,3vw,28px); border-radius: 9px; font-weight: 600; font-size: clamp(.85rem,1.5vw,.95rem); transition: opacity .2s; white-space: nowrap; }
.btn-red:hover { opacity: .85; }
.btn-ghost { color: var(--gray); padding: clamp(11px,2vw,14px) clamp(20px,3vw,28px); border-radius: 9px; font-weight: 500; font-size: clamp(.85rem,1.5vw,.95rem); border: 1px solid rgba(255,255,255,.12); transition: all .2s; white-space: nowrap; }
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,.25); }
.hero-stats { display: flex; align-items: center; justify-content: center; gap: clamp(20px,5vw,60px); flex-wrap: wrap; }
.hs { text-align: center; }
.hs strong { display: block; font-size: clamp(1.5rem,4vw,2.4rem); font-weight: 900; color: var(--white); line-height: 1; }
.hs span { font-size: clamp(.62rem,1.2vw,.72rem); text-transform: uppercase; letter-spacing: 1.5px; color: var(--gray); margin-top: 6px; display: block; }
.hs-sep { width: 1px; height: 32px; background: rgba(255,255,255,.1); flex-shrink: 0; }

/* ── PAGE SECTIONS ──────────────────────────────────────────────────────── */
.page-section { padding: clamp(72px,10vw,120px) 0; }
.page-section.dark { background: var(--bg2); }
.page-head { text-align: center; margin-bottom: clamp(48px,7vw,80px); }
.page-head h2 { font-size: clamp(2.2rem,6vw,4.5rem); font-weight: 900; color: var(--white); line-height: 1.05; letter-spacing: -.025em; margin-bottom: 16px; word-wrap: break-word; }
.page-head p { font-size: clamp(.88rem,1.5vw,1rem); color: var(--gray); line-height: 1.75; }
.tag-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 100px; padding: 6px 16px; font-size: .7rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); margin-bottom: 20px; }
.red-tag { background: rgba(224,48,48,.1); border-color: rgba(224,48,48,.2); color: var(--red); }

/* ── STAFF ──────────────────────────────────────────────────────────────── */
.staff-group { margin-bottom: clamp(32px,5vw,56px); }
.group-label { font-size: .65rem; font-weight: 700; letter-spacing: 3px; color: var(--gray); text-transform: uppercase; margin-bottom: clamp(12px,2vw,20px); text-align: center; }
.staff-row { display: flex; flex-wrap: wrap; gap: clamp(10px,1.5vw,14px); justify-content: center; }
.cols-1 .s-card { max-width: 220px; }
.cols-2 .s-card { width: calc(50% - 7px); max-width: 220px; }
.cols-3 .s-card { width: calc(33.333% - 10px); max-width: 200px; }
.s-card {
    background: linear-gradient(135deg, #151515 0%, #101010 100%);
    border: 1px solid var(--border); border-radius: 14px;
    padding: clamp(20px,3vw,28px) clamp(16px,2.5vw,24px);
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 10px; flex-shrink: 0;
    transition: border-color .2s, transform .2s;
}
.s-card:hover { border-color: rgba(224,48,48,.3); transform: translateY(-3px); }
.s-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.s-icon svg { width: 22px; height: 22px; stroke-width: 1.75; }
.s-icon.gold  { background: rgba(180,130,0,.15); }
.s-icon.gold  svg { stroke: #d4a017; }
.s-icon.gray  { background: rgba(150,150,150,.12); }
.s-icon.gray  svg { stroke: #aaa; }
.s-icon.blue  { background: rgba(40,100,200,.15); }
.s-icon.blue  svg { stroke: #5badec; }
.s-icon.green { background: rgba(20,160,110,.15); }
.s-icon.green svg { stroke: #1abc9c; }
.s-name { font-size: clamp(.88rem,1.5vw,.95rem); font-weight: 700; color: var(--white); }
.s-badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: .58rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.red-badge    { background: rgba(224,48,48,.15); color: var(--red); }
.blue-badge   { background: rgba(52,130,219,.15); color: #5badec; }
.green-badge  { background: rgba(26,188,156,.15); color: #1abc9c; }
.orange-badge { background: rgba(230,126,34,.15); color: #e67e22; }

/* ── RÈGLEMENT ──────────────────────────────────────────────────────────── */
.reg-title {
    font-size: clamp(3rem,9vw,7rem); font-weight: 900; color: var(--white);
    letter-spacing: -.03em; position: relative; display: inline-block;
    text-decoration: underline; text-decoration-color: var(--red);
    text-underline-offset: 6px; text-decoration-thickness: 3px;
}
.accord { display: flex; flex-direction: column; gap: 2px; }
.ac-item {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; transition: border-color .2s;
}
.ac-item.open { border-color: rgba(224,48,48,.25); }
.ac-head {
    width: 100%; display: flex; align-items: flex-start; gap: clamp(12px,2.5vw,24px);
    padding: clamp(16px,2.5vw,22px) clamp(16px,3vw,28px);
    background: none; border: none; cursor: pointer; text-align: left;
    transition: background .15s;
}
.ac-head:hover { background: rgba(255,255,255,.02); }
.ac-num { font-size: clamp(1rem,2.5vw,1.4rem); font-weight: 800; color: rgba(224,48,48,.35); min-width: clamp(28px,4vw,44px); line-height: 1.2; flex-shrink: 0; }
.ac-title-wrap { flex: 1; min-width: 0; }
.ac-title { display: block; font-size: clamp(.875rem,1.5vw,1rem); font-weight: 700; color: var(--white); margin-bottom: 3px; }
.ac-sub { display: block; font-size: clamp(.72rem,1.2vw,.8rem); color: var(--gray); }
.ac-ico { width: 18px; height: 18px; color: var(--gray); flex-shrink: 0; transition: transform .3s; margin-top: 3px; stroke: var(--gray); }
.ac-item.open .ac-ico { transform: rotate(180deg); }
.ac-body { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.4,0,.2,1); }
.ac-item.open .ac-body { max-height: 300px; }
.ac-body ul { padding: 0 clamp(16px,3vw,28px) clamp(16px,2.5vw,22px) calc(clamp(28px,4vw,44px) + clamp(24px,5vw,48px)); }
.ac-body li { font-size: clamp(.8rem,1.3vw,.9rem); color: var(--gray); padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04); line-height: 1.6; word-wrap: break-word; }
.ac-body li:last-child { border: none; }
.ac-body li::before { content: '— '; color: var(--red); }

/* ── VOTE ───────────────────────────────────────────────────────────────── */
.vote-title { font-size: clamp(3rem,10vw,7rem); font-weight: 900; line-height: 1; letter-spacing: -.03em; word-wrap: break-word; }
.vote-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(10px,1.5vw,14px); margin-bottom: clamp(48px,7vw,80px); }
.v-card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: clamp(20px,3vw,28px);
    display: flex; flex-direction: column; gap: 12px;
    transition: border-color .2s, transform .2s;
}
.v-card:hover { border-color: rgba(224,48,48,.3); transform: translateY(-3px); }
.v-card-featured {
    border-color: rgba(224,48,48,.25);
    background: linear-gradient(160deg, rgba(224,48,48,.08), var(--card));
}
.v-card-featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red), transparent); border-radius: 14px 14px 0 0; }
.v-card { position: relative; }
.v-tag { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: .6rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }
.gray-tag { background: rgba(255,255,255,.06); color: var(--gray); }
.red-tag-sm { background: rgba(224,48,48,.15); color: var(--red); }
.v-head { display: flex; align-items: center; justify-content: space-between; }
.v-icon { font-size: clamp(1.5rem,3vw,2rem); }
.v-ext { font-size: 1rem; color: var(--gray); transition: color .2s; }
.v-ext:hover { color: var(--white); }
.v-card h3 { font-size: clamp(1rem,1.8vw,1.2rem); font-weight: 800; color: var(--white); }
.v-card p { font-size: clamp(.78rem,1.2vw,.88rem); color: var(--gray); line-height: 1.65; flex: 1; }
.v-link { font-size: clamp(.78rem,1.2vw,.85rem); font-weight: 600; color: var(--red); transition: opacity .2s; }
.v-link:hover { opacity: .75; }

/* Récompenses */
.rewards { }
.rewards-head { text-align: center; margin-bottom: clamp(32px,5vw,48px); }
.rewards-head h3 { font-size: clamp(1.6rem,4vw,2.8rem); font-weight: 900; color: var(--white); margin-top: 16px; word-wrap: break-word; }
.rewards-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: clamp(8px,1.2vw,12px); margin-bottom: 20px; }
.r-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: clamp(14px,2vw,20px) clamp(10px,1.5vw,14px); text-align: center; transition: all .2s; }
.r-card:hover { border-color: rgba(224,48,48,.3); transform: translateY(-2px); }
.r-icon { font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 10px; }
.r-votes { display: block; font-size: clamp(.58rem,1vw,.65rem); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.r-reward { display: block; font-size: clamp(.85rem,1.5vw,1rem); font-weight: 800; color: var(--white); margin-bottom: 4px; }
.r-label { display: block; font-size: clamp(.6rem,1vw,.68rem); color: var(--gray); }
.rewards-note { text-align: center; font-size: clamp(.72rem,1.2vw,.78rem); color: var(--gray); }

/* Staff dynamique */
.staff-loading { text-align: center; color: var(--gray); padding: 60px 0; font-size: .9rem; }
.staff-empty   { text-align: center; color: var(--gray); padding: 60px 0; font-size: .9rem; opacity: .6; }

/* ── FOOTER ─────────────────────────────────────────────────────────────── */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: clamp(28px,4vw,40px) 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.f-left { display: flex; align-items: center; gap: 10px; }
.f-logo { width: 32px; height: 32px; background: var(--red); border-radius: 7px; padding: 4px; }
.f-logo img { width: 100%; height: 100%; object-fit: contain; }
.f-name { font-size: .95rem; font-weight: 900; color: var(--white); display: block; letter-spacing: .5px; }
.f-name em { color: var(--red); font-style: normal; }
.f-sub { font-size: .5rem; font-weight: 700; letter-spacing: 2px; color: var(--gray); display: block; }
.f-links { display: flex; gap: clamp(16px,3vw,28px); flex-wrap: wrap; }
.f-links a { font-size: .85rem; color: var(--gray); transition: color .2s; }
.f-links a:hover { color: var(--white); }
.f-bot { border-top: 1px solid var(--border); padding-top: 16px; }
.f-bot p { font-size: .72rem; color: var(--gray); }

/* ── REVEAL ─────────────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .cols-2 { grid-template-columns: 1fr; max-width: 100%; }
    .cols-3 { grid-template-columns: repeat(2,1fr); }
    .vote-cards { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; }
    .rewards-grid { grid-template-columns: repeat(3,1fr); }
    .hs-sep { display: none; }
}
@media (max-width: 640px) {
    .nav-links, .nav-join { display: none; }
    .burger { display: flex; }
    .cols-3 { grid-template-columns: 1fr; }
    .rewards-grid { grid-template-columns: repeat(2,1fr); }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .hero-stats { gap: 20px 32px; }
}
@media (max-width: 380px) {
    .hero-btns { flex-direction: column; align-items: center; }
    .btn-red, .btn-ghost { width: 100%; text-align: center; }
    .rewards-grid { grid-template-columns: 1fr 1fr; }
}
