body {
    font-family: 'Segoe UI', sans-serif;
    background: #f7fafc;
    color: #333;
    text-align: center;
    margin: 0;
    padding: 0;
    padding-bottom: 80px;
}


h1 {
    background-color: #2e86c1;
    color: white;
    padding: 1rem;
    margin: 0;
    margin-bottom: 10px;
}

.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);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem auto;
}

.scene {
    width: 300px;
    height: 400px;
    position: relative;
    border: 2px solid #aaa;
    border-radius: 10px;
    background-color: white;
}

.hot-effect,
.cold-effect {
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 150px;
    border-radius: 5px;
    border: 2px solid black;
    border-top: none;
    z-index: 2;
    display: none;
}

.hot-effect {
    background: rgba(245, 176, 65, 0.4);
}

.cold-effect {
    background: rgba(133, 193, 233, 0.4);
}

.bottle {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 200px;
    background: lightblue;
    border-radius: 20px;
    border: 2px solid #333;
    z-index: 1;
}

.insulator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 210px;
    background: rgba(150, 150, 150, 0.5);
    border-radius: 25px;
    border: 2px dashed #666;
    z-index: 3;
    display: none;
}

.thermometer {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 180px;
    background: #eee;
    border: 1px solid #333;
    z-index: 4;
}

.mercury {
    position: absolute;
    bottom: 0;
    width: 10px;
    background: red;
}

.temp-label {
    position: absolute;
    bottom: 0;
    left: 100%;
    margin-left: 10px;
    font-weight: bold;
}

.buttons {
    margin-top: 1rem;
}

button {
    padding: 0.5rem 1rem;
    margin: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
}

.env {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.energy-chain {
    margin-top: 2rem;
    min-height: 140px;
}

.reservoir {
    display: inline-block;
    width: 100px;
    height: 60px;
    border: 2px solid #444;
    margin: 0 10px;
    vertical-align: top;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.reservoir.visible {
    opacity: 1;
}

.reservoir .type {
    font-weight: bold;
    margin-top: 5px;
}

.reservoir .label {
    position: absolute;
    bottom: -20px;
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
}

.arrow-block {
    display: inline-block;
    vertical-align: middle;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.arrow-block.visible {
    opacity: 1;
}

.arrow {
    font-size: 2rem;
}

.arrow-label {
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: -5px;
}

.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;
    }
}

.reservoirNRJ {
    border: 2px solid #3498db;
    border-radius: 10px;
    padding: 1rem;
    width: 200px;
    background: #eef6ff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.flecheNRJ {
    text-align: center;
    font-size: 2rem;
}

select {
    margin: 0.5rem 0;
    width: 100%;
    padding: 0.3rem;
}

.tempair {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}