@import url(./KeyFrames.css);
@import url(./MediaQueries.css);

/* =========================================
    TRANSITIONS INTER PAGES 
========================================= */

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: 0.1s steps(2, end) both glitch-out;
}

::view-transition-new(root) {
    animation: 0.3s steps(4, end) both glitch-in;
}

@keyframes glitch-out {
    0% { opacity: 1; transform: translateX(0); }
    50% { opacity: 0.5; transform: translateX(-10px); }
    100% { opacity: 0; }
}

@keyframes glitch-in {
    0% { opacity: 0; filter: invert(100%); }
    25% { opacity: 0.8; transform: translateX(10px); }
    50% { opacity: 0.5; filter: invert(0%); }
    75% { opacity: 1; transform: translateX(-5px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* =========================================
   VARIABLES DE THÈME (COULEURS)
========================================= */

:root {
    --color-primary: #00ff41;       
    --color-secondary: #00ff88;    
    --color-bg-main: #0a0a0a;     
    --color-text-white: #ffffff;    
    --color-text-jill: #efefef;    
    --color-black: #000000;         
    
    --rgb-primary: 0, 255, 65;
    --rgb-secondary: 0, 255, 136;
    --rgb-white: 255, 255, 255;
    --rgb-black: 0, 0, 0;
    
    --rgb-dark-panel: 0, 15, 5;     
    --rgb-grey-panel: 40, 40, 40;    
    --rgb-grey-dark: 27, 27, 27;     
    --rgb-scroll-track: 0, 20, 10;   
    
    --rgb-red: 255, 0, 0;            
    --rgb-red-highlight: 255, 50, 50;
    --rgb-crt-green: 18, 150, 18;
    --rgb-crt-bg: 18, 16, 16;
}

body[data-theme="bleu"] {
    --color-primary: #00bfff;
    --color-secondary: #87cefa;
    --rgb-primary: 0, 191, 255;
    --rgb-secondary: 135, 206, 250;
    --rgb-dark-panel: 0, 10, 25;
}

body[data-theme="jaune"] {
    --color-primary: #ffff00;
    --color-secondary: #ffff88;
    --rgb-primary: 255, 255, 0;
    --rgb-secondary: 255, 255, 136;
    --rgb-dark-panel: 25, 25, 0;
}

body[data-theme="rouge"] {
    --color-primary: #ff2a2a;
    --color-secondary: #ff7373;
    --rgb-primary: 255, 42, 42;
    --rgb-secondary: 255, 115, 115;
    --rgb-dark-panel: 25, 5, 5;
}

/* =========================================
   GLOBAL & REINITIALISATION
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style-type: none;
}

button {
    background-color: transparent;
    border: none;
}

body {
    background: var(--color-bg-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

body::before {
    content: " ";
    display: block;
    position: fixed;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(var(--rgb-crt-bg), 0) 50%, rgba(var(--rgb-black), 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 1000;
    pointer-events: none;
    background-size: 100% 4px, 3px 100%;
} 

@font-face {
    font-family: "Cinzel";
    src: url(./font/Cinzel-Regular.ttf);
}

html, body, a, button, .Emplacement-Inventaire, label {
    cursor: url('./Image/Curseur.png') 0 0, auto;
}

.fond-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

/* =========================================
   NAVIGATION & EN-TÊTE
========================================= */

.Haut-Inventaire {
    display: flex;
    position: absolute;
    right: 10%;
    top: 0%;
    bottom: 0%;
    flex-direction: column;
    align-items: center;
    background: linear-gradient( to bottom, rgba(var(--rgb-grey-dark), 0.9) 10%, rgba(var(--rgb-black), 0.9) 12%, transparent 15%),
                linear-gradient( to top, rgba(var(--rgb-grey-dark), 0.9) 10%, rgba(var(--rgb-black), 0.9) 12%, transparent 15%);
    backdrop-filter: blur(5px);
    color: var(--color-text-white);
    width : 90%;
    max-width: 480px;
}

.Barre-Superieure {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    gap: 30px;
    padding-top: 25px;
    font-family: 'VT323', monospace;
}

#Label-Carte, #Label-Pomodoro {
    width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#Label-Etat-Initial {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Titre-Principal h1 {
    font-size: 32px;
    letter-spacing: 3px;
    font-weight: bold;
}

.Bouton-Navigation {
    font-size: 16px;
    letter-spacing: 2px;
}

.dot-indicateur {
    display: block;
    width: 25px;
    height: 3px;
    background-color: rgba(var(--rgb-white), 0.15);
    border: 1px solid rgba(var(--rgb-white), 0.3);
    transition: all 0.3s ease;
    margin-top: 10px;
}

#etat-initial:checked ~ main .dot-center,
#Btn-Carte:checked ~ main .dot-left,
#Btn-Pomodoro:checked ~ main .dot-right {
    background-color: var(--color-primary);
    border-color: var(--color-secondary);
    box-shadow: 0 0 10px var(--color-primary), 0 0 3px var(--color-primary);
    transform: scaleX(1.4) scaleY(1.2);
}

#Label-Carte:hover,
#Label-Pomodoro:hover,
#Label-Etat-Initial:hover {
    transform: scale(1.05);
}

body:has(#Btn-Pomodoro:checked) .Grille-Inventaire,
body:has(#Btn-Pomodoro:checked) .Conteneur-Dialogue-Jill {
    display: none !important;
}

/* =========================================
   GRILLE D'INVENTAIRE
========================================= */

.Grille-Inventaire {
    display : grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 15px;
    width: 100%;
    margin-top: 60px;
}

.Emplacement-Inventaire {
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(var(--rgb-white), 0.1);
    background: rgba(var(--rgb-grey-panel), 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.Emplacement-Inventaire span {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.Emplacement-Inventaire img {
    max-width: 90%;
    max-height: 90%;
}

.Emplacement-Inventaire.vide {
    position: relative;
    background: rgba(var(--rgb-black), 0.4);
    border: 1px solid rgba(var(--rgb-white), 0.05);
    overflow: hidden;
}

.Emplacement-Inventaire.vide::before,
.Emplacement-Inventaire.vide::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 142%;
    height: 2px; 
    background: rgba(var(--rgb-white), 0.15);
    transform-origin: center;
}

.Emplacement-Inventaire.vide::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.Emplacement-Inventaire.vide::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

#emplacement-veille:hover, 
#emplacement-cv:hover, 
#emplacement-projet:hover,
#emplacement-ordi:hover,
#emplacement-jeu:hover {
    border-color: var(--color-primary); 
    background: rgba(var(--rgb-primary), 0.1);
    box-shadow: inset 0 0 15px rgba(var(--rgb-primary), 0.2);
    transform: scale(1.05);
}

/* =========================================
   TEXTES DE DESCRIPTION DES OBJETS
========================================= */

.Description-Projet, .Description-CV, .Description-Veille, .Description-Ordi, .Description-Jeu {
    display: none;
    position: absolute;
    bottom: 30px;
    left: 20px;
    color: var(--color-text-white);
    font-size: 15px;
    font-family: "Cinzel", serif;
    text-shadow: 1px 1px 3px rgba(var(--rgb-black), 0.7);
}

.Description-Projet hr, .Description-CV hr, .Description-Veille hr, .Description-Ordi hr, .Description-Jeu hr {
    border: 0;
    height: 1px;
    background: rgba(var(--rgb-white), 0.5);
    margin: 8px 0;
}

.Description-CV p, .Description-Projet p, .Description-Veille p, .Description-Ordi p, .Description-Jeu p {
    max-width: 320px;
}

.Haut-Inventaire:has(#emplacement-projet:hover) .Description-Projet,
.Haut-Inventaire:has(#emplacement-cv:hover) .Description-CV,
.Haut-Inventaire:has(#emplacement-veille:hover) .Description-Veille,
.Haut-Inventaire:has(#emplacement-ordi:hover) .Description-Ordi,
.Haut-Inventaire:has(#emplacement-jeu:hover) .Description-Jeu {
    display: block;
}

/* =========================================
   BOUTONS D'INSPECTION D'OBJET
========================================= */

.Icone-Examiner {
    position: absolute;
    top: 290px;
    width: 240px; 
    height: 40px;
    background-color: rgba(var(--rgb-black), 0.9);
    z-index: 150;
    display: none;
    border: 1px solid rgba(var(--rgb-white), 0.3);
}

.Icone-Examiner label, .Icone-Examiner a {
    display: block;
    width: 100%;
    height: 100%;
    font-family: 'VT323', monospace;
    color: var(--color-text-white);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 10px 0px 0px 40px;
    text-decoration: none;
}

.Icone-Examiner label:hover, .Icone-Examiner a:hover {
    color: var(--color-primary); 
    transform: scale(1.02);
}

#emplacement-projet:focus + .Icone-Examiner,
#emplacement-projet + .Icone-Examiner:hover {
    display: flex;
    left: -8%;
}

#emplacement-cv:focus + .Icone-Examiner,
#emplacement-cv + .Icone-Examiner:hover {
    display: flex;
    left: 27%;
}

#emplacement-veille:focus + .Icone-Examiner,
#emplacement-veille + .Icone-Examiner:hover {
    display: flex;
    left: 62%;
}

#emplacement-jeu:focus + .Icone-Examiner,
#emplacement-jeu + .Icone-Examiner:hover {
    display: flex;
    top: 75%;
    left: -8%;
}

/* =========================================
   EFFETS CATHODIQUES ET ALLUMAGE
========================================= */

.animation-allumage-ecran {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(var(--rgb-dark-panel), 0.98);
    background-image: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(var(--rgb-primary), 0.02) 3px, rgba(var(--rgb-primary), 0.02) 6px);
    border: 4vh solid #141414;
    border-radius: 25px;
    box-shadow: inset 0 0 150px rgba(0,0,0,0.95);
    z-index: 2500;
    pointer-events: none;
    display: none; 
    box-sizing: border-box;
    opacity: 0;
    will-change: opacity;
    overflow: hidden;
}

.animation-allumage-ecran::before {
    content: "SYS.ARCHIVE";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-family: 'VT323', monospace;
    color: var(--color-primary);
    opacity: 0.03;
    white-space: nowrap;
    pointer-events: none;
}

.animation-allumage-ecran::after {
    content: "";
    position: absolute;
    top: 4vh; 
    left: 4vw; 
    right: 4vw; 
    bottom: 4vh;
    border: 1px solid rgba(var(--rgb-primary), 0.15);
    clip-path: polygon(0 20px, 20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px));
    pointer-events: none;
}

#radio-projet:checked ~ .animation-allumage-ecran,
#radio-cv:checked ~ .animation-allumage-ecran,
#radio-veille:checked ~ .animation-allumage-ecran,
#radio-jeu:checked ~ .animation-allumage-ecran {
    display: block;
    animation: fade-ecran-allumage 0.3s ease-out forwards;
}

#fermer-examen:checked ~ .animation-allumage-ecran {
    display: block;
    animation: fade-ecran-extinction 0.2s ease-in forwards;
}

.calque-cathodique {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(rgba(var(--rgb-crt-green), 0.15) 50%, rgba(var(--rgb-black), 0.4) 100%),
                linear-gradient(rgba(var(--rgb-crt-bg), 0) 50%, rgba(var(--rgb-black), 0.1) 50%);
    background-size: 100% 100%, 100% 4px;
    z-index: 2600;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

#radio-projet:checked ~ .calque-cathodique,
#radio-cv:checked ~ .calque-cathodique,
#radio-veille:checked ~ .calque-cathodique,
#radio-jeu:checked ~ .calque-cathodique {
    visibility: visible;
    opacity: 0.3;
}

/* =========================================
   STYLE COMMUN DES BOUTONS TERMINAL
========================================= */

.bouton-fermer-ecran, 
.bouton-telecharger-ecran, 
.bouton-telecharger-ecran-Veille {
    background: rgba(var(--rgb-black), 0.8);
    color: var(--color-primary);
    font-family: 'VT323', monospace;
    font-size: 26px;
    border: 2px solid var(--color-primary);
    outline: 1px solid rgba(var(--rgb-primary), 0.3);
    outline-offset: 4px;
    box-shadow: inset 0 0 10px rgba(var(--rgb-primary), 0.1);
    padding: 10px 20px;
    z-index: 3500;
    cursor: pointer;
    text-shadow: 0 0 5px var(--color-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: fixed;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s ease-out;
}

.bouton-fermer-ecran:hover, 
.bouton-telecharger-ecran:hover, 
.bouton-telecharger-ecran-Veille:hover {
    background: var(--color-primary);
    color: var(--color-black);
    box-shadow: 0 0 20px rgba(var(--rgb-primary), 0.6);
    text-shadow: none;
    outline-offset: 6px;
    outline-color: var(--color-primary);
    transform: scale(1.02);
}

/* =========================================
   POSITIONS ET DÉCLENCHEURS (FERMETURE)
========================================= */

.bouton-fermer-ecran {
    bottom: 50px;
    right: 50px;
}

#radio-projet:checked ~ .bouton-fermer-ecran,
#radio-cv:checked ~ .bouton-fermer-ecran,
#radio-veille:checked ~ .bouton-fermer-ecran,
#radio-jeu:checked ~ .bouton-fermer-ecran {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease 0.6s, visibility 0.3s ease 0.6s;
}

#fermer-examen:checked ~ .bouton-fermer-ecran,
#etat-initial:checked ~ .bouton-fermer-ecran {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0s, visibility 0s; 
}

/* =========================================
   POSITIONS ET DÉCLENCHEURS (TÉLÉCHARGEMENT/PROJETS)
========================================= */

.bouton-telecharger-ecran, 
.bouton-telecharger-ecran-Veille {
    top: 10%;
    right: 50px;
}

#radio-cv:checked ~ .bouton-telecharger-ecran,
#radio-veille:checked ~ .bouton-telecharger-ecran-Veille {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.3s ease 0.6s, visibility 0.3s ease 0.6s;
}

#fermer-examen:checked ~ .bouton-telecharger-ecran,
#etat-initial:checked ~ .bouton-telecharger-ecran,
#fermer-examen:checked ~ .bouton-telecharger-ecran-Veille,
#etat-initial:checked ~ .bouton-telecharger-ecran-Veille {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0s, visibility 0s; 
}

body:has(input[name="examen"]:not(#fermer-examen):not(#etat-initial):not(#Btn-Pomodoro):not(#Btn-Carte):checked) .Haut-Inventaire,
body:has(input[name="examen"]:not(#fermer-examen):not(#etat-initial):not(#Btn-Pomodoro):not(#Btn-Carte):checked) .Conteneur-Dialogue-Jill, 
body:has(input[name="examen"]:not(#fermer-examen):not(#etat-initial):not(#Btn-Pomodoro):not(#Btn-Carte):checked) .Widget-Audio-Global {
    display: none !important;
}

/* =========================================
   BOITE DE DIALOGUE JILL
========================================= */

.Conteneur-Dialogue-Jill {
    position: absolute;
    opacity: 1;
    bottom: 40%; 
    left: 27%;
    transform: translateX(-50%);
    width: 500px;
    background: rgba(var(--rgb-dark-panel), 0.85);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(var(--rgb-primary), 0.2), inset 0 0 10px rgba(var(--rgb-primary), 0.2);
    z-index: 5; 
    pointer-events: none;    
    display: flex;
    flex-direction: column;
    animation : levitation 3s ease-in-out infinite;
} 

.Header-Dialogue {
    display: flex;
    justify-content: space-between;
    background: rgba(var(--rgb-primary), 0.2);
    border-bottom: 1px solid var(--color-primary);
    padding: 5px 15px;
    font-family: 'VT323', monospace;
    color: var(--color-primary);
    font-size: 18px;
}

.Statut-Com {
    animation: pulse 1.5s infinite;
}

.Enveloppe-Texte-Jill {
    padding: 15px 20px;
    min-height: 80px;
    display: flex;
    align-items: center;
}

.Texte-Jill {
    font-family: 'VT323', monospace;
    font-size: 20px; 
    color: var(--color-text-jill);
    letter-spacing: 1px;
    text-shadow: 1px 1px 0px var(--color-black);
}

/* =========================================
   AFFICHAGE DES DOCUMENTS & OBJETS (ZOOM)
========================================= */

.CV-Agrandi, .Veille-Agrandi {
    display: none;
    opacity: 0;
    position: absolute;
    left: 5%;
    top: 10%;
    bottom: 10%;
    width: 55%;
    background-color: rgba(var(--rgb-dark-panel), 0.95);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(var(--rgb-primary), 0.2), inset 0 0 20px rgba(var(--rgb-primary), 0.2);
    z-index: 3000;
    padding: 30px;
    color: var(--color-primary);
    font-family: 'VT323', monospace;
    overflow-y: auto;
    flex-direction: column;
    transform-origin: center;
    will-change: transform, opacity, filter;
}

.CV-Agrandi::-webkit-scrollbar, .Veille-Agrandi::-webkit-scrollbar {
    width: 8px;
}

.CV-Agrandi::-webkit-scrollbar-track, .Veille-Agrandi::-webkit-scrollbar-track {
    background: rgba(var(--rgb-scroll-track), 0.8);
    border-left: 1px solid var(--color-primary);
}

.CV-Agrandi::-webkit-scrollbar-thumb, .Veille-Agrandi::-webkit-scrollbar-thumb {
    background: var(--color-primary);
}

.En-Tete-CV, .En-Tete-Veille {
    border-bottom: 1px dashed var(--color-primary);
    margin-bottom: 25px;
    background: rgba(var(--rgb-primary), 0.05);
    padding: 15px 20px;
    border-left: 4px solid var(--color-primary);
    position: relative;
}

.En-Tete-CV h2, .En-Tete-Veille h2 { 
    font-size: 18px; 
    opacity: 0.7; 
    letter-spacing: 2px;
}

.En-Tete-CV h1, .En-Tete-Veille h1 { 
    font-size: 38px; 
    letter-spacing: 5px; 
    text-shadow: 0 0 10px rgba(var(--rgb-primary), 0.6); 
    margin-top: 5px;
}

.En-Tete-CV h1::after, .En-Tete-Veille h1::after {
    content: '_';
    animation: pulse 1s infinite;
    margin-left: 10px;
}

.Section-CV, .Section-Veille { 
    margin-bottom: 25px; 
    padding-left: 15px;
    border-left: 1px solid rgba(var(--rgb-primary), 0.2);
}

.Section-CV h3, .Section-Veille h3 { 
    font-size: 24px; 
    margin-bottom: 15px; 
    text-shadow: 0 0 5px rgba(var(--rgb-primary), 0.4); 
    display: inline-block;
    background: rgba(var(--rgb-primary), 0.1);
    padding: 2px 10px;
}

.Section-CV p, .Section-CV li, .Section-Veille p, .Section-Veille li { 
    font-size: 18px; 
    line-height: 1.6; 
    margin-bottom: 10px; 
    color: rgba(255, 255, 255, 0.9);
}

body:has(#radio-cv:checked) .CV-Agrandi,
body:has(#radio-veille:checked) .Veille-Agrandi {
    display: flex;
    animation: terminal-boot 0.2s ease-out forwards;
}

/* =========================================
   PANNEAU CRT LATÉRAL
========================================= */

.Panneau-Lateral-CRT {
    display: none;
    opacity: 0;
    position: absolute;
    right: 5%;
    top: 28%;
    bottom: 25%;
    width: 22%;
    max-width: 300px;
    background: rgba(var(--rgb-dark-panel), 0.7);
    border: 2px solid rgba(var(--rgb-primary), 0.5);
    box-shadow: 0 0 10px rgba(var(--rgb-primary), 0.1);
    z-index: 3000;
    padding: 15px;
    color: var(--color-primary);
    font-family: 'VT323', monospace;
    flex-direction: column;
    gap: 12px;
}

body:has(#radio-cv:checked) .Panneau-Lateral-CRT,
body:has(#radio-veille:checked) .Panneau-Lateral-CRT,
body:has(#radio-projet:checked) .Panneau-Lateral-CRT {
    display: flex;
    animation: verrouillage-affichage 0.1s 0.6s forwards, glitch-apparition 1.3s linear 0.6s forwards;
}

.panneau-header {
    font-size: 22px;
    border-bottom: 1px solid rgba(var(--rgb-primary), 0.5);
    padding-bottom: 5px;
    text-shadow: 0 0 5px var(--color-primary);
}

.panneau-contenu p {
    font-size: 18px;
    margin-bottom: 5px;
    line-height: 1.2;
}

.clignotant-rapide {
    animation: pulse 1s infinite;
}

.barre-chargement-crt {
    width: 100%;
    height: 10px;
    border: 1px solid rgba(var(--rgb-primary), 0.5);
    margin-top: 10px;
    position: relative;
}

.progression-crt {
    height: 100%;
    background: var(--color-primary);
    width: 0%;
    animation: load-bar-crt 2.5s steps(8) forwards 1s;
}

.grille-radar {
    flex-grow: 1;
    border: 1px dashed rgba(var(--rgb-primary), 0.3);
    background-image:
        linear-gradient(rgba(var(--rgb-primary), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--rgb-primary), 0.1) 1px, transparent 1px);
    background-size: 15px 15px;
    position: relative;
    overflow: hidden;
}

.ligne-scan {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    animation: scan-vertical 3s linear infinite;
}

/* =========================================
   CARTE INTERACTIVE
========================================= */

.Conteneur-Carte {
    display: none;
    position: absolute;
    top: 3%;
    left: 5%;
    width: 55%;
    height: 55%;
    background: rgba(var(--rgb-dark-panel), 0.9);
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(var(--rgb-primary), 0.2), inset 0 0 20px rgba(var(--rgb-primary), 0.2);
    z-index: 3000;
    padding: 0; 
    overflow: hidden;
}

.Conteneur-Carte svg {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
}

.Conteneur-Carte .zone-carte {
    cursor: pointer;
    fill: rgba(var(--rgb-red), 0.05);
    stroke: rgba(var(--rgb-red), 0.3);
    stroke-width: 1px;
    stroke-dasharray: 4, 4;
    transition: all 0.2s ease;
    animation: radar-pulse 3s infinite;
}

.Conteneur-Carte .zone-carte:hover {
    fill: rgba(var(--rgb-red), 0.3); 
    stroke: rgba(var(--rgb-red-highlight), 0.8); 
    stroke-width: 2px;
    stroke-dasharray: 0;
    filter: drop-shadow(0 0 10px rgba(var(--rgb-red), 0.5));
    animation: none;
}

.Conteneur-Carte .texte-carte {
    pointer-events: none;
    font-family: 'VT323', monospace;
    text-anchor: middle;
    text-shadow: 2px 2px 0px var(--color-black);
    transition: opacity 0.2s ease;
}

.Conteneur-Carte .zone-carte.zone-active {
    fill: rgba(var(--rgb-primary), 0.25) !important;
    stroke: var(--color-primary) !important;
    stroke-width: 2px !important;
    stroke-dasharray: 0 !important;
    animation: none !important;
    filter: drop-shadow(0 0 10px rgba(var(--rgb-primary), 0.5)) !important;
}

.Conteneur-Carte .zone-carte:hover + .texte-carte {
    opacity: 1;
}

body:has(#Btn-Carte:checked) .Conteneur-Carte {
    display: flex;
    animation: glitch-apparition 1.3s linear forwards;
}

body:has(#Btn-Carte:checked) .Grille-Inventaire {
    display: none !important;
}

body:has(#Btn-Carte:checked) .Conteneur-Dialogue-Jill {
    display: block !important;
    bottom: 10%; 
    left: 35%; 
    z-index: 4000; 
}

/* =========================================
   SÉLECTION DE THÈME ET LECTEUR AUDIO
========================================= */

.Panneau-Theme-Zone {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0 25px;
    margin-top: 120px;
    overflow-x: hidden;
}

body:has(#Btn-Carte:checked) .Panneau-Theme-Zone {
    display: flex;
    animation: glitch-apparition 0.5s ease forwards;
}

.theme-preview-box {
    width: 100%;
    aspect-ratio: 16/9;
    border: 2px solid rgba(var(--rgb-white), 0.1);
    background: rgba(var(--rgb-grey-panel), 0.5);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 15px rgba(var(--rgb-primary), 0.1);
}

.theme-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

#theme-titre {
    font-family: "Cinzel", serif;
    font-size: 20px;
    color: var(--color-text-white);
    text-shadow: 1px 1px 3px rgba(var(--rgb-black), 0.7);
    margin: 20px 0 10px 0;
    text-align: center;
    border-bottom: 1px solid rgba(var(--rgb-white), 0.5);
    padding-bottom: 10px;
    width: 100%;
}

.theme-infos {
    width: 100%;
    margin-bottom: 15px;
    font-family: 'VT323', monospace;
    color: var(--color-primary);
    font-size: 18px;
    text-shadow: 0 0 5px rgba(var(--rgb-primary), 0.5);
    white-space: pre-line;
}

.theme-audio-lecteur {
    width: 100%;
    margin-bottom: 20px;
    font-family: 'VT323', monospace;
    color: var(--color-primary);
}

.theme-audio-lecteur p {
    font-size: 16px;
    margin-bottom: 5px;
}

.theme-audio-lecteur audio {
    display: none;
}

.custom-audio-player {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    border: 1px solid rgba(var(--rgb-primary), 0.2);
    background: rgba(var(--rgb-dark-panel), 0.8);
    padding: 10px 15px;
    margin-top: 10px;
    box-shadow: inset 0 0 10px rgba(var(--rgb-primary), 0.1);
}

#custom-play-btn {
    color: var(--color-primary);
    font-family: 'VT323', monospace;
    font-size: 18px;
    cursor: pointer;
    min-width: 100px;
    text-align: left;
    text-shadow: 0 0 5px rgba(var(--rgb-primary), 0.5);
    transition: color 0.2s, text-shadow 0.2s;
}

#custom-play-btn:hover {
    color: var(--color-text-white);
    text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary);
}

.audio-progress-container {
    flex-grow: 1;
    height: 8px;
    background: rgba(var(--rgb-primary), 0.1);
    border: 1px solid rgba(var(--rgb-primary), 0.3);
    position: relative;
    cursor: pointer;
}

#audio-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary);
    transition: width 0.1s linear;
}

#audio-time {
    color: var(--color-primary);
    font-family: 'VT323', monospace;
    font-size: 16px;
    min-width: 95px;
    text-align: right;
    opacity: 0.8;
}

#btn-activer-theme {
    background: rgba(var(--rgb-black), 0.9);
    color: var(--color-text-white);
    font-family: 'VT323', monospace;
    font-size: 20px;
    border: 1px solid rgba(var(--rgb-white), 0.3);
    padding: 10px 20px;
    width: 100%;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 10px;
}

#btn-activer-theme:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: scale(1.02);
    box-shadow: inset 0 0 15px rgba(var(--rgb-primary), 0.2);
}

/* =========================================
   BOUTON SON GLOBAL
========================================= */

.Widget-Audio-Global {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    background: rgba(var(--rgb-dark-panel), 0.8);
    border: 1px solid rgba(var(--rgb-primary), 0.4);
    padding: 5px 20px 5px 5px;
    gap: 15px;
    box-shadow: 0 0 10px rgba(var(--rgb-primary), 0.1);
    z-index: 5000;
}

.Bouton-Son {
    width: 35px;
    height: 35px;
    background: transparent;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-right: 1px solid rgba(var(--rgb-primary), 0.3);
    padding-right: 15px;
    margin-left: 10px;
}

.Bouton-Son img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: sepia(100%) grayscale(100%) brightness(150%);
    transition: filter 0.2s;
}

.Bouton-Son:hover img {
    filter: sepia(100%) grayscale(100%) brightness(200%) drop-shadow(0 0 5px var(--color-primary));
}

.Piste-Infos {
    font-family: 'VT323', monospace;
    font-size: 18px;
    white-space: nowrap;
}

.label-lecture {
    color: var(--color-text-white);
    opacity: 0.7;
}

#titre-musique-actuelle {
    color: var(--color-primary);
    text-shadow: 0 0 5px rgba(var(--rgb-primary), 0.5);
    letter-spacing: 1px;
}

/* =========================================
   BARRE DE VOLUME
========================================= */

.Conteneur-Volume {
    display: flex;
    align-items: center;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(var(--rgb-primary), 0.3);
}

#barre-volume {
    -webkit-appearance: none;
    appearance: none;
    width: 100px;
    height: 4px;
    background: rgba(var(--rgb-primary), 0.2);
    outline: none;
    cursor: pointer;
}

#barre-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    box-shadow: 0 0 5px var(--color-primary);
    cursor: pointer;
    border-radius: 0;
}