/*Fix les borders*/
*,
*::before,
*::after {
    box-sizing: inherit;
}



/* Polices loading ig */
@font-face {
    font-family: "minecraft";
    src: url(../fonts/minecraft.ttf);
}



/*
Fix la navbar selon le scroll pour faire bien apparaitre la banderolle Mojang
*/
html[data-scroll='0'] .navbar {
    top: 10px;
    position: relative;
}

html:not([data-scroll='0']) .navbar {
    top: 0;
    position: sticky;
}

.barre-header {
    background-color: #f1333f;
    height: 60px;

    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    margin: 0;
}

.mojang {
    max-height: 100%;
    width: auto;
    display: block;
}



.title {
    font-size: 2rem;
}

a {
    color: red
}


/*Carousel*/
.carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    width: 900%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 11.11%;
    height: 100%;
    flex-shrink: 0;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

input[type="radio"] {
    display: none;
}

/* Déplacement des images */
#i1:checked~.carousel-inner {
    transform: translateX(0);
}

#i2:checked~.carousel-inner {
    transform: translateX(-11.11%);
}

#i3:checked~.carousel-inner {
    transform: translateX(-22.22%);
}

#i4:checked~.carousel-inner {
    transform: translateX(-33.33%);
}

#i5:checked~.carousel-inner {
    transform: translateX(-44.44%);
}

#i6:checked~.carousel-inner {
    transform: translateX(-55.55%);
}

#i7:checked~.carousel-inner {
    transform: translateX(-66.66%);
}

#i8:checked~.carousel-inner {
    transform: translateX(-77.77%);
}

#i9:checked~.carousel-inner {
    transform: translateX(-88.88%);
}

/* Indicateurs */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    align-items: center;
}

.carousel-controls label {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex; 
    align-items: center; 
    justify-content: center; 
}

/*
CSS chiant car on n'a pas le droit au javascript
*/
#i1:checked~.carousel-controls label[for="i1"],
#i2:checked~.carousel-controls label[for="i2"],
#i3:checked~.carousel-controls label[for="i3"],
#i4:checked~.carousel-controls label[for="i4"],
#i5:checked~.carousel-controls label[for="i5"],
#i6:checked~.carousel-controls label[for="i6"],
#i7:checked~.carousel-controls label[for="i7"],
#i8:checked~.carousel-controls label[for="i8"],
#i9:checked~.carousel-controls label[for="i9"] {
    background-color: rgba(255, 255, 255, 1);
}

/* Navigation par flèches du carousel*/
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.carousel-nav label {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 10px;
    transition: background-color 0.3s;
    color: white;
    font-size: 20px;
    pointer-events: all;
    user-select: none;
}

.carousel-nav label:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


.carousel-nav label {
    display: none;
}

/* Afficher les bonnes flèches selon l'image active */
#i1:checked~.carousel-nav .prev1,
#i1:checked~.carousel-nav .next1,
#i2:checked~.carousel-nav .prev2,
#i2:checked~.carousel-nav .next2,
#i3:checked~.carousel-nav .prev3,
#i3:checked~.carousel-nav .next3,
#i4:checked~.carousel-nav .prev4,
#i4:checked~.carousel-nav .next4,
#i5:checked~.carousel-nav .prev5,
#i5:checked~.carousel-nav .next5,
#i6:checked~.carousel-nav .prev6,
#i6:checked~.carousel-nav .next6,
#i7:checked~.carousel-nav .prev7,
#i7:checked~.carousel-nav .next7,
#i8:checked~.carousel-nav .prev8,
#i8:checked~.carousel-nav .next8,
#i9:checked~.carousel-nav .prev9,
#i9:checked~.carousel-nav .next9 {
    display: flex;
}

/* Styles pour le contenu */
.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    margin: 30px 0;
    color: #333;
}

.description {
    text-align: justify;
    line-height: 1.6;
    margin-bottom: 30px;
}

p {
    font-family: minecraft;
    font-size: 20px;
    color: #f9ffff;

}

/* Pour tablettes */
@media only screen and (max-width: 1024px) {
       .carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
}
    .description {
        line-height: 1.5;
        margin-bottom: 30px;
    }
    p {
        font-family: minecraft;
        font-size: 20px;
        color: #f9ffff;
    }
}

/* Pour mobiles */
@media only screen and (max-width: 768px) {
    .carousel-container {
    width: 100%;
    max-width: 1200px;
    margin: 50px auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.carousel {
    width: 100%;
    height: 600px;
    position: relative;
    overflow: hidden;
}
    .description {
        line-height: 1.5;
        margin-bottom: 30px;
    }
    p {
        font-family: minecraft;
        font-size: 20px;
        color: #f9ffff;
    }
}


/* Barre de defilement */
::-webkit-scrollbar {
    width: 20px;
}


::-webkit-scrollbar-track {
    background-image: url("../img/scrollbar/experience_bar_background.png");
    transform-origin: center center;
    background-size: cover;
}



a .grow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    transition: 0.625s 
cubic-bezier(0, 0.8, 0.25, 1);

}
.bouton {
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-family: minecraft;
    text-align: center;
    background-color: #36b030;
    box-shadow: 0 -4px rgba(21, 108, 0, 0.5) inset, 0 4px rgba(100, 253, 31, 0.99) inset, -4px 0 rgba(100, 253, 31, 0.5) inset, 4px 0 rgba(21, 108, 0, 0.5) inset;
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
    align-items: center;
    justify-content: center;
    position: relative;
    border: 0;
    z-index: 1;
    user-select: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: unset;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 2.25rem;
    line-height: 1.5;
    font-weight: bold;
    max-width: 500px;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.bouton a {
    color: #fff;
    text-decoration: none;
}

.small {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-family: minecraft;
}

.bouton:hover {
    background-color: #313131;
    box-shadow: 0 -4px rgba(0, 0, 0, 0.5) inset, 0 4px rgba(255, 255, 255, 0.2) inset, -4px 0 rgba(255, 255, 255, 0.2) inset, 4px 0 rgba(0, 0, 0, 0.5) inset;
}
       h1 {
            color: white;
            text-align: center;
            padding-bottom: 10px;
                font-family: minecraft;

        }
        h2 {
            color: white;
                font-family: minecraft;

            border-bottom: 1px solid #ddd;
            padding-bottom: 5px;
            margin-top: 30px;
        }
        h3 {
            color: white;
                font-family: minecraft;

            margin-top: 20px;
        }
        .info-box {
                font-family: minecraft;

            border-left: 4px solid white;
            padding: 10px 15px;
            margin: 15px 0;
        }
        .highlight {
            font-weight: bold;
                font-family: minecraft;

            color: white;
        }