/* Réinitialisation globale */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Style général */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    animation: fadeIn 1s ease-in-out;
}
.dashboard {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    align-items:center;
    justify-content:center;
    animation: fadeIn 1s ease-in-out;
}

.stats {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    gap: 1rem;
}

.stat-card {
    background: #fff;
    color: white;
    padding: 15px;
    margin-right: 10px;
    border-radius: 8px;
    width: 30%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    animation: fadeIn 0.8s forwards;
}

    .stat-card h2 {
        margin: 0;
        font-size: 18px;
        color: #4CAF50;
    }

    .stat-card p {
        font-size: 24px;
        margin-top: 10px;
        font-weight: bold;
        color:black;
    }

        .stat-card p a {
            text-decoration: none;
            color: white;
        }

.herlin {
    background: #fff;
    color: white;
    padding: 15px;
    margin-right: 10px;
    border-radius: 8px;
    width: 30%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    transition: transform 0.3s ease;
    animation: fadeIn 0.8s forwards;
}

    .herlin p a {
        text-decoration: none;
        color: black;
    }
/* Tableau de bord */

    .dashboard h1 {
        text-align: center;
        color: #4CAF50;
        animation: slideIn 1s ease-in-out;
    }

/* Carte des statistiques */

    .stat-card:hover {
        transform: scale(1.05);
    }


/* Message lorsqu'il n'y a pas de compte */
.herlin {
    text-align: center;
    padding: 1rem;
}

    .herlin a {
        color: #4CAF50;
        text-decoration: none;
        font-weight: bold;
    }


/* Pop-up */
#popupBackground {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

#popupContent {
    width: 300px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    cursor: pointer;
    color: red;
}
/* Graphiques */
/*.diag {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    animation: pulse 1s ease-in-out;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius:10px;

}
.diag canvas {
    width: 150px;
    height: 150px;
    margin: 1rem;
}*/
