/* Bouton hamburger (visible sur petits écrans) */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    margin: 10px auto;
}

.menu-toggle span {
    background-color: #fff;
    height: 3px;
    width: 100%;
}

/* Menu principal */
nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    color: #fff;
    text-shadow: 
        2px 2px 4px rgba(0, 0, 0, 0.4),
        -2px -2px 4px rgba(0, 0, 0, 0.4),
        3px 3px 6px rgba(0, 0, 0, 0.6),
        -3px -3px 6px rgba(0, 0, 0, 0.6),
        5px 5px 8px rgba(0, 0, 0, 0.8);
}

nav a {
    color: #fff;
    text-shadow: inherit;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover {
    background-image: url('Images/Banniere.jpg');
    border-radius: 40%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Liste du menu */
.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
}

/* Hover sous-menu */
.nav-menu > li > a:hover {
    background-color: #444;
}

/* Sous-menu */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
   
    min-width: 150px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 100;
    list-style: none;
     background-color: rgba(242,228,218,1);
		   transition: max-height 0.3s ease, opacity 0.3s ease;
		  color: rgba(80, 100, 130, 0.9);
       border-left: 3px solid #506482;

		border-radius:10px;
}

.submenu li a {
    
    padding: 10px;
    display: block;
    text-decoration: none;
	color: rgb(60, 80, 110);
		text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
		text-decoration: none;
		font-weight: 600;
}

.submenu li a:hover {
  background-color: rgba(255, 255, 255, 0.15);
   color: rgb(60, 80, 110);
   text-shadow: 0 0 1px rgba(0, 0, 0, 0.3);
		text-decoration: none;
		font-weight: 600;
		border-left: 3px solid #506482;
}

.parent:hover .submenu {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    html, body {
        background-attachment: scroll;
    }

    .logo h1 {
        font-size: 12vw;
    }
    .logo h2 {
        font-size: 8vw;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding-left: 0;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li > a {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 15px;
    }

    nav {
        display: none; /* Masqué par défaut sur petits écrans */
        flex-direction: column;
        width: 100%;
        text-align: center;
        color: #fff;
        background-color: transparent; /* tu peux changer si besoin */
    }

    nav.show {
        display: flex; /* Affiche le menu quand "show" est actif */
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        margin: 10px auto;
        cursor: pointer;
    }

    .menu-toggle span {
        background-color: #fff;
        height: 3px;
        width: 100%;
    }
	/* Sous-menu en responsive */
    .submenu {
        position: static !important;  /* Supprime l'absolu */
        display: none;                /* Caché par défaut */
        box-shadow: none;             /* Supprime l'ombre */
       /* background-color: transparent;*/
        width: 200px;
		height:100%;
		margin:auto;
        padding: 5px 0;           /* Décalage visuel */
		 background-color: rgba(242,228,218,1);
		   transition: max-height 0.3s ease, opacity 0.3s ease;
		  color: rgba(80, 100, 130, 0.9);
       border-left: 3px solid #506482;

		border-radius:10px;
		
    }

    /* Affiche le sous-menu quand le parent est actif */
    .parent.active .submenu {
        display: block;
    }

    /* Pour les liens du sous-menu */
	   .submenu li a {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 10px 20px;
		color: rgb(60, 80, 110);
		text-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
		text-decoration: none;
		font-weight: 600;
	}

   .submenu li a:hover {
		background-color: rgba(255, 255, 255, 0.15);
		color: white;
		border-left: 3px solid #506482; /* couleur qui rappelle le texte */
	}

}