*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face{
	font-family: 'moontime';
	src: url(fonts/MoonTime-Regular.otf) format('opentype'),
	url(fonts/MoonTime-Regular.ttf) format('truetype');
}
.language-switcher {
    position: fixed;
    right: 0;
    z-index: 1002;
    display: flex;
    background-color: #303030;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.language-flag {
    width: 30px;
    height: auto;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
    border-radius: 3px;
}

.language-flag:hover {
    transform: scale(1.1);
    border-color: #3fe5e8;
}
body {
    color: whitesmoke;
    background-color: black;
    font-family: Arial, sans-serif;
    display: flex;
    min-height: 100vh;
    position: relative;
}
#menu-toggle-wrapper {
    position: fixed;
    top: 1em;
    left: 1em;
    z-index: 1001;
    background-color: #303030;
    padding: 0.5em 1em;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.5em;
}
nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background-color: #303030;
    padding: 0em 1em 1.5em 1em;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}
nav.closed {
    transform: translateX(-250px);
}
#nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    margin-bottom: 2em;
}
#nav-header p {
    font-size: 4em;
    font-family: 'moontime';
    color: #3fe5e8;
}
#nav-toggle {
    background: none;
    border: none;
    color: whitesmoke;
    font-size: 1em;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
#nav-icon {
    font-size: 2em;
    line-height: 1;
    transition: color 0.3s ease;
}
#nav-text {
    font-size: 1.2em;
    text-transform: uppercase;
    font-weight: bold;
}
#nav-toggle:hover #nav-icon,
#nav-toggle:hover #nav-text {
    color: #3fe5e8;
}
#nav-links {
    list-style: none;
    padding: 0;
    margin-top: 1em;
    text-align: center;
}
#nav-links li {
    margin-bottom: 1em;
}
#nav-links a {
    display: block;
    padding: 0.8em 0;
    color: whitesmoke;
    text-decoration: none;
    font-size: 1.3em;
    transition: color 0.3s ease, background-color 0.3s ease;
}
#nav-links a:hover {
    color: #3fe5e8;
    background-color: #050429;
    padding-left: 0.5em;
}
#main-content {
    flex-grow: 1;
    margin-left: 250px;
    transition: margin-left 0.3s ease-in-out;
}
#main-content.nav-closed {
    margin-left: 0;
    width: 100%;
}
img{
	max-width: 20%;
	max-height: 20%;
	margin: 1em;
	border-radius: 25px;
}
#nom{
	width: 30%;
}
header{
	background-image: url(img/backHeader.jpg);
  	height: 400px;
  	width: 100%;
  	position: relative;
}
section{
	width: 70%;
	margin: 5em auto;
}
header section{
	position: absolute;
	bottom: 0;
	width: 100%;
	margin: 1em auto;
	text-align: center;
}
header p, section p{
	font-size: 1.5em;
	margin: 1em 0;
}
h1{
	font-family: moontime;
	text-shadow: 0 0 80px rgba(50,118,209,0.5),
		0 0 60px rgba(78,136,214,0.6),
		0 0 40px rgba(101,154,223,0.7),
		0 0 20px rgba(155,191,239,0.8);
		font-size: 11vw;
		font-weight: 100;
}
h2{
	font-size: 2.5em;
}
.flex{
	display: flex;
}
article{
	padding: 1em;
}
.galerie{
	text-align: center;
	background-color: #050429;
	width: 100%;
}
.youtube{
	display: flex;
	justify-content: space-between;
}
.center, .stats{
	text-align: center;
}
#stats{
	display: flex;
	width: 70%;
	justify-content: space-between;
}
.stats h2{
	font-size: 5em;
	color: #3fe5e8;
}
#actu-containers{
	display: flex;
	width: 100%;
	justify-content: space-around;
}
.actu{
	background-color: #050429;
	margin: 1em;
	width: 20%;
}
.actu img{
	max-width: 94%;
	max-height: 94%;
}
a{
	color: #3fe5e8;
	font-size: 1.3em;
}
a:hover{
	color: whitesmoke;
}
a img{
	width: 8%;
	transition: width 0.3s ease;
}
a:hover img{
	width: 10%;
}
footer{
	background-color: #303030;
	text-align: center;
	padding: 1em;
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 26%;
    height: 0;
    overflow: hidden;
    margin-bottom: 1.5em;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
#logo-nav{
  max-width: 80%;
  max-height: 80%;
}
/* Gestion de l'affichage sur la totalité des écrans (du plus grand au plus petit) */
@media (min-width: 901px) {
    .youtube article.youtube {
        display: flex;
        justify-content: center;
        gap: 2em;
        flex-wrap: wrap;
    }
    .video-container {
        width: 45%;
        max-width: 600px;
        margin-bottom: 2em;
    }
}
@media (max-width: 1400px){
	a{
		font-size: 1.2em;
	}
	h2{
		font-size: 2em;
	}
	.stats h2{
		font-size: 5em;
	}
	section p{
		font-size: 1.1em;
	}
}
@media (max-width: 900px){
	#actu-containers, #stats, .flex{
		display: block;
	}
	#menu-toggle-wrapper{
		top: 0;
		left: 0;
	}
	.youtube {
    display: flex;
    flex-direction: column;
    align-items: center;
	}
	.video-container {
	    position: relative;
	    width: 100%;
	    max-width: 560px;
	    padding-bottom: 56.25%;
	    height: 0;
	    overflow: hidden;
	    margin-bottom: 1.5em;
	}
	.video-container iframe {
	    position: absolute;
	    top: 0;
	    left: 0;
	    width: 100%;
	    height: 100%;
	    border: 0;
	}
	img{
		max-width: 90%;
	}
	a img{
		width: 30%;
	}
	a:hover img{
		width: 36%;
	}
	section, .actu{
		width: 85%;
	}
	h1{
		font-size: 20vw;
	}
	#nom{
		width: 10%;
	}
  	header{
		height: 300px;
	}
	 nav {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 250px;
        background-color: #303030;
        padding: 5em 1em 1.5em 1em;
        display: flex;
        flex-direction: column;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        transition: transform 0.3s ease-in-out;
    }

    nav.closed {
        transform: translateX(-250px);
    }

    #main-content {
        margin-left: 0;
        width: 100%;
        transition: none;
    }

    #main-content.nav-closed {
        margin-left: 0;
        width: 100%;
    }

    body.nav-open-overlay::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        transition: opacity 0.3s ease-in-out;
    }
}
@media (min-width: 901px) {
    #main-content {
        margin-left: 250px;
        transition: margin-left 0.3s ease-in-out;
    }

    #main-content.nav-closed {
        margin-left: 0;
        width: 100%;
    }
    body.nav-open-overlay::before {
        content: none;
    }
}