/* ==========================================================================
   1. POLICES & CONFIGURATION GÉNÉRALE
   ========================================================================== */
@font-face {
    font-family: 'MinecraftCustom';
    src: url('../fonts/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'BasicFont';
    src: url('../fonts/Coolvetica\ Rg\ Cond.otf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    cursor: url('../cursors/minecraft_pointer.png'), default;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #000;
    color: white;
}

main {
    flex: 1;
    position: relative;
    z-index: 1;
}

input,
select,
label {
    color: white;
}

/* ==========================================================================
   CONTAINER 1080px
   ========================================================================== */
.container-1080 {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   2. BACKGROUNDS
   ========================================================================== */
.AccueilBckground,
.DonneesBackground,
.GalerieBackground {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.AccueilBckground {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/background_accueil.jpg');
}

.GalerieBackground {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/background_galerie.jpg');
}

.DonneesBackground {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/background_donnee.jpg');
}

/* ==========================================================================
   3. HEADER & NAVIGATION
   ========================================================================== */
/* ==========================================================================
   HEADER - VERSION ORIGINALE (Minecraft Style)
   ========================================================================== */

.header {
    background-color: #1e1e1e;
    height: 60px;
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 100;
}

.header .container-1080 {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 15px;
}

.header nav {
    width: 100%;
    height: 100%;
}

.header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
}

.header nav ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* --- STYLE DES BOUTONS (LIENS) --- */
.header nav ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 42px;
    /* Hauteur de tes images de boutons */
    min-width: 160px;
    /* Largeur pour les boutons texte */
    text-decoration: none;
    color: #ffffff;
    font-family: 'MinecraftCustom', sans-serif;
    font-size: 16px;
    padding: 0 10px;
}

/* --- BOUTONS SPÉCIAUX (STEVE / LANGUE) --- */
.li-steve a,
.li-langue a {
    min-width: 42px !important;
    width: 42px;
    padding: 0 !important;
}

/* --- IMAGES DE FOND (RECTANGLES) --- */
.img-bouton,
.img-bouton-square {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Place l'image derrière le texte */
    object-fit: fill;
}

/* --- CONTENU DES BOUTONS ICONES --- */
.img-steve,
.bouton-langue {
    height: 30px;
    width: 30px;
    position: relative;
    z-index: 1;
}

/* --- ETAT HOVER (Sécurité texte) --- */
.header nav ul li a:hover {
    color: #ffffff;
}

/* ==========================================================================
   4. STYLE DES BOUTONS
   ========================================================================== */
.header nav a {
    width: 180px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.li-steve a,
.li-langue a {
    width: 60px !important;
}

.img-bouton,
.img-bouton-square {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.img-bouton {
    width: 160px;
    height: 40px;
}

.img-bouton-square {
    width: 50px !important;
    height: 50px !important;
}

.btn-steve-container,
.btn-langue-container {
    width: 50px !important;
    height: 50px !important;
}

.img-steve,
.bouton-langue {
    width: 60px !important;
    height: 60px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    pointer-events: none;
}

nav a:hover {
    filter: brightness(1.2);
}

.btn-steve-container:hover .img-bouton-square,
.btn-langue-container:hover .img-bouton-square {
    content: url('../images/rectangle_hover.jpeg');
}

/* ==========================================================================
   5. CONTENU PRINCIPAL & SPLIT SCREEN
   ========================================================================== */
.accueil-titres {
    text-align: center;
    margin-top: 40px;
}

.accueil-flex-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 550px;
    margin-top: 20px;
}

.col-etapes {
    flex: 1;
    padding-left: 50px;
}

.col-chien {
    width: 500px;
    height: 470px;
    overflow: hidden;
    position: relative;
    background: transparent;
}

.col-chien spline-viewer {
    width: 100%;
    height: 560px;
    position: absolute;
    top: 0;
    left: 0;
}


#title {
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 56px;
    transform: translateY(-10px);
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px #000000;
    color: white;
    text-align: center;
    width: 100%;
}

.accueil-titres {
    margin-top: -35px;
    /* Remonte tout le groupe (H1 + les 2 P) d'un coup */
}

/* On remet tes lignes avec des marges normales pour qu'elles respirent */
#premiereligne,
#deuxiemeligne {
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 24px;
    line-height: 1.5;
    text-shadow: 1px 1px 2px #000000;
    text-align: center;
    width: 100%;
    margin: 5px 0;
    /* Un petit espace de 5px entre elles suffit */
}

#DonneesTitle {
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 32px;
    text-shadow: 2px 2px 4px #000000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 50px auto 30px auto;
    background-image: url('../images/rectangle_nonhover.jpeg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    width: 420px;
    height: 80px;
    z-index: 2;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    user-select: none;
}

#DonneesTitle:hover {
    background-image: url('../images/rectangle_hover.jpeg');
    filter: brightness(1.1);
}

/* ==========================================================================
   6. TABLEAUX & DONNÉES - STYLE COMPLET
   ========================================================================== */

/* Conteneur principal du tableau */
.table-container {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    padding: 20px;
    background: rgba(30, 30, 30, 0.8);
    border: 4px solid #000;
    box-shadow: inset -4px -4px 0px #555, inset 4px 4px 0px #888;
    box-sizing: border-box;
    overflow-x: auto;
    /* Tout ce qui est dans le container est en Minecraft par défaut */
    font-family: 'MinecraftCustom', Arial, sans-serif !important;
}

/* Titres et textes hors tableau (Recherche, Pagination, Infos) */
#DonneesTitle,
#subtitle,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    font-family: 'MinecraftCustom', Arial, sans-serif !important;
    color: white !important;
}

/* Style du tableau DataTables */
#montableau {
    width: 100% !important;
    margin: 20px 0;
    border-collapse: collapse;
    color: white;
}

/* En-têtes (Toujours en Minecraft) */
#montableau thead th {
    background: #444;
    color: white;
    padding: 12px;
    border: 1px solid #666;
    font-family: 'MinecraftCustom', Arial, sans-serif !important;
    text-transform: uppercase;
    font-size: 14px;
}

/* Corps du tableau (Police BASIQUE et LISIBLE) */
#montableau tbody td {
    background: rgba(45, 45, 45, 0.5);
    border: 1px solid #666;
    padding: 10px;
    text-align: center;
    color: #ffffff;
    /* Changement de police ici pour la lisibilité des chiffres */
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 15px;
}

/* Style des lignes au survol */
#montableau tbody tr:hover td {
    background: rgba(112, 161, 69, 0.2);
    /* Vert Minecraft transparent */
}

/* ==========================================================================
   7. ÉTAPES
   ========================================================================== */
.etapes-liste {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.etape-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.etape-item .numero {
    font-family: 'MinecraftCustom', sans-serif;
    color: white;
    text-shadow: 2px 2px 0px #000;
    font-size: 42px;
    line-height: 1;
    min-width: 50px;
    text-align: right;
    flex-shrink: 0;
}

.etape-item .texte {
    font-family: 'MinecraftCustom', sans-serif;
    color: white;
    text-shadow: 2px 2px 0px #000;
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
    text-align: left;
}

/* ==========================================================================
   8. PIXEL SECTION
   ========================================================================== */
#pixel-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 100vh;
    background-color: #000;
    z-index: 5;
    overflow: hidden;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.9);
}

#pixel-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#pixel-section .container-1080 {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.pixel-content {
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.pixel-content h2 {
    font-family: 'MinecraftCustom';
    color: #ffffff;
    font-size: 50px;
    margin-bottom: 15px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.pixel-subtitle {
    font-family: 'MinecraftCustom';
    color: #ffffff;
    font-size: 18px;
    margin: 0 auto 30px auto;
    line-height: 1.5;
    text-shadow: 1px 1px 2px #000;
}

.social-container {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    pointer-events: auto;
}

.social-container img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.social-container img:hover {
    transform: scale(1.2);
}

/* ==========================================================================
   9. FOOTER
   ========================================================================== */

.main-footer,
footer {
    background-color: #1e1e1e;
    color: white;
    padding: 30px 20px;
    text-align: center;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    position: relative;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    border-top: 3px solid #444;
    overflow: visible;
}

footer p {
    margin: 10px 0;
    font-size: 16px;
    text-shadow: 1px 1px 2px #000000;
    color: white;
}

.credits-link-container {
    margin-top: 15px;
}

.btn-credits {
    display: inline-block;
    padding: 8px 20px;
    background-color: #4e4e4e;
    color: white;
    text-decoration: none;
    font-size: 14px;
    border: 2px solid #000;
    box-shadow: inset -3px -3px 0px #222, inset 3px 3px 0px #888;
    transition: all 0.2s ease;
}

.btn-credits:hover {
    background-color: #70a145;
    box-shadow: inset -3px -3px 0px #385022, inset 3px 3px 0px #a5d67c;
    transform: translateY(-2px);
}

/* --- LE RENARD (FOX) --- */
.fox-container {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    top: -80px;
    pointer-events: none;
    z-index: 15;
}

.fox {
    position: absolute;
    width: 120px;
    height: 120px;
    left: -150px;
    animation: walkAcrossFox 15s linear infinite;
    animation-delay: 1s;
}

.fox-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
}

.fox .frame1 {
    animation: frameToggle1 0.5s steps(1) infinite;
}

.fox .frame2 {
    animation: frameToggle2 0.5s steps(1) infinite;
}

/* --- LA POULE (POULET) --- */
.poulet-container {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    top: -30px;
    pointer-events: none;
    z-index: 20;
}

.poulet {
    position: absolute;
    width: 30px;
    height: 30px;
    animation: walkAcrossPoulet 15s linear infinite;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    pointer-events: auto !important;
}

.poulet::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;

}

/* Conteneur interne pour le saut */
.poulet-jumper {
    width: 100%;
    height: 100%;
    display: block;
}

.poulet-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
}

.poulet .frame1 {
    animation: frameToggle1 0.5s steps(1) infinite;
}

.poulet .frame2 {
    animation: frameToggle2 0.5s steps(1) infinite;
}

.jump {
    animation: chickenJump 0.4s ease-out !important;
}


@keyframes chickenJump {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-50px);
    }
}

/* Marche du renard */
@keyframes walkAcrossFox {
    0% {
        left: -120px;
        transform: scaleX(1);
    }

    48% {
        left: 100%;
        transform: scaleX(1);
    }

    50% {
        left: 100%;
        transform: scaleX(-1);
    }

    98% {
        left: -120px;
        transform: scaleX(-1);
    }

    100% {
        left: -120px;
        transform: scaleX(1);
    }
}

@keyframes walkAcrossPoulet {
    0% {
        left: -30px;
        transform: scaleX(1);
    }

    48% {
        left: 100%;
        transform: scaleX(1);
    }

    50% {
        left: 100%;
        transform: scaleX(-1);
    }

    98% {
        left: -30px;
        transform: scaleX(-1);
    }

    100% {
        left: -30px;
        transform: scaleX(1);
    }
}

/* Battement des pattes (Sprites) */
@keyframes frameToggle1 {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}

@keyframes frameToggle2 {

    0%,
    49% {
        opacity: 0;
    }

    50%,
    100% {
        opacity: 1;
    }
}

/* ==========================================================================
   10. STEPPER PAGE
   ========================================================================== */
.stepper-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 40px 20px;
    z-index: 10;
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
}

.stepper-card {
    background: rgba(30, 30, 30, 0.9);
    border: 4px solid #000;
    box-shadow: inset -4px -4px 0px #555, inset 4px 4px 0px #888, 0 20px 40px rgba(0, 0, 0, 0.8);
    width: 100%;
    max-width: 600px;
    padding: 40px;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    color: white;
    text-align: center;
    box-sizing: border-box;
}

.stepper-content {
    width: 100%;
    margin: 20px 0;
}

.step-panel {
    display: none;
    min-height: 200px;
    animation: stepSlideIn 0.4s ease-out;
}

.step-panel.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.step-img {
    max-width: 200px;
    height: auto;
    border: 3px solid #000;
    margin-bottom: 15px;
}

.input-minecraft-group {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.input-minecraft-group input {
    background: #000;
    border: 2px solid #555;
    padding: 10px;
    color: #0f0;
    font-family: 'MinecraftCustom';
    width: 80%;
    text-align: center;
}

.stepper-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.stepper-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 10px;
}

.step-item {
    width: 40px;
    height: 40px;
    background: #1e1e1e;
    border: 3px solid #555;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MinecraftCustom', sans-serif;
    color: #888;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-item.active {
    background: #70a145;
    color: white;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(112, 161, 69, 0.5);
}

.step-line {
    flex: 0 1 50px;
    height: 4px;
    background: #555;
    margin: 0 -5px;
    z-index: 1;
}

.step-item.completed {
    background: #3e3e3e;
    color: #70a145;
}

@keyframes stepSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.minecraft-btn-small {
    background: #5227FF;
    border: none;
    color: white;
    padding: 12px 25px;
    font-family: 'MinecraftCustom';
    font-size: 14px;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    border-bottom: 4px solid rgba(0, 0, 0, 0.3);
    transition: 0.1s;
}

/* ==========================================================================
   11. ÉCRAN DE CHARGEMENT NETHER
   ========================================================================== */
#nether-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1s ease-in-out;
}

#nether-canvas {
    position: absolute;
    width: 110%;
    height: 110%;
    image-rendering: pixelated;
    filter: saturate(1.5) contrast(1.2) blur(1px);
    z-index: 1;
}

.nether-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 10%, rgba(30, 0, 50, 0.4) 40%, rgba(0, 0, 0, 0.9) 90%);
    z-index: 2;
    pointer-events: none;
}

.loading-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.pixel-text {
    font-family: 'MinecraftCustom', sans-serif;
    color: #ffffff;
    font-size: 2.8rem;
    text-transform: uppercase;
}

.dots::after {
    content: '';
    display: inline-block;
    width: 24px;
    text-align: left;
    animation: dotsProgress 1.5s steps(4) infinite;
}

@keyframes dotsProgress {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

/* ==========================================================================
   12. ÉCRAN D'ENTRÉE
   ========================================================================== */
#entry-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#entry-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: brightness(0.6);
}

.entry-panel {
    position: relative;
    z-index: 10;
    background: #c6c6c6;
    border: 4px solid #000;
    padding: 30px;
    box-shadow: inset -4px -4px 0px #555, inset 4px 4px 0px #fff;
    width: 350px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pixel-avatar {
    width: 80px !important;
    height: 80px !important;
    border: 4px solid #000;
    margin-bottom: 20px;
    image-rendering: pixelated;
}

.entry-title {
    font-family: 'MinecraftCustom', sans-serif;
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.minecraft-btn-large {
    width: 100%;
    padding: 15px;
    background: #4e4e4e;
    color: white;
    font-family: 'MinecraftCustom', sans-serif;
    font-size: 14px;
    border: 2px solid #000;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    box-shadow: inset -3px -3px 0px #222, inset 3px 3px 0px #888;
    transition: background 0.2s;
}

.minecraft-btn-large:hover {
    background: #70a145;
}

body.page-accueil .header,
body.page-accueil main,
body.page-accueil footer,
body.page-accueil .AccueilBckground {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
}

body.site-visible .header,
body.site-visible main,
body.site-visible footer,
body.site-visible .AccueilBckground {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   13. header
   ========================================================================== */
@media (max-width: 900px) {
    .accueil-flex-content {
        flex-direction: column;
        height: auto;
    }

    .col-chien {
        width: 100%;
        height: 300px;
    }

    #title {
        font-size: 40px;
    }
}

/* ==========================================================================
14. CURSEURS==========================================================================*/

html,
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
div,
li,
input,
label {
    cursor: url('../cursors/minecraft_pointer.png'), default !important;
}

a,
button,
.minecraft-btn-large,
.minecraft-btn-small,
#DonneesTitle,
.btn-steve-container,
.btn-langue-container,
.social-container a,
.social-container img,
spline-viewer,
#btn-enter-world {
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
}

.header nav a,
.header nav a *,
.img-bouton,
.img-steve,
.bouton-langue {
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
}

::selection {
    background: rgba(128, 128, 128, 0.3);
}

/* ==========================================================================
   SUPPRESSION LOGO SPLINE
   ========================================================================== */
spline-viewer::part(watermark) {
    display: none !important;
}

.col-chien {
    position: relative;
    overflow: hidden;
}


/*gallerie*/

html {
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    min-height: 100vh;
    font-size: 1rem;
    line-height: 1.25;
    background-color: #18222d;
}

.grid {
    width: 100%;
    max-width: 60rem;
    margin-left: auto;
    margin-right: auto;

    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    flex-wrap: wrap;
}

.grid-block {
    width: 50%;
    min-height: 11.25rem;
    padding: 1rem;
}

.image-grid {
    -webkit-transform: rotateX(45deg) rotateZ(45deg);
    transform: rotateX(45deg) rotateZ(45deg);
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.image-grid .tile-link:hover .tile-img {
    top: -1rem;
    left: -1rem;
}

.image-grid .tile-img {
    position: relative;
    top: 0;
    left: 0;
    -webkit-transition-property: opacity, top, left, box-shadow;
    transition-property: opacity, top, left, box-shadow;
}

.tile-link {
    display: block;
}

.tile-link:hover .tile-img {
    opacity: 1;
}

.tile-link:hover .tile-img-link {
    display: block;
}

.tile-link:hover .tile-img-link:hover .tile-img {
    opacity: 0.5;
}

.tile-img {
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    -webkit-transition-property: opacity;
    transition-property: opacity;
    -webkit-transition-duration: 0.125s;
    transition-duration: 0.125s;
    -webkit-transition-timing-function: ease-in;
    transition-timing-function: ease-in;
}

.tile-link:hover .tile-img1 {
    box-shadow: 5px 5px rgba(244, 170, 200, 0.4),
        10px 10px rgba(244, 170, 200, 0.3), 15px 15px rgba(244, 170, 200, 0.2),
        20px 20px rgba(244, 170, 200, 0.1), 25px 25px rgba(244, 170, 200, 0.05);
}

.tile-link:hover .tile-img2 {
    box-shadow: 5px 5px rgba(45, 186, 233, 0.4), 10px 10px rgba(45, 186, 233, 0.3),
        15px 15px rgba(45, 186, 233, 0.2), 20px 20px rgba(45, 186, 233, 0.1),
        25px 25px rgba(45, 186, 233, 0.05);
}

.tile-link:hover .tile-img3 {
    box-shadow: 5px 5px rgba(214, 221, 244, 0.4),
        10px 10px rgba(214, 221, 244, 0.3), 15px 15px rgba(214, 221, 244, 0.2),
        20px 20px rgba(214, 221, 244, 0.1), 25px 25px rgba(214, 221, 244, 0.05);
}

.tile-link:hover .tile-img4 {
    box-shadow: 5px 5px rgba(82, 119, 192, 0.4), 10px 10px rgba(82, 119, 192, 0.3),
        15px 15px rgba(82, 119, 192, 0.2), 20px 20px rgba(82, 119, 192, 0.1),
        25px 25px rgba(82, 119, 192, 0.05);
}

.tile-link:hover .tile-img5 {
    box-shadow: 5px 5px rgba(138, 218, 245, 0.4),
        10px 10px rgba(138, 218, 245, 0.3), 15px 15px rgba(138, 218, 245, 0.2),
        20px 20px rgba(138, 218, 245, 0.1), 25px 25px rgba(138, 218, 245, 0.05);
}

.tile-link:hover .tile-img6 {
    box-shadow: 5px 5px rgba(203, 215, 193, 0.4),
        10px 10px rgba(203, 215, 193, 0.3), 15px 15px rgba(203, 215, 193, 0.2),
        20px 20px rgba(203, 215, 193, 0.1), 25px 25px rgba(203, 215, 193, 0.05);
}

.tile-link:hover .tile-img7 {
    box-shadow: 5px 5px rgba(91, 209, 250, 0.4), 10px 10px rgba(91, 209, 250, 0.3),
        15px 15px rgba(91, 209, 250, 0.2), 20px 20px rgba(91, 209, 250, 0.1),
        25px 25px rgba(91, 209, 250, 0.05);
}

.tile-link:hover .tile-img8 {
    box-shadow: 5px 5px rgba(145, 156, 196, 0.4),
        10px 10px rgba(145, 156, 196, 0.3), 15px 15px rgba(145, 156, 196, 0.2),
        20px 20px rgba(145, 156, 196, 0.1), 25px 25px rgba(145, 156, 196, 0.05);
}

.tile-link:hover .tile-img9 {
    box-shadow: 5px 5px rgba(188, 97, 129, 0.4), 10px 10px rgba(188, 97, 129, 0.3),
        15px 15px rgba(188, 97, 129, 0.2), 20px 20px rgba(188, 97, 129, 0.1),
        25px 25px rgba(188, 97, 129, 0.05);
}

.tile-link:hover .tile-img10 {
    box-shadow: 5px 5px rgba(4, 140, 231, 0.4), 10px 10px rgba(4, 140, 231, 0.3),
        15px 15px rgba(4, 140, 231, 0.2), 20px 20px rgba(4, 140, 231, 0.1),
        25px 25px rgba(4, 140, 231, 0.05);
}

.tile-link:hover .tile-img11 {
    box-shadow: 5px 5px rgba(255, 200, 50, 0.4), 10px 10px rgba(255, 200, 50, 0.3), 15px 15px rgba(255, 200, 50, 0.2);
}

.tile-link:hover .tile-img12 {
    box-shadow: 5px 5px rgba(50, 255, 150, 0.4), 10px 10px rgba(50, 255, 150, 0.3), 15px 15px rgba(50, 255, 150, 0.2);
}

/* ==========================================================================
   STYLE CONTACT - LOOK GUI MINECRAFT
   ========================================================================== */
.minecraft-gui-panel {
    background: #c6c6c6;
    border: 4px solid #000;
    box-shadow: inset -4px -4px 0px #555, inset 4px 4px 0px #fff;
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    font-family: 'MinecraftCustom', sans-serif;
}

#subtitle-contact {
    color: #404040;
    text-shadow: none;
    margin-bottom: 25px;
    font-size: 20px;
    text-align: center;
}

.field-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.field-group label {
    color: #404040;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: bold;
}

.minecraft-gui-panel input[type='text'],
.minecraft-gui-panel input[type='email'],
.minecraft-gui-panel textarea {
    background: #000;
    border: 2px solid #555;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    padding: 12px;
    box-sizing: border-box;
    width: 100%;
    outline: none;
}

.minecraft-gui-panel input:focus,
.minecraft-gui-panel textarea:focus {
    border-color: #fff;
}

.minecraft-gui-panel textarea {
    height: 150px;
    resize: none;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .field-group {
    flex: 1;
}

/* Bouton Submit Minecraft */
.minecraft-btn-large {
    width: 100%;
    height: 50px;
    background: #4e4e4e;
    color: white;
    font-family: 'MinecraftCustom', sans-serif;
    font-size: 18px;
    border: 2px solid #000;
    box-shadow: inset -3px -3px 0px #222, inset 3px 3px 0px #888;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.1s;
}

.minecraft-btn-large:hover {
    background: #70a145;
    box-shadow: inset -3px -3px 0px #385022, inset 3px 3px 0px #a5d67c;
}

.minecraft-btn-large:active {
    transform: translateY(2px);
    box-shadow: inset -2px -2px 0px #222, inset 2px 2px 0px #666;
}

/* ==========================================================================
   RADIO BUTTONS MINECRAFT STYLE
   ========================================================================== */
.minecraft-radio-buttons {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0;
}

.minecraft-radio-tile {
    flex: 1;
    cursor: pointer;
}

.radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 15px 10px;
    background: #8B8B8B;
    border: 3px solid #000;
    box-shadow:
        inset -3px -3px 0px #5A5A5A,
        inset 3px 3px 0px #C6C6C6,
        0 4px 0 #000;
    transition: all 0.15s ease;
    position: relative;
}

.radio-tile:hover {
    background: #9B9B9B;
    box-shadow:
        inset -3px -3px 0px #6A6A6A,
        inset 3px 3px 0px #D6D6D6,
        0 4px 0 #000;
}

/* État coché */
.radio-input:checked+.radio-tile {
    background: #70a145;
    box-shadow:
        inset -3px -3px 0px #385022,
        inset 3px 3px 0px #a5d67c,
        0 4px 0 #000;
}



/* Icône SVG */
.radio-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.radio-icon svg {
    width: 100%;
    height: 100%;
    stroke: #404040;
    transition: stroke 0.15s;
}

.radio-input:checked+.radio-tile .radio-icon svg {
    stroke: #FFF;
}

/* Label */
.radio-label {
    color: #404040;
    font-size: 13px;
    text-align: center;
    font-family: 'MinecraftCustom', sans-serif;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.3);
    transition: color 0.15s;
}

.radio-input:checked+.radio-tile .radio-label {
    color: #FFF;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}



/* 1. L'animation du bandeau lui-même */
.minecraft-notification {
    /* ... tes styles actuels (position: fixed, etc.) ... */

    /* On lance l'animation de sortie automatique */
    /* Elle dure 0.5s, mais commence après un délai de 5s */
    animation: fadeOutAuto 0.5s forwards 5s;
}

/* 2. L'animation de la barre de progression */
.notification-progress {
    height: 4px;
    width: 100%;
    background: #4caf50;
    /* Vert pour succès */
    position: absolute;
    bottom: 0;
    left: 0;
    /* La barre rétrécit de 100% à 0% en 5 secondes */
    animation: progressLinear 5s linear forwards;
}

/* Si c'est une erreur, on met la barre en rouge */
.minecraft-notification.error .notification-progress {
    background: #ff5555;
}

/* --- LES KEYFRAMES --- */

@keyframes fadeOutAuto {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
        pointer-events: none;
        /* Empêche de cliquer sur le bandeau invisible */
    }
}

/* Animation de la barre verte */
@keyframes progressLinear {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ==========================================================================
   LIVRE FLIP CAROUSEL - SECTION
   ========================================================================== */

#livre-section {
    position: relative;
    padding: 80px 0;
    z-index: 2;
}

#livre-section .container-1080 {
    position: relative;
    z-index: 10;
}

.livre-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;

    --sprite-c: 5;
    --sprite-h: 3000;
    --sprite-w: 9600;
    --sprite-f: 7;
    --sprite-image: url(https://assets.codepen.io/36869/book.webp);
    --sprite-fr: 12;

    --sprite-as: calc(var(--sprite-f) / var(--sprite-fr) * 1s);

    --sprite-r: round(up, calc(var(--sprite-f) / var(--sprite-c)), 1);
    --sprite-sh: calc(var(--sprite-h) / var(--sprite-r));
    --sprite-th: calc(var(--sprite-sh) / 2);

    --sprite-ar: calc(var(--sprite-th) / var(--sprite-sh));
    --sprite-uh: calc(var(--sprite-h) * var(--sprite-ar));
    --sprite-uw: calc(var(--sprite-w) * var(--sprite-ar));

    --sprite-tw: calc(var(--sprite-uw) / var(--sprite-c));
}

.livre-container>h2 {
    color: #d2d4e1;
    margin: 0 auto;
    width: fit-content;
    font-weight: 500;
    font-size: 2rem;
    text-align: center;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    text-shadow: 2px 2px 4px #000000;
}

.livre-container>h2 .highlight {
    color: #f840a8;
    text-decoration: underline;
}

.book {
    position: relative;
    display: grid;
    grid-template-areas:
        "scroll scroll scroll"
        "left markers right";
    gap: 1rem;
}

.sprite {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(1px * var(--sprite-th));
    width: calc(1px * var(--sprite-tw));
    margin: calc(-1px * calc((var(--sprite-th) - (var(--sprite-th) * 0.6107)) / 2)) calc(-1px * calc((var(--sprite-tw) - (var(--sprite-tw) * 0.7042)) / 2));
    background-image: var(--sprite-image);
    transform-origin: center center;
    background-repeat: no-repeat;
    background-size: calc(1px * var(--sprite-uw)) calc(1px * var(--sprite-uh));
    z-index: -1;

    --sprite-fe: calc(var(--sprite-f) * (var(--slides) - 1));
    --sprite-fs-n: mod(var(--sprite-fs), var(--sprite-f));
    --row: calc(round(down, calc(calc(var(--sprite-tw) * var(--sprite-fs-n)) / var(--sprite-uw)), 1) * var(--sprite-th));
    --col: mod(calc(var(--sprite-tw) * var(--sprite-fs-n)), var(--sprite-uw));

    background-position: calc(-1px * var(--col)) calc(-1px * var(--row));
    animation: frame var(--sprite-as) linear 0s normal none running;
    animation-timeline: --carousel-timeline;
}

@property --sprite-fs {
    syntax: "<integer>";
    initial-value: 0;
    inherits: true;
}

@property --_progress {
    syntax: "<percentage>";
    inherits: false;
    initial-value: 0%;
}

.carousel {
    counter-increment: curpage;
    grid-area: scroll;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;

    display: grid;
    margin: 0 auto;
    width: calc(1px * (var(--sprite-tw) * 0.7042));
    height: calc(1px * (var(--sprite-th) * 0.6107));
    grid: 1fr / auto-flow 100%;
    scroll-timeline: --carousel-timeline x;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.carousel::scroll-button(*) {
    inline-size: 64px;
    aspect-ratio: 1;
    border-radius: 0;
    border: 0;
    background-color: transparent;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
}

.carousel::scroll-button(*):disabled {
    filter: invert(1);
    opacity: 0.5;
}

.carousel::scroll-button(*):not(:disabled):is(:hover, :active) {
    filter: drop-shadow(2px 4px 6px black);
}

.carousel::scroll-button(*):not(:disabled):active {
    scale: 90%;
}

.carousel::scroll-button(left) {
    content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMSIgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjMyLjAwMDAwMCAyNTYuMDAwMDAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdHJhbnNmb3JtPSJtYXRyaXgoLTEsMCwwLDEsMCwwKSI+PGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMC4wMDAwMDAsMjU2LjAwMDAwMCkgc2NhbGUoMC4xMDAwMDAsLTAuMTAwMDAwKSIgZmlsbD0iI2ZmZiIgc3Ryb2tlPSJub25lIj48cGF0aCBkPSJNMTE4MCAyMTEwIGwwIC0xODAgLTU0MCAwIC01NDAgMCAwIC03MjUgMCAtNzI1IDU0MCAwIDU0MCAwIDAgLTE4MCAwIC0xODAgMTIwIDAgMTIwIDAgMCA2MCAwIDYwIDYwIDAgNjAgMCAwIDYwIDAgNjAgNjAgMCA2MCAwIDAgNjAgMCA2MCA2MCAwIDYwIDAgMCA2MCAwIDYwIDYwIDAgNjAgMCAwIDYwIDAgNjAgNjAgMCA2MCAwIDAgNjAgMCA2MCA2MCAwIDYwIDAgMCA1MyBjMCAyOSA1IDU4IDEyIDY1IDcgNyAzNCAxMiA2MCAxMiBsNDggMCAwIDIzNSAwIDIzNSAtNjAgMCAtNjAgMCAwIDY1IDAgNjUgLTQ3IDAgYy02OCAwIC03NSAtNyAtNzEgLTcxIGwzIC01NCA1OCAtMyA1NyAtMyAwIC0xMTkgMCAtMTIwIC01NSAwIC01NCAwIC0zIC01NyAtMyAtNTggLTYwIC01IC02MCAtNSAtMyAtNTcgLTMgLTU3IC01NyAtMyAtNTcgLTMgLTMgLTU3IC0zIC01NyAtNTcgLTMgLTU3IC0zIC0zIC01NyAtMyAtNTcgLTU3IC0zIC01NyAtMyAtMyAtNTcgLTMgLTU3IC01NyAtMyAtNTcgLTMgLTMgLTU4IC0zIC01OCAtNTcgMyAtNTcgMyAtMyAxNzggLTIgMTc3IC01NDAgMCAtNTQwIDAgMiA0ODMgMyA0ODIgNTM3IDMgNTM2IDIgNyAzMiBjNCAxNyA2IDk3IDQgMTc3IGwtNCAxNDYgNTggMyA1NyAzIDAgLTYxIDAgLTYwIDYwIDAgNjAgMCAwIC02MCAwIC02MCA2MCAwIDYwIDAgMCAtNjAgMCAtNjAgNjAgMCA2MCAwIDAgLTYwIDAgLTYwIDYwIDAgNjAgMCAwIC02MCAwIC02MCA2MCAwIDYwIDAgMCA2MCAwIDYwIC02MCAwIC02MCAwIDAgNjAgMCA2MCAtNjAgMCAtNjAgMCAwIDYwIDAgNjAgLTYwIDAgLTYwIDAgMCA2MCAwIDYwIC02MCAwIC02MCAwIDAgNjAgMCA2MCAtNjAgMCAtNjAgMCAwIDYwIDAgNjAgLTEyMCAwIC0xMjAgMCAwIC0xODB6Ij48L3BhdGg+PC9nPjwvc3ZnPg==") / "Scroll Left";
    grid-area: left;
}

.carousel::scroll-button(right) {
    content: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEuMCIgd2lkdGg9IjQ4IiBoZWlnaHQ9IjQ4IiB2aWV3Qm94PSIwIDAgMjMyLjAwMDAwMCAyNTYuMDAwMDAwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJ4TWlkWU1pZCBtZWV0Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLjAwMDAwMCwyNTYuMDAwMDAwKSBzY2FsZSgwLjEwMDAwMCwtMC4xMDAwMDApIiBmaWxsPSIjZmZmIiBzdHJva2U9Im5vbmUiPjxwYXRoIGQ9Ik0xMTgwIDIxMTAgbDAgLTE4MCAtNTQwIDAgLTU0MCAwIDAgLTcyNSAwIC03MjUgNTQwIDAgNTQwIDAgMCAtMTgwIDAgLTE4MCAxMjAgMCAxMjAgMCAwIDYwIDAgNjAgNjAgMCA2MCAwIDAgNjAgMCA2MCA2MCAwIDYwIDAgMCA2MCAwIDYwIDYwIDAgNjAgMCAwIDYwIDAgNjAgNjAgMCA2MCAwIDAgNjAgMCA2MCA2MCAwIDYwIDAgMCA2MCAwIDYwIDYwIDAgNjAgMCAwIDUzIGMwIDI5IDUgNTggMTIgNjUgNyA3IDM0IDEyIDYwIDEyIGw0OCAwIDAgMjM1IDAgMjM1IC02MCAwIC02MCAwIDAgNjUgMCA2NSAtNDcgMCBjLTY4IDAgLTc1IC03IC03MSAtNzEgbDMgLTU0IDU4IC0zIDU3IC0zIDAgLTExOSAwIC0xMjAgLTU1IDAgLTU0IDAgLTMgLTU3IC0zIC01OCAtNjAgLTUgLTYwIC01IC0zIC01NyAtMyAtNTcgLTU3IC0zIC01NyAtMyAtMyAtNTcgLTMgLTU3IC01NyAtMyAtNTcgLTMgLTMgLTU3IC0zIC01NyAtNTcgLTMgLTU3IC0zIC0zIC01NyAtMyAtNTcgLTU3IC0zIC01NyAtMyAtMyAtNTggLTMgLTU4IC01NyAzIC01NyAzIC0zIDE3OCAtMiAxNzcgLTU0MCAwIC01NDAgMCAyIDQ4MyAzIDQ4MiA1MzcgMyA1MzYgMiA3IDMyIGM0IDE3IDYgOTcgNCAxNzcgbC00IDE0NiA1OCAzIDU3IDMgMCAtNjEgMCAtNjAgNjAgMCA2MCAwIDAgLTYwIDAgLTYwIDYwIDAgNjAgMCAwIC02MCAwIC02MCA2MCAwIDYwIDAgMCAtNjAgMCAtNjAgNjAgMCA2MCAwIDAgLTYwIDAgLTYwIDYwIDAgNjAgMCAwIDYwIDAgNjAgLTYwIDAgLTYwIDAgMCA2MCAwIDYwIC02MCAwIC02MCAwIDAgNjAgMCA2MCAtNjAgMCAtNjAgMCAwIDYwIDAgNjAgLTYwIDAgLTYwIDAgMCA2MCAwIDYwIC02MCAwIC02MCAwIDAgNjAgMCA2MCAtMTIwIDAgLTEyMCAwIDAgLTE4MHoiLz48L2c+PC9zdmc+") / "Scroll Right";
    grid-area: right;
    justify-self: flex-end;
}

.carousel::scroll-marker-group {
    content: "";
    width: 100%;
    height: 8px;
    padding: 2px 0;
    display: grid;
    position: absolute;
    grid-area: markers;

    grid-auto-flow: column;
    place-self: center;
    overflow: hidden;
    border: 1px solid #000;

    background: linear-gradient(90deg, #f1e2b2 0%) no-repeat left center;
    --_progress: calc(calc(100 / var(--slides)) * 1%);
    background-size: var(--_progress, 20%) 100%;

    animation: progress linear both;
    animation-timeline: --carousel-timeline;
}

.carousel>.carousel-item {
    scroll-snap-stop: always;
    scroll-snap-align: start;
    animation: count-before linear forwards;
    animation-range: exit;
    counter-increment: page;
    animation-timeline: view(x);

    position: relative;
    box-sizing: border-box;
    color: #333;
}

.carousel-item::scroll-marker {
    content: '';
    position: relative;
    left: -1px;
    width: 100%;
    height: 100%;
    display: block;
    box-sizing: border-box;
    box-shadow: 2px 0 0 #000;
}

.carousel-item:last-of-type::scroll-marker {
    box-shadow: none;
}

.page-container {
    display: flex;
    gap: 3rem;
    height: 100%;

    animation: stay-centered linear both;
    animation-timeline: view(x);
    timeline-scope: --parallax-item;
}

.left-page,
.right-page {
    flex: 1;
    font-size: small;
    overflow: hidden;
    display: grid;
    grid-template-rows: 1fr auto;
    font-family: 'MinecraftCustom', Arial, sans-serif;
}

.left-page:after,
.right-page:after {
    bottom: 15px;
    color: hsl(45.71deg 69.23% 30%);
}

.left-page>div,
.right-page>div {
    text-align: justify;
    hyphens: auto;
    line-height: normal;
    display: block;
    word-wrap: break-word;
    font-family: 'MinecraftCustom', Arial, sans-serif;
}

.left-page {
    padding: 20px 0 20px 20px;
}

.left-page:after {
    content: counter(curpage);
}

.right-page {
    padding: 20px 20px 20px 0;
    counter-increment: curpage;
}

.right-page:after {
    content: counter(curpage);
    place-self: self-end;
}

@keyframes stay-centered {
    entry 0% {
        opacity: 0;
        translate: -100%;
    }

    entry 75% {
        opacity: 0;
        translate: -25%;
    }

    entry 100% {
        opacity: 1;
        translate: 0%;
    }

    exit 0% {
        opacity: 1;
        translate: 0%;
    }

    exit 50% {
        opacity: 0;
        translate: 50%;
    }

    exit 100% {
        opacity: 0;
        translate: 100%;
    }
}

@keyframes count-before {

    1%,
    100% {
        counter-increment: page curpage;
    }
}

@keyframes progress {
    100% {
        --_progress: 100%;
    }
}

@keyframes frame {
    to {
        --sprite-fs: var(--sprite-fe);
    }
}



@media (width < 560px) {
    .livre-container {
        --sprite-th: calc(var(--sprite-sh) / 4);
    }

    .livre-container>h2 {
        font-size: 1rem;
    }

    .left-page>div,
    .right-page>div {
        font-size: .35rem;
    }

    .left-page:after,
    .right-page:after {
        font-size: .5rem;
    }
}

@media (prefers-reduced-motion) {

    .sprite,
    .carousel-item,
    .carousel::scroll-marker-group {
        animation: none;
    }
}

/* ==========================================================================
   BANDEAU DE NOTIFICATION MINECRAFT
   ========================================================================== */

.minecraft-notification {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    min-width: 400px;
    background: #262525;
    border: 4px solid #000;
    box-shadow: inset -4px -4px 0px #222, inset 4px 4px 0px #888;
    color: white;
    font-family: 'MinecraftCustom', sans-serif;
    overflow: hidden;

    /* Entre en 0.5s, attend 5s, puis sort en 0.5s */
    animation: slideDown 0.5s ease-out forwards, fadeOutAuto 0.5s forwards 5s;
}

/* --- KEYFRAMES --- */

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-250px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOutAuto {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-250px);
        opacity: 0;
        pointer-events: none;
    }
}

/* La barre qui diminue */
@keyframes progressLinear {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    position: relative;
}

.notification-messages {
    flex: 1;
    color: #ffffff;
}

.notification-messages p {
    margin: 5px 0;
    font-size: 14px;
    text-shadow: 2px 2px 0px #000;
    line-height: 1.4;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    background: #4a4a4a;
    border: 2px solid #000;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset -2px -2px 0px #1a1a1a, inset 2px 2px 0px #6a6a6a;
    text-decoration: none;
}

.notification-close:hover {
    background: #ff5555;
}

/* --- BARRE DE PROGRESSION --- */
.notification-progress {
    height: 5px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: progressLinear 5s linear forwards;
}

.minecraft-notification.success .notification-progress {
    background: linear-gradient(90deg, #55ff55 0%, #3db83d 100%);
}

.minecraft-notification.error .notification-progress {
    background: #ff5555;
}

/* --- KEYFRAMES --- */

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-150px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOutAuto {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) translateY(-150px);
        opacity: 0;
        pointer-events: none;
    }
}

@keyframes progressLinear {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ==========================================================================
   GALERIE PRIVÉE (S'applique uniquement à .galerie-page)
   ========================================================================== */

.galerie-page {
    padding: 120px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: #141414;
}

.galerie-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    width: 100%;
}

.galerie-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: transform 0.8s ease, filter 0.5s ease;
}

.galerie-item {
    margin: 0;
    position: relative;
    overflow: hidden;
    border: 4px solid #3c3c3c;
    background: #000;
    width: 100%;
}

.galerie-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-family: 'MinecraftCustom', sans-serif;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0px #000;
    z-index: 2;
    opacity: 0;
    background: rgba(0, 0, 0, 0.6);
    transition: opacity 0.4s ease;
}


.galerie-grid li a:hover .galerie-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.galerie-grid li a:hover .galerie-caption {
    opacity: 1;
}

html,
body {
    overflow-y: auto !important;
    height: auto !important;
}

/* ==========================================================================
   PANEL UPLOAD MINECRAFT STYLE - VERSION RECTANGLE HORIZONTAL
   ========================================================================== */
.upload-section {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.upload-panel {
    background: #c6c6c6;
    border: 4px solid #000;
    box-shadow:
        inset -4px -4px 0px #555,
        inset 4px 4px 0px #fff,
        0 10px 30px rgba(0, 0, 0, 0.7);
    padding: 20px 30px;
    position: relative;
    top: -50px;
}



.upload-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}

.drop-zone {
    background: #595959;
    box-shadow:
        inset 3px 3px 0px #fff,
        inset -3px -3px 0px #555;
    padding: 20px 30px;
    text-align: center;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-height: 80px;
}

.drop-zone:hover {
    background: #9a9a9a;
    box-shadow:
        inset 3px 3px 0px #fff,
        inset -3px -3px 0px #444;
}

.drop-zone.drag-over {
    background: #70a145;
    box-shadow:
        inset 3px 3px 0px #a5d67c,
        inset -3px -3px 0px #385022;
}

.drop-zone-text {
    font-family: 'MinecraftCustom', Arial, sans-serif;
    color: #2d2d2d;
    font-size: 14px;
    text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.5);
    white-space: nowrap;
}

.drop-zone-icon {
    font-size: 32px;
    color: #3e3e3e;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 0.3);
}

.upload-submit {
    background: #4e4e4e;
    color: white;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 16px;
    border: 2px solid #000;
    box-shadow: inset -3px -3px 0px #222, inset 3px 3px 0px #888;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    padding: 15px 30px;
    white-space: nowrap;
    transition: all 0.2s;
}

.upload-submit:hover {
    background: #70a145;
    box-shadow: inset -3px -3px 0px #385022, inset 3px 3px 0px #a5d67c;
}

.upload-submit:active {
    transform: translateY(2px);
}

#file-input {
    display: none;
}

.file-preview {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #000;
    border: 2px solid #555;
    color: #70a145;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 12px;
    margin-top: 10px;
}

.file-preview.active {
    display: flex;
}

.file-preview-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-remove {
    background: #4e4e4e;
    border: 1px solid #000;
    color: white;
    padding: 3px 8px;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    font-size: 10px;
}

.file-preview-remove:hover {
    background: #ff5555;
}




.drop-zone.dragover {
    background: #fff;
    border-color: #55ff55;
    border-style: solid;
    box-shadow:
        inset 3px 3px 0px #ccc,
        inset -3px -3px 0px #888,
        0 0 30px rgba(85, 255, 85, 0.6);
}

.upload-icon {
    font-size: 40px;
    color: #4a4a4a;
    text-shadow: 2px 2px 0px #2a2a2a;
}

.drop-zone:hover .upload-icon {
    color: #55ff55;
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.drop-text {
    font-family: 'MinecraftCustom', Arial, sans-serif;
    color: #ffffff;
    font-size: 13px;
    margin: 0;
}

.drop-text-small {
    font-family: 'MinecraftCustom', Arial, sans-serif;
    color: #ffffff;
    font-size: 10px;
    margin: 0;
}

.file-input-wrapper {
    position: relative;
    margin-top: 5px;
}

.file-input-wrapper input[type="file"] {
    display: none;
}

.file-select-btn {
    display: inline-block;
    padding: 10px 25px;
    background: #4e4e4e;
    color: white;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 12px;
    border: 2px solid #000;
    box-shadow:
        inset -3px -3px 0px #222,
        inset 3px 3px 0px #888;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.file-select-btn:hover {
    background: #70a145;
    box-shadow:
        inset -3px -3px 0px #385022,
        inset 3px 3px 0px #a5d67c;
    transform: translateY(-2px);
}

.file-select-btn:active {
    transform: translateY(2px);
    box-shadow: inset 2px 2px 0px #222;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-field label {
    font-family: 'MinecraftCustom', Arial, sans-serif;
    color: #3e3e3e;
    font-size: 11px;
    text-transform: uppercase;
}

.form-field input[type="text"] {
    background: #000;
    border: 2px solid #555;
    color: #55ff55;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    padding: 8px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-field input[type="text"]:focus {
    border-color: #fff;
    box-shadow: 0 0 10px rgba(85, 255, 85, 0.3);
}

.upload-submit-btn {
    width: 100%;
    padding: 12px;
    background: #4e4e4e;
    color: #000;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 14px;
    border: 3px solid #000;
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    transition: all 0.2s ease;
    text-transform: uppercase;
    margin-top: 8px;
}

.upload-submit-btn:hover {
    background: #70a145;
    box-shadow:
        inset -3px -3px 0px #385022,
        inset 3px 3px 0px #a5d67c;
    transform: translateY(-2px);
}

.upload-submit-btn:active {
    transform: translateY(2px);
    box-shadow: inset 2px 2px 0px #3db83d;
}

.upload-submit-btn:disabled {
    background: #6b6b6b;
    color: #4a4a4a;
    cursor: not-allowed !important;
    box-shadow:
        inset -2px -2px 0px #555,
        inset 2px 2px 0px #888;
}

.format-info {
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid #555;
    padding: 8px;
    margin-top: 8px;
}

.format-info p {
    font-family: 'MinecraftCustom', Arial, sans-serif;
    color: #aaa;
    font-size: 9px;
    margin: 2px 0;
    line-height: 1.4;
}

.format-info strong {
    color: #fff;
}


.header {
    position: relative;
}

.particle {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: orange;
    border-radius: 2px;
    pointer-events: none;
    z-index: 9999;
}

.explosion-flash {
    position: fixed;
    width: 200px;
    height: 200px;
    background: rgba(255, 240, 200, 0.9);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}

/* ==========================================================================
   10. PAGE CRÉDITS
   ========================================================================== */

.credits-page {
    padding: 120px 20px;
    min-height: 80vh;
    background: #141414;
    color: white;
}

.pixel-title {
    font-family: 'MinecraftCustom', sans-serif;
    color: #55ff55;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: 3px 3px 0px #000;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.credits-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.credits-card {
    background: #2a2a2a;
    border: 4px solid #3c3c3c;
    padding: 25px;
    box-shadow: inset -4px -4px 0px #1a1a1a, inset 4px 4px 0px #4a4a4a;
}

.credits-subtitle {
    font-family: 'MinecraftCustom', sans-serif;
    color: #fff;
    font-size: 1.2rem;
    border-bottom: 2px solid #55ff55;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 5px;
}

.credits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.credits-list li {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #ccc;
    font-size: 1.1rem;
}

.credits-list li strong {
    color: #55ff55;
    font-family: 'MinecraftCustom', sans-serif;
    font-weight: normal;
    font-size: 1rem;
}

.credits-list li a {
    color: #7fff7f;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.credits-list li a:hover {
    color: #ffffff;
}

.accueil-cta-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 80px 0;
}

.accueil-cta-container {
    display: flex;
    justify-content: center;
    margin: 40px 0 80px 0;
    background: none !important;
    border: none !important;
}



.accueil-cta-container {
    display: flex;
    justify-content: center;
    margin: 50px 0;
    background: transparent !important;
}

.btn-inscription {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 260px;
    transition: transform 0.1s;
}

.btn-inscription:active {
    transform: scale(0.95);
}

.btn-inscription .img-bouton {
    width: 100%;
    height: auto;
}

.btn-inscription .btn-text {
    position: absolute;
    z-index: 2;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    color: #FFFFFF;
    font-size: 18px;
    text-shadow: 2px 2px 0px #373737;
    pointer-events: none;
}

.strong {
    font-weight: 700;
}


/* ==========================================================================
   BOUTON SCROLL TO TOP - STYLE MINECRAFT
   ========================================================================== */

#scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #4e4e4e;
    border: 4px solid #000;
    box-shadow:
        inset -3px -3px 0px #222,
        inset 3px 3px 0px #888,
        0 6px 20px rgba(0, 0, 0, 0.6);
    cursor: url('../cursors/minecraft_main.png'), pointer !important;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    color: white;
    font-size: 28px;
    text-shadow: 2px 2px 0px #000;
    image-rendering: pixelated;
}

#scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: slideInUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* État hover */
#scroll-to-top:hover {
    background: #70a145;

    transform: translateY(-5px);
}

#scroll-to-top:active {
    transform: translateY(2px) scale(0.95);

}

#scroll-to-top::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 16px solid white;
    filter: drop-shadow(2px 2px 0px #000);
}

#scroll-to-top.visible {
    animation: slideInUp 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
        pulse 2s ease-in-out 0.5s infinite;
}


@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

#scroll-to-top.block-style {
    background-image:
        linear-gradient(to right, #5a5a5a 0%, #4e4e4e 50%, #3e3e3e 100%);
    position: relative;
}

#scroll-to-top.block-style::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.1) 4px,
            rgba(0, 0, 0, 0.1) 8px),
        repeating-linear-gradient(0deg,
            transparent,
            transparent 4px,
            rgba(0, 0, 0, 0.1) 4px,
            rgba(0, 0, 0, 0.1) 8px);
    pointer-events: none;
}



/* ==========================================================================
   NOTIFICATION ACHIEVEMENT STYLE MINECRAFT
   ========================================================================== */
.mc-achievement {
    position: fixed;
    top: 20px;
    right: -350px;
    /* Caché */
    width: 300px;
    background: #4e4e4e;
    /* Gris sombre de tes boutons */
    border: 4px solid #000;
    box-shadow:
        inset -4px -4px 0px #222,
        inset 4px 4px 0px #888,
        0 10px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    padding: 15px;
    z-index: 10001;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    transition: right 0.6s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.mc-achievement.show {
    right: 20px;
}

/* Bordures colorées pour le statut */
.mc-achievement.success {
    border-color: #70a145;
}

/* Vert Minecraft */
.mc-achievement.error {
    border-color: #ff5555;
}

/* Rouge */

.mc-achievement-icon {
    width: 40px;
    height: 40px;
    background: #8b8b8b;
    border: 3px solid #000;
    box-shadow: inset -2px -2px 0px #555, inset 2px 2px 0px #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.mc-achievement-text {
    display: flex;
    flex-direction: column;
}

.mc-achievement-title {
    color: #ffff55;
    /* Jaune standard des achievements */
    font-size: 13px;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px #3f3f00;
}

.mc-achievement-msg {
    color: #ffffff;
    font-size: 11px;
    text-shadow: 1px 1px 0px #000;
    margin-top: 2px;
}


/* ==========================================================================
   BACKGROUND PARTICULES POUR SECTION STACK
   ========================================================================== */

#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -10;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    background: #000000;
}

#particles-bg.active {
    opacity: 1;
}

#particles-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* Wrapper de la section stack */
#stack-section-wrapper {
    position: relative;
    z-index: 1;
    margin-top: 150px;
    min-height: 2800px;
}

/* Container des cartes */
#minecraft-stack-container {
    position: relative;
    width: 100%;
    min-height: 2800px;
}

.stack-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Les cartes */
.stack-card {
    width: 90%;
    max-width: 600px;
    min-height: 180px;
    background: #C6C6C6;
    border: 4px solid #000;
    box-shadow:
        inset -4px -4px 0px #8a8a8a,
        inset 4px 4px 0px #ffffff,
        0 6px 0 #000;
    padding: 0;
    margin-bottom: 400px;
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    image-rendering: pixelated;
    transform-origin: top center;
    will-change: transform, filter;
    backface-visibility: hidden;
    position: relative;
    z-index: 2;
}

.step-badge {
    background: #8a8a8a;
    border-bottom: 3px solid #000;
    padding: 10px;
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 1px 1px 0 #000;
}

.card-header {
    padding: 25px 25px 20px 25px;
    border-bottom: 3px solid #8a8a8a;
}

.card-title {
    color: #2a2a2a;
    font-size: 20px;
    margin: 0;
    text-align: center;
    letter-spacing: 1px;
}

.card-body {
    padding: 25px;
    flex: 1;
}

.card-body p {
    font-size: 15px;
    line-height: 1.6;
    color: #3a3a3a;
    margin: 0;
    text-align: center;
}

.highlight {
    font-weight: bold;
    color: #1a1a1a;
}

.scroll-stack-end {
    position: absolute;
    bottom: 0;
    height: 1px;
    width: 100%;
}

/* Bouton CTA */
.stack-cta {
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    margin-top: 80px;
    padding-bottom: 100px;
    position: relative;
    z-index: 3;
}

.stack-btn {
    display: inline-block;
    background: #8a8a8a;
    border: 4px solid #000;
    box-shadow:
        inset -3px -3px 0px #5a5a5a,
        inset 3px 3px 0px #c6c6c6,
        0 6px 0 #000;
    padding: 18px 45px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 #000;
    font-family: 'Courier New', monospace;
    transition: all 0.1s;
}

.stack-btn:hover {
    background: #a0a0a0;
    transform: translateY(3px);
    box-shadow:
        inset -3px -3px 0px #6a6a6a,
        inset 3px 3px 0px #d6d6d6,
        0 3px 0 #000;
}

.stack-btn:active {
    transform: translateY(6px);
    box-shadow:
        inset -2px -2px 0px #5a5a5a,
        inset 2px 2px 0px #b6b6b6;
}

/* Transition fluide vers pixel-section */
#stack-section-wrapper::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to bottom, transparent, #000);
    z-index: 0;
    pointer-events: none;
}

#pixel-section {
    position: relative;
    z-index: 2;
    margin-top: -100px;
}



/* ==========================================================================
PARTENAIRES PAGE   
========================================================================== */


@import url(https://fonts.googleapis.com/css?family=Roboto:300,400,600);


.snip1336 {
    font-family: 'Roboto', Arial, sans-serif;
    position: relative;
    overflow: hidden;
    margin: 10px;
    min-width: 230px;
    max-width: 315px;
    width: 100%;
    color: #ffffff;
    text-align: left;
    line-height: 1.4em;
    background-color: #141414;
}


.snip1336 * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.25s ease;
    transition: all 0.25s ease;
}


.snip1336 img {
    max-width: 100%;
    vertical-align: top;
    opacity: 0.85;
}


.snip1336 figcaption {
    width: 100%;
    background-color: #141414;
    padding: 25px;
    position: relative;
}


.snip1336 figcaption:before {
    position: absolute;
    content: '';
    bottom: 100%;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 55px 0 0 400px;
    border-color: transparent transparent transparent #141414;
}


.snip1336 figcaption a {
    padding: 5px;
    border: 1px solid #ffffff;
    color: #ffffff;
    font-size: 0.7em;
    text-transform: uppercase;
    margin: 10px 0;
    display: inline-block;
    opacity: 0.65;
    width: 47%;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
}


.snip1336 figcaption a:hover {
    opacity: 1;
}


.snip1336 .profile {
    border-radius: 50%;
    position: absolute;
    bottom: 100%;
    left: 25px;
    z-index: 1;
    max-width: 90px;
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.snip1336 .follow {
    margin-right: 4%;
    border-color: #2980b9;
    color: #2980b9;
}


.snip1336 h2 {
    margin: 0 0 5px;
    font-weight: 300;
}


.snip1336 h2 span {
    display: block;
    font-size: 0.5em;
    color: #2980b9;
}


.snip1336 p {
    margin: 0 0 10px;
    font-size: 0.8em;
    letter-spacing: 1px;
    opacity: 0.8;
}


.partenaires {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1080px;
    margin: 40px auto;
    padding: 0 20px;
    justify-items: center;
}


.snip1336 {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: cardAppear 0.6s ease forwards;
    position: relative;
    overflow: hidden;
}


.snip1336:nth-child(1) {
    animation-delay: 0.1s;
}


.snip1336:nth-child(2) {
    animation-delay: 0.2s;
}


.snip1336:nth-child(3) {
    animation-delay: 0.3s;
}


.snip1336:nth-child(4) {
    animation-delay: 0.4s;
}


@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.snip1336:hover {
    transform: translateY(-15px);
}


.snip1336:hover img {
    transform: scale(1.1);
    opacity: 1;
}


.snip1336:hover .profile {
    transform: scale(1.15);
}


.snip1336:hover figcaption a {
    transform: translateY(3px);
    opacity: 1;
}


.snip1336 figcaption a {
    transition: all 0.3s ease;
    text-align: center;
}


.btn {
    display: flex;
    justify-content: center;
}


.snip1336 img {
    transition: all 0.4s ease;
}


.snip1336 .profile {
    transition: all 0.4s ease;
}


.titre_partenaires {
    font-family: "Permanent Marker", cursive;
    text-align: center;
    font-size: 45px;
    letter-spacing: 4px;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 30px;
}


.titre_partenaires::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

section.card3 {
    position: relative;
    margin: 0 auto;
    margin-top: 25px;
    width: 500px;
    font-family: "Roboto", sans-serif;
    height: 200px;
    background-image: url(../images/partner_back.jpg);
    background-repeat: no-repeat;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card3 svg {
    fill: #333;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 3px;
}

.card3:hover {
    transform: scale(1.05);
    color: #ffffff;
}


.card__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: #000000;
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


.card3:hover .card__content {
    transform: rotateX(0deg);
}


.card__title {
    margin: 0 auto;
    text-align: center;
    text-decoration: underline;
    padding-left: 5px;
    font-size: 24px;
    color: var(--white);
    font-weight: 700;
}


.card3:hover svg {
    scale: 0;
}


.card__description {
    margin: 10px 0 0;
    font-size: 14px;
    color: #ffffff;
    line-height: 1.4;
}


/* =====================================================
   SECTION BOUTONS PDF
   ===================================================== */
.pdf-section {
    margin-top: 50px;
    padding: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 108px;
}


.animated-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 16px 36px;
    border: 4px solid;
    border-color: transparent;
    background-color: black;
    font-size: 16px;
    border-radius: 100px;
    font-weight: 600;
    color: white;
    box-shadow: 0 0 0 2px #ffffff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}


.animated-button svg {
    position: absolute;
    width: 24px;
    fill: rgb(255, 255, 255);
    z-index: 9;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}


.animated-button .arr-1 {
    right: 16px;
}


.animated-button .arr-2 {
    left: -25%;
}


.animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}


.animated-button .text {
    font-family: 'Roboto', Arial, sans-serif;
    position: relative;
    z-index: 1;
    transform: translateX(-12px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}


.animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: 12px;
}


.animated-button:hover .arr-1 {
    right: -25%;
}


.animated-button:hover .arr-2 {
    left: 16px;
}


.animated-button:hover .text {
    transform: translateX(12px);
}


.animated-button:hover svg {
    fill: #1f387e;
}


.animated-button:active {
    scale: 0.95;
    box-shadow: 0 0 0 4px #1f387e;
}


.animated-button:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1;
}


.docs {
    text-decoration: none;
    color: white;
}


/* ==========================================================================
  CREDITS PAGE
   ========================================================================== */
.container-1080 {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Grille : align-items: stretch garantit que tous les blocs d'une ligne ont la même hauteur */
.credits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* Style "Bloc" Minecraft sans fioritures */
.credit-card {
    background: #4e4e4e;
    border: 4px solid #000;
    padding: 25px;
    box-shadow: inset -4px -4px 0px #222, inset 4px 4px 0px #888;
    display: flex;
    flex-direction: column;
}

/* Titres : Utilisation de la police personnalisée avec une alternative propre */
.credit-card h2 {
    color: #92fc92;
    font-family: 'MinecraftCustom', 'Trebuchet MS', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px #000;
    text-transform: uppercase;
    text-align: center;
}

.credit-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    /* Force le bloc à remplir l'espace si le texte est court */
}

.credit-card li {
    margin: 12px 0;
    color: #9b9999;
    font-family: 'MinecraftCustom';
    font-size: 15px;
}

/* Liens : Suppression totale de l'effet hover */
.credit-card a {
    color: #ffffff;
    text-decoration: none;
    pointer-events: auto;
}

.credits-title {
    top: -60px;
    font-family: 'MinecraftCustom', Arial, sans-serif;
    font-size: 56px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    width: 100%;
    position: relative;
}

/* Animation de téléportation Enderman */
#scroll-to-top.teleporting {
    background-color: #a621ff !important;
    /* Violet Enderman */
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #5a005a !important;
    border-color: #ffffff !important;
    transition: all 0.1s ease;
    transform: scale(1.2) rotate(15deg) !important;
}

#enderman-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    object-fit: cover;
    /* Important pour remplir l'écran */
}

/* Wrapper principal de la page Enderman - FORCE TOUS LES STYLES */
.enderman-wrapper {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
    background-color: #000 !important;
    cursor: pointer !important;
    font-family: 'Minecraft', 'Courier New', monospace !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Vidéo Enderman - PLEIN ÉCRAN FORCÉ */
#enderman-video {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-width: 100% !important;
    min-height: 100% !important;
    z-index: 999998 !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Overlay de transition */
.enderman-transition {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: #000 !important;
    z-index: 999999 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.8s ease-in-out !important;
}

.enderman-transition.active {
    opacity: 1 !important;
}

/* Écran de mort Minecraft */
.enderman-death-screen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: linear-gradient(180deg, rgba(191, 0, 0, 0.4) 0%, rgba(80, 0, 0, 0.7) 100%) !important;
    display: none !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    z-index: 1000000 !important;
    opacity: 0 !important;
    transition: opacity 1.5s ease-in-out !important;
}

.enderman-death-screen.visible {
    display: flex !important;
    opacity: 1 !important;
}

.enderman-death-text {
    font-size: 48px !important;
    color: #fff !important;
    text-shadow: 3px 3px 0px rgba(63, 0, 0, 1) !important;
    margin-bottom: 30px !important;
    font-weight: normal !important;
    animation: endermanFadeInScale 0.8s ease-out !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
    text-align: center !important;
    font-family: 'Minecraft', 'Courier New', monospace !important;
}

.enderman-death-subtitle {
    font-size: 20px !important;
    color: #ffffff !important;
    margin-bottom: 40px !important;
    animation: endermanFadeIn 1s ease-out 0.5s both !important;
    text-align: center !important;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.8) !important;
    font-family: 'Minecraft', 'Courier New', monospace !important;
}

.enderman-menu-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    width: 400px !important;
    height: 48px !important;
    font-size: 20px !important;
    background: #8b8b8b !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    cursor: pointer !important;
    font-family: 'MinecraftCustom', 'Minecraft', 'Courier New', monospace !important;
    transition: transform 0.1s ease !important;
    animation: endermanFadeIn 1s ease-out 0.8s both !important;
    text-transform: none !important;
    font-weight: normal !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: 1px !important;
    text-align: center !important;
    outline: none !important;
    text-shadow: 2px 2px 0px #373737 !important;
    margin: 0 auto 8px auto !important;
    padding: 0 !important;
}

.enderman-menu-btn-secondary {
    display: none !important;
}

/* Hover : bords blancs */
.enderman-menu-btn:hover {
    background: #a0a0a0 !important;
    color: #ffffa0 !important;
    border: 2px solid #ffffff !important;
}

/* Active : effet enfoncé */
.enderman-menu-btn:active {
    transform: scale(0.98) !important;
}

.enderman-menu-btn:active {
    background: linear-gradient(180deg, #a0a0a0 0%, #909090 50%, #808080 100%) !important;
    box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(2px) !important;
}

/* Animations spécifiques Enderman */
@keyframes endermanFadeInScale {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes endermanFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation de téléportation Enderman (pour d'autres éléments du site) */
.enderman-teleporting {
    background-color: #a621ff !important;
    box-shadow: 0 0 20px #ff00ff, 0 0 40px #5a005a !important;
    border-color: #ffffff !important;
    transition: all 0.1s ease !important;
    transform: scale(1.2) rotate(15deg) !important;
}