/* =======================
   BASE & TYPOGRAPHIE
   ======================= */
body, .navbar, .navbar-title, .nav-link, .Title, .download_button, .discord_button, .foot {
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

body {
    position: relative;
    min-height: 100vh;
    overflow: auto;
    user-select: none;
}

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
}

body.home-page {
    padding-bottom: 75vh;
}

/* =======================
   FOND FLOU
   ======================= */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../image/fond_casino.png');
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: 0;
    pointer-events: none;
}

/* =======================
   NAVBAR
   ======================= */
.navbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 60px;
    background: rgba(30, 30, 30, 0.85);
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-side.left { justify-content: flex-end; }
.nav-side.right { justify-content: flex-start; }

.navbar-title {
    flex: 0 0 auto;
    font-size: 2rem;
    color: #fff;
    font-weight: bold;
    margin: 0 40px;
    letter-spacing: 2px;
    text-shadow: 1px 1px 8px #000;
    text-align: center;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    padding: 8px 18px;
    margin: 0 4px;
    border-radius: 30px;
    background: linear-gradient(90deg, #048e35 0%, #1ed760 100%);
    box-shadow: 0 2px 8px rgba(30, 200, 80, 0.25);
    font-weight: 600;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}
.nav-link:hover, .nav-link:focus {
    background: linear-gradient(90deg, #1ed760 0%, #048e35 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30, 200, 80, 0.35);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}

/* =======================
   TITRES & CONTENEURS
   ======================= */
.page-title-container {
    width: 100%;
    position: relative;
    text-align: initial;
    margin-top: 100px;
}
.page-title {
    display: inline-block;
    min-width: 320px;
    max-width: 90vw;
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 8px #000;
    z-index: 1;
    position: relative;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 18px;
    padding: 0 40px 10px 40px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.container, .foot, .Title, .download_div {
    position: relative;
    z-index: 1;
}
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(100vh - 10vh - 100px);
}

/* =======================
   ACCUEIL & WIKI
   ======================= */
.accueil-intro {
    background: rgba(30, 30, 30, 0.6);
    border-radius: 18px;
    padding: 32px 48px;
    max-width: 800px;
    color: #fff;
    font-size: 1.15rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    text-align: left;
    line-height: 1.7;
    z-index: 10;
    position: relative;
}
.accueil-intro strong { color: #1ed760; }
.accueil-intro em { color: #ffd700; font-style: italic; }

/* =======================
   MODS (WIKI)
   ======================= */
.mod {
    display: block;
    min-width: 230px;
    max-width: 90vw;
    text-align: center;
    color: #fff;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 1px 1px 8px #000;
    z-index: 1;
    position: relative;
    background: rgba(30, 30, 30, 0.6);
    border-radius: 18px;
    padding: 0 40px 10px 40px;
    margin: 0 auto;
    margin-top: 50px;
}
.mod-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    box-sizing: border-box;
}
.mod-content.open {
    max-height: 2000px;
    width: 100%;
    min-width: 0;
    max-width: 90vw;
}

/* =======================
   TELECHARGEMENT
   ======================= */
.download_div {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.download_button {
    display: inline-block;
    padding: 10px 28px;
    font-size: 2.5rem;
    color: #fff;
    background: linear-gradient(90deg, #048e35 0%, #1ed760 100%);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(30, 200, 80, 0.25);
    border: none;
    outline: none;
    margin: 0 8px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.download_button:hover, .download_button:focus {
    background: linear-gradient(90deg, #1ed760 0%, #048e35 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(30, 200, 80, 0.35);
    transform: translateY(-2px) scale(1.04);
    text-decoration: none;
}
.video-tuto-placeholder {
    width: 480px;
    max-width: 90vw;
    height: 270px;
    background: rgba(30, 30, 30, 0.7);
    border: 2px dashed #1ed760;
    border-radius: 18px;
    margin: 40px auto 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* =======================
   FOOTER & DISCORD
   ======================= */
.foot {
    position: fixed;
    left: 0; bottom: 0;
    width: 100%;
    height: 10vh;
    display: flex;
    justify-content: space-evenly;
    background: #494343;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    z-index: 1;
}
.discord_button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
    width: fit-content;
}
.logo_discord {
    width: 70px;
    height: 70px;
    margin-right: 10px;
}


/* =======================
   RESPONSIVE DESIGN
   ======================= */

@media (max-width: 900px) {
    .image_elvis { height: 30vh; }
    .navbar { height: 50px; }
    .navbar-title { font-size: 1.1rem; margin: 0 8px; }
    .nav-link { font-size: 0.95rem; padding: 6px 10px; }
    .page-title { font-size: 1.5rem; padding: 0 6px 8px 6px; }
    .accueil-intro { padding: 10px 4vw; font-size: 0.98rem; }
    .mod { padding: 0 6px 8px 6px; font-size: 1rem; }
    .video-tuto-placeholder { width: 98vw; height: 120px; font-size: 0.95rem; }
    .container { height: auto; }
}

@media (max-width: 700px) {
    .navbar { height: 35px; }
    .nav-side {  width: 100%; justify-content: center; margin: 2px 0; }
    .navbar-title { margin: 4px 0; }
    .page-title-container { margin-top: 60px; }
    .accueil-intro { padding: 8px 2vw; font-size: 0.95rem; }
    .mod { font-size: 0.95rem; }
    .video-tuto-placeholder { height: 80px; font-size: 0.85rem; }
    .logo_discord { width: 32px; height: 32px; }
    .foot { flex-direction: column; height: auto; padding: 4px 0; }
    .discord_button { font-size: 0.95rem; padding: 4px 8px; }
}

@media (max-width: 700px) {
    .navbar-title { font-size: 1rem; }
    .nav-link { font-size: 0.7rem; height: auto; padding: 4px 0; }
    .nav-side { width: auto; margin: 2px 0; }
    .mod { font-size: 0.9rem; }
    .video-tuto-placeholder { height: 60px; font-size: 0.8rem; }
    .logo_discord { width: 24px; height: 24px; }
    .foot { font-size: 0.85rem; }
}

/* Pour éviter le débordement horizontal sur mobile */
body, html {
    max-width: 100vw;
    overflow-x: hidden;
}

/* =======================
   IMAGES DECORATIVES RESPONSIVE
   ======================= */
.image_chronosia, .image_nezuzu, .image_doggo, .image_mathoxx, .image_elvis {
    position: fixed;
    margin: 0;
    z-index: 3;
    pointer-events: none;
    max-width: 30vw;
    max-height: 40vh;
    width: auto;
    height: auto;
}

.image_chronosia {
    bottom: 0; left: 0;
    height: 35vh;
    max-width: 30vw;
}
.image_nezuzu {
    bottom: 0; right: 0;
    height: 35vh;
    max-width: 30vw;
}
.image_mathoxx {
    top: 0; right: 22vw;
    height: 22vh;
    max-width: 18vw;
    margin-top: -60px;
}
.image_elvis {
    filter: grayscale(100%) opacity(0.5);
    bottom: 0; left: 0;
    height: 60vh;
    max-width: 40vw;
    margin-left: -20px;
    margin-bottom: -30px;
    z-index: 1;
}

/* Responsive : réduire ou masquer sur petits écrans */
@media (max-width: 1600px) {
    img.image_chronosia, img.image_nezuzu{
        height: 25vh;
    }
    img.image_mathoxx {
        height: 22vh;
    }
    img.image_elvis {
        display: none !important;
    }
}

@media (max-width: 1530px) {
    img.image_mathoxx {
        right: 15vw;
    }
}

@media (max-width: 1360px) {
    img.image_nezuzu{
        display: none !important;
    }
}

@media (max-width: 1220px) {
    img.image_chronosia, img.image_nezuzu, img.image_mathoxx, img.image_elvis {
        display: none !important;
    }
}

@media (max-width: 900px) {
    img.image_chronosia, img.image_nezuzu, img.image_mathoxx, img.image_elvis {
        display: none !important;
    }
}
@media (max-width: 600px) {
    img.image_chronosia, img.image_nezuzu, img.image_mathoxx, img.image_elvis {
        display: none !important;
    }
}
@media (max-width: 450px) {
    img.image_chronosia, img.image_nezuzu, img.image_mathoxx, img.image_elvis {
        display: none !important;
    }
}