/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: #000;
    color: #d1d1d1;
    font-family: 'VT323', monospace;
    font-size: 24px;
    line-height: 1.2;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ============================================================
   CONTENEUR ÉCRAN
   ============================================================ */
.minitel-monitor {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    background-color: #050505;
    padding: 2rem;
    position: relative;
    border-radius: 20px;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    text-shadow: 0 0 3px rgba(209, 209, 209, 0.4);
    -ms-overflow-style: none;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
}
.minitel-monitor::-webkit-scrollbar { display: none; }

/* ============================================================
   EFFET CRT
   ============================================================ */
.minitel-monitor::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    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% 4px, 6px 100%;
    z-index: 2;
    pointer-events: none;
}

.minitel-monitor::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0%   { opacity: 0.02; }
    50%  { opacity: 0.05; }
    100% { opacity: 0.02; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
#fixed-header {
    flex-shrink: 0;
    margin-bottom: 2rem;
}

#dynamic-content {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

/* ============================================================
   COMPOSANTS MINITEL
   ============================================================ */
.news-ticker {
    background-color: #FFFF00;
    color: #000;
    text-align: center;
    padding: 0.2rem 0.5rem;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 1rem;
    text-shadow: none;
}

.news-ticker a {
    color: #000;
    font-weight: bold;
}

.nav-link {
    display: inline-block;
    margin: 0.5rem 0;
    color: #00FFFF;
    cursor: pointer;
    text-decoration: none;
}
.nav-link:hover {
    background-color: #00FFFF;
    color: #000;
    text-shadow: none;
}

/* ============================================================
   LECTEUR AUDIO
   ============================================================ */
.audio-controls {
    border: 2px solid #d1d1d1;
    padding: 1rem;
    text-align: center;
    margin: 2rem 0;
}

.btn-play {
    background-color: #FF00FF;
    color: #000;
    border: none;
    font-family: 'VT323', monospace;
    font-size: 24px;
    padding: 0.5rem 2rem;
    cursor: pointer;
    text-transform: uppercase;
}
.btn-play:hover {
    background-color: #fff;
}

.btn-disabled {
    background-color: #444;
    color: #888;
    border: 1px solid #555;
    font-family: 'VT323', monospace;
    font-size: 24px;
    padding: 0.5rem 2rem;
    cursor: not-allowed;
    text-transform: uppercase;
    text-shadow: none;
}

.audio-status {
    margin-top: 1rem;
    color: #FFFF00;
}

.status-locked {
    color: #FF0000;
    text-shadow: 0 0 4px rgba(255, 0, 0, 0.4);
}

/* ============================================================
   TYPOGRAPHIE & UTILITAIRES
   ============================================================ */
p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.highlight-cyan    { color: #00FFFF; text-shadow: 0 0 4px rgba(0, 255, 255, 0.4); }
.highlight-magenta { color: #FF00FF; text-shadow: 0 0 4px rgba(255, 0, 255, 0.4); }
.highlight-yellow  { color: #FFFF00; text-shadow: 0 0 4px rgba(255, 255, 0, 0.4); }

.cursor::after {
    content: '█';
    animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 650px) {
    body { font-size: 18px; }
}
