/* ==========================================================================
   Gaming Hub — Dark Neon x Gold Legacy
   ========================================================================== */

@font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
}
@font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-Medium.ttf') format('truetype');
    font-weight: 500;
}
@font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
}
@font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-Black.ttf') format('truetype');
    font-weight: 900;
}

/* ------------------------------ Design tokens ------------------------------ */
:root {
    --bg-0: #101020;
    --bg-1: #1b1b30;
    --panel: #1c1c34;
    --panel-alt: #171728;

    --gold: #c9a84c;
    --gold-bright: #ecd48f;
    --gold-soft: #f3e6bf;
    --gold-dim: #8a6f2e;
    --gold-line: rgba(201, 168, 76, 0.28);
    --gold-glow: rgba(201, 168, 76, 0.35);

    --ink: #f6f4ee;
    --ink-muted: #bcb9cf;
    --ink-faint: #85829c;

    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 10px;

    --shadow-card: 0 20px 45px -18px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(201, 168, 76, 0.05);
    --shadow-card-hover: 0 28px 60px -18px rgba(0, 0, 0, 0.7), 0 0 40px -10px var(--gold-glow);

    --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
    --speed: 0.45s;
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
}
h1, h2, h3, p {
    margin: 0;
}
a {
    color: inherit;
}
::selection {
    background: var(--gold);
    color: #1a1400;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dim);
    border-radius: 10px;
}

/* ---------------------------------- Body ---------------------------------- */
body {
    background:
        radial-gradient(1200px 600px at 15% -10%, rgba(201, 168, 76, 0.08), transparent 60%),
        radial-gradient(900px 500px at 100% 0%, rgba(201, 168, 76, 0.05), transparent 55%),
        linear-gradient(180deg, var(--bg-0), var(--bg-1) 45%, #24243f 100%);
    background-attachment: fixed;
    color: var(--ink);
    font-family: 'Orbitron', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 96px;
    line-height: 1.6;
}
main {
    flex: 1;
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 26, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--gold-line);
}
header div {
    display: flex;
}
header div:first-child {
    align-items: center;
    padding: 10px 24px;
    gap: 14px;
}
header div:nth-child(2) {
    justify-content: flex-end;
    align-items: center;
    flex: 1;
    gap: 20px;
    padding-right: 30px;
}
header a {
    display: flex;
    align-items: center;
    text-decoration: none;
}
header img {
    filter: drop-shadow(0 0 10px var(--gold-glow));
    transition: transform var(--speed) var(--ease);
}
header a:hover img {
    transform: rotate(-4deg) scale(1.05);
}
header h1 {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff, var(--gold-bright));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

header nav a, .network a {
    color: var(--gold-bright);
    background: rgba(201, 168, 76, 0.08);
    text-decoration: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-line);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    transition: transform var(--speed) var(--ease), background var(--speed) var(--ease), color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
header nav a:hover, .network a:hover {
    color: #1a1400;
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px -8px var(--gold-glow);
}

.burger-toggle {
    display: none;
}
.burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
}
.burger span {
    display: block;
    width: 26px;
    height: 2px;
    background: var(--gold);
    border-radius: 3px;
    transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.burger-toggle:checked ~ .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.burger-toggle:checked ~ .burger span:nth-child(2) {
    opacity: 0;
}
.burger-toggle:checked ~ .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   Section headers (.Top)
   ========================================================================== */
.Top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
    margin: 50px auto 10px;
    padding: 0 20px;
    text-align: center;
}
.Top h1, .Top h2 {
    position: relative;
    color: var(--ink);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    padding-bottom: 22px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--gold-line);
}
.Top h1::after, .Top h2::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.Top h3 {
    color: var(--gold-bright);
    font-weight: 400;
    letter-spacing: 0.03em;
    padding-top: 18px;
    font-size: 0.95rem;
}

/* ==========================================================================
   Featured highlight (.Accueil)
   ========================================================================== */
.Accueil {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin: 60px auto;
    max-width: 1100px;
    padding: 20px 50px;
    background: linear-gradient(135deg, var(--panel), var(--panel-alt));
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.Accueil:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}
.Accueil div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 30px 0;
}
.Accueil div p {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    font-weight: 700;
}
.Accueil div h2 {
    color: var(--ink);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
}
.Accueil div h3 {
    color: var(--gold-bright);
    font-weight: 500;
    font-size: 1.05rem;
}
.Accueil div h3:last-of-type {
    color: var(--ink-muted);
    font-weight: 400;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.Accueil div a {
    margin-top: 10px;
    padding: 14px 34px;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    border: none;
    color: #1a1400;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.Accueil a:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 30px -10px var(--gold-glow);
}
.Accueil img {
    border-radius: var(--radius-md);
    max-height: 260px;
    width: auto;
    align-self: center;
    border: 1px solid var(--gold-line);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

/* ==========================================================================
   Generic panel (.Game) — used for grids, tips, bio blocks, forms, etc.
   ========================================================================== */
.Game {
    margin: 50px auto;
    max-width: 1200px;
    padding: 40px clamp(20px, 5vw, 50px);
    background: var(--panel);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.Game:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
}
.Game > p {
    color: var(--gold);
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}
.Game h2 {
    color: var(--ink);
    text-align: center;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 700;
}
.Game h3 {
    text-align: center;
    color: var(--gold-bright);
    font-weight: 400;
    font-size: 1rem;
    margin-top: 4px;
    margin-bottom: 20px;
}
.Game div > p {
    text-align: right;
    color: var(--gold-dim);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 10px;
}
.Game p {
    color: var(--ink-muted);
}

/* Card grid used for game tiles / news tiles */
.Game section:not(.contact),
.Game article:not(.contact) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    padding-top: 30px;
    margin-top: 20px;
    border-top: 1px solid var(--gold-line);
}
.Game section:not(.contact) > div,
.Game article:not(.contact) > div {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
    box-shadow: 0 10px 25px -14px rgba(0, 0, 0, 0.6);
}
.Game section > div:hover,
.Game article > div:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px -14px var(--gold-glow);
}
.Game section > div img,
.Game article > div img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}
.Game section > div h2,
.Game article > div h2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 34px 16px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.92));
    color: #fff;
    text-align: left;
    font-size: 1.05rem;
    font-weight: 700;
}
.Game section > div a,
.Game article > div a {
    display: block;
    text-decoration: none;
}

/* ==========================================================================
   Detail page hero (.TopGame)
   ========================================================================== */
.TopGame {
    position: relative;
    isolation: isolate;
}
.TopGame img {
    display: block;
    width: 100%;
    height: clamp(260px, 45vw, 520px);
    object-fit: cover;
}
.TopGame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgba(8, 8, 16, 0.95));
    z-index: 1;
}
.TopGame h1, .TopGame h2 {
    position: absolute;
    bottom: 64px;
    left: 0;
    right: 0;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #fff;
    font-size: clamp(1.4rem, 4vw, 2.4rem);
    font-weight: 900;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gold-line);
    width: fit-content;
    padding-left: 10px;
    padding-right: 10px;
}
.TopGame p {
    position: absolute;
    bottom: 26px;
    left: 0;
    right: 0;
    z-index: 2;
    text-align: center;
    color: var(--gold-bright);
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

/* ==========================================================================
   Rating badge (.Note)
   ========================================================================== */
.Note {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 130px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(201, 168, 76, 0.18), var(--panel-alt));
    border: 1px solid var(--gold);
    box-shadow: 0 0 30px -6px var(--gold-glow), inset 0 0 20px rgba(201, 168, 76, 0.08);
}
.Note h2 {
    color: var(--gold);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 700;
}
.Note h3 {
    color: var(--ink);
    font-size: 1.3rem;
    font-weight: 900;
}

/* ==========================================================================
   Reviews (.avis)
   ========================================================================== */
.avis {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px 22px 22px;
    background: var(--panel-alt);
    border: 1px solid var(--gold-line);
    border-radius: var(--radius-md);
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.avis:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--gold);
}
.avis h3 {
    color: var(--gold);
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
}
.Game .avis p {
    padding: 0;
    text-align: left;
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.avis p::before {
    content: '\201C';
    color: var(--gold-dim);
    font-size: 1.4rem;
    margin-right: 2px;
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}
.section .Game {
    width: auto;
    margin: 0;
}
label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--gold-bright);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
input, textarea {
    background: var(--panel-alt);
    color: var(--ink);
    border-radius: var(--radius-sm);
    border: 1px solid var(--gold-dim);
    min-height: 44px;
    width: 100%;
    padding: 10px 14px;
    font-family: 'Orbitron', sans-serif;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
textarea {
    min-height: 120px;
    resize: vertical;
}
input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.18);
}
input::placeholder, textarea::placeholder {
    font-family: 'Orbitron', sans-serif;
    color: var(--ink-faint);
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}
.send-btn {
    align-self: center;
    width: 60%;
    min-height: 48px;
    border: none;
    border-radius: var(--radius-sm);
    color: #1a1400;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.send-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px -10px var(--gold-glow);
}
.network {
    margin-top: 20px;
}
.network ul {
    flex-direction: column;
    gap: 14px;
    width: 100%;
}
.network li {
    width: 100%;
}
.network a {
    width: 100%;
    justify-content: center;
}

/* ==========================================================================
   A propos
   ========================================================================== */
.propos {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    align-items: center;
    gap: 20px;
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
}
.propos .Game {
    margin: 0;
}
.propos .Game:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.propos .Game p {
    letter-spacing: 0.01em;
    line-height: 1.9;
    color: var(--ink-muted);
}
.propos .Game p strong {
    color: var(--gold-bright);
}
.propos img {
    border-radius: var(--radius-md);
    border: 1px solid var(--gold-line);
}

.qualite {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    text-align: center;
}
.qualite h1, .qualite h2 {
    color: var(--ink);
    font-size: clamp(1.4rem, 3vw, 2rem);
    padding-bottom: 20px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--gold-line);
}
.qualite section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}
.qualite section .Game {
    margin: 0;
    padding: 24px;
}
.qualite h3 {
    color: var(--gold-bright);
    font-weight: 700;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 30px 20px;
    font-size: 0.8rem;
    background: var(--panel-alt);
    border-top: 1px solid var(--gold-line);
}
footer nav ul {
    justify-content: center;
    gap: 6px;
}
footer a {
    text-decoration: none;
    color: var(--ink-muted);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: color var(--speed) var(--ease), background var(--speed) var(--ease);
}
footer a:hover {
    color: var(--gold-bright);
    background: rgba(201, 168, 76, 0.08);
}
footer p {
    color: var(--ink-faint);
}

/* ==========================================================================
   Nav list reset
   ========================================================================== */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
nav li {
    display: flex;
}
header nav ul {
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Motion accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}

/* ==========================================================================
   Responsive — tablet & below
   ========================================================================== */
@media (max-width: 860px) {
    .Accueil {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    .Accueil div {
        align-items: center;
    }
    .propos {
        grid-template-columns: 1fr;
    }
    .propos .Game:first-child img {
        max-width: 220px;
        margin: 0 auto;
    }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */
@media (max-width: 640px) {
    body {
        padding-top: 76px;
    }
    header {
        flex-wrap: wrap;
    }
    header div:nth-child(2) {
        padding-right: 14px;
    }
    .burger {
        display: flex;
    }
    header nav {
        flex-basis: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height var(--speed) var(--ease), opacity var(--speed) var(--ease);
    }
    header nav ul {
        flex-direction: column;
        padding: 10px 20px 20px;
        gap: 10px;
    }
    header nav a {
        display: block;
        text-align: center;
    }
    .burger-toggle:checked ~ nav {
        max-height: 260px;
        opacity: 1;
    }

    .Top {
        margin: 30px auto 0;
    }
    .Game {
        margin: 30px auto;
        padding: 26px 18px;
    }
    .send-btn {
        width: 100%;
    }
}
