
:root {
    color-scheme: dark;
    --purple: #a966ff;
    --purple-light: #d19aff;
    --purple-dark: #6522bd;
    --panel: #160e23ed;
    --line: #7541a466;
    --muted: #b5a7c9;
    --red: #ff365b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #f7f1ff;
    font: 15px system-ui, Segoe UI, sans-serif;
    background:
        linear-gradient(110deg, #0c0612d9, #10091ab8),
        url(background.png) center / cover fixed;
}

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

::selection {
    background: #8b35dc;
    color: white;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #100919;
}

::-webkit-scrollbar-thumb {
    background: #7739b7;
    border-radius: 20px;
}

/* =========================
   NAVIGATION PRINCIPALE
========================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    gap: 26px;
    align-items: center;
    padding: 14px 3%;
    background: #100919ed;
    border-bottom: 1px solid #a966ff44;
    backdrop-filter: blur(22px);
    box-shadow: 0 5px 30px #0006;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 13px;
    box-shadow: 0 0 20px #a966ff55;
}

.brand span {
    color: var(--purple);
    text-shadow: 0 0 15px #a966ff66;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}

nav a {
    position: relative;
    padding: 14px 0;
    color: var(--muted);
    font-weight: 650;
    transition: color .25s;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(90deg, #7625db, #ce8dff);
    box-shadow: 0 0 12px #b45dff;
    transition: width .25s;
}

nav a.active,
nav a:hover {
    color: white;
}

nav a.active::after,
nav a:hover::after {
    width: 100%;
}

.search {
    margin-left: auto;
}

.search input {
    min-height: 43px;
    width: 220px;
    background: #150c23;
    transition: .25s;
}

.search input:focus {
    width: 250px;
    border-color: var(--purple);
}

/* =========================
   BOUTONS
========================= */

.button,
button {
    display: inline-block;
    background: linear-gradient(135deg, #7028c7, #a94dff);
    border: 1px solid #b975ff55;
    border-radius: 10px;
    padding: 11px 16px;
    color: white;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
}

.button:hover,
button:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 20px #a966ff44;
}

/* CONNEXION DISCORD VIOLET */

.discord {
    background: linear-gradient(135deg, #7525db, #b14dff);
    border: 1px solid #c381ff;
    color: #fff;
    padding: 12px 20px;
    border-radius: 11px;
    font-weight: 750;
    box-shadow: 0 0 20px #9d43ff40;
    transition: .25s;
}

.discord:hover {
    background: linear-gradient(135deg, #9039f5, #c17aff);
    box-shadow: 0 0 28px #b35fff88;
    transform: translateY(-2px);
}

/* =========================
   STRUCTURE DU SITE
========================= */

.layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) 260px;
    gap: 24px;
    max-width: 1800px;
    margin: 32px auto;
    padding: 0 24px;
    align-items: start;
}

aside,
details,
.game,
.hero,
.stats b {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 15px;
    backdrop-filter: blur(12px);
}

aside {
    padding: 15px;
}

aside h3 {
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--purple-light);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

aside > a {
    display: block;
    padding: 12px;
    margin: 4px 0;
    border-radius: 9px;
    color: var(--muted);
    transition: .25s;
}

aside > a:hover {
    color: white;
    background: #7e32ca35;
    box-shadow: inset 3px 0 #a966ff;
    padding-left: 17px;
}

.right {
    padding: 0;
    background: transparent;
    border: 0;
}

/* =========================
   PREMIUM ULTIMATE
========================= */

.premium {
    border: 1px solid #b65cff;
    border-radius: 17px;
    overflow: hidden;
    background: #160c26;
    box-shadow:
        0 0 25px #952cff44,
        0 10px 30px #0006;
    transition: .3s;
}

.premium:hover {
    box-shadow: 0 0 40px #a64cff66;
}

.premium img {
    display: block;
    width: 100%;
    height: auto;
}

.premiuminfo {
    padding: 17px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--muted);
}

.premiuminfo .button {
    display: block;
    text-align: center;
    width: 100%;
}

/* =========================
   ACCUEIL ET CARROUSEL
========================= */

.hero {
    position: relative;
    padding: 38px;
    min-height: 275px;
    background:
        linear-gradient(90deg, #160a27eb, #260c3e70),
        url(background.png) center / cover;
    overflow: hidden;
    box-shadow: 0 8px 35px #0005;
}

.eyebrow {
    color: #ca8eff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero h1 {
    font-size: clamp(27px, 4vw, 48px);
    margin: 14px 0;
    line-height: 1.1;
    text-shadow: 0 3px 15px #0009;
}

.hero p {
    color: #dcc5fa;
    line-height: 1.6;
}

.slide:not(:first-of-type) {
    display: none;
}

.dots {
    display: flex;
    gap: 9px;
    margin-top: 24px;
}

.dots button {
    padding: 0;
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: #77539c;
}

.dots button.selected {
    background: #e0b5ff;
    box-shadow: 0 0 12px #c17aff;
}

/* =========================
   CATALOGUE DE JEUX
========================= */

.sectionhead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
}

.sectionhead span,
small {
    color: var(--muted);
}

.games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.game {
    overflow: hidden;
    transition: .3s;
    box-shadow: 0 8px 25px #0005;
}

.game:hover {
    transform: translateY(-6px);
    border-color: #b26cff;
    box-shadow: 0 10px 30px #8c32e338;
}

.game > a {
    display: block;
    overflow: hidden;
    background: #201033;
}

.game > a img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .4s;
}

.game:hover > a img {
    transform: scale(1.07);
}

.gamebody {
    padding: 16px;
}

.gameheading {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.gameheading h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 750;
}

.gamebody p {
    min-height: 42px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.gamebody .button {
    text-align: center;
    width: 100%;
}

/* =========================
   FAVORIS COEUR ROUGE
========================= */

.heart {
    background: transparent;
    border: 0;
    font-size: 28px;
    padding: 3px;
    color: #b5a7c9;
    line-height: 1;
    box-shadow: none;
    transition: .2s;
}

.heart:hover {
    color: #ff365b;
    transform: scale(1.18);
    box-shadow: none;
}

.heart.liked {
    color: #ff365b;
    filter: drop-shadow(0 0 7px #ff365b80);
    animation: heartbeat .35s ease;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* =========================
   PROFIL DISCORD
========================= */

.profile {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 7px 12px;
    background: #21132f;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.profile img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #a966ff;
}

/* =========================
   FORMULAIRES ET ADMIN
========================= */

input,
textarea,
select {
    font: inherit;
    border: 1px solid #614279;
    background: #120b1f;
    color: white;
    padding: 12px;
    border-radius: 9px;
    max-width: 100%;
    transition: .2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #b975ff;
    box-shadow: 0 0 0 3px #a966ff20;
}

input::placeholder,
textarea::placeholder {
    color: #897a9f;
}

textarea {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

input[type="file"] {
    padding: 8px;
}

input[type="file"]::file-selector-button {
    background: #7634c0;
    border: 0;
    color: white;
    padding: 10px 13px;
    border-radius: 6px;
    margin-right: 10px;
    cursor: pointer;
}

details {
    padding: 18px;
    margin: 14px 0;
}

summary {
    cursor: pointer;
    font-weight: 750;
    color: #d5adff;
}

details form,
main > form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin: 14px 0;
}

details form input:not([type=checkbox]),
details form select {
    flex: 1;
    min-width: 140px;
}

.danger {
    background: linear-gradient(135deg, #8b2446, #b82d53);
    border-color: #ff527844;
}

.danger:hover {
    box-shadow: 0 0 20px #ff365b33;
}

/* =========================
   MESSAGES D'ERREUR
========================= */

.error {
    padding: 15px 18px;
    margin: 12px 0;
    background: #321543;
    border: 1px solid #ad62ff;
    border-left: 4px solid #c084fc;
    color: #ead5ff;
    border-radius: 10px;
    box-shadow: 0 0 15px #a966ff20;
}

.error::before {
    content: "⚠ ";
    color: #c084fc;
    font-weight: bold;
}

/* =========================
   STATISTIQUES
========================= */

.stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stats b {
    padding: 23px;
    flex: 1;
    min-width: 130px;
    background: linear-gradient(135deg, #211331, #150d23);
    color: #dfbaff;
}

/* =========================
   PAGE DETAIL DU JEU
========================= */

.detailcover {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #140c22;
    border: 1px solid var(--line);
    border-radius: 14px;
}

/* =========================
   PIED DE PAGE
========================= */

footer {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    background: #100919b3;
    border-top: 1px solid var(--line);
}

footer a {
    text-decoration: underline;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 145px minmax(0, 1fr);
    }

    .right {
        grid-column: 2;
        max-width: 260px;
    }

    .search {
        margin-left: 0;
    }
}

@media (max-width: 700px) {
    header {
        position: static;
        gap: 12px;
        padding: 12px;
    }

    .brand {
        font-size: 20px;
    }

    nav {
        gap: 13px;
        font-size: 13px;
    }

    .search {
        width: 100%;
    }

    .search input,
    .search input:focus {
        width: 100%;
    }

    .layout {
        display: block;
        margin: 14px auto;
        padding: 0 12px;
    }

    aside:not(.right) {
        display: flex;
        overflow: auto;
        gap: 8px;
        margin-bottom: 15px;
        white-space: nowrap;
    }

    aside h3 {
        display: none;
    }

    .hero {
        padding: 23px;
        min-height: 220px;
    }

    .games {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 12px;
    }

    .gamebody {
        padding: 11px;
    }

    .right {
        margin: 25px auto;
    }

    .sectionhead {
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}
