/* ─────────────────────────────────────────────────────────────────────────────
   EnoPVP — vitrine
   Charte alignée sur les menus en jeu : noir plein, contours rouge néon, aucun
   emoji. Polices SYSTÈME uniquement : pas de CDN externe, donc pas de requête
   tierce, pas de RGPD à gérer pour une police, et rien à charger avant l'affichage.
   ───────────────────────────────────────────────────────────────────────────── */

:root {
    --noir:        #000000;
    --noir-2:      #08080a;
    --panneau:     #0c0c0f;
    --bord:        #1c1c22;
    --rouge:       #ff1f2d;
    --rouge-mat:   #b3121c;
    --texte:       #e8e8ec;
    --texte-2:     #9a9aa4;
    --max:         1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--noir);
    color: var(--texte);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin: 0;
    text-transform: uppercase;
}

.enveloppe {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ─────────────────────────────────────────────── Barre de navigation ── */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(0, 0, 0, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bord);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 64px;
}

.marque {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.marque span { color: var(--rouge); }

.nav-liens {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--texte-2);
}
.nav-liens a { transition: color 0.15s ease; }
.nav-liens a:hover { color: var(--rouge); }

/* Le lien de connexion est encadre : c'est une action, pas une rubrique. */
.nav-liens .lien-connexion {
    padding: 7px 14px;
    border: 1px solid var(--rouge-mat);
    border-radius: 2px;
    color: var(--rouge);
}
.nav-liens .lien-connexion:hover {
    background: var(--rouge);
    border-color: var(--rouge);
    color: #000;
}

/* Le menu se replie sous 760px : les liens passent en ligne compacte. */
@media (max-width: 760px) {
    .nav-liens { gap: 16px; font-size: 12px; }
    .nav-liens .optionnel { display: none; }
    .nav-liens .lien-connexion { padding: 6px 10px; }
}

/* ─────────────────────────────────────────────────── Page compte ── */

.bloc-compte { margin-top: 8px; }
.bloc-compte code {
    display: inline-block;
    padding: 3px 9px;
    background: #000;
    border: 1px solid var(--bord);
    border-radius: 2px;
    color: var(--texte);
    font-family: "Cascadia Mono", Consolas, "SF Mono", monospace;
    font-size: 15px;
    word-break: break-all;
}
/* Le bouton de deconnexion est un <button> : sans ca il heriterait des marges
   et de la police du navigateur au lieu de la charte. */
button.bouton {
    font-family: inherit;
    cursor: pointer;
    background: none;
}

/* ─────────────────────────────────────────────────────────── Boutons ── */

.bouton {
    display: inline-block;
    padding: 13px 26px;
    border: 1px solid var(--rouge);
    border-radius: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.bouton:hover {
    background: var(--rouge);
    color: #000;
    box-shadow: 0 0 24px rgba(255, 31, 45, 0.45);
}
.bouton-plein {
    background: var(--rouge);
    color: #000;
}
.bouton-plein:hover {
    background: #ff3d49;
    color: #000;
}
.bouton-sourd {
    border-color: var(--bord);
    color: var(--texte-2);
}
.bouton-sourd:hover {
    background: transparent;
    border-color: var(--texte-2);
    color: var(--texte);
    box-shadow: none;
}

/* ───────────────────────────────────────────────────────────── Héros ── */

.heros {
    position: relative;
    padding: 120px 0 104px;
    border-bottom: 1px solid var(--bord);
    overflow: hidden;
}
/* Halo rouge diffus, purement décoratif : pas d'image à charger. */
.heros::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(255, 31, 45, 0.16), transparent 70%),
        radial-gradient(600px 300px at 85% 110%, rgba(255, 31, 45, 0.08), transparent 70%);
    pointer-events: none;
}
.heros > * { position: relative; }

/* Le personnage : colle en bas a droite, il sort du cadre par le bas. Le fondu
   par masque evite de lui dessiner un socle — il se perd dans le noir.
   Cache sous 1024px : a cette largeur il chevaucherait le texte, et un visuel
   qui masque l'accroche ne sert personne. */
.heros-perso {
    position: absolute;
    right: max(24px, calc((100% - var(--max)) / 2 - 40px));
    bottom: 0;
    height: 108%;
    width: auto;
    z-index: 0;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
            mask-image: linear-gradient(to bottom, #000 74%, transparent 98%);
    filter: drop-shadow(0 0 46px rgba(255, 31, 45, 0.22));
}
@media (max-width: 1024px) {
    .heros-perso { display: none; }
}
/* Au-dela du contenu, le texte doit garder sa place : sans cette reserve, la
   colonne de gauche passerait sous le personnage sur les ecrans intermediaires. */
@media (min-width: 1025px) {
    .heros .enveloppe > * { max-width: 62%; }
}

.etiquette {
    display: inline-block;
    margin-bottom: 22px;
    padding: 6px 14px;
    border: 1px solid var(--rouge-mat);
    border-radius: 2px;
    color: var(--rouge);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ────────────────────────────────────────────── Etat du serveur ── */

.ligne-etiquettes {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.ligne-etiquettes .etiquette { margin-bottom: 0; }

.statut {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px;
    border: 1px solid var(--bord);
    border-radius: 2px;
    background: var(--panneau);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--texte-2);
}

.statut-pastille {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--texte-2);
    flex: none;
}

/* Vert pour « en ligne » : c'est la seule couleur hors charte du site, et elle
   est gardee parce qu'aucune nuance de rouge ne dit « ca marche ». */
.statut.est-en-ligne {
    border-color: #1f6b2e;
    color: #6ee787;
}
.statut.est-en-ligne .statut-pastille {
    background: #3fb950;
    box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7);
    animation: pouls-statut 2.4s ease-out infinite;
}

.statut.est-hors-ligne {
    border-color: var(--rouge-mat);
    color: var(--rouge);
}
.statut.est-hors-ligne .statut-pastille { background: var(--rouge); }

.statut.est-inconnu { opacity: 0.75; }

@keyframes pouls-statut {
    0%   { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.6); }
    70%  { box-shadow: 0 0 0 7px rgba(63, 185, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(63, 185, 80, 0); }
}

/* Un point qui clignote en permanence est penible pour qui y est sensible, et
   c'est exactement ce que cette preference demande d'eviter. */
@media (prefers-reduced-motion: reduce) {
    .statut.est-en-ligne .statut-pastille { animation: none; }
}

.heros h1 {
    font-size: clamp(38px, 7vw, 76px);
    max-width: 16ch;
}
.heros h1 em {
    font-style: normal;
    color: var(--rouge);
    text-shadow: 0 0 32px rgba(255, 31, 45, 0.55);
}

.accroche {
    margin: 22px 0 36px;
    max-width: 56ch;
    color: var(--texte-2);
    font-size: 17px;
}

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ────────────────────────────────────────────────── Bloc connexion ── */

.connexion {
    margin-top: 44px;
    padding: 18px 22px;
    max-width: 560px;
    background: var(--panneau);
    border: 1px solid var(--bord);
    border-left: 2px solid var(--rouge);
    border-radius: 2px;
}
.connexion .titre {
    color: var(--texte-2);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.connexion code {
    display: block;
    margin-top: 8px;
    color: var(--texte);
    font-family: "Cascadia Mono", Consolas, "SF Mono", monospace;
    font-size: 16px;
    word-break: break-all;
}
.connexion .note {
    margin-top: 10px;
    color: var(--texte-2);
    font-size: 13px;
}

/* ──────────────────────────────────────────────────────── Sections ── */

.section {
    padding: 96px 0;
    border-bottom: 1px solid var(--bord);
}

.section-titre {
    font-size: clamp(26px, 3.6vw, 38px);
    margin-bottom: 12px;
}
.section-titre span { color: var(--rouge); }

.section-intro {
    max-width: 62ch;
    margin-bottom: 48px;
    color: var(--texte-2);
}

/* ──────────────────────────────────────────────────── Grille modes ── */

.grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 18px;
}

.carte {
    padding: 26px 24px;
    background: var(--panneau);
    border: 1px solid var(--bord);
    border-radius: 2px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.carte:hover {
    border-color: var(--rouge-mat);
    box-shadow: 0 0 30px rgba(255, 31, 45, 0.10);
    transform: translateY(-2px);
}
.carte h3 {
    font-size: 15px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
}
.carte h3::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 1px;
    margin-right: 10px;
    vertical-align: middle;
    background: var(--rouge);
}
.carte p {
    margin: 0;
    color: var(--texte-2);
    font-size: 15px;
}

/* ───────────────────────────────────────────────────────── Boutique ── */

.boutique {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 860px) {
    .boutique { grid-template-columns: 1fr; gap: 32px; }
}

.liste-nue { margin: 0 0 32px; padding: 0; list-style: none; }
.liste-nue li {
    padding: 11px 0 11px 22px;
    border-bottom: 1px solid var(--bord);
    color: var(--texte-2);
    position: relative;
}
.liste-nue li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 10px;
    height: 1px;
    background: var(--rouge);
}
.liste-nue strong { color: var(--texte); font-weight: 600; }

.encadre {
    padding: 30px 28px;
    background: var(--panneau);
    border: 1px solid var(--rouge-mat);
    border-radius: 2px;
    box-shadow: 0 0 46px rgba(255, 31, 45, 0.09);
}
.encadre h3 { font-size: 17px; margin-bottom: 14px; }
.encadre p { color: var(--texte-2); font-size: 15px; }

/* ────────────────────────────────────────────────────────── Bandeau ── */

.bandeau {
    padding: 88px 0;
    text-align: center;
    background:
        radial-gradient(700px 320px at 50% 50%, rgba(255, 31, 45, 0.12), transparent 70%),
        var(--noir-2);
    border-bottom: 1px solid var(--bord);
}
.bandeau h2 { font-size: clamp(26px, 4vw, 42px); }
.bandeau p { margin: 16px auto 32px; max-width: 52ch; color: var(--texte-2); }

/* ─────────────────────────────────────────────────────── Pied de page ── */

.pied {
    padding: 52px 0 40px;
    color: var(--texte-2);
    font-size: 14px;
}
.pied-cols {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--bord);
}
.pied-liens { display: flex; flex-wrap: wrap; gap: 24px; }
.pied-liens a { transition: color 0.15s ease; }
.pied-liens a:hover { color: var(--rouge); }
.pied-bas {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

/* Mention non contractuelle imposée par Rockstar/Cfx : le serveur n'est affilié
   ni à Rockstar Games ni à Take-Two. La laisser visible évite l'ambiguïté. */
.avertissement {
    max-width: 74ch;
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b6b74;
}

/* ───────────────────────────────────────── Pages de texte (légal) ── */

.page-texte { padding: 72px 0 96px; }
.page-texte h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.page-texte .maj { color: var(--texte-2); font-size: 13px; margin-bottom: 44px; }
.page-texte h2 {
    font-size: 16px;
    letter-spacing: 0.1em;
    margin: 40px 0 12px;
    padding-top: 22px;
    border-top: 1px solid var(--bord);
}
.page-texte h2:first-of-type { border-top: none; padding-top: 0; }
.page-texte p, .page-texte li { color: var(--texte-2); }
.page-texte ul { padding-left: 20px; }
.page-texte li { margin-bottom: 8px; }
.page-texte strong { color: var(--texte); }

/* Marqueur des trous à combler avant mise en ligne. Volontairement criard :
   une mention légale incomplète ne doit pas pouvoir passer inaperçue. */
.arembplir {
    background: rgba(255, 31, 45, 0.14);
    border: 1px dashed var(--rouge);
    border-radius: 2px;
    padding: 1px 7px;
    color: var(--rouge);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
}
