/* Pour éviter toute marge ou padding par défaut */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Style global du body */
body {
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #f4f4f4;
    text-align: center;
    overflow: hidden; /* Empêche le scroll */
}

/* Conteneur de l'image de fond */
.image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/fond.jpg');
    background-size: cover;  /* Couvre tout l'écran, sans déformer */
    background-position: bottom center; /* Aligne l'image sur le bas */
    background-repeat: no-repeat; /* Empêche la répétition de l'image */
    filter: blur(4px);  /* Applique un flou à l'image */
    z-index: -1;  /* L'image reste en arrière-plan */
}

/* Conteneur des boutons */
.buttons-container {
    position: relative;
    z-index: 1;  /* Les boutons sont au-dessus de l'image */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

/* Style général des liens (boutons) */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Supprime le soulignement des liens */
    color: #fff; /* Couleur du texte */
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; /* Bordure noire autour du texte */
    background-color: rgba(255, 255, 255, 0.7); /* Fond semi-transparent */
    border: 2px solid black; /* Bordure noire pour les boutons */
    padding: 20px 40px; /* Augmente le padding interne */
    font-size: 22px; /* Augmente la taille de la police */
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Augmente la largeur minimale */
    max-width: 400px; /* Augmente la largeur maximale */
    width: 100%;
    height: 150px; /* Augmente la hauteur */
    background-size: cover;  /* Assure que l'image de fond couvre le bouton */
    background-position: center;  /* Centre l'image dans le bouton */
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden; /* Permet de cacher le dépassement de l'image */
}

/* Images différentes pour chaque bouton */
.button-1 {
    background-image: url('assets/image1.jpg');
}

.button-2 {
    background-image: url('assets/image2.jpg');
}

.button-3 {
    background-image: url('assets/image3.jpg');
}

.button-4 {
    background-image: url('assets/image4.jpg');
}

/* Effet au survol des liens (boutons) */
.button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1); /* Agrandit légèrement au survol */
}

/* Responsivité pour les petits écrans */
@media (max-width: 768px) {
    .button {
        padding: 15px 30px;
        font-size: 18px;
        height: 120px; /* Réduit la hauteur */
    }
}

@media (max-width: 480px) {
    .button {
        font-size: 16px;
        padding: 12px 20px;
        height: 100px; /* Réduit encore la hauteur */
    }
}


/* Style du titre principal */
.main-title {
    font-family: 'Arial', sans-serif;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7); /* Ombre noire subtile */
    margin-bottom: 10px; /* Espace sous le titre */
    z-index: 1; /* Assure que le titre est au-dessus de l'image de fond */
    text-align: center;
}

/* Conteneur pour le titre */
.title-container {
    margin-top: 40px; /* Ajustez cette valeur pour descendre le titre */
    z-index: 1; /* Assure que le conteneur est au-dessus de l'image de fond */
}
