html {
    overflow-y: scroll;
}

body {
    margin: 0; 
    padding: 20px;
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.5;
}

h1 { 
    color: #2c3e50; 
    font-weight: 700;
    font-size: 2.5rem;
}

p { 
    color: #6c757d; 
    font-size: 1.1rem; 
    margin-top: 0;
    margin-bottom: 1rem;
}

h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.container-custom {
    max-width: 900px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    margin: 0 auto;
    text-align: center;
}

.bouton {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    cursor: pointer;
    user-select: none;
    border: 1px solid transparent;
    font-size: 1rem;
    border-radius: 0.5rem;
    padding: 10px 20px;
    transition: all .2s ease-in-out;
    background-color: transparent;
    margin: 0.5rem;
}

.btn-google { color: #0d6efd; border-color: #0d6efd; }
.btn-google:hover { color: #fff; background-color: #0d6efd; }

.btn-ia { color: #fff; background-color: #dc3545; border-color: #dc3545; }
.btn-ia:hover { background-color: #bb2d3b; border-color: #b02a37; }

.btn-both { color: #212529; border-color: #212529; }
.btn-both:hover { background-color: #212529; color: #fff; }

#comparateur-visuel {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    gap: 20px;
    margin-top: 10px;
}

.colonne-graphique {
    width: 48%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compteur-mini {
    font-size: 1.8rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    min-height: 45px;
}

.unit { font-size: 0.9rem; color: #6c757d; }

.rack-serveur {
    position: relative;
    min-height: 500px;
    width: 100%;
    background: #e9ecef; 
    border: 2px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    overflow: hidden;
    padding-bottom: 5px;
}

.serveur-block {
    flex-shrink: 0;
    width: 90%;
    height: auto;
    margin-bottom: 2px;
    animation: chute 0.4s ease-out forwards;
    opacity: 0;
    transform: translateY(-200px); 
}

@keyframes chute {
    0% { opacity: 0; transform: translateY(-300px); }
    70% { opacity: 1; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.navbar {
    background-color: #2c3e50;
    padding: 15px 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    width: 100%;
}

.navbar a {
    text-decoration: none;
    color: white;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.navbar a:hover { background-color: #34495e; }
.navbar a.active { background-color: #0d6efd; color: white; }

@media (max-width: 768px) {
    #comparateur-visuel {
        flex-direction: column;
    }
    .colonne-graphique {
        width: 100%;
        margin-bottom: 30px;
    }
    .rack-serveur {
        min-height: 300px;
    }
}