/* RESET */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* VARIABLES */
:root {
	--max-width: 1600px;
	--main-width: 90%;
}
/* TEXTES */
@font-face {
	font-family: 'Mistral';
	src: url('fonts/Mistral.woff2') format('woff2'), url('fonts/Mistral.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}
p {color: #ffffff; font-family: calibri, verdana; font-size:1em; text-align:start;}
h1{color:#ffffff; font-family: calibri, verdana; font-size:1.1em;}
h2{color: #ffffff; font-family: calibri, verdana; font-size:1.4em; text-decoration: underline; scroll-margin-top: 86px;} /* pour menu de lexique */
h3{color: #ffffff; font-family: calibri, verdana; font-size:1.5em; text-align: center;}
h4{color: #ffffff; font-family: calibri, verdana; font-size:2em;}
h5{color: #ffffff; font-family: calibri, verdana; font-size:2.2em; text-align: center;}
h6{color: #4cb4f7; font-family: Mistral; font-size: 3.5em; text-align: start; font-weight: normal; font-style: italic;}
a {font-family: calibri, verdana; font-size:3em; color: #ffff00;}
.lien {
	margin-right:20px;
	font-size: 1em;
	color: #ffff00;
}

/* CORPS */
body {
	background-image:url(images/texture_gres02.png);
	background-repeat:repeat;
	align-items: center;
	justify-content: center;
}
/* Liste à puces dans le body */
.listepuces
	{margin-left: 40px;
	color: #ffffff;
}
/* NAVIGATION */
nav {
	position: fixed;
	top: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: var(--main-width);
	max-width: var(--max-width);
	background-image:url(images/beton_01.jpg);
	background-repeat:repeat;
	padding: 10px;
	border-radius: 10px;
	border: 2px solid #ffffff;
	z-index: 1000;
}

nav ul {
	display: flex;
	flex-wrap: wrap; /* permet passage sur 2 lignes */
	justify-content: space-evenly; /* centre le groupe avec un espace égale entre les élements et les bords */
	align-items: center;       /* centre verticalement si plusieurs lignes */
	list-style: none;
	padding: 0; /* important */
    margin: 0; /* important */
	gap: 10px 20px; /*espace entre les éléments et les bords verticaux et horizontaux */
}

nav a {
	color: #ffffff;
	text-decoration: none;
	font-weight: bold;
	font-family: calibri, verdana; font-size:1.2em;
}

/* CONTENU PRINCIPAL */
main {
	width: var(--main-width);
	max-width: var(--max-width);
	margin: 0 auto;
	border-radius: 20px;
    
	/* espace sous la nav fixe */
	margin-top: 80px;
	min-height: 400px;
	padding: 20px;
	background-image:url(images/texture_gres02.png);
	background-repeat:repeat;
}
/* Style commun pour le menu, le bloc et le pied de page */
.container {
	width: 100%;
	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	background-image:url(images/texture_gres02.png);
	background-repeat:repeat;
}
		
iframe {
	width:100%;
	height: 75vh;
	min-height: 500px;
	border: 0px solid #1e1e1e;
	background-color: #1e1e1e;
	border-radius: 20px;
	box-shadow: 4px 4px 12px rgba(0,0,0,0.8);
}

.boite-image {
	position: relative;
	display: inline-block; /* Permet d'aligner les images côte à côte */
	padding:5px; /* espace entre les blocs vignettes */
}
.image-text {
    position: absolute;
    bottom: 5%; /* Centre verticalement */
    left: 50%; /* Centre horizontalement */
    transform: translate(-50%, -50%); /* Ajuste pour centrer précisément */
    color: #ffff00; /* couleur du texte dans les vignettes */
    font-size: 0.5em;
    font-weight: bold;
	background-color: rgba(0, 0, 0, 0.5); /* Fond semi-transparent */
	padding: 0px;
	border-radius: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);  /*Ombre pour lisibilité */
    pointer-events: none; /* Permet de cliquer à travers le texte sur le lien */
	opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease; /* Animation fluide */
	animation: fadeIn 0.5s ease forwards; /* Animation au chargement */
	/*ajout pour visu des blocs un peu meilleur */
	text-align: center;
	transition: transform 0.2s ease;
}

.boite-image:hover {
	transform: scale(1.05);
}
	
/* FOOTER */
footer {
	width: var(--main-width);
	max-width: var(--max-width);
	margin: 10px auto 0 auto; /* 20px sous le contenu */
	max-height:60px;
	padding: 10px;
	background-image:url(images/Beton_01.jpg); background-repeat:repeat;
	color: white;
	text-align: center;
	border-radius: 10px;
	border: 1px solid #aaa;
	justify-content: space-evenly; /* Centre horizontalement */
    align-items: center; /*positionnement verticalement */
	border: 1px solid #aaa;
}

footer .links {
	margin-top: 10px;
	justify-content: center;
	display: flex;
	justify-content: space-evenly; /* Centre horizontalement */
    align-items: center; /*positionnement verticalement */
	box-sizing: border-box;
	overflow: hidden;  /* évite que le contenu dépasse si besoin */
}

footer a {
	color: #ddd;
	text-decoration: none;
	margin: 0 10px;
	font-family: calibri, verdana; font-size:1em;
}
/* Fleche de remontée */
#back-to-top {
      position: fixed;
      bottom: 40px;
      right: 10px;
      width: 50px;
      height: 50px;
	  background-image:url(images/up.webp);
	  opacity:0.4;
      border: none;
      border-radius: 50%;
      font-size: 24px;
      display: none; /* caché par défaut */
      align-items: center;
      justify-content: center;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
      transition: all 0.3s ease;
      z-index: 1000;
    }
    #back-to-top:hover {background-color: #555; transform: translateY(-3px);}
    /* Animation d'apparition */
    #back-to-top.show {display: flex;}

/* RESPONSIVE */
@media (max-width: 600px) {
	nav ul {
		justify-content: space-around;
    }
}