@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');



.container{
    background-color: black;
    margin-top: 100px;
}

.content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 100px;
    gap: 50px;
    flex-wrap: wrap; /* Permet le passage à la ligne sur mobile */
}

.example-wrapper {
    flex: 1; /* Prend l'espace disponible */
    min-width: 300px; /* Largeur minimale avant de passer en dessous */
}

.titre{
    font-family: 'Oswald', sans-serif;
    font-size: 80px;
    margin-top: 50px;
}

hr{
    width: 100%;
    border: 1px solid white;
}

.introduction-text{
    max-width: 900px;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    font-size: 30px;
    margin: 60px 0;
}

.poppy-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

/* Conteneur principal */
.menu-container {
    margin-top: 200px;
    display: flex;
    gap: 20px; /* Espace entre les deux cartes */
    padding: 0 50px;
    justify-content: center;

}

/* La carte (forme inclinée) */
.card {
    position: relative;
    width: 670px;
    height: 330px;
    background-color: #1e1e1e;
    overflow: hidden; /* Coupe ce qui dépasse */

    /* C'est ici que la magie opère : on incline le conteneur */
    transform: skewX(-20deg);

    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #000000;
    cursor: pointer;
}

/* Effet de survol sur la carte */
.card:hover {
    border-color: #c8aa6e; /* Couleur dorée LoL au survol */
    transform: skewX(-20deg) translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* L'image de fond */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center -20%;
    /* IMPORTANT : On inverse l'inclinaison pour que l'image reste droite.
       On ajoute scale(1.2) pour éviter les bords vides créés par l'inclinaison */
    transform: skewX(20deg) scale(1.2);
    transition: transform 0.5s ease;

}

/* Zoom sur l'image au survol */
.card:hover .card-bg {
    transform: skewX(20deg) scale(1.3);
}

/* Dégradé sombre en bas pour rendre le texte lisible */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: skewX(20deg) scale(1.5); /* Même correction que l'image */
    pointer-events: none;
}

/* Le Texte */
.card-text {
    font-family: 'Oswald', sans-serif;
    position: absolute;
    bottom: 10px;
    left: 20px;
    z-index: 2;

    /* On inverse l'inclinaison pour le texte aussi */
    transform: skewX(20deg);
}

.card-text h2 {
    color: white;
    font-size: 3rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Styles spécifiques pour les images (j'utilise des placeholders ici) */
/* Remplace les URL par tes propres images de Zyra et Ornn */
.bg-joueurs {
    background-image: url('../imgs/Zyra.jpg');
}

.bg-statistique {
    background-image: url('../imgs/Gragas.jpg');
}

/* Éléments décoratifs gris sur les côtés (optionnel, pour coller à ton image) */
.deco-bar {
    height: 330px;
    width: 100px;

    /* Étape 1 : Une jolie couleur or de base, fixe. */
    background: linear-gradient(to bottom right, #b4965e, #e8cfa0, #9e834d);

    transform: skewX(-20deg);

    /* Important : needed pour contenir l'effet lumineux */
    position: relative;
    overflow: hidden;

    /* Déco */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #b4965e;
}

/* L'effet lumineux qui passe par-dessus */
.deco-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Point de départ : hors de l'écran à gauche */
    width: 100%;
    height: 100%;

    /* Étape 2 : Le dégradé est transparent sur les bords, brillant au milieu */
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 240, 0.1) 30%, /* Blanc cassé très léger */
        rgba(255, 255, 255, 0.6) 50%, /* Blanc brillant intense au centre */
        rgba(255, 255, 240, 0.1) 70%, /* Blanc cassé très léger */
        transparent 100%
    );

    /* On incline un peu le reflet dans le sens opposé pour un meilleur look */
    transform: skewX(10deg);

    /* Étape 3 : L'animation */
    animation: smoothShine 4s ease-in-out infinite;
}

/* L'animation : fait passer le reflet de gauche à droite */
@keyframes smoothShine {
    0% {
        left: -150%; /* Commence loin à gauche */
    }
    50%, 100% {
        left: 150%; /* Finit loin à droite */
        /* Le "50%, 100%" crée une petite pause entre deux passages */
    }
}


/* --- Conteneur du Tableau --- */
.leaderboard-container {
    width: 100%;
    max-width: 1000px;
    background-color: #111111;
    border: 1px solid #333;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    position: relative;
    align-items: center;
    margin: 100px auto;
    font-family: 'Roboto', sans-serif;

}

/* Petite barre dorée décorative en haut */
.leaderboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #7a6335, #c8aa6e, #7a6335);
}

/* --- Le Tableau --- */
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

/* En-têtes (Header) */
thead tr {
    background-color: #1e1e1e;
    border-bottom: 2px solid #333;
}

th {
    padding: 15px 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 500;
}

/* Lignes du corps (Body) */
tbody tr {
    border-bottom: 1px solid #1a1a1a;
    transition: background-color 0.2s ease;
}

tbody tr:hover {
    background-color: #1a1a1a; /* Légèrement plus clair au survol */
}

td {
    padding: 15px 20px;
    vertical-align: middle;
}

/* --- Colonnes Spécifiques --- */

/* 1. Rang (#) */
.rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: #666;
    width: 50px;
    text-align: center;
}
/* Top 3 couleurs */
.rank-1 { color: #c8aa6e; text-shadow: 0 0 5px rgba(200, 170, 110, 0.5); } /* Or */
.rank-2 { color: #a8a8a8; } /* Argent */
.rank-3 { color: #cd7f32; } /* Bronze */

/* 2. Pseudo (Avec avatar) */
.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
}
.player-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #333;
    object-fit: cover;
}
.player-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
}

/* 3. Rang (Icône + Nom) */
.tier-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.tier-icon {
    width: 35px;
    height: 35px;
}
.tier-text {
    color: #c8aa6e; /* Couleur dorée LoL */
    font-size: 0.9rem;
}
.lp-text {
    color: #888;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* 4, 5, 6. Stats (Matchs, V, D) */
.stat-cell {
    font-size: 1rem;
    color: #ccc;
}
.win { color: #4facfe; } /* Bleu victoire */
.loss { color: #ff5e62; } /* Rouge défaite */

/* 7. Winrate (Barre de progression) */
.wr-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100px;
}
.wr-text {
    font-size: 0.9rem;
    font-weight: bold;
}
.wr-text.high { color: #00b09b; } /* Vert si bon WR */
.wr-text.low { color: #a8a8a8; } /* Gris si moyen */

.progress-bar-bg {
    width: 100%;
    height: 4px;
    background-color: #333;
    border-radius: 2px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00b09b, #96c93d); /* Dégradé vert */
}
