/* --- BASE & TERMINAL --- */
body {
    background-color: #050505;
    margin: 0; height: 100vh; overflow: hidden;
    font-family: 'VT323', monospace; color: #FFB000;
    display: flex; justify-content: center; align-items: center;
    font-size: 20px; transition: font-size 0.2s;
}
.monitor-casing { width: 100%; height: 100%; position: relative; background: #000; }
.screen {
    padding: 2rem; height: 100vh; overflow-y: auto; box-sizing: border-box;
    text-shadow: 0 0 4px #FFB000; position: relative;
}
.screen::-webkit-scrollbar { width: 12px; }
.screen::-webkit-scrollbar-track { background: #111; }
.screen::-webkit-scrollbar-thumb { background: #FFB000; border: 2px solid #111; }
.crt-overlay {
    position: fixed; 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, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%; pointer-events: none; z-index: 900;
}

/* --- PARCOURS UTILISATEUR --- */
#journey-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 2000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center;
}
#journey-stage { max-width: 800px; padding: 20px; width: 100%; box-sizing: border-box; }

#journey-title {
    font-size: 1.8rem; font-weight: bold; margin-bottom: 20px; color: #FFB000;
    border-bottom: 1px dashed #FFB000; padding-bottom: 10px; display: inline-block;
}
.alert-mode #journey-title { color: #FF3333; border-color: #FF3333; text-shadow: 0 0 8px #FF0000; }
.text-white-normal { color: #FFFFFF !important; font-weight: normal !important; text-shadow: none !important; }

#journey-text { font-size: 1.4rem; line-height: 1.6; margin-bottom: 40px; white-space: pre-line; font-weight: normal; }

.progress-container {
    width: 100%; max-width: 500px; height: 20px; border: 2px solid #FFB000;
    margin: 20px auto; position: relative;
}
.progress-bar {
    height: 100%; background: #FFB000; width: 0%;
    transition: width 0.1s linear; 
}

.journey-btn {
    background: transparent; border: 2px solid #FFB000; color: #FFB000;
    font-family: 'VT323'; font-size: 1.5rem; cursor: pointer; padding: 10px 30px; margin: 0 20px;
    text-transform: uppercase;
}
.journey-btn:hover { background: #FFB000; color: #000; }
.journey-btn.danger { border-color: #FF3333; color: #FF3333; }
.journey-btn.danger:hover { background: #FF3333; color: #000; }
.journey-btn.safe { border-color: #00FF00; color: #00FF00; text-shadow: 0 0 5px #00FF00; }
.journey-btn.safe:hover { background: #00FF00; color: #000; text-shadow: none; }

.vu-row { display: flex; justify-content: space-between; margin-bottom: 5px; text-align: left; border-bottom: 1px dotted #333; font-size: 1.1rem; }
.vu-label { width: 160px; text-align: left; }
.vu-bar { font-family: monospace; letter-spacing: 2px; text-align: center; flex-grow: 1; }
.vu-val { width: 250px; text-align: right; }
.vu-red { color: #FF3333; text-shadow: 0 0 5px #FF0000; }
.vu-off { color: #333; text-shadow: none; }


/* --- COULEURS TERMINAL --- */
a { text-decoration: none; cursor: pointer; display: block; margin-bottom: 5px; }
a.term-file { color: #FFFFFF; font-weight: normal; text-shadow: 0 0 4px rgba(255, 255, 255, 0.8); }
a.term-file:hover { background-color: #FFFFFF; color: #000; text-shadow: none; }
a.term-dir { color: #FFFF00; font-weight: normal; text-shadow: 0 0 4px rgba(255, 255, 0, 0.8); }
a.term-dir:hover { background-color: #FFFF00; color: #000; text-shadow: none; }
a.term-web { color: #00FFFF; font-weight: normal; text-shadow: 0 0 5px rgba(0, 255, 255, 0.8); }
a.term-web:hover { background-color: #00FFFF; color: #000; text-shadow: none; }
a.term-parent { color: #FFB000; font-weight: normal; text-shadow: 0 0 4px #FFB000; }
a.term-parent:hover { background-color: #FFB000; color: #000; text-shadow: none; }
a.term-virtual { color: #FFA500; font-weight: normal; text-shadow: 0 0 5px rgba(255, 165, 0, 0.8); }
a.term-virtual:hover { background-color: #FFA500; color: #000; text-shadow: none; }
a.term-warning { color: #FF3333; font-weight: normal; text-shadow: 0 0 5px rgba(255, 51, 51, 0.8); }
a.term-warning:hover { background-color: #FF3333; color: #000; text-shadow: none; }
a.term-pdf { 
    color: #00FF00 !important; /* Le !important force le vert fluo */
    font-weight: normal; 
    text-shadow: 0 0 4px rgba(0, 255, 0, 0.8); 
}

a.term-pdf:hover { 
    background-color: #00FF00; 
    color: #000; 
    text-shadow: none; 
}

/* NEWSLETTER */
.newsletter-section input { background: transparent; border: 1px solid #FFB000; color: #FFB000; font-family: 'VT323'; font-size: 1.1rem; padding: 2px 5px; width: 250px; }
.newsletter-section button { background: transparent; border: 1px solid #FFB000; color: #FFB000; font-family: 'VT323'; font-size: 1.1rem; cursor: pointer; margin-left: 10px; }
.newsletter-section button:hover { background: #FFB000; color: #000; }

/* MODALE DE RISQUE (Nouveau) */
#risk-modal {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9); z-index: 3000;
    display: flex; justify-content: center; align-items: center;
}
.risk-content {
    background: #110000; border: 2px solid #FF3333; padding: 20px;
    max-width: 500px; text-align: center; box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}
.risk-title { color: #FF3333; font-size: 1.4rem; font-weight: bold; margin-bottom: 20px; text-decoration: underline; }
.risk-text { color: #FF8888; margin-bottom: 30px; font-size: 1.1rem; }
.risk-actions button { margin: 0 10px; }


.zoom-controls { position: absolute; top: 15px; right: 20px; z-index: 1000; }
.zoom-controls button { background: #000; border: 1px solid #FFB000; color: #FFB000; font-family: 'VT323'; cursor: pointer; }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

#os-window { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 800px; height: 70%; background-color: #FFFFFF; border: 2px solid #000; z-index: 950; display: flex; flex-direction: column; font-family: Arial, sans-serif; color: #000; text-shadow: none; }
.window-bar { background: #CCC; border-bottom: 2px solid #000; padding: 5px; display: flex; align-items: center; }
.close-btn { width: 20px; height: 20px; border: 1px solid #000; background: #FFF; text-align: center; line-height: 18px; font-weight: bold; cursor: pointer; }
.window-content { padding: 20px; overflow-y: auto; flex-grow: 1; }
audio { width: 100%; margin-top: 20px; }

body.gui-active .screen { background-color: #008080; text-shadow: none; }
body.gui-active .crt-overlay { opacity: 0.3; }
#gui-desktop { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 20px; padding: 20px; }
.desktop-icon { display: flex; flex-direction: column; align-items: center; width: 100px; cursor: pointer; }
.desktop-icon:hover .icon-label { background: #000080; color: #FFF; }
.icon-img { width: 48px; height: 48px; margin-bottom: 5px; background-size: contain; }
.icon-label { background: #FFF; color: #000; padding: 2px 4px; font-family: 'Arial'; font-size: 12px; border: 1px dotted #999; }
.gui-taskbar { position: fixed; bottom: 30px; left: 0; width: 100%; height: 28px; background: #C0C0C0; border-top: 2px solid #FFF; display: flex; align-items: center; z-index: 800; }
.start-btn { border: 2px outset #FFF; background: #C0C0C0; padding: 2px 10px; font-weight: bold; font-family: sans-serif; font-size: 14px; color: #000; cursor: pointer; box-shadow: 1px 1px 0 #000; }
.start-btn:active { border-style: inset; padding: 3px 9px 1px 11px; }
.clock { margin-left: auto; padding-right: 15px; font-family: sans-serif; font-size: 12px; color: #000; }

.icon-dir .icon-img { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFD700' stroke='%23000' stroke-width='1'%3E%3Cpath d='M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z'/%3E%3C/svg%3E"); }
.icon-file .icon-img { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FFF' stroke='%23000' stroke-width='1'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3Cline x1='10' y1='9' x2='8' y2='9'/%3E%3C/svg%3E"); }
.icon-exe .icon-img { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C0C0C0' stroke='%23000' stroke-width='1'%3E%3Crect x='2' y='3' width='20' height='14' rx='2' ry='2'/%3E%3Cline x1='8' y1='21' x2='16' y2='21'/%3E%3Cline x1='12' y1='17' x2='12' y2='21'/%3E%3C/svg%3E"); }
.icon-warn .icon-img { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23FF3333' stroke='%23000' stroke-width='1'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM12 9a1 1 0 0 1 1 1v4a1 1 0 0 1-2 0v-4a1 1 0 0 1 1-1zm0 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E"); }
.icon-term .icon-img { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%2300FF00' stroke-width='1'%3E%3Crect x='2' y='4' width='20' height='16' rx='2' ry='2'/%3E%3Cpath d='M6 12l4 4' stroke-width='2'/%3E%3Cpath d='M6 8l0 0' stroke-width='2'/%3E%3Ctext x='12' y='17' fill='%2300FF00' font-family='monospace' font-size='10' stroke='none'%3E_%3C/text%3E%3C/svg%3E"); }
/* Ajout pour PDF (Vert) */
a.term-pdf { color: #00FF00; font-weight: normal; text-shadow: 0 0 4px rgba(0, 255, 0, 0.8); }
a.term-pdf:hover { background-color: #00FF00; color: #000; text-shadow: none; }

