h1 {
    display: block;
    padding-right: 10em;
}

label {
    display: block;
    margin: 10px 0;
}

input[type="checkbox"] {
    margin-right: 10px;
}

/* Conteneur principal */
.conteneur {
    display: block;
    justify-content: space-between; /* Ajoute de l'espace entre les sections */
    align-items: stretch;        /* Les sections s'étirent pour avoir la même hauteur */
    gap: 2em;                   /* Espacement entre les sections */
    padding: 0 10em;
}

/* 🔹 Blocs */
.box {
    background-color: rgb(44, 44, 44);
    margin: 1em 0;
    padding: 1.5em;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    flex: 1; /* Chaque bloc prend la moitié de l'espace */
}

.box img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.box h1, h2 {
    margin-top: 0;
    margin-bottom: 1em;
}

.box p {
    margin-bottom: 1em;
}

/* 🔹 Responsive Design */
@media (max-width: 768px) {
    h1 {
        padding-right: 0;
        padding-left: 1rem;
    }

    .conteneur {
        padding: 0 1em;
    }
}

/* 🌌 Fond étoilé animé */
@keyframes twinkling {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.3; }
}

.stars {
    position: fixed;
    width: 100%;
    height: 100%;
    background: transparent;
    overflow: hidden;
    top: 0;
    left: 0;
    z-index: -1;
}

.star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    opacity: 0.3;
    animation: twinkling 1.5s infinite alternate ease-in-out;
}

/* Génération aléatoire des étoiles */
.star:nth-child(odd) {
    animation-duration: 1.5s;
}

.star:nth-child(even) {
    animation-duration: 2.5s;
}
