* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #c21500 100%);
    color: white;
    min-height: 100vh;
}

#écran-de-chargement {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #c21500 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease 2s forwards;
}

/* Animation de disparition */
@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.chargement {
    color: white;
    font-family: Arial, sans-serif;
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.cercle {
    width: 60px;
    height: 60px;
    border: 6px solid rgba(255, 255, 255, 0.3);
    border-top: 6px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

input[type="radio"] {
    display: none;
}

nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
}

nav label {
    color: #ff0000;
    text-decoration: none;
    margin: 0 20px;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
    cursor: pointer;
}

nav label:hover {
    color: #ffffff;
}

.container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
}

h1 {
    font-size: 48px;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.hero {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card h3 {
    color: #ff0000;
    margin-bottom: 15px;
    font-size: 24px;
}

.section {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.section h2 {
    color: #ff0000;
    margin-bottom: 20px;
    font-size: 32px;
}

.section p, .section ul {
    font-size: 18px;
    line-height: 1.8;
}

.section ul {
    list-style-position: inside;
    margin-top: 15px;
}

.section li {
    margin-bottom: 10px;
}

/* Par défaut, toutes les pages sont cachées */
.page {
    display: none;
}

/* Affiche la page correspondante quand son radio est coché */
#radio-accueil:checked ~ #accueil,
#radio-univers:checked ~ #univers,
#radio-apropos:checked ~ #apropos {
    display: block;
}

/* Met en blanc le lien de la page active */
#radio-accueil:checked ~ nav label[for="radio-accueil"],
#radio-univers:checked ~ nav label[for="radio-univers"],
#radio-apropos:checked ~ nav label[for="radio-apropos"] {
    color: white;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    margin-top: 50px;
}