/* ===== MODE ARTISTIQUE D3.JS ===== */
.artistic-mode-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a2a 0%, #1a1a40 50%, #2a1a40 100%);
    z-index: 100;
    overflow: hidden;
}

.artistic-header {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 20, 50, 0.9) 0%, rgba(40, 20, 60, 0.9) 100%);
    border-bottom: 2px solid rgba(255, 107, 139, 0.3);
}

.artistic-header h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8e53 25%, #6bccb2 50%, #4a6fa5 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.artistic-header p {
    color: #d0d0ff;
    font-size: 1rem;
    margin-bottom: 15px;
}

.artistic-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.btn-artistic {
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(74, 111, 165, 0.9) 0%, rgba(107, 204, 178, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-artistic:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 204, 178, 0.4);
    background: linear-gradient(135deg, rgba(107, 204, 178, 0.9) 0%, rgba(74, 111, 165, 0.9) 100%);
}

.btn-artistic:active {
    transform: translateY(0);
}

.artistic-d3-container {
    width: 100%;
    height: calc(100vh - 150px);
    position: relative;
    overflow: hidden;
}

/* Styles pour les éléments D3 */
.artistic-circle {
    filter: drop-shadow(0 0 10px currentColor);
}

.particle {
    filter: blur(1px);
}

.connection-line {
    stroke-dasharray: 5, 5;
    animation: dash 1s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -10;
    }
}

.artistic-labels text {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Overlay Illustrator */
.illustrator-overlay {
    mix-blend-mode: overlay;
    transition: opacity 0.5s ease;
}

/* Bouton de retour au mode scientifique */
.btn-back-scientific {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 107, 139, 0.9) 0%, rgba(255, 142, 83, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 139, 0.3);
}

.btn-back-scientific:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 139, 0.5);
}

/* Animation d'entrée du mode artistique */
.artistic-mode-container.fade-in {
    animation: artisticFadeIn 0.8s ease-out;
}

@keyframes artisticFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Effet de scanlines pour le mode artistique */
.artistic-d3-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 10;
}

/* Effet de vignette */
.artistic-d3-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 10;
}
