:root {
    font-size: 15px;
    font-family: Roboto, sans-serif;
    
    --background-color: rgb(0, 0, 0);
    --first-color: rgb(255, 255, 255);
    --main-color: #0051ff;
    --primary-blue: #3359d7;
    --dark-blue: #020617;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html,
body {
    height: 100%;
    margin: 0;
    font-family: Roboto, sans-serif;
    background: linear-gradient(177deg, #3359d7 0%, #020617 100%);
    background-attachment: fixed;
    background-size: cover;
    min-height: 100vh;
}

/* ========================================
   CONTAINER PRINCIPAL
======================================== */
.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ========================================
   TITRE PRINCIPAL
======================================== */
h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3em;
    font-weight: 400;
    color: white;
    margin-bottom: 2rem;
    text-align: center;
}

/* ========================================
   CARTES DE STATISTIQUES
======================================== */
.row-cols-1 .col .bg-white {
    background: white !important;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    padding: 1.5rem !important;
}

.row-cols-1 .col .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(51, 89, 215, 0.2);
}

.row-cols-1 .col .bg-white h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-cols-1 .col .bg-white h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* Couleurs spécifiques pour chaque carte */
.text-primary {
    background: linear-gradient(135deg, #008cff 0%, #1900fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   SECTIONS DE GRAPHIQUES
======================================== */
.row h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 30px;
    font-weight: 400;
    color: white;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

canvas {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ========================================
   LISTES PAR MOIS
======================================== */
h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: white;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.list-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 1.25rem;
    transition: var(--transition-smooth);
    background: white;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: rgba(51, 89, 215, 0.03);
    transform: translateX(4px);
}

.list-group-item a {
    color: #212529;
    font-weight: 500;
    text-decoration: none !important;
    transition: var(--transition-smooth);
}

.list-group-item:hover a {
    color: var(--primary-blue);
}

.list-group-item span {
    font-weight: 600;
    color: var(--primary-blue);
    padding: 0.25rem 0.75rem;
    background: rgba(51, 89, 215, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ========================================
   BOUTON RETOUR
======================================== */
.btn-primary {
    background: linear-gradient(135deg, #008cff 0%, #1900fa 100%);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(0, 140, 255, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 140, 255, 0.4);
    background: linear-gradient(135deg, #0080f0 0%, #1700e0 100%);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .row-cols-1 .col .bg-white h3 {
        font-size: 1.5rem;
    }

    .row h2 {
        font-size: 1.4rem;
        margin-top: 1.5rem;
    }

    canvas {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.row-cols-1 .col {
    animation: fadeInUp 0.5s ease-out backwards;
}

.row-cols-1 .col:nth-child(1) { animation-delay: 0.05s; }
.row-cols-1 .col:nth-child(2) { animation-delay: 0.1s; }
.row-cols-1 .col:nth-child(3) { animation-delay: 0.15s; }
.row-cols-1 .col:nth-child(4) { animation-delay: 0.2s; }
.row-cols-1 .col:nth-child(5) { animation-delay: 0.25s; }

.list-group {
    animation: fadeInUp 0.5s ease-out backwards;
    animation-delay: 0.3s;
}

/* ========================================
   AMÉLIORATION DES GRAPHIQUES
======================================== */
.row > .col-md-6 {
    margin-bottom: 2rem;
}

.row > .col-md-6 canvas {
    max-height: 400px;
}