@font-face {
	font-family: 'Orbitron';
    src: url('../../assets/fonts/Orbitron/Orbitron-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}
@font-face {
	font-family: 'Orbitron';
    src: url('../../assets/fonts/Orbitron/Orbitron-Medium.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
}
@font-face {
	font-family: 'Orbitron';
	src: url('../../assets/fonts/Orbitron/Orbitron-Bold.ttf') format('truetype');
	font-weight: 800;
	font-style: normal;
}
@font-face {
	font-family: 'Matrix Code';
    src: url('../../assets/fonts/matrix-code.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
}

/* ==================== FOND PROFONDEUR ==================== */
#background-layers {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -2;
	overflow: hidden;	
	background: radial-gradient(#ffffff 50%, transparent);
}
.layer, .parallax {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	filter: blur(var(--blur));
	opacity: var(--opacity);
	transform: scale(var(--scale));
	transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Couches du plus loin au plus proche */
.layer-1 { --blur: 0px; --scale: 0.6; --opacity: 1; }
.layer-2 { --blur: 0px; --scale: 1; --opacity: 1; }
.layer-3 { --blur: 0.5px; --scale: 1; --opacity: 0.2; }
.layer-4 { --blur: 0.2px; --scale: 1; --opacity: 1; }
.layer-5 { --blur: 0.2px; --scale: 1; --opacity: 1; }


.st1 { opacity: 0.1; filter: blur(0.9px); }
.st2 { opacity: 0.2; filter: blur(0.7px); }
.st3 { opacity: 0.3; filter: blur(0.5px); }
.st4 { opacity: 0.4; filter: blur(0.3px); }
.st5 { opacity: 0.5; filter: blur(0px); }

.layer img, .layer svg {
	position:absolute;
	width: 100%;
	height: 100%;
}

.ring-01{ filter: blur(4px);opacity: 0.5;animation: rotation01 50s linear infinite; }

.ring-01_{ filter: blur(0.4px);opacity: 0.6;animation: rotation01 50s linear infinite; }
.ring-02{ filter: blur(0.62px);opacity: 0.37;animation: rotation02 30s linear infinite; }
.ring-03{ filter: blur(1px);opacity: 0.23;animation: rotation03 18.5s linear infinite; }

@keyframes rotation01 {	from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes rotation02 {	from { transform: rotate(360deg); } to { transform: rotate(0deg); } }
@keyframes rotation03 {	from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Effet grain */
.noise-effect:after {
	-webkit-animation: grain 8s steps(10) infinite;
	animation: grain 8s steps(10) infinite;
	background-image: url(assets/images/grain_bd.jpg);
	content: "";
	height: 300%;
	left: -50%;
	opacity: 0.2;
	position: fixed;
	top: -110%;
	width: 300%;
	z-index: -5;
}

@-webkit-keyframes grain {
    0%, 100% { transform:translate(0, 0) }
    10% { transform:translate(-5%, -10%) }
    20% { transform:translate(-15%, 5%) }
    30% { transform:translate(7%, -25%) }
    40% { transform:translate(-5%, 25%) }
    50% { transform:translate(-15%, 10%) }
    60% { transform:translate(15%, 0%) }
    70% { transform:translate(0%, 15%) }
    80% { transform:translate(3%, 35%) }
    90% { transform:translate(-10%, 10%) }
}

@keyframes grain {
    0%, 100% { transform:translate(0, 0) }
    10% { transform:translate(-5%, -10%) }
    20% { transform:translate(-15%, 5%) }
    30% { transform:translate(7%, -25%) }
    40% { transform:translate(-5%, 25%) }
    50% { transform:translate(-15%, 10%) }
    60% { transform:translate(15%, 0%) }
    70% { transform:translate(0%, 15%) }
    80% { transform:translate(3%, 35%) }
    90% { transform:translate(-10%, 10%) }
}

.layer-2 svg { fill: none; stroke: #000; stroke-miterlimit: 10; stroke-width: 1px; }
.layer-2 rect { fill: #4d4d4d; stroke: #4d4d4d;}

/* Animation Data-Line Layer 3 */
@keyframes layer3-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(var(--y-delta)); }
}

.st0-animated {
    animation: layer3-float var(--float-dur) ease-in-out infinite;
    animation-delay: var(--float-delay);
}

/* Style du Graphe Système */
#system-graph {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 250px;
    height: 100px;
    /* border: 1px solid #4d4d4d22; */
    background: rgba(255, 255, 255, 0.05);
}
.graph-label {
    position: absolute;
    bottom: -18px;
    right: 0;
    font-size: 8px;
    color: #4d4d4d88;
    text-transform: uppercase;
    letter-spacing: 1px;
}
/* Style du Terminal Système */
#system-terminal {
    position: absolute;
    top: 160px; /* 25px top + 100px graph + 10px gap */
    right: 25px;
    width: 250px;
    height: 300px;
    box-sizing: border-box;
    font-size: 8px;
    line-height: 10px;
    color: #4d4d4d88;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.term-line { margin-bottom: 5px; }
.term-cmd { font-weight: bold; }
.term-cursor {
    display: inline-block;
    margin-left: 2px;
    font-weight: bold;
    animation: term-cursor-blink 1.2s step-start infinite;
}
@keyframes term-cursor-blink {
    50% { opacity: 0; }
}

/* ==================== UI ==================== */
.bot60 { margin-bottom: 60px; }
.inner-content {
    position: relative;
}

#dock {
	width: 200px;
	height: auto;
}
#dock .inner-content, #dock-alt .inner-content {
    min-width: 150px;
	padding: 25px 15px 30px 15px;
}
#window-exiles {
    min-width: 300px;    
}
#dock-Crpyt {
	width: 200px;
	height: 200px;
}	
.UI-block {
	border: 1px solid #ababab;
    background-clip: padding-box; 
	background: rgba(255, 255, 255, 0.0);
	box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
}
.UI-title {
	position: absolute;
	top: 0;
	left: 0;
    /* font-family: Tourney, sans-serif; */
	font-size: 18px;
	font-weight: 800;
    padding: 0px 0px 0px 15px;
    text-transform: uppercase;
    color: #888;
}
.UI-block .UI-title {
    font-size: 2em;
}
.UI-block .menu-content {
    min-width: 150px;
	padding: 50px 15px 15px 15px;
}
.UI-block .inner-content {
    min-width: 300px;
	padding: 50px 15px 15px 15px;
}
.UI-block p {
	margin: 0 0 10px 0;
}
.draggable .UI-title {
	position: absolute;
    z-index: 1;
	top: 0;
	left: 0;
}
.draggable .UI-title {
	padding: 12px 50px 10px 15px;
}
.UI-btn {
	width: 100px;
	height: 65px;
}
.UI-btn svg polygon {
	fill: #ffffff50;
	stroke: #4d4d4d;
	stroke-miterlimit: 10;
	stroke-width: 1px;
	filter: blur(0.5px);
}
.UI-btn svg rect {
	fill: #ffffff;
	stroke: #818181;
	stroke-width: 1px;
    filter: blur(0.5px);
}
.UI-btn.drop-lock svg polygon {
	fill:#ffffff;
}
.UI-btn text{	
	fill: #4d4d4d;
	stroke-width: 0px;
}
.UI-btn .text{	
	position: absolute;
    color: #4d4d4d;
}
.block-content {
    background:#ffffff3f;
    width: 100%;
	height:100%;
    overflow: auto;
    box-sizing: border-box;
	overflow: hidden;
}

/* On assure que les fenêtres générées ont une largeur minimale pour un effet visuel plus cohérent, surtout pour les contenus dynamiques comme crypted.php et database.php */
#window-connexion { min-width: 350px; }
#window-database .block-content { min-width: 525px; }
#window-cryptage .block-content { min-width: 525px; }

.draggable, .fixed {
    display: flex;
	flex-direction: column;
    align-items: flex-start;
    cursor: move;
    touch-action: none; /* Recommandé pour interact.js */
    position: absolute;
    user-select: none;
    box-sizing: border-box; /* Assure que le padding/border n'affecte pas la taille calculée */
    overflow: hidden; /* Changé en hidden pour gérer le contenu via .block-content */
    padding: 0;
    backdrop-filter: blur(2px);
}

/* Correction pour le contenu importé de crypted.php */
.block-content .under1, .block-content .under2,
.block-content .message1, .block-content .message2 {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    margin: 10px auto !important;
    width: 100% !important;
    max-width: 550px;
    height: auto !important;
    opacity: 1 !important;
    display: block !important;
}
.block-content .table {
    display: flex;
    /* justify-content: space-between; */
    align-items: flex-start;
}
.bio-section {
    max-width: 550px;
}

/* Style du bouton de fermeture */
.UI-btn-close, .UI-btn-minimize {
    position: absolute;
    top: 10px;   
    width: 20px;
    height: 20px;   
    border-radius: 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}
.UI-btn-close { right: 5px; }
.UI-btn-minimize { right: 30px; }

.UI-btn-close:hover, .UI-btn-minimize:hover { background: #6f6f6f; color: #fff; }

/* Barre des tâches */
#taskbar {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 1000;
    pointer-events: none;
}
.taskbar-item {
    background: #4d4d4d;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 10px;
    text-transform: uppercase;
    pointer-events: auto;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    backdrop-filter: blur(5px);
}
.taskbar-item:hover {
    transform: translateY(-10px);
}

/* Style pour les formulaires */



textarea, input {
    position: relative;
	width: 100%;
    padding: 10px;
    box-sizing: border-box;
    background-color: #ffffffad;
    border: 1px solid #b1b1b1;
    border-radius: 2px;
    color: #4d4d4d;
    font-weight: 600;
	margin-bottom: 10px;
}	
textarea {
	min-width: 400px;
    min-height: 150px;
	resize: none;
}
input[type="number"] {
	width: 60px;
	text-align: right;
}
input[type="radio"] {
	width: auto;
	text-align: right;
}
textarea:focus::placeholder, input:focus::placeholder {
    color:#afafaf; 
}
textarea:focus, input:focus {
    outline: none;
    background-color: #4d4d4d; 
    color:#ffffff; 
    animation: blink-animation 0.25s steps(2, start) 2;
}
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #4d4d4d inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}
@keyframes blink-animation {
  to {
    opacity: 0.5;
  }
}
.btn-crypt, .btn-log {
    background-color: #4d4d4d;
    border: none;
    padding: 10px 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    color: #ffffff;
	clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.inline {width: auto; margin-right: 10px;}

.hidden-block {
    display: none;
	min-width: 300px;
	min-height: 300px;
    opacity: 0;
}

.draggable-fixed {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #414141; 
    cursor: move;
    touch-action: none;
    user-select: none;
    z-index: 2;
    opacity: 0; /* Initialement invisible pour l'animation */
}

.drop-area {
    width: 110px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background-color 0.3s;
	position: relative;
}
@keyframes blink-svg {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.drop-area::after, .drop-area.droped::after {
    content: "";
	position: absolute;
    top: 0;
    left: 0;
	width: 110px;
	height: 90px;
    pointer-events: none;
	filter: blur(0.5px);
}
.drop-area::after {
    content:url("data:image/svg+xml,%3Csvg%20id%3D%22Calque_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20viewBox%3D%220%200%20110%2090%22%3E%3C!--%20Generator%3A%20Adobe%20Illustrator%2029.6.1%2C%20SVG%20Export%20Plug-In%20.%20SVG%20Version%3A%202.1.1%20Build%209)%20%20--%3E%3Cpolyline%20points%3D%2253%20.5%2018%20.5%20.37%2018%20.5%2074.5%2092%2074.5%22%20fill%3D%22none%22%20stroke%3D%22%234d4d4d%22%20stroke-miterlimit%3D%2210%22%2F%3E%3Cpolyline%20points%3D%2216.5%2075%2016.5%2084.5%2039%2084.5%22%20fill%3D%22none%22%20stroke%3D%22%234d4d4d%22%20stroke-miterlimit%3D%2210%22%2F%3E%3Crect%20x%3D%2238.5%22%20y%3D%2279.5%22%20width%3D%226%22%20height%3D%2210%22%20fill%3D%22none%22%20stroke%3D%22%234d4d4d%22%20stroke-miterlimit%3D%2210%22%2F%3E%3Crect%20x%3D%2248.5%22%20y%3D%2279.5%22%20width%3D%2216%22%20height%3D%2210%22%20fill%3D%22none%22%20stroke%3D%22%234d4d4d%22%20stroke-miterlimit%3D%2210%22%2F%3E%3C%2Fsvg%3E");   
}
.drop-area.droped::after {
    content:url("data:image/svg+xml,%3Csvg%20id%3D%22Calque_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20version%3D%221.1%22%20viewBox%3D%220%200%20110%2090%22%3E%3C!--%20Generator%3A%20Adobe%20Illustrator%2029.6.1%2C%20SVG%20Export%20Plug-In%20.%20SVG%20Version%3A%202.1.1%20Build%209)%20%20--%3E%3Cdefs%3E%3Cstyle%3E%20%20%20%20%20%20.st0%20%7B%20%20%20%20%20%20%20%20fill%3A%20none%3B%20%20%20%20%20%20%7D%20%20%20%20%20%20.st0%2C%20.st1%20%7B%20%20%20%20%20%20%20%20stroke%3A%20%234d4d4d%3B%20%20%20%20%20%20%20%20stroke-miterlimit%3A%2010%3B%20%20%20%20%20%20%7D%20%20%20%20%20%20.st1%20%7B%20%20%20%20%20%20%20%20fill%3A%20%234d4d4d%3B%20%20%20%20%20%20%7D%20%20%20%20%3C%2Fstyle%3E%3C%2Fdefs%3E%3Cpolyline%20class%3D%22st0%22%20points%3D%2253%20.5%2018%20.5%20.37%2018%20.5%2074.5%2092%2074.5%22%2F%3E%3Cpolyline%20class%3D%22st0%22%20points%3D%2216.5%2075%2016.5%2084.5%2039%2084.5%22%2F%3E%3Crect%20class%3D%22st1%22%20x%3D%2238.5%22%20y%3D%2279.5%22%20width%3D%226%22%20height%3D%2210%22%2F%3E%3Crect%20class%3D%22st1%22%20x%3D%2248.5%22%20y%3D%2279.5%22%20width%3D%2216%22%20height%3D%2210%22%2F%3E%3C%2Fsvg%3E");
    animation: blink-svg 0.15s ease-in-out 2;
}

.drop-active { border-color: #fff; }
.drop-target { background-color: rgba(255,255,255,0.2); }

/* Reports Grid & Card */
.reports-file .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* 4 par ligne */
    gap: 15px;
    max-height: 400px; /* Limite la hauteur pour activer le scroll */
    overflow-y: auto;
    padding-right: 10px; /* Espace pour la scrollbar */
}

/* Custom Scrollbar pour la grille de rapports uniquement */
.reports-file .results-grid::-webkit-scrollbar {
    width: 6px;
}

.reports-file .results-grid::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 10px;
}

.reports-file .results-grid::-webkit-scrollbar-thumb {
    background: #888888;
    border-radius: 10px;
}

.reports-file .results-grid::-webkit-scrollbar-button {
    background-color: #888888;
    height: 0px; /* Masquer les flèches pour plus de finesse, ou mettre une hauteur si désiré */
}
/* Custom Scrollbar pour la grille de rapports uniquement ================================================================ */

.report-card {
    border: 1px solid #4d4d4d22;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.report-card:hover {
    transform: translateY(-5px) scale(1.02);
    /* border-color: #00ff41; Neon green border on hover */
    box-shadow: 0 5px 15px rgba(73, 73, 73, 0.2); /* Subtle glow */
}

/* Lightbox styles */
#zion-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.7s;
}

#zion-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

#zion-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#zion-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid #4d4d4d; /* Zion border color */
    box-shadow: 0 0 20px rgba(92, 92, 92, 0.3); /* Neon glow */
}

#zion-lightbox-close {
    position: absolute;
    top: -30px; /* Position above the image */
    right: -30px;
    color: #4d4d4d;
    font-size: 2em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
}

#zion-lightbox-prev, #zion-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #4d4d4d;
    font-size: 5em;
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    line-height: 1;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
    user-select: none;
}

#zion-lightbox-prev { left: -100px; }
#zion-lightbox-next { right: -100px; }

#zion-lightbox-prev:active { transform: translateY(-50%) translateX(-10px); }
#zion-lightbox-next:active { transform: translateY(-50%) translateX(10px); }

#zion-lightbox-close:hover {
    color: #727272; /* Neon green on hover */
}

#zion-lightbox-prev:hover, #zion-lightbox-next:hover {
    color: #000000;
}

#zion-lightbox-caption {
    color: #4d4d4d;
    margin-top: 10px;
    font-size: 1em;
    text-align: center;
}

@media (max-width: 1200px) {
    #zion-lightbox-prev { left: 10px; font-size: 3em; color: rgba(255,255,255,0.4); }
    #zion-lightbox-next { right: 10px; font-size: 3em; color: rgba(255,255,255,0.4); }
    #zion-lightbox-close { right: 10px; top: 10px; background: rgba(0,0,0,0.5); padding: 5px 10px; border-radius: 4px; }
}

/* Style pour la fenêtre plein écran (Construct) */
#window-full {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	transform: none !important;
	z-index: 9999 !important;
	background: #fff;
}

/* Style pour la fenêtre plein écran (Flight Simulator) */
#window-flightsim {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	transform: none !important;
	z-index: 9999 !important;
	background: #000; /* Fond noir pour le simulateur */
}
/* Cryptage */
.cryptage {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
    min-width: 190px;
}
.cryptage a {
	color: #888888;
	text-decoration: none;
	text-transform: uppercase;
	padding:10px 0;
}
.cryptage a.active {
	color: #4d4d4d;
}
