/* Style général du corps */
body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background: #1a1a1a;
    color: #ffffff;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Section d'accueil pleine page */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0; /* Particules en arrière-plan */
    background: linear-gradient(135deg, #0032ff, #B275FF); /* Gradient pour les particules */
}

.container {
    position: relative; /* Pour permettre au contenu d'apparaître au-dessus des particules */
    z-index: 1; /* Texte et boutons au-dessus des particules */
    max-width: 800px;
    padding: 20px;
}

/* Style du titre principal */
h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out 2s; /* Delay de 2 secondes pour correspondre à l'ouverture du portail */
}

p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 2s; /* Delay pour correspondre à l'ouverture du portail */
}

/* Styles des boutons */
.buttons {
    display: flex;
    flex-wrap: wrap; /* Permettre aux boutons de passer à la ligne si nécessaire */
    gap: 15px;
    justify-content: center;
}

.button {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    background-color: white;
    color: #6D83F2;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 2s; /* Delay pour correspondre à l'ouverture du portail */
}

.button:hover {
    background-color: #B275FF;
    color: white;
    transform: scale(1.05);
}

/* Animation du texte */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet du portail */
.portal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000; /* Couleur du portail */
    z-index: 2; /* Couvrir tout le contenu temporairement */
    animation: portalOpen 2s forwards; /* Animation d'ouverture */
}

/* Animation de l'ouverture du portail */
@keyframes portalOpen {
    0% {
        top: 0;
        height: 100%;
    }
    100% {
        top: 100%;
        height: 0;
    }
}
