/* ===== FONDAMENTAUX - ONE PAGE SANS SCROLL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #0a0a2a 0%, #1a1a40 50%, #2a1a40 100%);
    color: #f0f0f0;
    line-height: 1.6;
    position: fixed;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 107, 139, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(107, 204, 178, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(74, 111, 165, 0.1) 0%, transparent 30%);
    z-index: -1;
}

.app-container {
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-rows: auto auto 1fr;
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
    overflow: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px) scale(0.98); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.fade-in { animation: fadeIn 0.6s ease-out forwards; }
.fade-in-delay-1 { animation: fadeIn 0.6s ease-out 0.1s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.6s ease-out 0.2s forwards; opacity: 0; }
.fade-in-delay-3 { animation: fadeIn 0.6s ease-out 0.3s forwards; opacity: 0; }
.fade-in-delay-4 { animation: fadeIn 0.6s ease-out 0.4s forwards; opacity: 0; }
.fade-in-delay-5 { animation: fadeIn 0.6s ease-out 0.5s forwards; opacity: 0; }

/* ===== HEADER COMPACT ===== */
.header {
    text-align: center;
    padding: 5px 10px;
    position: relative;
    height: fit-content;
}

.header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff6b8b, #ff8e53, #4a6fa5, transparent);
    border-radius: 2px;
}

.header h1 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8e53 25%, #6bccb2 50%, #4a6fa5 75%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 0.85rem;
    color: #d0d0ff;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
    opacity: 0.9;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

/* ===== CONTROLES COMPACTS ===== */
.controls {
    background: linear-gradient(135deg, rgba(20, 20, 50, 0.9) 0%, rgba(40, 20, 60, 0.9) 100%);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
    height: fit-content;
    position: relative;
    z-index: 100;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-item label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.85rem;
    white-space: nowrap;
}

.styled-select {
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(10, 10, 42, 0.9) 0%, rgba(30, 20, 50, 0.9) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #ff6b8b, #ff8e53) 1;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    min-width: 120px;
}

.styled-select option {
    background-color: #1a1a3e;
    color: #ffffff;
    padding: 8px;
}

/* ===== SELECTION DE CHAINES (Menu déroulant) ===== */
.channel-selection-wrapper {
    position: relative;
    z-index: 10000;
}

.channel-dropdown-btn {
    padding: 8px 15px;
    background: linear-gradient(135deg, rgba(15, 15, 45, 0.9) 0%, rgba(35, 25, 55, 0.9) 100%);
    border: 2px solid;
    border-image: linear-gradient(135deg, #4a6fa5, #6bccb2) 1;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.channel-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 500px;
    max-width: 600px;
    background: linear-gradient(135deg, rgba(15, 15, 45, 0.98) 0%, rgba(35, 25, 55, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    margin-top: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 10001;
}

.channel-dropdown-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.channel-selection-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.channel-list-section {
    background: rgba(20, 20, 50, 0.3);
    border-radius: 8px;
    padding: 10px;
}

.channel-list-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.channel-checkboxes {
    display: grid;
    gap: 5px;
}

.channel-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
}

.channel-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
}

.channel-checkbox.selected {
    background: rgba(255, 107, 139, 0.15);
    border-left: 2px solid #ff6b8b;
}

.channel-selection-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    background: rgba(15, 15, 45, 0.9);
    border: 1px solid rgba(74, 111, 165, 0.5);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ===== BOUTONS MODES ET GRAPHIQUES ===== */
.mode-toggle {
    display: flex;
    gap: 8px;
}

.mode-btn {
    padding: 8px 15px;
    background: rgba(15, 15, 45, 0.9);
    border: 2px solid;
    border-image: linear-gradient(135deg, #4a6fa5, #6bccb2) 1;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: auto;
}

.mode-btn.active {
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8e53 50%, #4a6fa5 100%);
    border: none;
}

/* ===== CONTENU PRINCIPAL SANS SCROLL ===== */
#main-content {
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-mode {
    display: none;
    height: 100%;
    width: 100%;
    flex-direction: column;
}

.content-mode.active {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: 100%;
    gap: 10px;
}

/* ===== GRILLE DES GRAPHIQUES (Tab System) ===== */
.chart-tabs {
    display: flex;
    gap: 5px;
    padding: 5px;
    background: rgba(20, 20, 50, 0.5);
    border-radius: 8px;
    overflow-x: auto;
    flex-shrink: 0;
}

.chart-tab {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 6px;
    color: #d0d0ff;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.chart-tab.active {
    background: linear-gradient(135deg, #ff6b8b 0%, #ff8e53 100%);
    color: #0a0a2a;
    font-weight: 700;
}

.chart-grid-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.chart-view {
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation: fadeIn 0.4s ease-out;
}

.chart-view.active {
    display: block;
}

.chart-container {
    background: linear-gradient(135deg, 
        rgba(30, 30, 70, 0.85) 0%,
        rgba(45, 35, 80, 0.85) 100%
    );
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.chart-header h2 {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-description {
    color: #d0d0ff;
    margin-bottom: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
    flex-shrink: 0;
}

/* CANVAS DES GRAPHIQUES */
.chart-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    flex: 1;
    background: linear-gradient(135deg, 
        rgba(10, 10, 30, 0.6) 0%,
        rgba(20, 15, 40, 0.6) 100%
    );
    border-radius: 8px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #ffffff;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 8px;
}

.chart-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.chart-summary {
    display: flex;
    gap: 15px;
    color: #d0d0ff;
    font-size: 0.8rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.summary-item span:last-child {
    font-weight: 700;
    color: #ffffff;
}

/* ===== PANEL STATISTIQUES AMELIORE ===== */
.stats-panel {
    background: linear-gradient(135deg, 
        rgba(30, 30, 70, 0.85) 0%,
        rgba(45, 35, 80, 0.85) 100%
    );
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    height: fit-content;
    overflow: hidden;
    flex-shrink: 0;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.stats-header h3 {
    font-size: 0.9rem;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-controls {
    display: flex;
    gap: 5px;
}

.btn-stats-control {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #d0d0ff;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}

.stat-item {
    background: rgba(20, 20, 50, 0.6);
    padding: 6px;
    border-radius: 6px;
    border-left: 3px solid #4a6fa5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: #ff8e53;
}

.stat-content {
    flex: 1;
}

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: #d0d0ff;
    margin-bottom: 2px;
}

.stat-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.stat-description {
    display: block;
    font-size: 0.7rem;
    color: #a0a0e0;
}

.interpretation {
    padding: 8px;
    background: rgba(20, 20, 50, 0.3);
    border-radius: 8px;
    border-left: 3px solid #ff8e53;
}

.interpretation-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.interpretation-header h4 {
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
}

.interpretation p {
    line-height: 1.3;
    color: #e0e0ff;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.interpretation-details {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.7rem;
}

/* ===== MODE ARTISTIQUE ===== */
.artistic-header {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 15px;
    flex-shrink: 0;
}

.artistic-header h2 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.artistic-description {
    color: #d0d0ff;
    font-size: 0.85rem;
    line-height: 1.4;
    opacity: 0.9;
}

.artistic-container {
    background: linear-gradient(135deg, 
        rgba(30, 30, 70, 0.85) 0%,
        rgba(45, 35, 80, 0.85) 100%
    );
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.artistic-canvas-container {
    flex: 1;
    position: relative;
    margin-bottom: 15px;
}

#artistic-canvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(135deg, 
        #0a0a2a 0%, 
        #1a1a40 50%, 
        #2a1a40 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.artistic-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.artistic-param-group {
    background: rgba(20, 20, 50, 0.5);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.artistic-param-group h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.artistic-param {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.artistic-param:last-child {
    margin-bottom: 0;
}

.artistic-param label {
    flex: 1;
    color: #d0d0ff;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.artistic-param input[type="range"] {
    flex: 2;
    height: 6px;
    background: rgba(10, 10, 42, 0.9);
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.param-value {
    min-width: 20px;
    text-align: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.8rem;
}

.artistic-param select {
    flex: 2;
    padding: 6px 10px;
    background: rgba(10, 10, 42, 0.9);
    border: 1px solid rgba(107, 204, 178, 0.2);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.8rem;
    cursor: pointer;
}

.artistic-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.legend-wave {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}

.wave-sample {
    width: 40px;
    height: 12px;
    border-radius: 4px;
}

.wave-info {
    display: flex;
    flex-direction: column;
}

.wave-title {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.wave-desc {
    color: #d0d0ff;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* ===== PANEL INFO MEDIAS ===== */
.info-panel {
    background: linear-gradient(135deg, rgba(30, 30, 70, 0.95) 0%, rgba(45, 35, 80, 0.95) 100%);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    z-index: 1001;
    max-height: 80vh;
    overflow-y: auto;
}

.info-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-panel-header h3 {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: #a0a0d0;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.media-info-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.tab {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: #d0d0ff;
    font-size: 0.8rem;
}

.tab.active {
    background: linear-gradient(135deg, #ff6b8b, #ff8e53);
    color: #0a0a2a;
    font-weight: 700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.media-info-content {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.media-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff6b8b, #ff8e53);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #0a0a2a;
}

.media-details {
    flex: 1;
}

.media-details h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 10px;
    font-weight: 700;
}

.media-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.media-stat {
    background: rgba(20, 20, 50, 0.6);
    padding: 10px;
    border-radius: 8px;
    border-left: 3px solid #4a6fa5;
}

.media-stat .stat-label {
    display: block;
    font-size: 0.75rem;
    color: #d0d0ff;
    margin-bottom: 3px;
}

.media-stat .stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #ffffff;
}

.media-description {
    line-height: 1.5;
    color: #e0e0ff;
    font-size: 0.85rem;
    padding: 10px;
    background: rgba(20, 20, 50, 0.3);
    border-radius: 8px;
    border-left: 3px solid #6bccb2;
}

.global-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.global-stat-card {
    background: rgba(20, 20, 50, 0.6);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 139, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ff6b8b;
}

.stat-card-content h5 {
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 3px;
    font-weight: 600;
}

.stat-card-value {
    font-size: 1.3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 3px;
}

.stat-card-label {
    font-size: 0.8rem;
    color: #d0d0ff;
    opacity: 0.8;
}

.trend-analysis {
    background: rgba(20, 20, 50, 0.3);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid #ff8e53;
}

.trend-analysis h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.methodology-list {
    list-style: none;
    margin-top: 10px;
}

.methodology-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    font-size: 0.8rem;
}

.methodology-list li i {
    color: #6bccb2;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ===== FOOTER COMPACT ===== */
.footer {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 10px;
}

.footer-section {
    text-align: left;
}

.footer-section h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 4px;
    font-size: 0.7rem;
    color: #d0d0ff;
    line-height: 1.4;
}

.footer-bottom {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    color: #a0a0e0;
}

/* ===== BOUTONS DE CONTROLE DES GRAPHIQUES ===== */
.chart-controls {
    display: flex;
    gap: 5px;
}

.btn-chart-control {
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #d0d0ff;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== OVERLAY POUR FERMER LE MENU ===== */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.overlay.active {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
    }
    
    .filter-group {
        justify-content: center;
    }
    
    .mode-toggle {
        justify-content: center;
    }
    
    .chart-tabs {
        flex-wrap: wrap;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artistic-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.2rem;
    }
    
    .filter-item {
        flex: 1 0 100%;
    }
    
    .styled-select {
        min-width: 100%;
    }
    
    .mode-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .chart-tab {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}