html,
body{
    min-height:100vh;
}

body{
    display:flex;
    flex-direction:column;
}

main{
    flex:1;
}

body {
    font-family: "Segoe UI", sans-serif;
    color: #fff;

    background:
    linear-gradient(
        rgba(0,0,0,0.10),
        rgba(0,0,0,0.25)
    ),
    url("../img/index/background.png");

    background-size: contain;
    background-repeat: no-repeat;
    background-position: center 58px;
    background-color: #050a14;

    overflow-x: hidden;

    position: relative;
    min-height: 100vh;

    /* AJOUT */
    display: flex;
    flex-direction: column;
}

/* =========================
   BACKGROUND SUITE
========================= */
body::after {
    content: "";
    position: absolute;

    top: 100vh;
    height: 150vh;
    background-size: 100% auto;
    background-position: center top;

    width: 100%;

    background: url("../img/index/background1.png") center 438px no-repeat;

    background-size: contain;

    pointer-events: none;

    z-index: -1;
}


/* ==========================================
   TITRES
========================================== */

h2{

    text-align:center;

    font-size:48px;

    margin-bottom:50px;

    background:
    linear-gradient(
        90deg,
        #4adeff,
        #60a5fa,
        #a855f7
    );

    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

/* ==========================================
   HERO
========================================== */

.hero {
    min-height: 75vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding-top: 180px;
    padding-bottom: 120px;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 35px;
}

.hero-overlay {
    display: none;
}

.hero-content{

    position:relative;

    z-index:2;

    max-width:1000px;
}

.hero-tag{

    display:inline-block;

    padding:
    10px 22px;

    border-radius:50px;

    background:
    rgba(255,255,255,.06);

    border:
    1px solid rgba(255,255,255,.08);

    margin-bottom:25px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 35px;
}

/* ==========================================
   BUTTONS
========================================== */

.hero-buttons{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{

    text-decoration:none;

    padding:
    15px 28px;

    border-radius:14px;

    font-weight:700;

    transition:.3s;
}

.btn-primary{

    color:#071018;

    background:
    linear-gradient(
        90deg,
        #4adeff,
        #60a5fa
    );

    box-shadow:
    0 0 30px rgba(96,165,250,.25);
}

.btn-primary:hover{

    transform:
    translateY(-4px);

    box-shadow:
    0 0 50px rgba(96,165,250,.40);
}

.btn-secondary{

    color:#fff;

    border:
    1px solid rgba(255,255,255,.10);

    background:
    rgba(255,255,255,.04);
}

/* ==========================================
   FEATURES
========================================== */

.feature-grid{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(280px,1fr));

    gap:25px;
}

.feature-card{

    padding:35px;

    border-radius:20px;

    background:
    rgba(255,255,255,.04);

    backdrop-filter:
    blur(14px);

    border:
    1px solid rgba(255,255,255,.08);

    transition:.35s;
}

.feature-card:hover{

    transform:
    translateY(-8px);

    box-shadow:
    0 0 35px rgba(96,165,250,.20);

    border-color:
    rgba(96,165,250,.40);
}

/* ==========================================
   LIVE WORLD
========================================== */

.live-grid {
    max-width: 1400px;
    margin: 600px auto 0 auto;
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.live-card {
    position: relative;

    background: linear-gradient(
        180deg,
        rgba(168,85,247,.15),
        rgba(0,0,0,.35)
    );

    border-radius: 12px;
    padding: 16px;
    color: #fff;

    overflow: hidden;
}

/* BORD LUMINEUX QUI GLISSE */
.live-card::before {
    content: "";
    position: absolute;
    inset: 0;

    border-radius: 12px;
    padding: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        #a855f7,
        #4adeff,
        transparent
    );

    background-size: 300% 100%;
    animation: moveBorder 5s linear infinite; /* ⬅ PLUS LENT */

    -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;

    pointer-events: none;
}

/* ANIMATION PROPRE */
@keyframes moveBorder {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 300% 0%;
    }
}

/* HOVER PROPRE (SORTI DU KEYFRAMES !) */
.live-card:hover {
    transform: translateY(-4px);
    transition: 0.3s ease;
}

/* TITRE */
.live-card h3 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* =========================
   EMPTY STATE
========================= */

.empty-state {
    text-align: center;
    padding: 10px;
    opacity: 0.6;
    font-size: 14px;
}

/* =========================
   INSTANCE ROW
========================= */

.instance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 12px;
    margin-bottom: 8px;

    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);

    transition: 0.2s ease;
}

.instance-row:hover {
    background: rgba(255, 255, 255, 0.07);
}

.instance-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.instance-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.instance-sub {
    font-size: 12px;
    opacity: 0.7;
}

.instance-right {
    text-align: right;
}

/* STATUS PLAYERS */
.instance-players {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
}

/* état actif */
.instance-players.active {
    background: rgba(0, 200, 100, 0.15);
    color: #2cff8f;
}

/* état vide */
.instance-players.empty {
    background: rgba(255, 50, 50, 0.15);
    color: #ff5c5c;
}

.instance-status-text {
    font-size: 11px;
    opacity: 0.6;
    margin-top: 3px;
}

/* =========================
   RIFTS SPECIFIC
========================= */

.rift-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.rift-row {
    border-left: 3px solid rgba(120, 80, 255, 0.6);
}

.rift-row:hover {
    border-left: 3px solid rgba(160, 120, 255, 1);
}

/* zone status emoji spacing */
.instance-sub {
    display: flex;
    gap: 6px;
    align-items: center;
}

.boss{

    border:1px solid #f59e0b;
}

.event{

    border:1px solid #22c55e;
}

.siege{

    border:1px solid #ef4444;
}

.rift{

    border:1px solid #8b5cf6;
}

/* ==========================================
   RACES
========================================== */

.race-grid {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 15px;
}

/* =========================
   CARD PLUS PETITE
========================= */
.race-card {
    cursor:pointer;
    width: 250px;        /* ↓ encore réduit */
    min-height: 250px;   /* ↓ plus compact */

    border-radius: 100px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    overflow: hidden;

    padding: 12px;

    box-shadow: 0 0 10px rgba(0,0,0,0.35);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* =========================
   HOVER PLUS DISCRET
========================= */
.race-card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 25px rgba(74, 222, 255, 0.35);
}

/* =========================
   BACKGROUNDS
========================= */
.elyos {
    background:
        linear-gradient(180deg, rgba(59,130,246,.22), rgba(0,0,0,.45)),
        url("../img/index/elyos.png") center/cover no-repeat;
}

.asmo {
    background:
        linear-gradient(180deg, rgba(168,85,247,.22), rgba(0,0,0,.45)),
        url("../img/index/asmodian.png") center/cover no-repeat;
}

/* =========================
   TITRE PLUS PETIT
========================= */
.race-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: white;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

/* =========================
   PARAGRAPHES
========================= */
.race-card p {
    font-size: 13px;
    opacity: 0.9;
    color: white;
    max-width: 90%;
}

/* =========================
   PULSE ANIM
========================= */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&display=swap');

.race-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 40px;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #d6b36a;

    opacity: 0;
    transform: scale(1.2);
    filter: blur(10px);

    text-shadow:
        0 0 0px rgba(214,179,106,0),
        0 0 0px rgba(214,179,106,0);

    animation: aionIntro 2.8s ease-out forwards;
}

@keyframes aionIntro {

    0% {
        opacity: 0;
        transform: scale(1.4);
        filter: blur(12px);
        text-shadow: none;
    }

    25% {
        opacity: 0.4;
        filter: blur(6px);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
        filter: blur(2px);
        text-shadow:
            0 0 10px rgba(214,179,106,0.6),
            0 0 20px rgba(214,179,106,0.4);
    }

    70% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
        text-shadow:
            0 0 15px #d6b36a,
            0 0 30px #d6b36a,
            0 0 60px rgba(214,179,106,0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
        text-shadow:
            0 0 10px #d6b36a,
            0 0 25px #d6b36a,
            0 0 50px rgba(214,179,106,0.7);
    }
}

/* ==========================================
   CLASSES
========================================== */

/* =========================
   SECTION
========================= */
.classes {
    padding: 20px;
}

.classes h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;

    color: #fff;
    text-transform: uppercase;

    margin-bottom: 18px;

    position: relative;
    padding-left: 14px;
}

/* ligne lumineuse */
.classes h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);

    width: 4px;
    height: 70%;

    background: #3ea6ff;
    border-radius: 2px;
}

/* =========================
   GRID
========================= */
.classes-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =========================
   CARD
========================= */
.class-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-width: 100px;
    max-width: 120px;

    padding: 14px;
    border-radius: 14px;

    text-decoration: none;

    color: #4adeff;

    /* GLASS EFFECT (rates style) */
    background: linear-gradient(
        180deg,
        rgba(0, 180, 255, 0.12),
        rgba(0, 0, 0, 0.35)
    );

    border: 1px solid rgba(96, 165, 250, 0.25);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition: 0.25s ease;

    text-align: center;
}

/* hover AAA */
.class-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.2);
}

/* =========================
   IMAGE
========================= */
.class-card img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    margin-bottom: 6px;
    filter: brightness(1.6) contrast(1.2);
}

/* =========================
   TEXT
========================= */
.class-card span {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

/* ==========================================
   RATES
========================================== */

.rates-grid{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;
}

.rates-grid div{

    min-width:180px;

    padding:25px;

    border-radius:15px;

    text-align:center;

    font-size:24px;

    font-weight:800;

    color:#4adeff;

    background:
    linear-gradient(
        180deg,
        rgba(0,180,255,.10),
        rgba(0,0,0,.30)
    );

    border:
    1px solid rgba(96,165,250,.30);
}

/* ==========================================
   NEWS
========================================== */

.news-grid{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(320px,1fr));

    gap:25px;
}

.news-card{

    padding:30px;

    border-radius:18px;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);
}

/* ==========================================
   GALLERY
========================================== */

.gallery-grid{

    max-width:1400px;

    margin:auto;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(300px,1fr));

    gap:20px;
}

.gallery-item{

    height:240px;

    border-radius:20px;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);

    transition:.3s;
}

.gallery-item:hover{

    transform:
    scale(1.03);
}

/* ==========================================
   ROADMAP
========================================== */

.roadmap-line{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;
}

.roadmap-line div{

    padding:
    25px 35px;

    border-radius:14px;

    background:
    rgba(255,255,255,.04);

    border:
    1px solid rgba(255,255,255,.08);
}

/* ==========================================
   COMMUNITY
========================================== */

.community{

    text-align:center;
}

.community p{

    margin-bottom:30px;

    color:#cbd5e1;
}

/* ==========================================
   CTA
========================================== */

.cta{

    text-align:center;
}

.cta p{

    margin:
    20px auto 30px;

    max-width:700px;

    color:#cbd5e1;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {

    .race-card {
        width: 90%;
        max-width: 320px;
    }

    .hero h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 28px;
    }

