


@font-face{
	font-family: 'noto-sans';
	src: url('./font/NotoSans-Regular.ttf') format('truetype');
	
}

@font-face{
	font-family: 'noto-sans-bold';
	src: url('./font/NotoSans-Bold.ttf') format('truetype');
	
}
@font-face{
	font-family: 'noto-italic';
	src: url('./font/NotoSans-MediumItalic.ttf') format('truetype');
	
}

:root {
    --spacing: 1.5em; /* Définit une variable pour l'espacement */
    --margin: calc(1.32 * var(--spacing));
}
@media(min-width: 1024px){
    :root{
    --margin: calc(2.25 * var(--spacing));
    }
}

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'noto-sans';
    height: 100%;
    background-color: #A4C2F7;
    color:#0A2493FF;
}



header {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    height: 4.5em;
    position: relative;
    z-index: 10; 
}
@media(min-width: 600px){
    header{
        margin-left: var(--margin);
        width: calc(100% - var(--margin))
    }
}

#logo {
    width: 9.5em;
    height: 100%;
    display: flex;
    align-items: center;
}

#logo::after {
    content: '';
    height: 50%; /* Ajustez la hauteur de la barre ici */
    width: 2.5px; /* Largeur de la barre */
    background-color: #0A2493FF;
    margin-left: 1.8px; /* Espace entre le logo et la barre */
}

@media(min-width:1024px){
    #logo::after {
        height: 70%;
        width: 5px;
        margin-left: 5.5px;
    }
}



#logo img {
    width: 3em;
    height: auto;
    margin-right: 4%;
    margin-left: 4%;
}

@media(min-width:1024px){
    #logo img{
        width: 3.5em;
    }
    #logo{
        width: 15em;
    }
}

#logo p {
    font-family: 'noto-sans';
    font-size: 1em;
    line-height: 1em;
    text-align: right;
    color:#0A2493FF;
}

#logo p em{
    font-family: 'noto-italic';
    font-size: 1.3em;
    font-style: normal;
    font-weight: 0;
}

@media(min-width:1024px){
    #logo p {
        font-size: 1.5em;
    }
}

#pageActive{
    font-family: 'noto-sans';
    font-size: 1.5em;
    line-height: 1em;
    display: flex;
    align-items: center;
    margin-left: 0;
    text-align: left;
   
}

/* Menu nav mobile-first (petits écrans) */
.mainNav {

    font-family: 'noto-sans';
    font-size: 1.5em;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: absolute;
    z-index: 5;
    top: 9vh; /* Juste en dessous de l'en-tête */
    right: 0;
    width: 150px; /* Occupation de l'écran plus importante sur mobile */
    visibility: hidden; /* Caché par défaut */
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    margin: 0;
}

.mainNav.show {
    visibility: visible; /* Montré quand .show est présent */
    opacity: 1;
}

.mainNav a {
    display: block;
    padding: 1em;
    text-align: center;
    border-top: 1px solid #fff;
    background-color: white;
    width: 100%;
    color:#0A2493FF;
}

.mainNav a.active {
    font-family: 'noto-sans-bold';
}


#menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0.7em;
}

/* Styles pour le bouton hamburger */
.burger-line {
    width: 25px;
    height: 3px;
    background-color: #0A2493FF;
    margin: 5px 0;
    transition: 0.4s;
}

/* Styles pour les grands écrans */
@media (min-width: 1024px) {
    #menu-toggle {
        display: none;
    }

    .mainNav {
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        position: relative;
        top: 0;
        height: 100%;
        opacity: 1;
        visibility: visible; /* Toujours visible sur les grands écrans */
        width: 60%;
    }

    .mainNav a {
        display: inline-block;
        padding: 0;
        background-color: transparent;
        border-top: none;
        width: auto;
    }
    #pageActive{
        display:none;
    }
}


/*footer*/

footer {
    background-color: #0A2493FF;;
    color: white;
    padding: 20px;
    text-align: center;
    height: 6em;
    display: flex;
    align-items: center;
    justify-content:flex-end;
    width:100%;
}

.footer-nav a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
    font-family: 'noto-sans';
    font-size: 1em;
    
}

.footer-nav a:hover {
    color:#AFAFD7;
}

@media (max-width:400px){
	footer{
		flex-direction:column;
		justify-content:center;
		padding: 10px;
        margin-top: 30px;
	}
	.footer-nav{
		display:flex;
		flex-direction: column; 
		align-items: center;
		justify-content: center;
    }
    .footer-nav a {
        margin: 5px 0;
        font-size: 0.9em; /* Ajuste la taille du texte si besoin */
    }
}








main{
    margin-right: var(--margin);
    margin-left: var(--margin);
    font-size: 0.8em;
}
@media(min-width: 420px){
    main, header{
        font-size: 1em;
    }
}

@media(min-width: 500px){
    main, header{
        font-size: 1.2em;
    }
}
@media(min-width: 900px){
    main{
        font-size: 1.1em;
    }
}

h1{
    font-family: 'noto-sans-bold';
    font-size: 1.4em;
    text-align: center;
    margin-top: var(--spacing);
    margin-bottom: var(--spacing);
}

.titreGrand{
    display: none;
}
@media(min-width: 1024px){
    .titreGrand{
        display: block;
        font-size: 2em;
        margin-bottom: 1em;
    }
    .titrePetit{
        display: none;
    }
}

