main {
    margin-top: 60px;
}

/* On enlève le flex qui centrait tout, on laisse les blocs s'empiler */
#home_page {
    display: block;
    width: 100%;
}

/* --- PARTIE HAUTE (VIDEO) --- */

.home-intro {
    position: relative; /* Indispensable pour que la vidéo reste dans cette boite */
    height: 450px;      /* On force une hauteur pour voir la vidéo */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video_background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video_background::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Le filtre noir */
    z-index: 1;
}

.video_background video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Le Texte par dessus la vidéo */
.intro-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 900px;
}

.intro-content h1 {
    font-size: 40px; /* Taille en px comme tu aimes */
    font-weight: 800;
    margin-bottom: 20px;
    font-family: "Inter", sans-serif;
}

.highlight {
    color: #3498db;
    display: block;
}

.intro-text {
    font-size: 18px; /* Taille standard */
    line-height: 1.5;
    color: #f1f1f1;
    font-family: "Inter", sans-serif;
}


/* --- PARTIE BASSE (MENU) --- */

.menu_visuel {
    background-color: white; /* Fond blanc demandé */
    padding: 50px 0;         /* Un peu d'espace en haut et en bas */
    
    /* Ta grille habituelle */
    display: grid;
    justify-content: center;
    grid-template-columns: 1fr;    
    gap: 20px;
    width: 100%;
}

.lien-menu {
    position: relative;
    display: block;
    
    /* Changement important : Bordure grise ou bleue car le fond est blanc */
    border: 4px solid #3498db; 
    
    border-radius: 20px;
    text-decoration: none;
    width: 200px;
    margin: 0 auto;
    overflow: hidden;
}

.lien-menu::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;   
}

.lien-menu img {
    width: 100%;
    height: 100%;
    display: block; 
    object-fit: cover; 
    z-index: 0;  
}

.titre-menu {
    position: absolute;
    top: 50%;
    left: 50%;  
    transform: translate(-50%, -50%);  
    color: white;
    font-weight: bold;
    font-size: 25px; 
    font-family: "Inter", cursive; 
    text-align: center;
    z-index: 2;
    width: 90%;
}


/* --- TES MEDIA QUERIES (Adaptées) --- */

@media(min-width:576px) {
    .titre-menu {        
        font-size: 30px;
    }

    .lien-menu {
         width: 250px;
    }
    .home-intro {
        height: 50vh; 
    }
}

@media(min-width:992px) {

    /* Sur PC, on agrandit la zone vidéo */
    .home-intro {
        height: 60vh; 
    }

    .intro-content h1 {
        font-size: 60px; /* Plus gros sur PC */
    }

    .highlight {
        display: inline;
    }

    .menu_visuel {
        grid-template-columns: repeat(3, 300px); 
        gap: 40px;
    }

    .titre-menu {        
        font-size: 40px;
    }

    .lien-menu {
        /* On remet une transition pour l'effet de survol */
        transition: all 0.3s ease;
        width: 300px;
        height: 300px;
    }

    .lien-menu:hover {
         transform: scale(1.05);
         /* Optionnel : changer la couleur de bordure au survol */
         border-color: #3498db;
    }
}