/* === BODY & TYPOGRAPHIE === */
body {
    background: radial-gradient(circle at top, #0e1625, #05070c);
    color: #e5e7eb;
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 20px;
}

/* HEADINGS */
h1 {
    color: #f59e0b;
    text-shadow: 0 0 10px #f59e0b55;
}

h2 {
    color: #38bdf8;
}

.subtitle {
    margin-bottom: 25px;
    color: #cbd5f5;
}

/* === TABLEAU === */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: #0f172a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 25px #000;
}

thead {
    background: linear-gradient(90deg, #1e293b, #020617);
}

th {
    padding: 12px;
    color: #facc15;
    text-transform: uppercase;
    font-size: 13px;
    border-bottom: 2px solid #334155;
}

td {
    padding: 10px;
    border-bottom: 1px solid #1e293b;
    vertical-align: middle;
}

/* Lignes verticales */
th, td {
    border-right: 1px solid #334155;
}
th:last-child, td:last-child {
    border-right: none;
}

/* Alternance des lignes */
tr:nth-child(even) {
    background-color: #020617;
}

tr:hover {
    background-color: #1e293b;
    transition: 0.2s;
}

/* === CATÉGORIES ÉQUIPEMENTS / ARMES / COMPÉTENCES === */
.equip { color: #22c55e; font-weight: bold; }
.weapon { color: #ef4444; font-weight: bold; }
.skill { color: #38bdf8; font-weight: bold; }

/* === TALENTS === */
.talent {
    color: #facc15;
    font-weight: bold;
}

.talent.named {
    color: #22c55e;
}

.talent.exotic {
    color: #f97316;
    text-shadow: 0 0 8px #f9731680;
}

/* === MODS === */
.mod {
    color: #38bdf8;
    font-weight: bold;
}

.none {
    color: #6b7280;
    text-align: center;
}

/* === ICONES DANS TABLEAU === */
td .icon, th .icon {
    font-size: 22px;        /* Taille uniforme des icônes emoji */
    margin-right: 8px;       /* Espace entre icône et texte */
    vertical-align: middle;
    transition: transform 0.2s, color 0.2s;
    cursor: default;
}

/* Hover sur icônes : léger zoom + glow */
td .icon:hover, th .icon:hover {
    transform: scale(1.4);
    text-shadow: 0 0 5px #facc15;
}

/* === BLOCS APRÈS TABLEAU === */
.block {
    margin-top: 40px;
    padding: 20px;
    background: linear-gradient(180deg, #020617, #020617aa);
    border: 1px solid #1e293b;
    border-radius: 10px;
    box-shadow: 0 0 15px #000;
}

.block h3 {
    color: #38bdf8;
    margin-bottom: 15px;
}

.block ul {
    padding-left: 20px;
}

.block li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* STATS LIST */
.stats li {
    color: #e5e7eb;
}

.stats strong {
    color: #facc15;
}

/* FOOTER */
footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

/* === ICÔNES VISUELLES DANS LES BLOCS === */
td, th {
    font-size: 14px;
}

td.emoji, th.emoji {
    font-size: 20px;
}

/* RESPONSIVE TABLEAU */
@media (max-width: 1024px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    tr {
        margin-bottom: 15px;
    }

    th {
        background: #1e293b;
        border-bottom: 1px solid #334155;
    }

    td {
        border: none;
        border-bottom: 1px solid #1e293b;
        padding-left: 50%;
        position: relative;
    }

    td:before {
        position: absolute;
        left: 15px;
        width: 45%;
        white-space: nowrap;
        font-weight: bold;
        content: attr(data-label);
        color: #facc15;
    }
}
