/* --- STYLES COMMUNS (Idem) --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #ddd;
    line-height: 1.8;
}
a { text-decoration: none; color: #ff9800; }
a:hover { color: #fff; }

h1, h2, h3 { color: #fff; font-weight: 700; }

/* PAGE HEADER */
.page-header {
    padding: 40px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 100%);
}

/* FOOTER */
.custom-footer { background: linear-gradient(to bottom, #1a1a1a, #1a1a1a); color: rgba(255, 255, 255, 0.6); border-top: none !important; }
.footer-link { color: rgba(255,255,255,0.6); transition: 0.3s; }
.footer-link:hover { color: #ff9800; padding-left: 5px; }
/* --- NAVIGATION LINKS --- */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    opacity: 1;
    color: #ff9800 !important;
}
/* --- STYLES COMMUNS (Idem) --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #ddd;
    line-height: 1.8;
}
a { text-decoration: none; color: #ff9800; }
a:hover { color: #fff; }

h1, h2, h3 { color: #fff; font-weight: 700; }

/* PAGE HEADER */
.custom-footer {
    background: linear-gradient(to bottom, #1a1a1a, #1a1a1a);
    color: rgba(255, 255, 255, 0.6);
    border-top: none !important;
}

/* FOOTER */
.custom-footer { background: linear-gradient(to bottom, #1a1a1a, #1a1a1a); color: rgba(255, 255, 255, 0.6); border-top: none !important; }
.footer-link { color: rgba(255,255,255,0.6); transition: 0.3s; }
.footer-link:hover { color: #ff9800; padding-left: 5px; }
.page-header {
    padding: 40px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 100%);
}
/* --- NAVIGATION LINKS --- */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    opacity: 1;
    color: #ff9800 !important;
}
/* --- STYLES COMMUNS --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #000;
    color: #ddd; /* Texte légèrement gris pour le confort de lecture */
    line-height: 1.8;
}
a { text-decoration: none; color: #ff9800; }
a:hover { color: #fff; }

h1, h2, h3 { color: #fff; font-weight: 700; }

/* NAVBAR */
.navbar { background-color: #000; position: sticky; top: 0; z-index: 1000; padding: 15px 0; border-bottom: none !important; }
.navbar-brand img { height: 50px; width: auto; }
.nav-link { color: #fff !important; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 0 15px; opacity: 0.7; transition: 0.3s; }
.nav-link:hover { opacity: 1; color: #ff9800 !important; }
.navbar-social-icons a { color: #fff; margin-left: 20px; font-size: 1.1rem; opacity: 0.6; transition: 0.3s; }
.navbar-social-icons a:hover { opacity: 1; }

/* LOGO */
.Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC {
    vertical-align: middle;
    margin-left: 0em;
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 480px) {
    .Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC { height: 54px; }
}
@media only screen and (max-width: 700px) {
    .Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC { height: 61px; }
}

/* PAGE HEADER */
.page-header {
    padding: 40px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 100%);
}

/* FOOTER */
.custom-footer { background: linear-gradient(to bottom, #1a1a1a, #1a1a1a); color: rgba(255, 255, 255, 0.6); border-top: none !important; }
.footer-link { color: rgba(255,255,255,0.6); transition: 0.3s; }
.footer-link:hover { color: #ff9800; padding-left: 5px; }
/* --- NAVIGATION LINKS --- */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    opacity: 1;
    color: #ff9800 !important;
}
/* --- STYLES COMMUNS --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    background-color: #000;
    color: #fff;
}
a { text-decoration: none; }

/* NAVBAR (Modifiée) */

.navbar.scrolled {
    background-color: #000000 !important;
}

.navbar-social-icons a { color: #fff; margin-left: 20px; font-size: 1.1rem; opacity: 0.6; transition: 0.3s; }
.navbar-social-icons a:hover { opacity: 1; }

.navbar { background-color: #000; position: sticky; top: 0; z-index: 1000; padding: 15px 0; border-bottom: none !important; }
.navbar-brand img { height: 50px; width: auto; }

.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    opacity: 1;
    color: #ff9800 !important;
}

/* LOGO CLASSES SPÉCIFIQUES */
.Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC {
    vertical-align: middle;
    margin-left: 0em;
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 480px) {
    .Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC { height: 54px; }
}
@media only screen and (max-width: 700px) {
    .Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC { height: 61px; }
}

/* --- LEADERBOARD SPECIFIC --- */

/* PAGE HEADER (Modifié: Couleur + Alignement gauche) */
.page-header {
    padding: 40px 0 40px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 100%);
}

/* PODIUM */
.podium-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 20px;
    scale: 0.8;
}
.podium-place { text-align: center; position: relative; }
.podium-avatar {
    width: 80px; height: 80px; border-radius: 50%; border: 4px solid #333;
    margin-bottom: 15px; position: relative; z-index: 2;
    transition: transform 0.3s;
}
.podium-place:hover .podium-avatar { transform: scale(1.1); }

.p-1 .podium-avatar { width: 110px; height: 110px; border-color: #ffd700; box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
.p-2 .podium-avatar { border-color: #c0c0c0; box-shadow: 0 0 20px rgba(192, 192, 192, 0.3); }
.p-3 .podium-avatar { border-color: #cd7f32; box-shadow: 0 0 20px rgba(205, 127, 50, 0.3); }

.crown { position: absolute; top: -35px; left: 50%; transform: translateX(-50%); font-size: 2rem; color: #ffd700; animation: float 3s ease-in-out infinite; }

.rank-badge {
    background: #333; padding: 5px 15px; border-radius: 20px; font-weight: bold;
    margin-top: -10px; position: relative; z-index: 3; display: inline-block;
}
.p-1 .rank-badge { background: #ffd700; color: #000; }
.p-2 .rank-badge { background: #c0c0c0; color: #000; }
.p-3 .rank-badge { background: #cd7f32; color: #000; }

/* TABLEAU */
.table-custom {
    --bs-table-bg: #000;
    --bs-table-color: #ddd;
    --bs-table-hover-bg: #222;
    --bs-table-hover-color: #fff;
    border-color: #333;
    border-radius: 0px;
    overflow: hidden;
}

.table-custom thead th {
    border-bottom: 1px solid #444;
    text-transform: uppercase;
    padding: 20px;
    color: #ff9800;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
.table-custom tbody td { padding: 20px; vertical-align: middle; font-size: 1rem; transition: 0.2s; }

/* Hover Orange */
.table-hover tbody tr:hover td {
    color: #ff9800 !important;
}
.table-hover tbody tr:hover { background-color: rgba(255, 152, 0, 0.05); }

.user-cell { display: flex; align-items: center; gap: 15px; }
.user-cell img { width: 40px; height: 40px; border-radius: 50%; }

/* FILTRES */
.nav-pills .nav-link {
    background: rgba(255,255,255,0.1); color: #aaa; margin: 0 5px; border-radius: 30px; padding: 8px 25px; transition: 0.3s;
}
.nav-pills .nav-link.active { background: #ff9800; color: #000; }

/* Liste Déroulante Jeux */
.game-selector {
    color: #fff;
    border: 1px solid #444;
    padding: 10px 40px;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
}
.game-selector:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 152, 0, 0.25);
    border-color: #ff9800;
}

@keyframes float { 0% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-10px); } 100% { transform: translateX(-50%) translateY(0); } }

.footer-link { color: rgba(255,255,255,0.6); transition: 0.3s; }
.footer-link:hover { color: #ff9800; padding-left: 5px; }

/* FOOTER CUSTOM */
.custom-footer {
    background: linear-gradient(to bottom, #1a1a1a, #1a1a1a);
    color: rgba(255, 255, 255, 0.6);
    border-top: none !important;
}
.game-selector {
    background-color: transparent!important;
}

/* --- STYLES GÉNÉRAUX --- */
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    background-color: #000;
    scroll-behavior: auto !important;
}
a { text-decoration: none; }

/* --- NAVBAR STYLE "VOODOO" --- */

.navbar.scrolled {
    background-color: #000000 !important;
}

/* LOGO CLASSES SPÉCIFIQUES */
.Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC {
    vertical-align: middle;
    margin-left: 0em;
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

@media only screen and (max-width: 480px) {
    .Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC { height: 54px; }
}
@media only screen and (max-width: 700px) {
    .Header_header__CaCA9 .Header_chiffresgamesstudiosLogo__rIvGC { height: 61px; }
}

.navbar { background-color: #000; position: sticky; top: 0; z-index: 1000; padding: 15px 0; border-bottom: none !important; }
.navbar-brand img { height: 50px; width: auto; }

/* --- NAVIGATION LINKS --- */
.navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 15px;
    opacity: 0.7;
    transition: all 0.3s;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    opacity: 1;
    color: #ff9800 !important;
}

.navbar-social-icons { display: flex; align-items: center; }
.navbar-social-icons a { color: #fff; margin-left: 20px; font-size: 1.1rem; opacity: 0.6; transition: all 0.3s; }
.navbar-social-icons a:hover { opacity: 1; transform: translateY(-2px); }

/* --- HERO HEADER --- */
.hero-header {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    background-color: #000;
}

.video-background-holder {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}

.video-background-holder iframe {
    position: absolute; top: 50%; left: 50%;
    width: 300vw; height: 300vh;
    transform: translate(-50%, -50%);
    min-width: 100%; min-height: 100%;
}

.video-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative; z-index: 2; max-width: 1000px; padding: 20px; margin-top: 80px;
}

.hero-header h2 {
    font-size: 4rem; font-weight: 800; margin-bottom: 1.5rem; letter-spacing: -1px; text-transform: none;
}

.hero-header .lead {
    font-size: 1.5rem; font-weight: 300; opacity: 0.9; line-height: 1.6;
}

/* --- BANDE SUCRE D'ORGE --- */
@keyframes scroll-stripe {
    0% { background-position: 0 0; }
    100% { background-position: 420.5px 0; }
}
.candy-stripe {
    height: 18px; width: 100%;
    background: repeating-linear-gradient(45deg, #ff4081, #ff4081 15px, #ffffff 15px, #ffffff 30px);
    background-size: 42.05px 42.05px;
    animation: scroll-stripe 10.5s linear infinite;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative; z-index: 10;
}

/* --- SECTIONS JEUX --- */
.game-section { padding: 120px 0; position: relative; color: white; overflow: hidden; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px) rotate(2deg); } 100% { transform: translateY(0px); } }

.store-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.badge-link { display: inline-block; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.badge-link img { height: 50px; width: auto; }
.badge-link:hover { transform: scale(1.05) translateY(-5px); filter: brightness(1.2); }

/* Couleurs Thématiques */
.bg-game1 { background: radial-gradient(circle at top right, #2980b9, #2c3e50); }
.bg-game2 { background: radial-gradient(circle at top left, #8e44ad, #340c46); }

/* --- CLASSEMENTS (Leaderboards) --- */
.leaderboard-section {
    background: linear-gradient(180deg, #111 0%, #222 100%);
    padding: 120px 0;
    color: #fff;
}
.nav-pills .nav-link {
    color: #aaa; background-color: rgba(255,255,255,0.05); margin: 0 5px; border-radius: 30px; padding: 10px 25px; font-weight: 600; letter-spacing: 1px; transition: all 0.3s;
}
.nav-pills .nav-link.active, .nav-pills .nav-link:hover {
    background-color: #ff9800; color: #000; box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

/* Styles Tableau */
.table-dark-custom { --bs-table-bg: transparent; --bs-table-color: #e0e0e0; border-color: #333; }
.table-dark-custom th { border-bottom-width: 2px; color: #ff9800; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.table-dark-custom td, .table-dark-custom th { padding: 1.2rem 1rem; vertical-align: middle; transition: all 0.2s ease; }

/* --- HOVER TABLEAU MODIFIÉ (COULEUR ORANGE !IMPORTANT) --- */
.table-hover tbody tr:hover { background-color: rgba(255, 152, 0, 0.1); }
.table-hover tbody tr:hover td {
    color: #ff9800 !important;
}

.rank-medal { font-size: 1.4rem; margin-right: 5px; }
.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }
.player-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 15px; border: 2px solid #ff9800; }

/* --- ANIMATIONS --- */
.slide-in-left { opacity: 0; transform: translateX(-100px); transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.slide-in-right { opacity: 0; transform: translateX(100px); transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.fade-up { opacity: 0; transform: translateY(60px); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.active { opacity: 1; transform: translateX(0) translateY(0); }

/* --- STYLES CATÉGORIES (ROTATING BORDER + PADDING AJUSTÉ) --- */
#categories-section {
    padding-top: 128px;
    padding-bottom: 128px;
    background-color: #0a0a0a;
    color: #fff;
}

/* Définition des couleurs par variable */
.card-casual { --game-color: #0dcaf0; } /* Cyan */
.card-puzzle { --game-color: #d63384; } /* Rose */
.card-kids   { --game-color: #198754; } /* Vert */
.card-casino { --game-color: #fd7e14; } /* Orange */

.category-card {
    background-color: #1a1a1a;
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    z-index: 1;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    height: 100%;
}

.category-card::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: conic-gradient(transparent 20%, var(--game-color) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -2;
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #1a1a1a;
    border-radius: 17px;
    z-index: -1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px var(--game-color);
}

.category-card:hover::before {
    opacity: 1;
    animation: rotate-border 3s linear infinite;
}

.category-card .bi { color: var(--game-color); transition: 0.3s; }

@keyframes rotate-border {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Footer sans bordure top */
.custom-footer { background: linear-gradient(to bottom, #1a1a1a, #1a1a1a); color: rgba(255,255,255,0.6); border-top: none !important; }
.footer-link { color: rgba(255,255,255,0.6); text-decoration: none; transition: 0.3s; }
.footer-link:hover { color: #ff9800; padding-left: 5px; }

/* Liste Déroulante Jeux (SELECT) */
.game-selector {
    background-color: #161616;
    color: #fff;
    border: 1px solid #444;
    padding: 10px 40px;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
}
.game-selector:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 152, 0, 0.25);
    border-color: #ff9800;
}

.image-box img {
    max-width: 400px;
    animation: float 5s ease-in-out infinite;
    border: none;
    background-color: transparent !important;
}
@media only screen and (max-width: 480px) {
    .game-section {
        padding: 120px 0 0;
        position: relative;
        color: white;
        overflow: hidden;
        height: 1000px;
    }
}
@media only screen and (max-width: 1024px) {
    .game-section {
        padding: 120px 0 0;
        position: relative;
        color: white;
        overflow: hidden;
        height: 1000px;
    }
}