/**
Theme Name: licence-numerique
Author: Licence Numérique Promo 2023-2024
Author URI: http://wpastra.com/about/
Description: Thème custom pour le site de la licence.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: licence-numerique
Template: astra
*/


/* Global & Structure */

#page .site-content {
    max-width: 95%;
    margin-left: 5%;
}

/* ===== Navbar ===== */

.menu-btn-formation a,
.menu-btn-etudiants a {
	position: relative;
}

.menu-btn-formation a:after,
.menu-btn-etudiants a:after {
	content: "";
    display: inline-block;
    position: relative;
    left: 0.5em;
    /*top: 13px;
    width: 40px;
    height: 40px;
    border: 1px solid white;*/
	border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid #ffffff;
}

#mainMenu {
	position: fixed;
	width: 5%;
	z-index: 50;
}

.navbar-container{
	width: 100%;
    height: 100vh;
    display: flex;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.navbar{
	z-index: 40;
	padding: 50px 10px 50px 10px;
	background-color: #242d45;
}

.custom-logo{
	width: auto;
    max-width: 100%;
	/*min-width: 50px;*/
	height: auto;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-bottom: 50px;
}
.custom-logo-link{
	border: none;
}

.menu{
	background-color: #242d45;
	position: absolute;
	top: 0;
	left: 5%;
	transform: translateX(-100%);
	height: 100vh;
	display: flex;
    align-items: center;
	gap: 30px;
	z-index: 30;
	transition: .5s ease-in-out;
}
.menu-active{
	min-width: 900px;
	padding: 0px 70px 0px 120px;
	transform: translateX(5%);
	transition: .5s ease-in-out;
	box-shadow: 20px 0 20px rgba(0, 0, 0, 0.25);
}
.main-menu{
	width: 50%!important;
}
.menu-formation{
	display: none;
}
.menu-etudiants{
	display: none;
}
.secondary-menu{
	width: 50%!important;
}
.secondary-menu-active{
	display: block;
}

/* Menu items */
.menu-items {
  	list-style: none;
  	padding: 0;
  	margin: 0;
}

.menu-items li {
  	margin-bottom: 40px;
}
.selected-menu-item a{
	color: #58BBC2!important;
}
.menu-link{
	cursor: pointer;
  	transition: .25s ease-in-out;
	text-decoration: none;
	font-size: 25px!important;
	color: #fff!important;
	display: flex;
	display: inline-block;
    line-height: 1.6em;
	border: none;
}
.menu-link:hover{
	color: #58BBC2!important;
}

/* === Burger Menu Icon mobile === */

.icon-container{
	display: flex;
}
.burger {
    margin: auto;
	position: relative;
	width: 35px;
	height: 26.25px;
	background: transparent;
	cursor: pointer;
	justify-content: right;
}

.burger input {
	display: none;
}

.burger span {
	display: block;
	position: absolute;
	height: 3px;
	width: 100%;
	background: white;
	opacity: 1;
	left: 0;
	transform: rotate(0deg);
	transition: .25s ease-in-out;
}

.burger span:nth-of-type(1) {
	width: 35px;
	top: 0px;
	transform-origin: left center;
}
  
.burger span:nth-of-type(2) {
	width: 25px;
	top: 50%;
	transform: translateY(-50%);
	transform-origin: left center;
} 

.burger span:nth-of-type(3) {
	width: 35px;
	top: 100%;
	transform-origin: left center;
	transform: translateY(-100%);
}

.burger input:checked ~ span:nth-of-type(1) {
	width: 35px;
	transform: rotate(45deg);
	top: 0px;
	left: 5px;
}

.burger input:checked ~ span:nth-of-type(2) {
	width: 0%;
	opacity: 0;
}

.burger input:checked ~ span:nth-of-type(3) {
	width: 35px;
	transform: rotate(-45deg);
	top: 24.72px;
	left: 5px;
}

/* ===== black overlay ===== */
.black-overlay{
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.9);
	z-index: 20;
	visibility: hidden;
	opacity: 0;
	transition: all .8s ease-out 0s;
	cursor: url(/wp-content/themes/licence-numerique-theme/assets/img/cross-svgrepo-com.svg),pointer;
}
.black-overlay-active{
	visibility: visible;
	opacity: 1;
	transition: all .8s ease-out 0s;
}

footer {
	max-width: 95%!important;
	margin-left: 5%!important;
}

/* ===== Portable Menu ===== */

@media screen and (max-width: 1366px){
	.menu-active{
		min-width: 700px;
		padding: 0px 70px 0px 70px;
	}
	.menu-items li{
		font-size: 20px;
	}
}

/* ===== Tablette Menu ===== */

@media screen and (max-width: 1024px){
	.menu-active{
		min-width: 560px;
	}
	.menu-items li{
		font-size: 20px;
	}
	.menu-link{
		font-size: 20px!important;
	}
	/* A supprimer si c'est négligeable */
	.burger{
		width: 25px;
		height: 18.75px;
	}
	.burger span{
		height: 2px;
	}
	.burger span:nth-of-type(1){
		width: 25px;
	}
	.burger span:nth-of-type(2){
		width: 20px;
	}
	.burger span:nth-of-type(3){
		width: 25px;
	}
}

/* ===== Mobile Menu ===== */
/* point de rupture 768px */

@media screen and (max-width: 768px){
	/* Global & Structure */

	#page .site-content {
		max-width: 100%;
		margin-left: 0;
	}
	footer {
		max-width: 100%!important;
		margin-left: 0!important;
	}
	#mainMenu {
		width: 100%;
	}

	.navbar-container{
		width: 100%;
		height: auto;
		display: flex;
		/*flex-direction: column;*/
	}
	.navbar{
		width: 100%;
		padding: 10px 20px 10px 20px;
		background-color: #242d45;
		display: flex;
		justify-content: space-between;
	}
	.custom-logo{
		height: 50px;
		width: auto;
		/*display: none;*/
		content: url('/wp-content/themes/licence-numerique-theme/assets/img/Logo_LP_Paysage.png'); /* Changer l'URL de l'image pour la version mobile */
		margin: 0;
	}
	.menu{
		left: 0;
		padding: 0px 30px 0px 30px;
		gap: 16px;
	}
	.menu-active{
		min-width: unset;
		transform: translateX(0);
	}
	.main-menu{
		width: 100%!important;
	}
	.secondary-menu{
		width: 100%!important;
	}

	.menu-items li{
		font-size: 16px;
	}
	.menu-link{
		font-size: 16px!important;
	}

	.menu-btn-formation a:after, .menu-btn-etudiants a:after {
		border-top: 8px solid transparent; /* Ajustez la taille de la flèche ici */
		border-bottom: 8px solid transparent; /* Ajustez la taille de la flèche ici */
		border-left: 8px solid #ffffff; /* Couleur de la flèche */
	
	}

	/* A supprimer si c'est négligeable (avec la partie en 1024px */
	.burger{
		width: 35px;
		height: 26.25px;
	}
	.burger span{
		height: 3px;
	}
	.burger span:nth-of-type(1){
		width: 35px;
	}
	.burger span:nth-of-type(2){
		width: 25px;
	}
	.burger span:nth-of-type(3){
		width: 35px;
	}
}


