body {
    font-family: 'Segoe UI', sans-serif;
    background: #f7fafc;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
}


h1 {
    background-color: #3498db;
    color: white;
    padding: 1rem;
    margin: 0;
    margin-bottom: 10px;
}

.container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.casserole {
    width: 150px;
    height: 200px;
    border: 10px solid #333;
    border-radius: 0 0 10px 10px;
    border-top: none;
    position: relative;

    overflow: hidden;
}

.eau {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: rgba(100, 180, 255, 0.8);
    transition: background 0.3s;
}

.thermometre {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 10px;
    height: 150px;
    background: #eee;
    border: 1px solid #333;
}

.mercury {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20%;
    background: red;
}

.bulles {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bulle {
    position: absolute;
    bottom: 0;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: buller 2s infinite ease-in-out;
    opacity: 0;
}

@keyframes buller {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px);
        opacity: 0;
    }
}

.temperature {
    margin-top: 0.5rem;
    font-weight: bold;
}

button {
    margin-top: 2rem;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #2980b9;
}

.chrono {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.boite {
    margin-top: 10px auto;
    font-weight: bold;
    margin: 10px auto;
    padding: 1rem;
    max-width: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.plaque {
    width: 150px;
    height: 15px;
    position: relative;
    top: -18px;
    background: #dfdcdc;
    /* couleur éteinte */
    border-radius: 10px;
    margin: 10px auto 0;
    box-shadow: 0 0 8px 2px rgba(255, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.plaque.chauffe {
    background: radial-gradient(circle, #ff3300 20%, #440000 100%);
    box-shadow: 0 0 8px 3px rgba(255, 0, 0, 0.4);
}

.nom {
    position: relative;
    top: -18px;
}

.info {
    text-align: left;
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f8ff;
    border-left: 4px solid #3498db;
    border-radius: 5px;
    font-weight: normal;
}

.bilan {
    display: none;
    text-align: left;
    margin-top: 2rem;
    padding: 1rem;
    border: 2px solid #3498db;
    background: #eaf4fb;
    border-radius: 10px;
}

.chaine-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 600px) {
    .chaine-container {
        flex-direction: row;
        justify-content: center;
    }
}

.reservoir {
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 1rem;
    width: 200px;
    background: #eef6ff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fleche {
    text-align: center;
    font-size: 2rem;
}

select {
    margin: 0.5rem 0;
    width: 100%;
    padding: 0.3rem;
}