/* =========================
   IMPORT GOOGLE FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;600&display=swap');

/* =========================
   VARIABLES (IDENTITÉ)
========================= */
:root {
    --main: #FEBC31;
    --secondary: #FEC249;
    --accent: #FEBC31;
    --bg: #262626;
    --bg-dark: #1e1e1e;
    --bg-card: #1a1a1a;
    --text: #f5f5f5;
    --text-muted: #bdbdbd;
    --radius: 12px;
    --transition: 0.3s ease;
    --font-main: 'Rajdhani', sans-serif;
    --font-title: 'Bebas Neue', sans-serif;
    --team-color: #FEBC31;
    --accent-color: #FEBC31;
}

/* =========================
   RESET GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg);
    background-image: url('../images/pattern.png');
    background-repeat: repeat;
    background-size: 100px 100px;
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================
   LIENS
========================= */
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--main);
}

/* =========================
   HEADER / NAV
========================= */
header {
    position: sticky;
    top: 0;
    background: rgba(17, 17, 17, 0.7);
    backdrop-filter: blur(12px);
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--team-color);
    box-shadow: 0 0 20px rgba(254, 194, 73, 0.4);
    z-index: 1000;
    transition: 0.4s ease;
}

header .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--team-color);
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--accent-color);
}

header .logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    margin-left: 30px;
    font-weight: 500;
    position: relative;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: var(--main);
    transition: var(--transition);
}

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

/* =========================
   HERO IMMERSIF
========================= */
.hero {
    position: relative;
    height: 80vh;
    background: url('../images/fortnite-hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    transition: background 0.5s ease;
}

.hero:hover::before {
    background: rgba(0, 0, 0, 0.0);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease forwards;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    color: var(#262626);
    text-shadow: 0 0 10px var(--accent-color), 2px 2px 8px #000;
}

.hero p {
    font-family: var(--font-main);
    margin-top: 15px;
    font-size: 1.2rem;
    text-shadow: 1px 1px 6px #000;
}

.hero .btn {
    margin-top: 25px;
}

/* =========================
   SECTIONS
========================= */
.section {
    padding: 80px 60px;
    text-align: center;
}

.section h1,
.section h2 {
    font-family: var(--font-title);
    color: var(--main);
    margin-bottom: 25px;
    font-weight: 700;
    text-shadow: 0 0 1px var(--main), 0 0 1px var(--accent);
}

.section p {
    font-family: var(--font-main);
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto 20px auto;
}

/* =========================
   CARTES / FIL D'ACTUS / TOURNOIS
========================= */
.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.card {
    background: var(--bg-card);
    width: 280px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #000;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.card img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card h3 {
    font-family: var(--font-title);
    color: var(--secondary);
    margin: 15px 0 10px 0;
    text-shadow: 0 0 5px var(--accent);
}

.card p {
    font-family: var(--font-main);
    color: var(--text-muted);
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

/* =========================
   BOUTONS
========================= */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #000;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: var(--font-title);
}

.btn:hover {
    background: var(--main);
    transform: scale(1.05);
}

/* =========================
   RÉSEAUX
========================= */
.socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.social {
    padding: 18px 40px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--accent);
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: var(--font-title);
}

.social:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

/* =========================
   BANDEAU DÉFILANT
========================= */
.ticker-wrap {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    background: #111;
    border-top: 1px solid rgba(254, 188, 49, 0.3);
    border-bottom: 1px solid rgba(254, 188, 49, 0.3);
    padding: 8px 0;
    margin: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker {
    display: flex;
    width: max-content;
    animation: ticker-animation 25s linear infinite;
}

.ticker-item {
    font-family: var(--font-title);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--main);
    padding: 0 40px;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.ticker-item::after {
    content: "•";
    margin-left: 40px;
    color: var(--accent);
    opacity: 0.5;
}

@keyframes ticker-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================
   FOOTER
========================= */
footer {
    background: #111;
    padding: 30px;
    text-align: center;
    margin-top: 80px;
}

footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =========================
   PAGE JOUEUR
========================= */
.back-link {
    display: inline-block;
    margin: 20px 60px;
    color: var(--text-muted);
    font-weight: 500;
}

.back-link:hover {
    color: var(--main);
}

.player-hero {
    padding: 80px 60px;
    background: linear-gradient(135deg, #1a1a1a, #262626);
}

.player-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.player-img {
    width: 320px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(254, 188, 49, 0.4);
}

.player-text h1 {
    font-size: 3rem;
    color: var(--main);
}

.player-text p {
    color: var(--text-muted);
    margin: 10px 0;
}

.player-pr {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: var(--accent);
    color: #000;
    border-radius: 20px;
    font-weight: 700;
}

/* STATS */
.player-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 60px;
    flex-wrap: wrap;
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid #000;
    border-radius: 16px;
    padding: 30px 40px;
    text-align: center;
    min-width: 180px;
}

.stat-box span {
    color: var(--text-muted);
}

.stat-box strong {
    display: block;
    font-size: 2rem;
    color: var(--main);
    margin-top: 10px;
}

/* GRAPH */
.player-graph {
    padding: 80px 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(254, 188, 49, 0.2);
    border-radius: 20px;
}

.player-graph h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--main);
}

.chart-container {
    position: relative;
    height: 450px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.player-graph canvas {
    max-width: 100%;
    max-height: 100%;
}

/* RÉSEAUX JOUEUR */
.player-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 60px;
    flex-wrap: wrap;
}

.player-socials a {
    padding: 15px 35px;
    border-radius: 30px;
    background: var(--bg-card);
    border: 1px solid var(--accent);
    font-weight: 600;
    transition: all 0.3s ease;
}

.player-socials a:hover {
    background: var(--accent);
    color: #000;
    transform: scale(1.05);
}

/* =========================
   JOUEURS.HTML
========================= */
.joueurs-hero {
    background: linear-gradient(135deg, #1a1a1a, #262626);
}

.joueurs-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 40px;
}

.player-card {
    width: 340px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #000;
    transition: all 0.4s ease;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.player-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.player-card-info {
    padding: 20px;
    text-align: center;
}

.player-card-info h3 {
    color: var(--main);
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.player-card-info span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
}

.player-card-pr {
    margin-top: 15px;
    padding: 8px 16px;
    background: var(--accent);
    color: #000;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
}

.player-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 35px rgba(254, 188, 49, 0.5);
    border-color: var(--accent);
}





/* =========================
   STAFF
========================= */

.staff-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 0px;
}
.staff-card {
    width: 250px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    border: 1px solid #000;
    transition: all 0.4s ease;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.staff-card img {
    width: 100%;
    height: 65%;
    object-fit: cover;
}

.staff-card-info {
    padding: 20px;
    text-align: center;
}

.staff-card-info h3 {
    color: var(--main);
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.staff-card-info span {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
}

.staff-card-pr {
    margin-top: 15px;
    padding: 1px 16px;
    background: var(--accent);
    color: #000;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
}

.staff-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 0 35px rgba(254, 188, 49, 0.5);
    border-color: var(--accent);
}







/* =========================
   ANIMATIONS
========================= */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    header {
        padding: 20px 40px;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 30px;
    }
    .nav a {
        margin-left: 15px;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .cards {
        gap: 20px;
    }
    .player-hero-inner {
        flex-direction: column;
        text-align: center;
    }
    .player-img {
        width: 240px;
    }
    .player-stats {
        flex-direction: column;
        align-items: center;
    }
    .player-card {
        width: auto;
    }
    .section {
        padding: 60px 30px;
    }
    .player-graph {
        padding: 60px 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .cards {
        flex-direction: column;
        align-items: center;
    }
    .ticker-item {
        font-size: 1rem;
        padding: 0 20px;
        letter-spacing: 2px;
    }
}