/* styles.css */
        body {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Roboto', sans-serif;
            background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
            color: #ffffff;
            min-height: 100vh;
            overflow-x: hidden;
            padding-top: 50px;
        }



        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 50px 50px;
            pointer-events: none;
            z-index: -1;
        }

        .dashboard-container {
            padding: 20px;
            max-width: 1400px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-template-rows: auto auto auto;
            gap: 20px;
            grid-template-areas: 
                "extinction extinction extinction"
                "global resources climate"
                "conflicts conflicts health";
        }

        .section {
            background: rgba(15, 25, 45, 0.8);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 12px;
            padding: 20px;
            backdrop-filter: blur(10px);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .section::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, transparent, #00ffff, transparent);
            /* Animation scanLine supprimée pour optimiser les performances */
        }

        .section:hover {
            border-color: rgba(0, 255, 255, 0.6);
            box-shadow: 0 12px 40px rgba(0, 255, 255, 0.2);
        }

        .extinction-section {
            grid-area: extinction;
            padding: 30px;
        }

        .extinction-title {
            font-size: 2rem;
            font-weight: 900;
            color: #00ffff;
            margin-bottom: 25px;
            text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
            text-align: center;
        }

        .geopolitical-summary {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .date-section {
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .calendar-btn {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid #00ffff;
            border-radius: 8px;
            padding: 12px 20px;
            color: #00ffff;
            font-family: 'Roboto', sans-serif;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            outline: none;
        }

        .calendar-btn:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
            transform: translateY(-2px);
        }

        .calendar-icon {
            font-size: 16px;
        }

        .calendar-date {
            font-size: 14px;
            font-weight: 500;
        }

        .summary-section {
            flex: 1;
        }

        .summary-text {
            font-family: 'Roboto', sans-serif;
            font-size: 15px;
            line-height: 1.6;
            color: #e0e0e0;
            text-align: justify;
            background: rgba(0, 0, 0, 0.3);
            padding: 20px;
            border-radius: 12px;
            border: 1px solid rgba(0, 255, 255, 0.2);
        }

        /* Section Graphique Stabilité */
        .chart-section {
            margin-top: 20px;
        }

        .chart-accordion-button {
            width: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: rgba(0, 0, 0, 0.6);
            border: 1px solid #00ffff;
            border-radius: 8px;
            padding: 15px 20px;
            color: #00ffff;
            font-family: 'Roboto', sans-serif;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            outline: none;
        }

        .chart-accordion-button:hover {
            background: rgba(0, 255, 255, 0.1);
            box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
        }

        .chart-accordion-icon {
            font-size: 1.2rem;
            transition: transform 0.3s ease;
        }

        .chart-accordion-button.active .chart-accordion-icon {
            transform: rotate(180deg);
        }

        .chart-accordion-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease;
            border-left: 1px solid rgba(0, 255, 255, 0.2);
            border-right: 1px solid rgba(0, 255, 255, 0.2);
            border-bottom: 1px solid rgba(0, 255, 255, 0.2);
            border-radius: 0 0 8px 8px;
        }

        .chart-accordion-content.active {
            max-height: 500px;
        }

        .stability-chart-container {
            padding: 20px;
            background: rgba(0, 0, 0, 0.2);
        }

        .chart-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 255, 255, 0.3);
        }

        .chart-header h3 {
            color: #00ffff;
            margin: 0;
            font-family: 'Orbitron', monospace;
            font-size: 16px;
        }

        .chart-legend {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            font-size: 10px;
            line-height: 1.2;
        }

        .legend-item {
            display: none; /* Temporairement masqué - prend trop de place */
            padding: 3px 6px;
            border-radius: 3px;
            font-weight: bold;
            font-size: 9px;
            white-space: nowrap;
        }

        /* Dégradé de couleurs du rouge au vert */
        .legend-item.catastrophe { background: #8B0000; color: white; } /* Rouge foncé */
        .legend-item.acute-crisis { background: #DC143C; color: white; } /* Rouge crimson */
        .legend-item.very-unstable { background: #FF4444; color: white; } /* Rouge */
        .legend-item.marked-instability { background: #FF6347; color: white; } /* Rouge tomate */
        .legend-item.moderate-tensions { background: #FF8800; color: white; } /* Orange */
        .legend-item.fragile-stability { background: #FFA500; color: black; } /* Orange clair */
        .legend-item.relative-stability { background: #FFD700; color: black; } /* Jaune or */
        .legend-item.relative-calm { background: #ADFF2F; color: black; } /* Vert jaune */
        .legend-item.stable-peace { background: #32CD32; color: black; } /* Vert citron */
        .legend-item.global-harmony { background: #00FF00; color: black; } /* Vert pur */

        .chart-svg-container {
            width: 100%;
            min-height: 280px;
            height: 40vh;
            max-height: 400px;
            background: rgba(0, 20, 40, 0.3);
            border: 1px solid rgba(0, 255, 255, 0.3);
            border-radius: 8px;
            position: relative;
            overflow: visible;
        }

        .chart-tooltip-active, .chart-tooltip-advanced {
            pointer-events: auto !important;
            animation: fadeIn 0.2s ease-out;
            user-select: text;
        }

        .chart-tooltip-active button, .chart-tooltip-advanced button {
            pointer-events: auto !important;
            cursor: pointer !important;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .stability-chart-svg {
            width: 100%;
            height: 100%;
            min-height: 250px;
        }

        .chart-grid-line {
            stroke: rgba(0, 255, 255, 0.1);
            stroke-width: 1;
            stroke-dasharray: 2,2;
        }

        .chart-axis {
            stroke: rgba(0, 255, 255, 0.4);
            stroke-width: 1;
        }

        .chart-curve {
            fill: none;
            stroke: #00ffff;
            stroke-width: 3;
            filter: drop-shadow(0 0 6px rgba(0, 255, 255, 0.6));
        }

        .chart-point {
            fill: #ff4444;
            stroke: #ffffff;
            stroke-width: 2;
            filter: drop-shadow(0 0 4px rgba(255, 68, 68, 0.8));
        }

        .chart-point:hover {
            fill: #ffffff;
            stroke: #00ffff;
            stroke-width: 3;
            cursor: pointer;
        }

        .chart-label {
            font-family: 'Roboto', sans-serif;
            font-size: 11px;
            fill: #ffffff;
            text-anchor: middle;
        }

        .chart-value-label {
            font-family: 'Roboto', sans-serif;
            font-size: 12px;
            font-weight: bold;
            text-anchor: middle;
        }

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

        .chart-stats {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: #888888;
        }

        .chart-stats span {
            color: #ffffff;
        }

        #trend-indicator.positive { color: #00ff00; }
        #trend-indicator.negative { color: #ff4444; }
        #trend-indicator.stable { color: #ffaa00; }

        /* Styles mobile pour les graphiques */
        @media (max-width: 768px) {
            .chart-svg-container {
                height: 45vh;
                min-height: 300px;
                margin: 0 -10px;
                width: calc(100% + 20px);
            }
            
            .stability-chart-svg {
                min-height: 280px;
            }
            
            .chart-label {
                font-size: 10px;
            }
            
            .chart-point {
                r: 6;
                stroke-width: 3;
            }
            
            .chart-point:hover {
                r: 8;
                stroke-width: 4;
            }
        }

        /* Tooltip de stabilité */
        .stability-tooltip {
            animation: fadeInTooltip 0.2s ease-out;
        }

        @keyframes fadeInTooltip {
            from {
                opacity: 0;
                transform: scale(0.8);
            }
            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Amélioration du curseur sur les points */
        .chart-point {
            transition: filter 0.2s ease;
            cursor: pointer;
        }

        .chart-point:hover {
            filter: drop-shadow(0 0 8px rgba(255, 68, 68, 1)) brightness(1.2);
        }

        .global-section {
            grid-area: global;
        }

        .section-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #00ffff;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }

        .global-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }

        .stat-item {
            background: rgba(0, 255, 255, 0.1);
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #00ffff;
        }

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

        .stat-label {
            font-size: 0.8rem;
            color: #aaaaaa;
            text-transform: uppercase;
        }

        .resources-section {
            grid-area: resources;
        }

        .resource-bar {
            margin: 15px 0;
        }

        .resource-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 0.9rem;
        }

        .resource-progress {
            width: 100%;
            height: 20px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            overflow: hidden;
        }

        .resource-fill {
            height: 100%;
            border-radius: 10px;
            transition: width 2s ease;
        }

        .oil-fill { background: linear-gradient(90deg, #ff8c00, #ffaa00); width: 45%; }
        .gas-fill { background: linear-gradient(90deg, #4169e1, #6495ed); width: 62%; }
        .water-fill { background: linear-gradient(90deg, #00bfff, #87ceeb); width: 78%; }

        .climate-section {
            grid-area: climate;
        }

        .climate-indicator {
            text-align: center;
            margin: 20px 0;
        }

        .temp-display {
            font-size: 2.5rem;
            font-weight: 900;
            color: #ff4500;
            text-shadow: 0 0 15px rgba(255, 69, 0, 0.5);
        }

        .conflicts-section {
            grid-area: conflicts;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .conflict-subsection {
            background: rgba(255, 0, 100, 0.1);
            padding: 15px;
            border-radius: 8px;
            border: 1px solid rgba(255, 0, 100, 0.3);
        }

        .conflict-counter {
            font-size: 2rem;
            font-weight: 900;
            color: #ff0066;
            text-align: center;
            margin: 10px 0;
        }

        .health-section {
            grid-area: health;
        }

/* ================================================================ */
/* BANDEAU D'ACTUALITÉS FRANCE24 */
/* ================================================================ */

.news-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.95), rgba(0, 30, 60, 0.95));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #00ffff;
    box-shadow: 0 2px 20px rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
    height: 50px;
    font-family: 'Orbitron', monospace;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.audio-control {
    display: flex;
    align-items: center;
    padding: 0 10px;
    height: 100%;
}

.audio-button {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.audio-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 255, 255, 0.2);
}

.audio-button.active {
    background: rgba(0, 255, 0, 0.2);
    border-color: rgba(0, 255, 0, 0.6);
    color: #00ff00;
}

.audio-button.active:hover {
    background: rgba(0, 255, 0, 0.3);
}

.audio-icon {
    font-size: 16px;
    font-weight: bold;
}

.credits-control {
    display: flex;
    align-items: center;
    padding: 0 15px;
    height: 100%;
    margin-left: auto;
}

.credits-button {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 11px;
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.credits-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 255, 255, 0.2);
}

.news-status {
    display: flex;
    align-items: center;
    padding: 0 15px;
    background: rgba(0, 0, 0, 0.3);
    height: 100%;
    min-width: 200px;
    border-right: 1px solid rgba(0, 255, 255, 0.3);
}

.status-indicator {
    font-size: 12px;
    margin-right: 8px;
    color: #00ff00;
}

.status-text {
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 1px;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.news-ticker-container {
    flex: 1;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.news-ticker {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-news-slow 120s linear infinite;
    line-height: 50px;
    padding-left: 100%;
    color: #ffffff;
    font-size: 14px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
}

.news-item {
    margin-right: 50px;
    padding: 0 10px;
    transition: color 0.3s ease;
}

.news-item:hover {
    color: #00ffff;
}

.loading-message {
    color: #ffaa00;
    font-style: italic;
}

/* Animation de défilement des actualités - Version lente et lisible */
@keyframes scroll-news-slow {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* Animation de pulsation pour les indicateurs */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Ajustement du contenu principal pour le bandeau déjà appliqué dans body principal */

/* ================================================================ */
/* ÉLÉMENTS CLIQUABLES - Animation et Interactions */
/* ================================================================ */

.population-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
}

.population-clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
}

.population-clickable .click-indicator {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 5px;
    font-size: 0.7em;
    color: #00ff00;
}

.population-clickable:hover .click-indicator {
    opacity: 1;
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
    0%, 100% { 
        opacity: 1;
        color: #00ff00;
    }
    50% { 
        opacity: 0.6;
        color: #66ff66;
    }
}

/* Animation de pulsation legere au survol */
.population-clickable:hover .stat-value {
    animation: glow-counter 2s infinite;
}

/* ================================================================ */
/* RESSOURCE PÉTROLE CLIQUABLE */
/* ================================================================ */

.oil-resource-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    padding: 5px;
    margin: -5px;
}

.oil-resource-clickable:hover {
    background: rgba(255, 140, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
    border: 1px solid rgba(255, 140, 0, 0.4);
}

.oil-resource-clickable:hover .resource-label span:first-child {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
}

.oil-resource-clickable:hover .oil-fill {
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.8);
    filter: brightness(1.3);
}

@keyframes glow-counter {
    0%, 100% { 
        color: #ffffff;
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    50% { 
        color: #00ffff;
        text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    }
}

/* Modale Population */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.modal-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(26, 26, 46, 0.95));
    border: 2px solid #00ffff;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 255, 255, 0.4);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    animation: slideIn 0.4s ease-out;
}

.population-modal {
    width: 500px;
    min-height: 300px;
}

.credits-modal {
    width: 600px;
    max-width: 90vw;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.4);
}

.modal-header h3 {
    margin: 0;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: #ff6666;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 102, 102, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px 25px;
}

.counter-section {
    text-align: center;
}

.counter-display {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px 20px;
}

.counter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    animation: counter-pulse 3s infinite;
}

@keyframes counter-pulse {
    0%, 100% { 
        transform: scale(1);
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    50% { 
        transform: scale(1.02);
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
    }
}

.counter-label {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.counter-info {
    font-size: 0.9rem;
    color: #00ff00;
    font-style: italic;
    animation: blink-info 2s infinite;
}

@keyframes blink-info {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Styles pour la modale credits */
.credits-section {
    margin-bottom: 20px;
}

.credits-section h4 {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.credit-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ffffff;
}

.credit-item a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credit-item a:hover {
    color: #66ffff;
    text-decoration: underline;
}

/* Styles pour la modale calendrier */
.calendar-modal {
    width: 500px;
    max-width: 90vw;
}

.calendar-container {
    padding: 10px;
}

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

.calendar-nav {
    background: none;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    color: #00ffff;
    width: 35px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: #00ffff;
}

.calendar-month-year {
    color: #00ffff;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 600;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.calendar-day-header {
    text-align: center;
    padding: 8px;
    font-size: 12px;
    color: #00ffff;
    font-weight: 600;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
}

.calendar-day.today {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #00ffff;
    font-weight: 600;
}

.calendar-day.other-month {
    color: #666666;
    opacity: 0.5;
}

.calendar-day.selected {
    background: rgba(0, 255, 0, 0.2);
    border-color: #00ff00;
    color: #00ff00;
}

/* Pastilles de score de stabilité */
.stability-indicator {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.calendar-day:hover .stability-indicator {
    opacity: 1;
}

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

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Styles pour la modale de contenu quotidien */
.daily-content-modal {
    width: 700px;
    max-width: 90vw;
    max-height: 90vh;
}

/* ================================================================ */
/* MODALE DONNÉES PÉTROLIÈRES */
/* ================================================================ */

.oil-modal-content {
    width: 90vw;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    border: 2px solid #ff8c00;
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.4);
}

.oil-modal-content .modal-header {
    border-bottom: 1px solid rgba(255, 140, 0, 0.3);
    background: rgba(255, 140, 0, 0.1);
}

.oil-modal-content .modal-header h3 {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
}

.oil-modal-content .modal-body {
    padding: 0;
    height: calc(100% - 120px);
    overflow: hidden;
}

.oil-modal-content .modal-footer {
    padding: 15px 25px;
    border-top: 1px solid rgba(255, 140, 0, 0.3);
    background: rgba(0, 0, 0, 0.4);
    text-align: center;
    color: #cccccc;
    font-size: 0.9rem;
}

.modal-close-btn {
    background: none;
    border: none;
    color: #ff8c00;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 140, 0, 0.2);
    transform: rotate(90deg);
}

.daily-modal-body {
    padding: 30px 25px;
    max-height: 75vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00ffff rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.daily-modal-body::-webkit-scrollbar {
    width: 8px;
}

.daily-modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.daily-modal-body::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
}

.daily-modal-body::-webkit-scrollbar-thumb:hover {
    background: #66ffff;
}

/* Section Score de Stabilité */
.stability-section {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.stability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stability-label {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #00ffff;
}

.stability-score {
    position: relative;
    cursor: help;
    transition: all 0.3s ease;
}

.stability-score:hover {
    transform: scale(1.05);
}

.score-value {
    font-family: 'Orbitron', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 5px;
}

.score-max {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #cccccc;
}

/* Couleurs du score par paliers */
.score-0-100 { color: #cc0000; } /* Rouge foncé */
.score-100-200 { color: #ff3300; }
.score-200-300 { color: #ff6600; }
.score-300-400 { color: #ff9900; }
.score-400-500 { color: #ffcc00; }
.score-500-600 { color: #ccff00; }
.score-600-700 { color: #99ff00; }
.score-700-800 { color: #66ff00; }
.score-800-900 { color: #33ff00; }
.score-900-1000 { color: #808000; } /* Vert olive */

/* Tooltip de justification */
.stability-tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid #00ffff;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.4);
}

.stability-tooltip.visible {
    opacity: 1;
    visibility: visible;
}

.tooltip-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #ffffff;
    text-align: justify;
}

.tooltip-content h4 {
    color: #00ffff;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    text-align: center;
    border-bottom: 1px solid #00ffff;
    padding-bottom: 8px;
}

/* Overlay pour la tooltip */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Section Résumé du jour */
.daily-summary-section {
    margin-bottom: 30px;
}

.daily-summary-section h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #00ffff;
    margin: 0 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.summary-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    text-align: justify;
}

/* Section Accordéon */
.accordion-section {
    margin-top: 20px;
}

.accordion-button {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #00ffff;
    border-radius: 8px;
    padding: 15px 20px;
    color: #00ffff;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.accordion-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.accordion-button.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-left: 1px solid rgba(0, 255, 255, 0.2);
    border-right: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0 0 8px 8px;
}

.accordion-content.active {
    max-height: 2000px;
    overflow-y: auto;
}

.full-summary {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    line-height: 1.5;
    color: #e0e0e0;
    text-align: justify;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #00ffff rgba(0, 0, 0, 0.3);
}

.full-summary::-webkit-scrollbar {
    width: 6px;
}

.full-summary::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.full-summary::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 3px;
}

.full-summary::-webkit-scrollbar-thumb:hover {
    background: #00cccc;
}

/* Responsive design pour le bandeau et les boutons de contrôle */
@media (max-width: 768px) {


    .news-banner {
        height: 45px;
        font-size: 12px;
    }
    
    .news-ticker {
        line-height: 45px;
        font-size: 11px;
    }
    
    .news-status {
        min-width: 150px;
        padding: 0 10px;
    }
    
    .status-text {
        font-size: 10px;
    }

    .audio-button {
        width: 30px;
        height: 30px;
    }
    
    .audio-icon {
        font-size: 14px;
    }

    .credits-button {
        font-size: 10px;
        padding: 5px 10px;
    }

}

@media (max-width: 480px) {


    .news-banner {
        height: 40px;
    }
    
    .news-ticker {
        line-height: 40px;
        font-size: 10px;
        animation: scroll-news-slow 100s linear infinite;
    }
    
    .news-status {
        min-width: 120px;
    }
    
    .status-text {
        font-size: 9px;
    }

    .audio-control {
        padding: 0 8px;
    }
    
    .audio-button {
        width: 28px;
        height: 28px;
    }
    
    .audio-icon {
        font-size: 12px;
    }

    .credits-control {
        padding: 0 10px;
    }

    .credits-button {
        font-size: 9px;
        padding: 4px 8px;
    }

}

@media (max-width: 768px) {
    /* Modale responsive mobile */
    .population-modal {
        width: 95vw;
        min-height: 250px;
    }
    
    .counter-value {
        font-size: 1.8rem;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    /* Modale contenu quotidien responsive */
    .daily-content-modal {
        width: 95vw;
        max-height: 85vh;
    }
    
    .daily-modal-body {
        padding: 20px 15px;
        max-height: 65vh;
    }
    
    .stability-score .score-value {
        font-size: 1.5rem;
    }
    
    .stability-tooltip {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 80vw;
        z-index: 1002;
    }
    
    .accordion-button {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .full-summary {
        padding: 15px;
        font-size: 0.9rem;
    }
}

/* ================================================================ */
/* STYLES POUR LA DÉTECTION ET CARTOGRAPHIE DES PAYS */
/* ================================================================ */

/* Surbrillance des pays dans les textes */
.country-highlight {
    background: transparent !important;
    color: #00ffff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border-bottom: 1px dotted rgba(0, 255, 255, 0.8) !important;
    font-weight: 600 !important;
    text-shadow: none !important;
    text-decoration: none !important;
    display: inline !important;
    position: relative !important;
}

.summary-text .country-highlight,
#daily-summary-text .country-highlight,
#full-summary-text .country-highlight {
    background: transparent !important;
    color: #00ffff !important;
    padding: 0 !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    border-bottom: 1px dotted #00ffff !important;
    font-weight: 600 !important;
    text-shadow: none !important;
}

.country-highlight:hover {
    background: transparent !important;
    color: #ffffff !important;
    text-shadow: none !important;
    transform: none !important;
    border-bottom: 2px solid #00ffff !important;
    box-shadow: none !important;
}

/* Popup cartographique */
.country-map-popup {
    position: fixed;
    background: rgba(10, 10, 15, 0.98);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    z-index: 10000;
    min-width: 400px;
    max-width: 650px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    pointer-events: none;
    backdrop-filter: blur(15px);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.country-map-popup h4 {
    color: #00ffff;
    margin: 0 0 15px 0;
    font-family: 'Orbitron', monospace;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    letter-spacing: 1px;
}

.country-map-container {
    width: 100%;
    height: 300px;
    background: #000;
    border: 1px solid #333;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.country-map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.world-outline {
    fill: none;
    stroke: #333;
    stroke-width: 0.5;
    opacity: 0.3;
}

.country-shape {
    fill: #00ffff;
    stroke: #ffffff;
    stroke-width: 1.5;
    filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
    opacity: 0.9;
    animation: pulseCountry 2s ease-in-out infinite;
}

/* Styles pour la vraie carte du monde */
.world-country {
    fill: #333;
    stroke: #555;
    stroke-width: 0.5;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.world-country:hover {
    fill: #444;
    opacity: 0.9;
}

.highlighted-country {
    fill: #00ffff;
    stroke: #ffffff;
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    animation: pulseHighlightedCountry 2s ease-in-out infinite;
}

@keyframes pulseHighlightedCountry {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
        opacity: 0.9;
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 1));
        opacity: 1;
    }
}

@keyframes pulseCountry {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(0, 255, 255, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 255, 0.9));
    }
}

.country-info {
    margin-top: 15px;
    color: #ccc;
    font-size: 12px;
    text-align: center;
    padding: 10px;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    font-family: 'Roboto', sans-serif;
}

/* Styles responsives pour la popup cartographique */
@media (max-width: 768px) {
    .country-map-popup {
        min-width: 320px;
        max-width: 90vw;
        padding: 15px;
    }
    
    .country-map-popup h4 {
        font-size: 1.1rem;
    }
    
    .country-map-container {
        height: 250px;
    }
    
    .country-info {
        font-size: 11px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .country-map-popup {
        min-width: 280px;
        max-width: 95vw;
        padding: 12px;
    }
    
    .country-map-container {
        height: 200px;
    }
    
    .country-highlight {
        padding: 1px 3px;
        font-size: 0.95em;
    }
}

/* Responsive design */
@media (max-width: 768px) {
            .dashboard-container {
                grid-template-columns: 1fr;
                grid-template-areas: 
                    "extinction"
                    "global"
                    "resources"
                    "climate"
                    "conflicts"
                    "health";
            }

            .conflicts-section {
                grid-template-columns: 1fr;
            }

            .extinction-title {
                font-size: 1.5rem;
            }

            .summary-text {
                font-size: 13px;
                padding: 15px;
            }

            .calendar-btn {
                padding: 10px 15px;
                font-size: 13px;
            }
        }