/* Partie 1 : Styles pour le Splash Screen */

/* Style général */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    background-color: #f4f4f4;
}

/* SplashScreen */
#splashscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 500px;
    padding: 20px;
    text-align: center;
    background-color: #333;
    color: white;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

#splashscreen h1 {
    font-size: 2rem;
    margin: 10px 0;
    height:30px;
}

#splashscreen h2 {
    position: relative; /* Permet d'aligner les bulles */
    font-size: 2rem;
    margin: 20px 0;
    font-weight: bold;
    text-shadow: 0 0 5px #1cb4d6, 0 0 10px #1cb4d6, 0 0 20px #1cb4d6;
}

.bubbles {
    position: absolute; /* Position relative à h2 */
    top: 50%; /* Centre verticalement sur le texte */
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* Couvre toute la largeur de h2 */
    height: 100%; /* Couvre toute la hauteur de h2 */
    pointer-events: none; /* Empêche les interactions avec les bulles */
}

.bubble {
    position: absolute;
    background-color: rgba(29, 142, 161, 0.7);
    border-radius: 50%;
    animation: bubble-rise 3s infinite ease-in-out;
    opacity: 0.8;
}

/* Positions et tailles des bulles */
.bubble:nth-child(1) {
    width: 15px;
    height: 15px;
    left: 10%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    width: 20px;
    height: 20px;
    left: 40%;
    animation-delay: 1s;
}

.bubble:nth-child(3) {
    width: 10px;
    height: 10px;
    left: 70%;
    animation-delay: 1.5s;
}

.bubble:nth-child(4) {
    width: 25px;
    height: 25px;
    left: 90%;
    animation-delay: 0.5s;
}

/* Animation des bulles */
@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) scale(0.5);
        opacity: 0;
    }
}

/* Animation de fondu */
.fade-out {
    animation: fadeOut 1s forwards; /* Effet de fondu sur 1 seconde */
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Partie 2 : Styles pour la page d'accueil */

/* Style général */
body.home {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    background-color: #0a0a0a;
    min-height: 100vh;
    margin: 0;
}

/* En-tête */
header {
    width: 100%;
    background-color: #333;
    color: white;
    padding: 20px;
    font-size: 1.5rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2rem;
}

/* Contenu principal */
main {
    max-width: 600px;
    width: 90%;
    padding: 20px;
    background-color: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    flex: 1;
}

main p {
    font-size: 1rem;
    margin: 10px 0;
}

/* Pied de page */
footer {
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
}

/* Styles responsive */
@media (max-width: 600px) {
    #splashscreen h1 {
        font-size: 1.5rem;
    }

    #splashscreen p {
        font-size: 0.9rem;
    }

    header h1 {
        font-size: 1.5rem;
    }

    main {
        padding: 15px;
    }

    main p {
        font-size: 0.9rem;
    }
}
