/* =================== Variables globales ==================== */
:root {
    /* ===================== Fonds ===================== */
    --bg-base:              #120A1A;
    --bg-gradient-1:        hsla(272, 47%, 9%, 1);
    --bg-gradient-2:        hsla(283, 43%, 8%, 1);

    /* ===================== Surfaces / Cards ===================== */
    --surface-1:            rgba(36, 18, 46, 0.55);
    --surface-2:            rgba(28, 14, 38, 0.55);
    --surface-2-opaque:     rgba(28, 14, 38, 0.97);
    --surface-3:            rgba(18, 10, 26, 0.55);
    --surface-base:         #120A1A;
    --surface-hover:        rgba(58, 30, 80, 0.55);

    /* ===================== Accent / Primary ===================== */
    --accent-primary:       #C26BFF;
    --accent-primary-hover: rgba(194, 107, 255, 0.3);
    --accent-strong:        #D13CFF;
    --accent-light:         #DFA0FF;

    /* ===================== Textes ===================== */
    --text-primary:         #F6F2FF;
    --text-secondary:       #B89FD4;
    --text-tertiary:        #C8B0E0;
    --text-description:     #E0D4F5;
    --text-separator:       #9B7FBF;

    /* ===================== Bordures ===================== */
    --border-default:       rgba(122, 58, 169, 0.5);
    --border-strong:        #7A3AA9;
    --border-subtle:        rgba(122, 58, 169, 0.2);
    --border-faint:         rgba(122, 58, 169, 0.15);
    --border-mobile:        rgba(122, 58, 169, 0.25);

    /* ===================== Tableaux ===================== */
    --table-row-hover:      rgba(194, 107, 255, 0.1);
    --table-row-even:       rgba(122, 58, 169, 0.08);

    /* ===================== États ===================== */
    --color-online:         #00F836;
    --color-online-glow:    rgba(11, 237, 45, 0.25);

    /* ===================== Ombres ===================== */
    --shadow-img:           rgba(0, 0, 0, 0.6);
}


/* =================== Reset & Base ==================== */
* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    display: flex;
    padding: 36px 20px 0 20px;
    flex-direction: column;
    align-items: center;
    margin: 0;
    min-height: 100%;
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(at 0% 0%, var(--bg-gradient-1) 0, transparent 50%), 
        radial-gradient(at 100% 100%, var(--bg-gradient-2) 0, transparent 50%);
    background-attachment: fixed;
}

main {
    flex: 1;
    display: flex;
    width: 100%;
    max-width: 1420px;
    padding-bottom: 100px;
    flex-direction: column;
    align-items: center;
    gap: 150px;
}


/* =================== Typographie ==================== */
h1, h2, h3, h4, h5, h6, h7 {
    font-family: Baskervville;
    font-style: normal;
    line-height: normal;
    margin: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

/* Logo */
.logo img {
    width: 60px;
    height: auto;
    margin-right: -7px;
    margin-left: -15px;
}

.logo h1 {
    font-size: 40px;
    font-weight: 700;

    background: linear-gradient(180deg, var(--surface-1) 0%, var(--text-primary) 50.96%, var(--surface-1) 86.54%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Titres de section */
h2 {
    color: var(--text-primary);
    font-size: 48px;
    font-weight: 700;
}

/* Titres de preview (cards features) */
h3 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}

/* Sous-titres & états vides */
h4 {
    color: var(--text-secondary);
    font-size: 24px;
    font-weight: 600;
}

/* Titres de box (patch version, etc.) */
h5 {
    color: var(--text-primary);
    font-size: 40px;
    font-weight: 700;
}

/* Sous-titres règlement général */
h6 {
    margin-top: 10px;
    margin-bottom: -20px;

    color: var(--text-tertiary);
    font-size: 24px;
    font-weight: 600;
}

/* Sous-titres règlement RP (balise non standard, inline uniquement) */
h7 {
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 700;
}


/* =================== Composants ==================== */

/* Séparateur horizontal */
.line {
    width: 100%;
    max-width: 1420px;
    height: 1px;

    background: var(--text-separator);
}

/* Bouton principal (lien cliquable) */
.bouton {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;

    border-radius: 13px;
    background: var(--accent-primary);
    border: 1px solid var(--accent-primary);

    color: var(--surface-base);
    font-family: Baskervville;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;

    transition: background 0.3s ease-in-out, color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.bouton:hover {
    background: var(--surface-base);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Badge non cliquable (affichage seul, ex: date de patch) */
.badge {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0;

    border-radius: 13px;
    background: var(--accent-primary);
    border: 1px solid var(--accent-primary);

    color: var(--surface-base);
    font-family: Baskervville;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}


/* =================== Animations ==================== */

/*
 * Système reveal au scroll — piloté par IntersectionObserver dans script.js.
 * .reveal = état initial masqué (doit toujours contenir la transition).
 * .reveal.active = état final visible, ajouté par le JS quand l'élément entre dans le viewport.
 */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out !important;
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}