/* style4.css */

/* --- GLOBAL --- */
body {
    margin: 0; width: 100vw; height: 100vh; overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    background: linear-gradient(90deg, #ffe0e9 50%, #e0f0ff 50%);
    display: flex; justify-content: center; align-items: center;
}

/* --- ÉCRAN D'INTRO --- */
#intro-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #000; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    cursor: pointer; transition: opacity 0.5s;
}
.intro-content { text-align: center; color: #fff; }
.intro-content h1 { font-size: 2.5rem; text-shadow: 0 0 10px #fff; margin-bottom: 10px; }
.blink { margin-top: 30px; color: #555; animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

/* --- TV & ÉCRAN --- */
.tv-set {
    position: relative; width: 90vw; height: 85vh;
    background-color: #8b5a2b; border-radius: 30px; padding: 20px;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 50px 100px rgba(0,0,0,0.7);
    border: 4px solid #5a3a1a; display: flex; gap: 20px; align-items: center; box-sizing: border-box;
}

.screen-frame {
    flex-grow: 1; height: 100%; background: #000; border-radius: 60px;
    position: relative; overflow: hidden; border: 5px solid #222;
    box-shadow: inset 0 0 80px rgba(0,0,0,1); display: flex;
}

/* --- COLONNES --- */
.split-left, .split-right {
    flex: 0 0 50%; max-width: 50%; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; z-index: 5; box-sizing: border-box;
}
.split-left { padding: 30px; }
.split-right { 
    border-left: 2px dashed #333; padding: 30px; 
    text-align: left; justify-content: flex-start; padding-top: 50px;
}

/* --- ELEMENTS GRAPHIQUES --- */
.chart-wrapper-rel {
    position: relative; width: 100%; height: 100%; min-height: 200px;
}

.btn-chart-info {
    position: absolute; top: 0; right: 0;
    width: 24px; height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #0f0; border-radius: 50%;
    color: #0f0; font-weight: bold; font-size: 14px;
    cursor: pointer; z-index: 10;
    display: flex; justify-content: center; align-items: center;
    transition: all 0.2s;
}
.btn-chart-info:hover { background: #0f0; color: #000; transform: scale(1.1); }

/* --- TEXTES --- */
.stat-context {
    font-size: 1.2rem; color: #fff; text-transform: uppercase;
    border-bottom: 1px solid #555; padding-bottom: 10px; margin-bottom: 10px; width: 100%;
}
.big-number {
    font-size: 2.5rem; font-weight: bold; color: #ff0055;
    display: block; margin-bottom: 5px; line-height: 1;
    text-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
}
.tv-text-zone {
    color: #00ff00; font-size: 0.85rem; line-height: 1.3;
    margin-bottom: 10px; min-height: 40px;
}

.right-chart-container {
    width: 100%; flex-grow: 1; max-height: 220px;
    margin-top: 10px; position: relative;
}

/* --- PANNEAU & REMOTE --- */
.tv-panel {
    width: 120px; height: 90%; background: #2a2a2a; border-radius: 10px; border: 2px solid #555;
    box-shadow: inset 5px 5px 10px rgba(0,0,0,0.5); display: flex; flex-direction: column;
    align-items: center; padding: 20px 0; gap: 30px; flex-shrink: 0;
}
.tv-phys-btn {
    width: 80px; height: 80px; background: #ccc; border-radius: 50%; border: 4px solid #fff;
    box-shadow: 0 10px 15px rgba(0,0,0,0.5); cursor: pointer; font-weight: bold;
    font-family: monospace; font-size: 14px; color: #333; display: flex; justify-content: center; align-items: center;
}
.tv-phys-btn:active { transform: scale(0.95); background: #ffff00; }
.speaker-grill { width: 80%; flex-grow: 1; background: repeating-linear-gradient(0deg, #111, #111 2px, #333 2px, #333 4px); border-radius: 5px; border: 1px solid #000; }
.tv-label { color: #888; font-size: 10px; margin-top: 5px; font-weight: bold; }

.remote-control {
    position: absolute; bottom: 40px; left: 40px; width: 80px; height: 240px; 
    background: #222; border-radius: 15px; border-bottom-left-radius: 30px; border-bottom-right-radius: 30px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.6); display: flex; flex-direction: column; align-items: center; padding: 15px; gap: 10px;
    transform: rotate(5deg); transition: transform 0.3s; z-index: 100;
}
.remote-control:hover { transform: rotate(0deg) translateY(-20px) scale(1.05); }
.remote-btn { width: 35px; height: 35px; background: #333; border-radius: 50%; border: none; color: #ccc; cursor: pointer; box-shadow: 0 3px 0 #000; }
.remote-btn.active { color: #fff; transform: translateY(2px); box-shadow: none; }
.btn-power { background: #aa0000; color: white; }

/* --- OVERLAY --- */
.info-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 20, 0, 0.98); color: #0f0; z-index: 20;
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
    opacity: 0; pointer-events: none; transition: opacity 0.3s; padding: 60px; box-sizing: border-box; border: 20px solid #000;
}
.info-overlay.visible { opacity: 1; pointer-events: all; }
.info-overlay h2 { font-size: 2rem; margin-bottom: 20px; color: #fff; border-bottom: 2px dashed #0f0; }
.overlay-text { font-size: 1.1rem; line-height: 1.5; max-width: 800px; white-space: pre-line; }
.close-btn { margin-top: 30px; width: 60px; height: 60px; font-size: 10px; }
.scanlines {
    position: absolute; top: 0; left: 0; right: 0; bottom: 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: 10; pointer-events: none;
}

/* --- BOUTON ARTISTIQUE & TOOLTIP --- */
.remote-bottom-row {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #333;
}

.btn-art {
    background: #6a0dad; /* Violet artistique */
    color: #fff;
    border: 2px solid #4a0080;
    font-family: 'Courier New', serif;
    font-weight: bold;
    z-index: 2;
}

.btn-art:hover {
    background: #8a2be2;
    box-shadow: 0 0 10px #8a2be2;
    transform: scale(1.1);
}

/* Tooltip caché par défaut */
.tooltip-text {
    visibility: hidden; 
    opacity: 0;         
    width: 140px;       
    background-color: #000;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 10;
    bottom: 125%;       
    left: 50%;
    transform: translateX(-50%); 
    font-size: 10px;
    border: 1px solid #6a0dad;
    pointer-events: none;
    box-shadow: 0 0 5px #6a0dad;
    transition: opacity 0.3s, visibility 0.3s;
}

/* Apparition au survol */
.remote-bottom-row:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* --- FOOTER SOURCE --- */
.source-footer {
    position: fixed;
    bottom: 10px;
    right: 20px;
    font-size: 12px;
    color: #555;
    font-weight: bold;
    z-index: 0; /* Derrière la télécommande si besoin */
    pointer-events: none;
}

/* =========================================
   --- PAGE ARTISTIQUE (art.html) ---
   ========================================= */

/* 1. Le corps de la page prend exactement 100% de la hauteur de l'écran */
body.art-body {
    background: #101010;
    margin: 0;
    height: 100vh; /* 100% de la hauteur de vue */
    width: 100vw;
    overflow: hidden; /* Empêche le scroll pour faire "effet application" */
    display: flex;
    flex-direction: column;
}

/* 2. Le conteneur s'étend sur toute la hauteur */
.art-container {
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box; /* Inclut le padding dans la taille */
    display: flex;
    flex-direction: column; /* Empile : Titre - Image - Bouton */
    justify-content: space-between; /* Espacement équitable */
    align-items: center;
}

/* 3. Titre plus discret pour laisser place à l'image */
.art-title {
    font-size: 1.5rem; /* Un peu plus petit */
    margin: 0 0 10px 0;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    flex-shrink: 0; /* Empêche le titre d'être écrasé */
}

/* 4. Le cadre de l'image prend TOUT l'espace restant */
.art-image-wrapper {
    flex-grow: 1; /* Prend toute la place disponible */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 20px;
}

/* 5. L'image s'ajuste sans être déformée */
.art-visual {
    max-width: 100%;
    max-height: 100%; /* Ne dépasse jamais la hauteur du conteneur */
    width: auto;
    height: auto;
    object-fit: contain; /* L'image entière est visible, pas de coupure */
    
    border-radius: 8px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 6. Zone du bouton (fixe en bas) */
.art-actions {
    flex-shrink: 0;
    margin-bottom: 10px;
}

.btn-gradient {
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    background: linear-gradient(135deg, #0055ff 0%, #ff0055 100%);
    box-shadow: 0 4px 15px rgba(0, 85, 255, 0.4);
    transition: all 0.3s ease-in-out;
    display: inline-block;
    font-family: 'Courier New', monospace;
}

.btn-gradient:hover {
    filter: brightness(1.2);
    box-shadow: 0 6px 20px rgba(255, 0, 85, 0.6);
    transform: translateY(-2px);
}