/* ========================================
   MODE ARTISTIQUE - THÈME TV RÉTRO
   Présentationsimilar à la page principale
   ======================================== */

.artistic-mode-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--tv-bg, #e8e8e8);
    z-index: 9999;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

/* Effets CRT pour le mode artistique */
.artistic-mode-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.05) 4px
    );
    pointer-events: none;
    z-index: 5;
}

.artistic-mode-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 50%,
        rgba(0, 0, 0, 0.08) 100%
    );
    pointer-events: none;
    z-index: 6;
}

/* Header du mode artistique */
.artistic-header {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 25px;
    background: rgba(64, 64, 64, 0.9);
    border: 2px solid var(--tv-accent, #0066aa);
    border-radius: 10px;
    text-align: center;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.artistic-header h2 {
    font-size: 16px;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.artistic-header h2 svg {
    color: var(--tv-accent, #0066aa);
    width: 20px;
    height: 20px;
}

/* Bouton retour */
.btn-back-to-home {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 10px 20px;
    background: rgba(64, 64, 64, 0.9);
    border: 2px solid var(--tv-accent, #0066aa);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.btn-back-to-home:hover {
    background: var(--tv-accent, #0066aa);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 170, 0.4);
}

.btn-back-to-home svg {
    width: 16px;
    height: 16px;
}

/* Container du graphique artistique - pour page autonome */
.artistic-d3-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

#artistic-svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Style full page pour artistic-mode-container (quand utilisé seul) */
.artistic-mode-container.fullpage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--tv-bg, #e8e8e8);
    z-index: 9999;
    overflow: hidden;
}

.artistic-mode-container.fullpage .artistic-d3-container {
    width: 100%;
    height: calc(100vh - 80px);
    position: absolute;
    top: 80px;
    left: 0;
}

/* Info box style TV */
.artistic-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 12px 20px;
    background: rgba(64, 64, 64, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.artistic-info strong {
    color: var(--tv-accent, #0066aa);
}

/* Indicateur TV dans le mode artistique */
.artistic-tv-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'VT323', monospace;
    font-size: 12px;
    color: #fff;
    background: rgba(64, 64, 64, 0.9);
    padding: 8px 15px;
    border-radius: 5px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
}

.artistic-tv-indicator .led {
    width: 8px;
    height: 8px;
    background: var(--tv-green, #00aa44);
    border-radius: 50%;
    animation: ledPulse 2s ease-in-out infinite;
}

/* Animation LED */
@keyframes ledPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Légende artistique */
.artistic-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(64, 64, 64, 0.9);
    padding: 12px 15px;
    border-radius: 8px;
    z-index: 100;
    display: flex;
    gap: 15px;
}

.artistic-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 11px;
}

.artistic-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Fade in animation */
.artistic-mode-container.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .artistic-header {
        top: 15px;
        padding: 8px 20px;
    }
    
    .artistic-header h2 {
        font-size: 14px;
    }
    
    .btn-back-to-home {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .artistic-info {
        bottom: 15px;
        left: 15px;
        font-size: 11px;
        padding: 10px 15px;
    }
    
    .artistic-legend {
        bottom: 15px;
        right: 15px;
        gap: 10px;
        padding: 8px 12px;
    }
    
    .artistic-legend-item {
        font-size: 10px;
    }
}

