/* ==========================================================================
   1. CONFIGURATION GÉNÉRALE DE L'ÉCRAN
   ========================================================================== */
body {
    background-color: #800000;
    margin: 0;
    display: flex;
    justify-content: center; 
    align-items: center;     
    min-height: 100vh;       
}

/* Base pour toutes les images du site (Attention, sélecteur global agressif) */
img {
    width: 300px;
    height: auto;
    display: block;
}

#bottom-left-image {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100px;
    height: auto;
    z-index: 10;
}

#spear-rotating {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: auto;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.3s ease;
    will-change: transform;
}

@keyframes spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

#spear-rotating.spinning {
    animation: spin 4s linear infinite;
    will-change: transform;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.heart-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
}

#hand-background {
    position: absolute;
    width: 450px;
    height: auto;
    opacity: 0.3;
    z-index: 1;
    transform: translateY(-30px);
}

#heart-pulse {
    position: absolute;
    width: 255px;
    height: auto;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ==========================================================================
   2. STRUCTURE DES PAGES (Conteneurs protecteurs)
   ========================================================================== */
.contenu-page {
    max-width: 800px;        
    width: 90%;              
    text-align: left;        
}

/* Classe optionnelle à ajouter au conteneur pour centrer tout son contenu */
.text-centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;      
}

/* ==========================================================================
   3. LES LIENS DU MENU PRINCIPAL (index.html)
   ========================================================================== */
.lien-menu {
    display: block;          
    color: #000000;        
    text-decoration: none; 
    font-weight: bold;      
    margin: 10px 0;          
    transition: color 0.3s;
}

.lien-menu:hover {
    color: #ffffff;          
    text-decoration: underline; 
}

.lien-barre {
    display: block;
    color: #500000;          
    text-decoration: line-through;
    margin: 10px 0;
    cursor: not-allowed;     
}

/* Éléments censurés */
.censure {
    background-color: #000000;
    color: #000000;            
    font-family: monospace;
    transition: color 0.3s;
}

.censure:hover { 
    color: white; 
}

/* paragraphes de texte longs (Codex) */
.description {
    font-size: 1.2rem;     
    line-height: 1.6;      
    color: #000000;        
    margin: 25px 0;   
}

/* ==========================================================================
   4. MODULE DES TROIS CARTES (interaction-tête.html)
   ========================================================================== */
.conteneur-choix {
    display: flex;
    justify-content: space-between; 
    gap: 20px;                      
    width: 100%;                    
    margin-top: 40px;               
}

.carte-choix {
    flex: 1;                        
    background-color: #000000;      
    height: 200px;                  
    display: flex;
    justify-content: center;        
    align-items: center;            
    border: 2px solid transparent;  
    text-decoration: none;          
    transition: all 0.3s ease;      
}

.carte-choix:hover {
    background-color: #1a1a1a;      
    border-color: #ffffff;          
    transform: scale(1.02);         
}

/* Style pour les images à l'intérieur des cartes de choix */
.icone-choix {
    width: 65%;          
    height: 65%;         
    object-fit: contain; 
    display: block;      
    margin: auto;        
    opacity: 0.8;       
    transition: all 0.3s ease; 
}

.carte-choix:hover .icone-choix {
    opacity: 1;
    transform: scale(1.05);
    will-change: transform;
}

/* ==========================================================================
   5. INTERACTIF : LE VINYLE (son.html)
   ========================================================================== */
.conteneur-vinyle {
    margin: 30px auto;
    cursor: pointer;
    width: 300px;
    height: 300px;
}

#vinyle {
    width: 100%;
    height: auto;
    border-radius: 50%; 
}

.vinyle-rotation {
    animation: rotationInfinie 3s linear infinite;
    will-change: transform;
}

.vinyle-stop {
    animation-play-state: paused;
}

@keyframes rotationInfinie {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   6. ÉCRAN DE VISION (vision.html)
   ========================================================================== */
.ecran-projection {
    position: relative;
    width: 500px;               
    height: 350px;              
    background-color: #000000;  
    border: 4px solid #1a1a1a;  
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    overflow: hidden;           
    margin: 20px auto;          
    transition: border-color 0.3s ease;
}

.ecran-projection img, 
.ecran-projection video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecran-projection:hover {
    border-color: #ffffff;      
}

/* Effet de balayage lignes rétro CRT */
.effet-crt {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 255, 0, 0.06));
    background-size: 100% 4px, 6px 100%;
    pointer-events: none;       
}

/* Effet d'impact/flash lors du changement de vidéo */
.glitch-flash {
    animation: sautillement 0.2s ease;
    filter: invert(1) brightness(2);
    will-change: transform, filter;
}

@keyframes sautillement {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-5px, 5px); }
    40% { transform: translate(5px, -5px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(2px, 2px); }
    100% { transform: translate(0, 0); }
}

/* ==========================================================================
   7. MONITEUR DE SURVEILLANCE CLANDESTIN (observation.html)
   ========================================================================== */
.conteneur-fnaf {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #000000;
    padding: 10px;
    border: 4px solid #222;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 1), 0 0 30px rgba(255, 0, 0, 0.2);
    margin: 20px auto;
}

.flux-camera {
    position: relative;
    width: 500px; 
    height: 350px;
    background-color: #050000;
    border: 4px solid #ff0000; 
    overflow: hidden;
}

.flux-camera img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(180%) brightness(40%) sepia(100%) hue-rotate(-50deg);
}

.camera-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-family: 'Courier New', Courier, monospace;
    color: #ff0000;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-shadow: 0 0 8px #ff0000;
    font-size: 1.1em;
    font-weight: bold;
}

.ui-haut {
    display: flex;
    justify-content: space-between;
}

.voyant-rec {
    display: flex;
    align-items: center;
    gap: 10px;
}

.point-rouge {
    width: 14px;
    height: 14px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: clignotementFnaf 1.5s infinite steps(1);
}

@keyframes clignotementFnaf {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

.parasites-intermitents {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    opacity: 0.3;
    pointer-events: none;
}

.groupe-verrouille { margin: 10px 0; }

.zone-saisie-cachee { 
    position: relative;
    margin-top: 15px;
    padding: 12px;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid #500000;
    border-left: 4px solid #ff0000;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 0, 0.2);
    animation: fadeInInput 0.3s ease-out;
}

@keyframes fadeInInput {
    from {
        opacity: 0;
        transform: translateY(-5px);
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 5px rgba(255, 0, 0, 0.1);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 0, 0, 0.2);
    }
}

.zone-saisie-cachee input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ff0000;
    color: #ff0000;
    width: 100%;
    max-width: 250px;
    padding: 8px 12px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    outline: none;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.zone-saisie-cachee input:focus {
    border-bottom-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.5);
}

.zone-saisie-cachee input::placeholder {
    color: rgba(255, 0, 0, 0.6);
    text-shadow: 0 0 3px rgba(255, 0, 0, 0.3);
}

.fermeture-saisie {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: 1px solid #ff0000;
    color: #ff0000;
    width: 24px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-shadow: 0 0 4px rgba(255, 0, 0, 0.6);
    box-shadow: 0 0 8px rgba(255, 0, 0, 0.3);
}

.fermeture-saisie:hover {
    background-color: rgba(255, 0, 0, 0.2);
    border-color: #ffffff;
    color: #ffffff;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
}

/* ==========================================================================
   8. LIEN CACHÉ (Hidden link)
   ========================================================================== */
#hidden-link {
    position: fixed;
    bottom: 5px;
    right: 5px;
    font-size: 40px;
    color: #500000;
    text-decoration: none;
    opacity: 0.15; 
    z-index: 1;
    transition: opacity 0.3s ease;
}

#hidden-link:hover {
    opacity: 1; 
}

/* ==========================================================================
   9. MESSAGE BOX
   ========================================================================== */
.message-box {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 500px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.message-box:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2);
    border-color: #cccccc;
}

/* ==========================================================================
   10. ADMIN RESET BUTTON
   ========================================================================== */
.admin-reset {
    position: fixed;
    top: 10px;
    right: 10px;
    font-size: 20px;
    color: #500000;
    text-decoration: none;
    opacity: 0.3;
    z-index: 100;
    transition: all 0.3s ease;
    cursor: pointer;
}

.admin-reset:hover {
    opacity: 0.6;
    transform: rotate(45deg);
}

/* ==========================================================================
   11. SYSTÈME DE SLIDES (La Rencontre)
   ========================================================================== */
.conteneur-slides {
    position: relative;
    width: 100%;
    margin: 20px auto;
    background-color: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.slide {
    display: none;
    width: 100%;
    opacity: 0;
    animation: fadeInSlide 0.6s ease-in-out forwards;
    padding: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
}

.slide.actif {
    display: flex;
    opacity: 1;
    animation: fadeInSlide 0.6s ease-in-out forwards;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-contenu {
    width: 100%;
    text-align: center;
}

.slide-texte {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.slide-image {
    max-width: 100%;
    width: 100%;
    max-height: 50vh;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.dialogue-sujet {
    color: #ff6b6b;
    font-style: italic;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.4);
    display: inline-block;
}

.controles-slides {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-slide {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #500000;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(80, 0, 0, 0.3);
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 1px;
}

.btn-slide:hover:not(:disabled) {
    background-color: #1a1a1a;
    border-color: #ff0000;
    color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
    transform: scale(1.05);
}

.btn-slide:active:not(:disabled) {
    transform: scale(0.98);
}

.btn-slide:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: #333333;
}

.compteur-slides {
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    padding: 8px 16px;
    background-color: rgba(80, 0, 0, 0.3);
    border: 1px solid #500000;
    letter-spacing: 2px;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

.slide-courant {
    color: #ff6b6b;
    font-weight: bold;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
}

/* ==========================================================================
   12. TEXTE CACHÉ (ABHG)
   ========================================================================== */
#texte-cache-abhg {
    position: fixed; 
    font-family: 'Courier New', Courier, monospace; 
    font-size: 14px;
    font-weight: bold;
    color: #000000; 
    opacity: 0.15; 
    z-index: 100;
    pointer-events: none; 
    user-select: none; 
    letter-spacing: 3px;
}

/* ==========================================================================
   13. TEXTE DE BUILD (Temporaire)
   ========================================================================== */
#build-version {
    position: fixed;
    top: 10px;
    left: 10px; 
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff; 
    opacity: 0.4; 
    z-index: 1000; 
    pointer-events: none; 
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   MODULE DES MAINS (VISITE DU COEUR)
   ========================================================================== */
.hand-container {
    position: fixed !important;
    bottom: -30px !important; 
    left: 0 !important;
    width: 100% !important;
    height: 300px !important;
    display: flex !important;
    justify-content: center !important; 
    align-items: flex-end !important;
    gap: 150px !important; 
    pointer-events: none !important;
    z-index: 50 !important;
    overflow: hidden !important;
}

.hand {
    width: 250px !important;
    height: auto !important;
    mix-blend-mode: multiply;
    opacity: 0.9;
    will-change: transform;
}

.left-hand {
    transform: rotate(-10deg);
    transform-origin: bottom center;
    animation: breathe-left 6s ease-in-out infinite;
}

.right-hand {
    transform: rotate(10deg) scaleX(-1); 
    transform-origin: bottom center;
    animation: breathe-right 6s ease-in-out infinite;
}

/* Animation main gauche */
@keyframes breathe-left {
    0%, 100% { transform: rotate(-10deg) translateY(0); }
    50% { transform: rotate(-15deg) translateY(-20px); }
}

/* Animation main droite */
@keyframes breathe-right {
    0%, 100% { transform: rotate(10deg) scaleX(-1) translateY(0); }
    50% { transform: rotate(15deg) scaleX(-1) translateY(-20px); }
}

.page-visite-coeur {
    background-image: url('images/testbackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center; 
    align-items: center;
}
.center-gif {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px; 
    height: auto;
    z-index: 20;
    /* La ligne pointer-events: none; a été supprimée ici ! */
    filter: drop-shadow(0px 25px 25px rgba(0, 0, 0, 0.5));
    animation: shadow-breathe 4s ease-in-out infinite;
    cursor: pointer; /* J'ai remonté ton cursor: pointer; ici pour regrouper les propriétés */
}
@keyframes shadow-breathe {
    0%, 100% {
        filter: drop-shadow(0px 20px 20px rgba(0, 0, 0, 0.5));
    }
    50% {
        filter: drop-shadow(0px 35px 30px rgba(0, 0, 0, 0.7));
    }
}
/* ==========================================================================
   EXTENSION WEIRDCORE / BIBLIQUE (Pour la deuxième page index uniquement)
   ========================================================================== */

/* Écrase le fond rouge uniquement si le body a la classe .weirdcore-page */
body.weirdcore-page {
    background-color: #ffffff !important; /* Reste en secours si l'image ne charge pas */
    color: #000000 !important;
    font-family: "Times New Roman", Times, serif !important;
    
    /* Intégration de ton image de fond */
    background-image: url('images/farfromheaven.jpg') !important; 
    background-size: cover !important;          /* L'image prend tout l'écran */
    background-position: center !important;      /* Centrée */
    background-repeat: no-repeat !important;     /* Ne se répète pas en mosaïque */
    background-attachment: fixed !important;     /* Effet fixe très "Weirdcore" quand on scroll */
}

.weirdcore-page #build-version {
    color: #000000 !important;
    opacity: 0.3 !important;
}

.weirdcore-page h1 {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 3rem !important;
    letter-spacing: 5px !important;
    color: #000000 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    margin-bottom: 50px !important;
    animation: weirdcore-blink 2s infinite steps(2) !important;
}

@keyframes weirdcore-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.weirdcore-page .contenu-page {
    max-width: 650px !important;
    background: #ffffff !important;
    padding: 40px !important;
    border: 1px solid #000000 !important;
    box-shadow: 10px 10px 0px #000000 !important;
}

/* ==========================================================================
   LES AGNEAUX FLOTTANTS EN ARRIÈRE-PLAN
   ========================================================================== */

/* ÉTAPE CRITIQUE : On force le texte à passer DEVANT les agneaux */
.weirdcore-page .contenu-page {
    position: relative !important;
    z-index: 10 !important; /* Plus haut que les agneaux (qui sont à 1) */
    max-width: 650px !important;
    background: #ffffff !important;
    padding: 40px !important;
    border: 1px solid #000000 !important;
    box-shadow: 10px 10px 0px #000000 !important;
}

/* Style commun pour tous les agneaux du fond */
.weirdcore-page .bg-lamb {
    position: fixed !important;
    width: 75px !important;           /* Plus petits pour donner de la profondeur */
    height: auto !important;
    z-index: 1 !important;            /* Entre l'image de fond (0) et le texte (10) */
    pointer-events: none !important;  /* ESSENTIEL : traverse l'image si on clique dessus, ne bloque pas le site */
    opacity: 0.5 !important;          /* Un peu transparents/éthérés */
    filter: sepia(20%) !important;    /* Donne un léger teint "vieux papier/biblique" */
}

/* --- Configuration et rythmes individuels --- */

.weirdcore-page .lamb-1 {
    top: 15%;
    left: 8%;
    animation: vol-sinueux 22s ease-in-out infinite !important;
}

.weirdcore-page .lamb-2 {
    top: 55%;
    right: 10%;
    width: 110px !important; /* Un agneau plus gros (plus proche de l'écran) */
    opacity: 0.6 !important;
    animation: vol-oblique 28s ease-in-out infinite !important;
    animation-delay: -5s !important; /* Décalage pour ne pas commencer en même temps */
}

.weirdcore-page .lamb-3 {
    bottom: 10%;
    left: 25%;
    width: 50px !important;  /* Un tout petit agneau au loin */
    opacity: 0.3 !important;
    animation: vol-orbite 18s ease-in-out infinite !important;
    animation-delay: -2s !important;
}

.weirdcore-page .lamb-4 {
    top: 25%;
    right: 22%;
    animation: vol-sinueux 19s ease-in-out infinite !important;
    animation-delay: -12s !important;
}


/* --- Les différentes trajectoires de vol fluide --- */

/* Trajectoire 1 : Balancement horizontal et vertical doux */
@keyframes vol-sinueux {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, 60px) rotate(10deg); }
    66% { transform: translate(-40px, 120px) rotate(-10deg); }
}

/* Trajectoire 2 : Diagonale lente avec retournement de l'image (scaleX) */
@keyframes vol-oblique {
    0%, 100% { transform: translate(0, 0) rotate(5deg) scaleX(1); }
    50% { transform: translate(-180px, -120px) rotate(-15deg) scaleX(-1); }
}

/* Trajectoire 3 : Mouvement elliptique/circulaire bizarre */
@keyframes vol-orbite {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(60px, -60px); }
    50% { transform: translate(120px, 0px) rotate(5deg); }
    75% { transform: translate(60px, 60px); }
}

/* Liens hypertextes style vieux web / weirdcore */
.weirdcore-page .lien-menu {
    color: #0000ff !important;
    text-decoration: underline !important;
    font-weight: normal !important;
    margin: 15px 0 !important;
}

.weirdcore-page .lien-menu:hover {
    color: #ff00ff !important;
}

.weirdcore-page .lien-barre {
    color: #999999 !important;
    text-decoration: none !important;
    font-style: italic !important;
    cursor: help !important;
}

.weirdcore-page .lien-barre::after {
    content: " (Inaccessible à votre nature)" !important;
    font-size: 0.8rem !important;
    color: #ccc !important;
}

/* Censure blanche/grise */
.weirdcore-page .censure {
    background-color: #f0f0f0 !important;
    color: #f0f0f0 !important;
    border-bottom: 1px dashed #000 !important;
    transition: all 0.3s !important;
}

.weirdcore-page .censure:hover {
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* Inputs cliniques et bruts */
.weirdcore-page .zone-saisie-cachee {
    background-color: #fafafa !important;
    border: 1px dashed #000000 !important;
    border-left: 5px solid #0000ff !important;
    box-shadow: none !important;
}

.weirdcore-page .zone-saisie-cachee input {
    border-bottom-color: #000000 !important;
    color: #000000 !important;
    text-shadow: none !important;
    font-family: inherit !important;
}

.weirdcore-page .fermeture-saisie {
    border-color: #000000 !important;
    color: #000000 !important;
    box-shadow: none !important;
}

.weirdcore-page #point-secret {
    color: #000000 !important;
    font-weight: bold !important;
}

.weirdcore-page .admin-reset {
    color: #000000 !important;
    opacity: 0.2 !important;
}
/* ==========================================================================
   PANNEAU ET CONTROLE DU VOLUME WEIRDCORE
   ========================================================================== */
.weirdcore-page #audio-panel {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important; /* Aligné verticalement */
    align-items: center !important;
    gap: 10px !important;
}

.weirdcore-page #music-toggle {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #000000 !important;
    box-shadow: 4px 4px 0px #000000 !important;
    padding: 8px 14px !important;
    font-family: "Courier New", Courier, monospace !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    letter-spacing: 1px !important;
    transition: transform 0.05s, box-shadow 0.05s !important;
    width: 120px !important; /* Largeur fixe pour stabiliser le panneau */
    text-align: center !important;
}

.weirdcore-page #music-toggle:active {
    transform: translate(2px, 2px) !important;
    box-shadow: 2px 2px 0px #000000 !important;
}

/* Le Slider de volume (Barre de réglage brute) */
.weirdcore-page #volume-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 110px !important;
    height: 6px !important;
    background: #e5e5e5 !important;
    border: 1px solid #000000 !important;
    outline: none !important;
}

/* Curseur du slider (Pour Chrome, Safari, Edge, Opera) */
.weirdcore-page #volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 12px !important;
    height: 16px !important;
    background: #000000 !important;
    border: 1px solid #ffffff !important;
    cursor: pointer !important;
}

/* Curseur du slider (Pour Firefox) */
.weirdcore-page #volume-slider::-moz-range-thumb {
    width: 12px !important;
    height: 16px !important;
    background: #000000 !important;
    border: 1px solid #ffffff !important;
    cursor: pointer !important;
}

/* La classe qui sera ajoutée au body au moment du clic */
.nouveau-fond {
    /* Remplace 'images/ton-nouveau-fond.jpg' par le chemin de ta nouvelle image */
    background-image: url('images/field.jpg') !important; 
    
    /* Ajoute ici d'autres styles si tu veux assombrir ou changer la couleur */
    background-color: #000; 
}
/* Le carré cliquable pour l'étape 2 */
#zone-suivante {
    display: none; /* Caché au tout début ! Il s'affichera grâce au JS */
    position: fixed;
    top: 75%; /* Ajuste ce pourcentage pour le monter ou le descendre */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; /* Largeur de la zone cliquable */
    height: 100px; /* Hauteur de la zone cliquable */
    
    /* Si le carré noir fait déjà partie de ton image de fond, mets "transparent" ici.
       S'il n'existe pas sur l'image et que tu veux le dessiner avec du code, mets "#222" ou "black" */
    background-color: transparent; 
    
    cursor: pointer;
    z-index: 20;
}
/* La classe pour ton 3ème arrière-plan */
.fond-etape-2 {
    background-image: url('images/bigbackthing.jpg') !important; 
    background-color: #000;
}
/* ==========================================================================
   BOÎTE SECRÈTE DE LA DERNIÈRE SCÈNE (Version Blanche)
   ========================================================================== */
#boite-finale {
    display: none; /* Cachée par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7); /* Fond noir semi-transparent conservé */
    border: 2px solid #ffffff; /* Bordure passée en blanc */
    /* Lueur subtile blanche autour de la boîte */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.2); 
    padding: 30px;
    z-index: 100;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(3px);
}

#boite-finale input {
    background: transparent;
    border: none;
    border-bottom: 2px solid #ffffff; /* Ligne de saisie en blanc */
    color: #ffffff; /* Texte tapé en blanc */
    width: 250px;
    padding: 10px;
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 3px;
    outline: none;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5); /* Ombre du texte blanche */
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#reponse-texte {
    font-family: 'Courier New', Courier, monospace;
    color: #ffffff; /* Réponse finale en blanc */
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.5s ease;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    height: 30px;
}
.postit {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 280px;
    padding: 14px 16px;

    background: #f6f0a8;
    color: #1a1a1a;

    font-size: 13px;
    line-height: 1.35;
    font-family: "Courier New", monospace;

    border: 1px solid rgba(0, 0, 0, 0.15);

    box-shadow: 6px 6px 18px rgba(0, 0, 0, 0.35);

    transform: rotate(-2.5deg);

    z-index: 9999;

    filter: contrast(1.05) saturate(0.9);

    /* animation légère de flottement */
    animation: floatNote 6s ease-in-out infinite;
}

/* texture glitch / papier */
.postit::before {
    content: "";
    position: absolute;
    inset: 0;

    background: repeating-linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.03),
        rgba(0, 0, 0, 0.03) 2px,
        transparent 2px,
        transparent 6px
    );

    pointer-events: none;
}

/* petit effet de vibration subtile */
.postit::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(255, 255, 255, 0.03);
    mix-blend-mode: overlay;

    animation: glitchFlicker 3.5s infinite;
    pointer-events: none;
}

/* flottement organique */
@keyframes floatNote {
    0%   { transform: rotate(-2.5deg) translateY(0px); }
    50%  { transform: rotate(-1.8deg) translateY(-4px); }
    100% { transform: rotate(-2.5deg) translateY(0px); }
}

/* micro instabilité visuelle */
@keyframes glitchFlicker {
    0%   { opacity: 0.03; }
    45%  { opacity: 0.06; }
    50%  { opacity: 0.02; }
    55%  { opacity: 0.08; }
    100% { opacity: 0.03; }
}
