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


/*-----STYLES GENERAUX-----*/

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

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

body {
    background: #0a0a0a;
    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(18, 16, 16, 0) 50%, rgba(0, 0, 0, 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);
}

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

/*-----INVENTAIRE-----*/

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

.Top-Bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 40px 80px;
}

.Titre-Principal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Nav-Bouton {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.Top-Inventaire h1, .Top-Inventaire h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: "Cinzel", serif;
}

.Top-Inventaire h1 {
    font-size: 20px;
    position: absolute;
    top: 40px;
}

.Top-Inventaire h2 {
    font-size: 30px;
    position: absolute;
    top: 50px;
}

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

.Inventaire-Slot {
    aspect-ratio: 1 / 1;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(40, 40, 40, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

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

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

.Inventaire-Slot.empty {
    position: relative;
    background: rgba(0,  0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.Inventaire-Slot.empty::before,
.Inventaire-Slot.empty::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 142%;
    height: 2px; 
    background: rgba(255, 255, 255, 0.15);
    transform-origin: center;
}

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

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

#slot-veille:hover,#slot-cv:hover,#slot-projet:hover {
    border-color: #00ff41; 
    background: rgba(0, 255, 65, 0.1);
    box-shadow: inset 0 0 15px rgba(0, 255, 65, 0.2);
    transform: scale(1.05);
}

/*-----DESCRIPTIONS NORMALES-----*/

.Description-Projet, .Description-CV, .Description-Veille {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 20px;
    color: rgb(255, 255, 255);
    font-size: 18px;
    font-family: "Cinzel", serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.Description-Projet hr, .Description-CV hr, .Description-Veille hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
    margin: 10px 0;
}

.Description-CV p, .Description-Projet p, .Description-Veille p {
    max-width: 400px;
}

.Top-Inventaire:has(#slot-projet:hover) .Description-Projet,
.Top-Inventaire:has(#slot-cv:hover) .Description-CV,
.Top-Inventaire:has(#slot-veille:hover) .Description-Veille {
    display: block;
}

/*-----MENU EXAMINER-----*/

.ExaminerIcone {
    position: absolute;
    top: 400px;
    width: 300px; 
    height: 50px;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 150;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.ExaminerIcone label {
    display: block;
    width: 100%;
    height: 100%;
    font-family: 'VT323', monospace;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    padding: 10px 0px 0px 50px;
}

.ExaminerIcone label:hover {
    color: #00ff41; 
    transform: scale(1.02);
}

#slot-projet:focus + .ExaminerIcone,
#slot-projet + .ExaminerIcone:hover {
    display: flex;
    left: -10%;
}

#slot-cv:focus + .ExaminerIcone,
#slot-cv + .ExaminerIcone:hover {
    display: flex;
    left: 20%;
}

#slot-veille:focus + .ExaminerIcone,
#slot-veille + .ExaminerIcone:hover {
    display: flex;
    left: 55%;
}

/*----- L'ÉCRAN NOIR & RADIO HACK -----*/

.ecran-noir {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.95); 
    z-index: 2000; 
    cursor: pointer;
}

.texte-quitter {
    position: absolute;
    bottom: 40px; right: 50px;
    color: rgba(255, 255, 255, 0.5);
    font-family: "Cinzel", serif;
    font-size: 18px;
    animation: clignotement 2s infinite ease-in-out;
}

body:has(#radio-projet:checked) .ecran-noir,
body:has(#radio-cv:checked) .ecran-noir,
body:has(#radio-veille:checked) .ecran-noir {
    display: block;
}

body:has(input[name="examen"]:not(#fermer-examen):checked) .Top-Inventaire,
body:has(input[name="examen"]:not(#fermer-examen):checked) .Dialogue-JILL-Container,
body:has(input[name="examen"]:not(#fermer-examen):checked) .ecg-monitor {
    display: none !important;
}

/*-----ECRAN NOIR INFORMATION (EXAMEN 3D)-----*/

.Document-CV-Reel {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 80vh;
    z-index: 3000 !important;
    perspective: 2000px;
}

body:has(#radio-cv:checked) .Document-CV-Reel {
    display: block;
}

.Carte-CV-Container {
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.Carte-CV-Container:hover {
    transform: rotateY(180deg);
}

.Face-Carte {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
}

.Face-Carte.Recto {
    position: relative;
    z-index: 2;
    transform: rotateY(0deg);
}

.Face-Carte.Recto img {
    height: 80vh;
    width: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
}

.Face-Carte.Verso {
    z-index: 1;
    transform: rotateY(180deg);
    background: white !important;
}

.Face-Carte.Verso img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.Effet-Scanlines {
    position: absolute;
    inset: 0;
    z-index: 3001;
    pointer-events: none;
    background: repeating-linear-gradient(rgba(0,0,0,0.1) 0px, rgba(0,0,0,0.1) 1px, transparent 1px, transparent 2px);
}

/*-----IMAGES AGGRANDIES-----*/

.Projet-Slot-Aggrandit, .CV-Slot-Aggrandit, .Veille-Slot-Aggrandit {
    display: none;
    position: absolute;
    left: 15%;
    top: 10%;
    bottom: 10%;
    width: 40%;
    backdrop-filter: blur(15px);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.2) 5%, black 15%, black 85%, rgba(0,0,0,0.5) 100%);
    mask-image: linear-gradient(to right, rgba(0,0,0,0.2) 5%, black 15%, black 85%, rgba(0,0,0,0.5) 100%);
}

.Projet-Slot-Aggrandit img, .CV-Slot-Aggrandit img, .Veille-Slot-Aggrandit img { 
    display : flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

main:has(#slot-projet:hover) .Projet-Slot-Aggrandit, 
main:has(#slot-cv:hover) .CV-Slot-Aggrandit,
main:has(#slot-veille:hover) .Veille-Slot-Aggrandit {
    display: flex;
    animation: glitch-apparition 1.3s linear forwards;
}

/*-----BOITE DE DIALOGUE-----*/

.Dialogue-JILL-Container {
    position: absolute;
    opacity: 0;
    bottom: 40%; 
    left: 22%;
    transform: translateX(-50%);
    width: 800px;
    height: 150px;
    z-index: 5; 
    pointer-events: none;    
    animation: cycleDialogue 18s infinite, radioNoise 3s linear infinite;
} 

.Dialogue-JILL-Container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url("./Image/Boite-Dialogue.png") no-repeat center;
    background-size: contain;
    z-index: 1;
}

.Dialogue-JILL-Container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px; 
    z-index: 2; 
}

.Dialogue-JILL-Container::before, .Dialogue-JILL-Container::after {
    -webkit-mask-image: url("./Image/Boite-Dialogue.png");
    -webkit-mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-image: url("./Image/Boite-Dialogue.png");
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;    
}

.Dialogue-JILL-Container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; 
    z-index: 1; 
}

.TexteJILLWrapper {
    position: absolute;
    top: 17%; 
    left: 10%;
    width: 80%; 
    height: 60%;
    z-index: 10; 
    display: flex; 
    align-items: center;
}

.TexteJILL {
    font-family: 'VT323', monospace;
    opacity: 0.9;
    font-size: 24px; 
    color: #efefef;
    letter-spacing: 1px;
    text-shadow: 2px 2px 0px #000; 
    overflow: hidden;
    animation: radioNoise 15s steps (40, end) infinite;
}

main:has(#slot-projet:hover) .Dialogue-JILL-Container, 
main:has(#slot-cv:hover) .Dialogue-JILL-Container, 
main:has(#slot-veille:hover) .Dialogue-JILL-Container {
    display: none !important;        
}

/*-----MONITEUR RYTHME CARDIAQUE-----*/

.ecg-monitor {
    position: absolute;
    bottom: 185px;
    right: 12.75%;
    width: 400px;
    height: 120px;
    z-index: 10;
    pointer-events: none;
    box-shadow: #000 0px 0px 20px, #03ad5e 0px 0px 40px;
}

.ecg-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: rgba(0, 20, 10, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 5px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 136, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.05) 1px, transparent 1px);
    background-size: 25px 25px;
}

.baseline {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 255, 136, 0.1);
    transform: translateY(-50%);
}        

.svg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ecg-svg {
    width: 100%;
    height: 80px; 
    overflow: visible;
}

.heartbeat-line {
    fill: none;
    stroke: #00ff88;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px #00ff88) drop-shadow(0 0 15px #00d9ff);
    stroke-dasharray: 1620;
    stroke-dashoffset: 0;
    animation: draw-ecg 3s linear infinite;
}

.bpm {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #00ff88;
    font-family: 'VT323', monospace;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 0 0 10px #00ff88;
    animation: pulse 1s ease-in-out infinite;
}

.bpm::after {
    content: ' BPM';
    font-size: 14px;
    opacity: 0.7;
}

.status-label {
    position: absolute;
    bottom: 5px;
    left: 10px;
    color: #00ff88;
    font-family: 'VT323', monospace;
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
}