/* --- 1. Réinitialisation et Base --- */
body {
    margin: 0;
    height: 100vh;
    font-family: 'Montserrat', sans-serif; 
    background-color: #151520; /* Encore plus sombre pour un effet premium */
    color: white;
    overflow: hidden;
    display: flex; /* Centrage via Flexbox */
    justify-content: center;
    align-items: center;
}

/* --- 2. Conteneur du Fond Interactif --- */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* --- 3. Conteneur Principal --- */
.main-container {
    position: relative; 
    z-index: 10; 
    text-align: center;
    padding: 20px;
    animation: fadeInSlideUp 1.2s ease-out; /* Animation un peu plus longue */
}

/* --- 4. Titres (Amélioration) --- */
h1 {
    font-size: 3.8em;
    margin-bottom: 0.1em;
    font-weight: 800;
    letter-spacing: 3px;
    /* Ombre interne élégante sur le texte */
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.4);
}

h2 {
    font-size: 1.4em;
    font-weight: 300;
    margin-bottom: 3.5em;
    opacity: 0.8;
}

.mention {
    margin-top: 50px;
    font-size: 0.9em;
    opacity: 0.6;
}

/* --- 5. La Grille des Boutons (Nouveau !) --- */
.button-grid {
    display: grid;
    /* Trois colonnes de taille égale */
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; /* Espace entre les boutons */
    max-width: 1000px; /* Limite la largeur du bloc */
    margin: 0 auto;
}

/* --- 6. Style des Boutons --- */
.main-button {
    display: flex; /* Utiliser flex pour centrer le texte dans le bouton */
    justify-content: center;
    align-items: center;
    padding: 18px 25px;
    text-decoration: none;
    color: white;
    border-radius: 8px; /* Carré arrondi pour un look plus "tech" */
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    border: 2px solid;
    min-height: 50px;
}

/* Style des deux types de boutons */
.button-primary {
    border-color: #00b4d8; /* Cyan */
}
.button-secondary {
    border-color: #e0e0e0; /* Gris clair */
    opacity: 0.8;
}

/* Effets de Survol */
.main-button:hover {
    color: #151520; 
    transform: translateY(-5px); /* Mouvement plus prononcé vers le haut */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    opacity: 1;
}

.button-primary:hover {
    background-color: #00b4d8;
    color: #151520;
    /* Ajoute une légère lueur */
    box-shadow: 0 0 25px rgba(0, 180, 216, 0.8);
}

.button-secondary:hover {
    background-color: white;
    color: #151520;
}

/* --- 7. Responsive Design (Pour les mobiles) --- */
@media (max-width: 768px) {
    .button-grid {
        /* Passe à une colonne sur les petits écrans */
        grid-template-columns: 1fr; 
        gap: 15px;
        max-width: 90%;
    }
    h1 {
        font-size: 2.5em;
    }
    h2 {
        font-size: 1.1em;
        margin-bottom: 2.5em;
    }
}


/* --- 8. Animation d'Entrée --- */
@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
