@font-face {
    font-family: 'Netease Venus';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/NeteaseVenus-Italic.ttf') format('truetype');
    unicode-range: U+0020-007E, U+00A0-017F, U+0192, U+01FA-01FF, U+02C6-02C7, U+02C9, U+02D8-02DD, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03CE, U+0401-040C, U+040E-044F, U+0451-045C, U+045E-045F, U+0490-0491, U+1E80-1E85, U+1EF2-1EF3, U+2013-2015, U+2017-201E, U+2020-2022, U+2026, U+2030, U+2032-2033, U+2039-203A, U+203C, U+203E, U+2044, U+207F, U+20A3-20A4, U+20A7, U+20AC, U+2105, U+2113, U+2116, U+2122, U+2126, U+212E, U+215B-215E, U+2190-2195, U+21A8, U+2202, U+2206, U+220F, U+2211-2212, U+2215, U+2219-221A, U+221E-221F, U+2229, U+222B, U+2248, U+2260-2261, U+2264-2265, U+2302, U+2310, U+2320-2321, U+2500, U+2502, U+250C, U+2510, U+2514, U+2518, U+251C, U+2524, U+252C, U+2534, U+253C, U+2550-256C, U+2580, U+2584, U+2588, U+258C, U+2590-2593, U+25A0-25A1, U+25AA-25AC, U+25B2, U+25BA, U+25BC, U+25C4, U+25CA-25CB, U+25CF, U+25D8-25D9, U+25E6, U+263A-263C, U+2640, U+2642, U+2660, U+2663, U+2665-2666, U+266A-266B, U+4E07, U+F001-F006, U+FB01-FB02;
}

:root {
    /* Light theme variables */
    --primary-gradient-light: linear-gradient(135deg, #f0f8ff 0%, #87ceeb 100%);
    --glass-bg-light: rgba(255, 255, 255, 0.9);
    --glass-border-light: rgba(0, 0, 0, 0.2);
    --text-color-light: #1a1a1a;
    --card-bg-light: rgba(255, 255, 255, 0.95);
    --card-text-light: #2c3e50;

    /* Dark theme variables */
    --primary-gradient-dark: linear-gradient(135deg, #0a3d62 0%, #3498db 100%);
    --glass-bg-dark: rgba(255, 255, 255, 0.1);
    --glass-border-dark: rgba(255, 255, 255, 0.2);
    --text-color-dark: #ffffff;
    --card-bg-dark: rgba(0, 0, 0, 0.2);

    /* Default theme (dark) */
    --primary-gradient: var(--primary-gradient-dark);
    --glass-bg: var(--glass-bg-dark);
    --glass-border: var(--glass-border-dark);
    --text-color: var(--text-color-dark);
    --card-bg: var(--card-bg-dark);
}

/* Light theme class */
body.light-theme {
    --primary-gradient: var(--primary-gradient-light);
    --glass-bg: var(--glass-bg-light);
    --glass-border: var(--glass-border-light);
    --text-color: var(--text-color-light);
    --card-bg: var(--card-bg-light);
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Masque la barre de défilement horizontale */
    overflow-y: auto;   /* Autorise la barre de défilement verticale si nécessaire */
    background: var(--primary-gradient);
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, HelveticaNeue, Helvetica, "BBAlpha Sans", sans-serif;
    color: var(--text-color);
}

/* Theme toggle button styles */
.theme-toggle {
    background: none;
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    background: var(--glass-bg);
}

.theme-toggle i {
    font-size: 1.2rem;
}

.navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    font-size: 25px;
    z-index: 1;
}

.navbar-brand {
    font-size: 2.5rem;
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(52, 152, 219, 0.3);
}

.container-fluid {
    font-family: 'Netease Venus', sans-serif;
}

.first-view-home {
    position: relative;
    height: 100%; /* Ajoutez la hauteur souhaitée */
    width: 80%; /* Ajoutez la largeur souhaitée */
    margin: auto; /* Centre la section horizontalement */
    border-radius: 15px; /* Ajoute des coins arrondis */
    overflow: hidden; /* Masque le contenu qui pourrait déborder */
}

.first-view-home img {
    object-fit: cover; /* Ajuste la taille de l'image pour couvrir la div */
    width: 100%;
    height: 100%;
}

.background-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translate(-50%, -50%);
    font-size: 10em; /* Taille du texte */
    color: rgba(255, 255, 255, 0.5); /* Couleur du texte avec une opacité */
    text-align: center;
    z-index: -1; /* Place le texte sous la section */
    font-family: 'Netease Venus', sans-serif;
}

.text-adventure {
    font-family: 'Netease Venus', sans-serif;
    font-size: 3.5em; /* Taille du texte */
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
}
.horizontal-cards {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrer les cartes */
    gap: 20px;
    padding: 0 20px; /* Espacement sur les côtés */
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center; /* Aligne les éléments verticalement au centre */
    justify-content: space-between; /* Espace entre l'image et le texte */
    width: 95%; /* Les cartes prennent 95% de la largeur disponible */
    max-width: 1500px; /* Limite maximale pour écrans très larges */
    padding: 30px; /* Espacement interne accru */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre subtile pour effet de profondeur */
    margin: 0 auto; /* Centre les cartes dans la section */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    border-radius: 15px; /* Coins arrondis */
    width: 400px; /* Largeur augmentée pour les images */
    height: 300px; /* Hauteur proportionnelle à la largeur */
    object-fit: cover; /* Assure que l'image est bien cadrée */
}

.card.horizontal-card {
    flex-direction: row; /* Disposition horizontale */
}

.card.horizontal-card.reverse {
    flex-direction: row-reverse; /* Inverse l'ordre image/texte */
}

.card-content {
    flex: 1; /* Prend l'espace restant pour le texte */
    text-align: left; /* Aligne le texte à gauche */
    font-family: 'Netease Venus', sans-serif;
    color: var(--text-color); /* Texte en blanc pour contraster avec l'arrière-plan */
    margin: 0 20px; /* Espacement entre l'image et le texte */
}

.card-content h3 {
    margin-bottom: 15px; /* Espacement sous le titre */
    font-size: 2.5em; /* Taille augmentée pour le titre */
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-content p {
    font-size: 1.2em; /* Texte plus grand pour être lisible */
    line-height: 1.6; /* Meilleure lisibilité */
    color: rgba(255, 255, 255, 0.9);
}
.horizontal-cards .card:nth-child(2) {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    flex-direction: row-reverse;
}


@media screen and (max-width: 768px) {
    .card {
        flex-direction: column;

        display: block; /* Passe de flex à block pour forcer un empilement vertical */
        width: 100%; /* La carte prend toute la largeur */
        padding: 20px; /* Ajoute un espacement interne */
        text-align: center; /* Centre tous les éléments horizontalement */
    }

    .card img {
        display: block; /* Force l'image à être un élément bloquant */
        width: 100%; /* L'image occupe toute la largeur */
        height: auto; /* Ajuste automatiquement la hauteur pour garder les proportions */
        margin-bottom: 15px; /* Ajoute un espace sous l'image */
    }

    .card-content {
        display: block; /* S'assure que le contenu est empilé correctement */
        width: 100%; /* Le texte prend toute la largeur de la carte */
        text-align: center; /* Centre le texte sous l'image */
        margin: 0; /* Supprime tout espacement latéral inutile */
    }

    .card-content h2 {
        font-size: 1.8em; /* Taille ajustée pour les titres sur mobile */
        margin-bottom: 10px; /* Ajoute un espace sous le titre */
    }

    .card-content p {
        font-size: 1.2em; /* Ajuste légèrement la taille du texte */
        line-height: 1.5; /* Espacement entre les lignes pour la lisibilité */
        margin: 0; /* Supprime tout espacement inutile */
    }

    /* Correction spécifique pour la deuxième carte */
    .horizontal-cards .card:nth-child(2) {
        display: block; /* Force un empilement vertical */
        width: 100%; /* La carte prend toute la largeur */
        padding: 20px; /* Espacement interne */
        text-align: center; /* Centre tous les éléments horizontalement */
    }

    .horizontal-cards .card:nth-child(2) img {
        display: block; /* Force l'image à être un élément bloquant */
        width: 100%; /* L'image occupe toute la largeur disponible */
        height: auto; /* Ajuste automatiquement la hauteur */
        margin-bottom: 15px; /* Espace sous l'image */
    }

    .horizontal-cards .card:nth-child(2) .card-content {
        display: block; /* Force le texte à s'empiler correctement */
        width: 100%; /* Le texte prend toute la largeur */
        text-align: center; /* Centre le texte */
        margin: 0; /* Supprime les marges latérales */
    }

    .horizontal-cards .card:nth-child(2) .card-content h2 {
        font-size: 1.8em; /* Ajuste la taille des titres pour mobile */
        margin-bottom: 10px; /* Ajoute un espace sous le titre */
    }

    .horizontal-cards .card:nth-child(2) .card-content p {
        font-size: 1.2em; /* Ajuste légèrement la taille du texte */
        line-height: 1.5; /* Ajoute de l'espacement entre les lignes */
        margin: 0; /* Supprime les marges inutiles */
    }

    .navbar-brand {
        font-size: 2rem;
    }

    .text-adventure {
        font-size: 2.5em;
    }
}

/* Light theme specific styles */
body.light-theme .card-content p {
    color: var(--text-color-light);
}

body.light-theme .card {
    background: var(--card-bg-light);
    color: var(--text-color-light);
}

body.light-theme .navbar {
    background: var(--glass-bg-light);
}

body.light-theme .download {
    background: var(--glass-bg-light);
    border-color: var(--glass-border-light);
}

body.light-theme .download .fa,
body.light-theme .df,
body.light-theme .dfn {
    color: var(--text-color-light);
}

body.light-theme .card-content h3 {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .text-adventure {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .navbar-brand {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Autres styles complémentaires */

li {
    display: inline-block;
    margin: 10px;
    font-family: 'Netease Venus', sans-serif;
}

.download {
    width: 200px;
    height: 75px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    float: left;
    border-radius: 5px;
    position: relative;
    color: var(--text-color);
    cursor: pointer;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.download>.fa {
    color: var(--text-color);
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
}

.download>a {
    color: var(--text-color);
    text-decoration: none;
}

.df,
.dfn {
    font-family: 'Netease Venus', sans-serif;

    position: absolute;
    left: 70px;
}

.df {
    font-family: 'Netease Venus', sans-serif;

    top: 20px;
    font-size: .68em;
}

.dfn {
    top: 33px;
    font-size: 1.08em;
}

.download:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.swiper-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.swiper-progress-bar-inner {
    height: 100%;
    width: 0;
    background-color: #007aff;
}

.breathing-animation {
    animation: breathing 3s ease-in-out infinite;
}

@keyframes breathing {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.disable-cursor:hover {
    cursor: none;
}
.beautiful-section {
    padding: 50px 20px;
    background-color: #f9f9f9;
    border-radius: 15px;
    margin: 20px 0;
}

.beautiful-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    font-family: 'Arial', sans-serif;
}

.beautiful-text {
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .beautiful-title {
        font-size: 2em;
    }

    .beautiful-text {
        font-size: 1em;
    }
    
    footer {
        margin-top: 2rem !important;
        padding: 2rem 1rem !important;
    }
    
    footer h3 {
        font-size: 1.5rem;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .beautiful-title {
        font-size: 1.5em;
    }

    .beautiful-text {
        font-size: 0.9em;
    }
    
    footer h3 {
        font-size: 1.3rem;
    }
}

/* Modern scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* locomotive scrollbar */
.c-scrollbar{
    z-index: 10000;
}

/* Navigation improvements */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Swiper container improvements */
.swiper-container {
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.swiper-slide img {
    transition: transform 0.3s ease;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(10, 61, 98, 0.1) 0%, rgba(4, 124, 190, 0.4) 100%);
    pointer-events: none;
    z-index: -1;
}

/* Swiper pagination bullet adjustments for better touch targets */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0 6px !important;
    opacity: 0.7;
}

.gamelogo {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--swiper-pagination-color, var(--swiper-theme-color)); /* Ensure active bullet is clearly visible */
}

/* Footer styles */
footer {
    position: relative;
    z-index: 10;
    margin-top: 3rem;
    font-family: 'Netease Venus', sans-serif;
}

footer h3 {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(45deg, #fff, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-family: 'Netease Venus', sans-serif;
}

footer p, footer li, footer a {
    font-family: 'Netease Venus', sans-serif;
}

footer a {
    transition: all 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

body.light-theme footer h3 {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.yt-responsive-container {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 15px;
    overflow: hidden;
}

.yt-responsive-content, .yt-responsive-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.yt-thumb {
    width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7);
}

.yt-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
}

@media (max-width: 800px) {
    .yt-responsive-container { max-width: 100vw; }
}

#yt-lite-placeholder{
    cursor: pointer;
}