/* Variables de couleurs */
:root {
    --primary-color: #c1272d; /* Rouge marocain */
    --secondary-color: #006233; /* Vert marocain */
    --accent-color: #ffce08; /* Jaune accent */
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --text-color: #212529;
    --background-color: #ffffff;
    
    /* Couleurs des partis */
    --pps-color: #e63946; /* Rouge */
    --rni-color: #0077b6; /* Bleu */
    --pjd-color: #ffb703; /* Jaune */
    --usfp-color: #ff758f; /* Rose */
    --istiqlal-color: #2a9d8f; /* Vert */
    --autres-color: #adb5bd; /* Gris */
    
    /* Nouvelles variables pour les effets */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --btn-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    --btn-shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.25);
    --btn-transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Styles généraux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

section {
    padding: 100px 0;
    position: relative;
    overflow: visible; /* Pour éviter de masquer les éléments */
}

.section-header {
    margin-bottom: 60px;
    position: relative;
}

.reveal-title {
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-title.active {
    opacity: 1;
    transform: translateY(0);
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 20px;
    border-radius: 2px;
    position: relative;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.8s ease 0.2s;
}

.title-underline.active {
    opacity: 1;
    transform: scaleX(1);
}

.title-underline::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background-color: var(--accent-color);
    left: -30px;
    border-radius: 2px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s ease 0.4s;
}

.title-underline.active::before {
    opacity: 1;
    transform: translateX(0);
}

.title-underline::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 4px;
    background-color: var(--accent-color);
    right: -30px;
    border-radius: 2px;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.8s ease 0.4s;
}

.title-underline.active::after {
    opacity: 1;
    transform: translateX(0);
}

.reveal-text {
    color: #666;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loader */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.vote-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    animation: pulse 1.5s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.2); opacity: 1; }
}

.progress-bar {
    width: 200px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.progress-bar .progress {
    height: 100%;
    background-color: var(--accent-color);
    width: 0;
    border-radius: 2px;
    animation: loading 2s ease forwards;
}

@keyframes loading {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Header et Navigation */
.header {
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.header.scrolled {
    padding: 5px 0;
    background-color: rgba(193, 39, 45, 0.85);
}

.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.brand-text {
    margin-left: 10px;
    position: relative;
}

.year-highlight {
    color: var(--accent-color);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(255, 206, 8, 0.5);
}

.flag-icon {
    height: 30px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.navbar-brand:hover .flag-icon {
    transform: rotate(5deg) scale(1.1);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar-dark .navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::before,
.navbar-dark .navbar-nav .nav-link.active::before {
    transform: translateX(0);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: white;
}

.lang-selector .dropdown-toggle {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.lang-selector .dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lang-selector .dropdown-menu {
    min-width: auto;
    background-color: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 0.3s ease;
}

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

.lang-selector .dropdown-item {
    color: white;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.lang-selector .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Section Hero */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 180px 0 100px;
    position: relative;
    overflow: visible;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 5;
}

.hero-text {
    padding-right: 30px;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background-color: rgba(255, 206, 8, 0.3);
    z-index: -1;
    transform: skewX(-15deg);
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-slogan {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Traditional Arabic', 'Amiri', serif;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-slogan-translation {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 600px;
}

/* Nouveaux styles créatifs pour les boutons */
.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 20;
}

.hero-buttons .btn {
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--btn-transition);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    z-index: 25;
    border: none;
    letter-spacing: 0.5px;
    box-shadow: var(--btn-shadow);
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(0);
}

.hero-buttons .btn:hover {
    transform: perspective(1000px) translateZ(10px) translateY(-5px);
    box-shadow: var(--btn-shadow-hover);
}

.hero-buttons .btn:active {
    transform: perspective(1000px) translateZ(5px) translateY(-2px);
    box-shadow: var(--btn-shadow);
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: all 0.8s ease;
    z-index: -1;
}

.hero-buttons .btn:hover::before {
    transform: translateX(100%);
}

.hero-buttons .btn i {
    transition: transform 0.4s ease;
}

.hero-buttons .btn:hover i {
    transform: translateX(4px) scale(1.2);
}

/* Bouton pulse avec effet glassmorphism */
.pulse-btn {
    background: linear-gradient(135deg, var(--accent-color), #ffd700);
    color: var(--dark-color);
    position: relative;
    z-index: 25;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.pulse-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50px;
    background: rgba(255, 206, 8, 0.4);
    z-index: -2;
    opacity: 0;
    transform: scale(0.8);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.pulse-btn:hover {
    background: linear-gradient(135deg, #ffd700, var(--accent-color));
    color: var(--dark-color);
}

/* Bouton glow avec effet néon - AMÉLIORÉ POUR MEILLEURE VISIBILITÉ */
.glow-btn {
    /* Fond avec dégradé semi-transparent pour meilleur contraste */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.15));
    color: white;
    position: relative;
    z-index: 25;
    /* Bordure plus visible */
    border: 3px solid rgba(255, 255, 255, 0.9);
    overflow: hidden;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    /* Ombre plus prononcée pour meilleure visibilité */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4), 0 0 30px rgba(255, 255, 255, 0.2), 0 0 10px rgba(0, 0, 0, 0.3);
    /* Texte plus visible */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    /* Contour du texte pour meilleure lisibilité */
    -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
}

/* Effet de contour lumineux */
.glow-btn::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: transparent;
    z-index: -1;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6), 0 0 60px rgba(255, 255, 255, 0.4);
    }
}

.glow-btn:hover {
    /* Fond plus visible au survol */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3));
    color: white;
    border-color: white;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    margin-top: 50px;
    text-align: center;
    opacity: 0.8;
    position: relative;
    z-index: 5;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.wheel {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.vote-illustration {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 2;
    pointer-events: none;
}

.vote-box {
    width: 200px;
    height: 150px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-20px) rotate(2deg); }
    100% { transform: translateY(0) rotate(0); }
}

.vote-paper {
    width: 100px;
    height: 70px;
    background-color: white;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: paper 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes paper {
    0% { transform: translateX(-50%) translateY(0) rotate(0); }
    50% { transform: translateX(-50%) translateY(10px) rotate(5deg); }
    100% { transform: translateX(-50%) translateY(0) rotate(0); }
}

.vote-slot {
    width: 120px;
    height: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    pointer-events: none;
}

.vote-check {
    position: absolute;
    font-size: 5rem;
    color: var(--accent-color);
    bottom: 50px;
    right: 50px;
    text-shadow: 0 0 20px rgba(255, 206, 8, 0.7);
    animation: check 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes check {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 3;
    pointer-events: none;
}

/* Section Résultats */
.results-section {
    background-color: var(--light-color);
    padding: 100px 0;
    position: relative;
}

.chart-container {
    background-color: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    height: 450px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.chart-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

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

.chart-header h3 {
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

.chart-controls {
    display: flex;
    gap: 10px;
}

/* Nouveaux styles pour les boutons de contrôle du graphique */
.chart-toggle {
    padding: 8px 15px;
    border-radius: 8px;
    transition: var(--btn-transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: white;
    color: var(--dark-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.chart-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(0, 0, 0, 0.05), transparent);
    transform: translateX(-100%);
    transition: all 0.5s ease;
    z-index: -1;
}

.chart-toggle:hover::before {
    transform: translateX(100%);
}

.chart-toggle.active {
    background: linear-gradient(135deg, var(--primary-color), #e63946);
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(193, 39, 45, 0.3);
    transform: translateY(-2px);
}

.chart-toggle:hover:not(.active) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chart-wrapper {
    height: 300px;
    position: relative;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Nouveaux styles pour les éléments de légende */
.legend-item {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 30px;
    transition: var(--btn-transition);
    border: 1px solid transparent;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.legend-item:hover {
    background-color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.05);
}

.party-color {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.party-pps .party-color, .party-color.pps { background-color: var(--pps-color); }
.party-rni .party-color, .party-color.rni { background-color: var(--rni-color); }
.party-pjd .party-color, .party-color.pjd { background-color: var(--pjd-color); }
.party-usfp .party-color, .party-color.usfp { background-color: var(--usfp-color); }
.party-istiqlal .party-color, .party-color.istiqlal { background-color: var(--istiqlal-color); }
.party-autres .party-color, .party-color.autres { background-color: var(--autres-color); }

.party-name {
    font-weight: 600;
    margin-right: 8px;
}

.party-percentage {
    font-weight: 700;
    color: var(--primary-color);
}

.results-details {
    background-color: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Nouveaux styles pour les onglets de résultats */
.results-tabs {
    display: flex;
    background-color: var(--light-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow-x: auto;
    scrollbar-width: none; /* Pour Firefox */
    -ms-overflow-style: none; /* Pour IE et Edge */
}

.results-tabs::-webkit-scrollbar {
    display: none; /* Pour Chrome, Safari et Opera */
}

.tab-btn {
    padding: 15px 25px;
    background: none;
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--btn-transition);
    position: relative;
    white-space: nowrap;
    z-index: 5;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 3px 3px 0 0;
}

.tab-btn.active {
    color: var(--primary-color);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover:not(.active) {
    color: var(--primary-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.tab-btn:hover:not(.active)::after {
    transform: scaleX(0.5);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.tab-pane h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--dark-color);
    border-top: none;
}

.table td {
    vertical-align: middle;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.progress .progress-bar {
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.demographics-charts {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.demo-chart {
    flex: 1;
    height: 300px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    padding: 20px;
}

.map-container {
    height: 400px;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 10px;
    padding: 20px;
    position: relative;
}

#morocco-map {
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Morocco_regions_2015.svg/800px-Morocco_regions_2015.svg.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

/* .map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
} */

.map-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.map-legend-item:last-child {
    margin-bottom: 0;
}

.map-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 8px;
}

.map-color.high { background-color: var(--primary-color); }
.map-color.medium { background-color: var(--accent-color); }
.map-color.low { background-color: var(--secondary-color); }

.results-date {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Nouveaux styles pour les badges d'information */
.date-badge, .sample-badge, .refresh-badge {
    background-color: white;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: var(--glass-shadow);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--btn-transition);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.date-badge:hover, .sample-badge:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.date-badge i, .sample-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.date-badge:hover i, .sample-badge:hover i {
    transform: scale(1.2);
}

.date-badge p, .sample-badge p {
    margin: 0;
    color: #666;
}

.date-badge span, .sample-badge span {
    font-weight: 600;
    color: var(--dark-color);
}

/* Nouveau style pour le bouton de rafraîchissement */
#refresh-btn {
    border-radius: 30px;
    padding: 10px 20px;
    transition: var(--btn-transition);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    box-shadow: 0 5px 15px rgba(193, 39, 45, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 5;
}

#refresh-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: all 0.5s ease;
    z-index: -1;
}

#refresh-btn:hover::before {
    transform: translateX(100%);
}

#refresh-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(193, 39, 45, 0.4);
}

#refresh-btn i {
    margin-right: 5px;
    transition: transform 0.4s ease;
}

#refresh-btn:hover i {
    transform: rotate(180deg);
}

/* Section Sondage */
.survey-section {
    background-color: white;
    padding: 100px 0;
    position: relative;
}

.survey-form-container {
    background-color: var(--light-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Nouveaux styles pour les étapes du formulaire */
.step-number {
    width: 50px;
    height: 50px;
    background-color: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    color: #666;
    margin-bottom: 10px;
    transition: var(--btn-transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-100%);
    transition: all 0.5s ease;
    z-index: -1;
}

.step.active .step-number::before {
    transform: translateX(100%);
}

.step.active .step-number {
    background: linear-gradient(135deg, var(--primary-color), #e63946);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(193, 39, 45, 0.4);
    transform: scale(1.1);
}

.step.completed .step-number {
    background: linear-gradient(135deg, var(--secondary-color), #2a9d8f);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 5px 20px rgba(0, 98, 51, 0.4);
}

.step-text {
    font-weight: 600;
    color: #666;
    transition: var(--btn-transition);
}

.step.active .step-text {
    color: var(--primary-color);
    transform: scale(1.05);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.step-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

/* Styles pour les boutons de la section des politiciens */
.politicians-vote-container {
    position: relative;
    z-index: 5;
}

/* Nouveau style pour le bouton de soumission */
.submit-ranking {
    position: relative;
    z-index: 10;
    margin-top: 20px;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--btn-transition);
    box-shadow: var(--btn-shadow);
    overflow: hidden;
    transform: translateZ(0);
    letter-spacing: 0.5px;
}

.submit-ranking::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: all 0.8s ease;
    z-index: -1;
}

.submit-ranking:hover:not(:disabled)::before {
    transform: translateX(100%);
}

.submit-ranking:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: var(--btn-shadow-hover);
}

.submit-ranking:active:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow);
}

.submit-ranking:disabled {
    background: linear-gradient(135deg, #ccc, #999);
    cursor: not-allowed;
    opacity: 0.7;
}

/* Nouveau style pour le bouton de validation */
.valider-choix-btn {
    position: relative;
    z-index: 20;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 30px;
    padding: 16px 32px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--btn-transition);
    display: block;
    width: 100%;
    margin-top: 20px;
    box-shadow: var(--btn-shadow);
    overflow: hidden;
    letter-spacing: 0.5px;
}

.valider-choix-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: all 0.8s ease;
    z-index: -1;
}

.valider-choix-btn:hover::before {
    transform: translateX(100%);
}

.valider-choix-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-5px);
    box-shadow: var(--btn-shadow-hover);
}

.valider-choix-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow);
}

/* Styles pour les cartes des politiciens */
.politician-card {
    transition: var(--btn-transition);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    position: relative;
    z-index: 5;
    transform: translateZ(0);
}

.politician-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.politician-card.available:hover::before {
    opacity: 1;
}

.politician-card.available::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 206, 8, 0.3), rgba(0, 98, 51, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.politician-card.selected {
    pointer-events: none;
    opacity: 0.7;
}

/* Styles pour les éléments du classement */
.ranking-item {
    transition: var(--btn-transition);
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 10px;
    position: relative;
    z-index: 5;
}

.ranking-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.remove-politician-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.remove-politician-btn:hover {
    transform: scale(1.2);
    color: #e63946;
}

/* Styles pour la compatibilité avec les petits écrans et le zoom faible */
@media (max-width: 992px) {
    .hero-section {
        padding: 150px 0 80px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-slogan {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .results-date {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Styles spécifiques pour le zoom faible */
@media (max-width: 768px), (max-height: 600px) {
    .hero-section .container {
        z-index: 30;
    }
    
    .hero-buttons {
        z-index: 50;
        position: relative;
    }
    
    .hero-buttons .btn {
        z-index: 50;
    }
    
    .vote-illustration {
        display: none;
    }
    
    .form-steps {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .step {
        min-width: 80px;
    }
}

/* Styles pour garantir la visibilité à tous les niveaux de zoom */
@media (max-width: 576px) {
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-slogan {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .chart-container {
        padding: 15px;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .tab-content {
        padding: 15px;
    }
}

/* Animation pour les boutons au chargement de la page */
@keyframes buttonAppear {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-buttons .btn:nth-child(1) {
    animation: buttonAppear 0.5s ease 0.5s forwards;
    opacity: 0;
}

.hero-buttons .btn:nth-child(2) {
    animation: buttonAppear 0.5s ease 0.7s forwards;
    opacity: 0;
}

/* Effet de focus pour l'accessibilité */
.btn:focus, .chart-toggle:focus, .tab-btn:focus, .submit-ranking:focus, .valider-choix-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(193, 39, 45, 0.3);
}

/* Styles pour les notifications de feedback */
.feedback-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: var(--glass-shadow);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-notification.show {
    transform: translateX(0);
}

.feedback-notification i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.feedback-notification p {
    margin: 0;
    color: white;
}

.feedback-notification .close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.feedback-notification .close-btn:hover {
    transform: scale(1.2);
}

/* Styles pour les tooltips d'aide */
.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    width: 20px;
    height: 20px;
    background-color: var(--accent-color);
    color: var(--dark-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tooltip-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 206, 8, 0.5);
}

.tooltip-content {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 15px;
    width: 200px;
    box-shadow: var(--glass-shadow);
    color: white;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.tooltip-container:hover .tooltip-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: var(--glass-bg) transparent transparent transparent;
}

/* Styles pour la section des régions - Version améliorée et claire */
.regions-overview {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.regions-overview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 20px 20px 0 0;
}

.regions-overview h4 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-weight: 700;
    text-align: center;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.regions-overview h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.regions-table-container {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    background: white;
    scrollbar-width: none; /* Pour Firefox */
    -ms-overflow-style: none; /* Pour IE et Edge */
}

.regions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
    min-width: 800px;
}

.regions-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a91e22 100%);
    color: white;
    font-weight: 700;
    padding: 18px 15px;
    text-align: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-size: 0.9rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.regions-table td {
    padding: 16px 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    text-align: center;
    transition: all 0.3s ease;
}

.region-row {
    transition: all 0.3s ease;
    position: relative;
}

.region-row:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.region-row:nth-child(even) {
    background-color: rgba(248, 249, 250, 0.5);
}

.region-name strong {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    margin-bottom: 2px;
}

.participation-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    display: inline-block;
    min-width: 70px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.participation-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.participation-badge.high {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.4);
}

.participation-badge.medium {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
    color: #333;
    text-shadow: none;
}

.participation-badge.low {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4);
}

.votes-number {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.parti-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    display: inline-block;
    min-width: 70px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.parti-badge:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.progress-cell {
    width: 220px;
    padding: 12px 15px !important;
}

.progress-bar-container {
    width: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    height: 45px;
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.progress-bar-container:hover {
    transform: scale(1.02);
    box-shadow: inset 0 3px 8px rgba(0,0,0,0.2), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.progress-bar-fill {
    height: 100%;
    border-radius: 13px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.4);
    animation: progressGlow 3s ease-in-out infinite alternate;
    overflow: hidden;
}

.progress-bar-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-bar-fill.high {
    background: linear-gradient(135deg, #28a745 0%, #20c997 50%, #17a2b8 100%);
    box-shadow: 0 3px 12px rgba(40, 167, 69, 0.5);
}

.progress-bar-fill.medium {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 50%, #ff6b35 100%);
    box-shadow: 0 3px 12px rgba(255, 193, 7, 0.5);
}

.progress-bar-fill.low {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 50%, #c0392b 100%);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.5);
}

@keyframes progressGlow {
    0% { 
        box-shadow: 0 3px 12px rgba(40, 167, 69, 0.4);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 5px 20px rgba(40, 167, 69, 0.7);
        filter: brightness(1.1);
    }
}

.progress-percentage {
    color: white;
    font-weight: 900;
    font-size: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    z-index: 3;
    position: relative;
    letter-spacing: 0.5px;
}

.progress-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    white-space: nowrap;
    color: #495057;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.regions-chart-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    margin-top: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.regions-chart-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color), var(--accent-color));
    border-radius: 20px 20px 0 0;
}

.regions-chart-section h4 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chart-container-regions {
    position: relative;
    height: 450px;
    width: 100%;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

#regionChart {
    max-height: 400px;
}

/* Animation d'entrée pour les barres de progression */
@keyframes slideInProgress {
    0% {
        width: 0;
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.progress-bar-fill {
    animation: slideInProgress 2s ease-out;
}

/* Responsive design amélioré pour les régions */
@media (max-width: 1200px) {
    .regions-table-container {
        max-height: 500px;
    }
    
    .progress-cell {
        width: 180px;
    }
    
    .progress-bar-container {
        height: 40px;
    }
}

@media (max-width: 992px) {
    .regions-overview {
        padding: 20px;
    }
    
    .regions-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 450px;
    }
    
    .progress-cell {
        width: 150px;
    }
    
    .progress-bar-container {
        height: 35px;
    }
    
    .progress-percentage {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .regions-overview {
        padding: 15px;
        margin: 15px 0;
    }
    
    .regions-overview h4 {
        font-size: 1.3rem;
    }
    
    .regions-table th,
    .regions-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
    
    .progress-cell {
        width: 120px;
    }
    
    .progress-bar-container {
        height: 30px;
    }
    
    .progress-percentage {
        font-size: 12px;
    }
    
    .progress-label {
        font-size: 10px;
    }
    
    .participation-badge,
    .parti-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        min-width: 60px;
    }
    
    .chart-container-regions {
        height: 350px;
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .regions-table-container {
        max-height: 400px;
    }
    
    .regions-table {
        min-width: 700px;
    }
    
    .regions-table th {
        padding: 10px 6px;
        font-size: 0.8rem;
    }
    
    .regions-table td {
        padding: 10px 6px;
    }
    
    .progress-cell {
        width: 100px;
    }
    
    .progress-bar-container {
        height: 25px;
    }
    
    .progress-percentage {
        font-size: 11px;
    }
    
    .chart-container-regions {
        height: 300px;
        padding: 10px;
    }
}



/* Styles supplémentaires pour améliorer l'affichage des régions */
.regions-overview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

.regions-overview h4 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.regions-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: none;
}

.regions-table th {
    background: linear-gradient(135deg, var(--primary-color) 0%, #a91e22 100%);
    color: white;
    font-weight: 700;
    padding: 15px;
    text-align: center;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.regions-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    text-align: center;
}

.region-row {
    transition: all 0.3s ease;
}

.region-row:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.region-name strong {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 600;
}

.participation-badge {
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    display: inline-block;
    min-width: 60px;
}

.participation-badge.high {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.participation-badge.medium {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

.participation-badge.low {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

.votes-number {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.parti-badge {
    padding: 6px 15px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    display: inline-block;
    min-width: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.progress-cell {
    width: 200px;
    padding: 10px 15px !important;
}

/* Animation d'entrée pour les barres de progression */
@keyframes slideInProgress {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.progress-bar-fill {
    animation: slideInProgress 1.5s ease-out;
}

/* Responsive amélioré */
@media (max-width: 992px) {
    .regions-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .progress-cell {
        width: 150px;
    }
    
    .progress-bar-container {
        height: 35px;
    }
}

@media (max-width: 768px) {
    .regions-overview {
        padding: 20px;
        margin: 15px 0;
    }
    
    .regions-table th,
    .regions-table td {
        padding: 10px 8px;
        font-size: 0.85rem;
    }
    
    .progress-cell {
        width: 120px;
    }
    
    .progress-bar-container {
        height: 30px;
    }
    
    .progress-percentage {
        font-size: 12px;
    }
    
    .progress-label {
        font-size: 9px;
    }
}

