/* CSS Document */

/*utilisation des préfixes de fournisseurs à considérer  (ex: -webkit-, -moz-, -ms-, -o-)*/
* {
  box-sizing: border-box;
  margin:0;
  padding:0;
}

h1 {
	font-family: Georgia, Times, serif;
	font-size: 1.8em;
	color: #933;
	font-weight: bold;
	letter-spacing: 1px;
	padding: 15px 0;
	text-align: center;
}

h2 {
	font-family: Georgia, Times, serif;
	font-size: 1.6em;
	color: #933;
	letter-spacing: 1px;
	font-weight: bold;
	font-variant: normal;
	padding: 15px 0;
}

h3 {
	font-size: 1.5em;
	color: #933;
	font-weight: bold;
	font-variant: normal;
	padding: 15px 0;
}

h4 {
	font-size: 1.3em;
	color: #933;
	font-weight: bold;
	font-variant: normal;
	padding: 15px 0;
}

h5 {
/*	margin-top: 1.3em;*/
	color: #933;
	font-size: 1.2em;
	padding: 5px 0;
}


/* Banniere image complete avec le texte */
#banniere {
  position: relative;
  color: white;
  bottom:0;
  width:100%;
  
}

#banniere img 
{
	display:block;
	padding: 25px 0 0 0;
	margin: auto;
	width:100%;
	height:auto;
	max-width: 1000px;
}

.mnhaut{
	float:none;
	display: block;
	width:100%;
	margin-top: 2px;
    padding: 0.5px; 
	text-align: center;
	position: absolute;
}	

.mnhaut a {
  color: #603;
  font-weight:bold;
  padding: 4px 4px;
  text-decoration: none;
  font-size: 0.85em;
}

.mnhaut a:hover {
  color: black;
  font-size:0.90em;
  background-color: #EBE2A9;
}

/* Barre de navigation centrale */
nav {
  align-self: center;
  justify-content: center;
  background-color: white;
}

nav ul{
    list-style-type: none;
    display: flex;
	flex-wrap:wrap;
	flex-direction:row;
	margin: 0px 3px;
}

nav ul li{
	display:block;
    text-align: center;
    position: relative;
}

nav a{
    color: black;
    text-decoration: none;
	padding: 0px 3px;
	border-bottom: 2px solid transparent;
}


nav p {
  color: black;
  text-decoration: none;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 8px 0 rgba(0, 0, 0, 0.19);	
  border-radius:4px;
  width:115px;
  min-height:35px;
  line-height: 16px;
  padding: 2px;
  margin: 0px 5px;
  font-size:0.90em;
  font-variant-caps: small-caps;
  margin-bottom: 5px;
  text-align:center;
}

nav p:hover {
  background-color: #EBE2A9;
  color: black;
  text-decoration: none;  
}

.sous{
    display: none;
    box-shadow: 0px 1px 2px #CCC;
    background-color: white;
    position: absolute;
	margin-left: 5px;
    width: 100%;
	min-width: 180px;
    z-index: 5;
	font-size:0.8em;
}

nav > ul li:hover .sous{
    display: flex;
    flex-flow: column wrap;
}

.sous li{
    flex: 1 1 auto;
    text-align: left;
	padding: 4px;
	color: #603;
}

.sous a{
    padding: 5px;
    border-bottom: none;
	color: #603;
	font-weight:bold;
}

.sous a:hover{
	color: black;
    font-weight:bold;
	background-color: #EBE2A9;
	line-height:1.5em;
}

/*Tableau*/

#tablib {
	position: relative;
	top: 0px;
	border-collapse: collapse;
	width: 100%;
}

.table1 {
    overflow: auto;
    width: 100%;
}

.table1 table {
    border: 1px solid #dededf;
    height: 100%;
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border-spacing: 1px;
    text-align: left;
}

.table1 caption {
    caption-side: top;
    text-align: left;
}

.table1 th {
    border: 1px solid #dededf;
    background-color: #eceff1;
    color: #000000;
    padding: 5px;
}

.table1 {
    border: 1px solid #dededf;
    background-color: #ffffff;
    color: #000000;
    padding: 5px;
}


body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0; 
  height:100%;

}


/* Zone principale */
.main {
 display:flex;
 background-color: white;
 font-size: 1em;
 margin-left:0px;
 margin-top:5px;
 width:100%;
 background-color: #EBE2A9;
 position:relative;
 overflow: clip;
}

.main p {	padding: 4px;}

a {
	color: #603;
    text-decoration: none;
}

a:link {   color: #603;}

a:hover {
	color: #660000;
	font-weight: bold;
}

.main ul li {
 margin-left: 15px;
 padding: 1px;
}

.main ul ul li {
 margin-left: 15px;
 padding: 1px;
}

.main ol li {
 margin-left: 15px;
 padding: 1px;
}

.main img {
	box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.19);	
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
	background-color: #EBE2A9;
	padding:2px;
}

aside {
	margin:0;
	text-align:left;
	flex:1;
	width:20%;
	min-width: 11em;
	max-width: 14.5em;
	padding:0px 2px;
	font-size: 0.85em;
	border-radius:2px;
	color: #603;
	position:relative;
	flex-direction: column;
}

aside p {
	line-height:15px;
}

aside ul {
	margin-left:3px;
}

#maisons {
	font-size: .85em;

}

.maison-adresse {
	font-size: .80em;
}

#haut-btn { 
/* Créer le bouton pour aller au haut de la page (bannière) */
	background-color: #603;
	border-radius: 50%;
	margin-left:0.5em;
	color: white; 
	font-size:1.5em;
}

.rafraichir-btn {
  background-color: #603; /* Couleur de fond */
  color: white;             /* Couleur du texte */
  padding: 2px 6px;       /* Espacement intérieur */
  border: none;             /* Supprime la bordure par défaut */
  border-radius: 5px;       /* Coins arrondis */
  font-size: 0.9em;          /* Taille de la police */
  cursor: pointer;          /* Change le curseur au survol */
  width:90%;
}

.icone-btn {
	/* Créer la boîte pour l'icone Télécharger ou Aller vers */
/*	font-size: 1em; /* Ajustez la taille selon vos besoins */
/*	font-weight: bold;*/
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid black;
	border-radius: 5px;
	width: 1.5em; /* Largeur de la boîte */
	height: 1.4em; /* Hauteur de la boîte */
	line-height: 1.5em; /* Pour centrer le symbole verticalement */
}
	
.icone-btn-dbl {
	/* Créer la boîte pour l'icone pour un lien externe */
/*	font-size: 1em; /* Ajustez la taille selon vos besoins */
/*	font-weight: bold;*/
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid black;
	box-shadow: -2px 2px black;
	border-radius: 5px;
	width: 1.5em; /* Largeur de la boîte */
	height: 1.4em; /* Hauteur de la boîte */
	line-height: 1.5em; /* Pour centrer le symbole verticalement */
}


#sidebar {
	flex:1;
	width:20%;
	min-width: 11em;
	max-width: 14em;
	padding: 2px 5px;
	position:fixed;
	transform-origin: 0 100%;
}



#boiteRech {
	width:95%;
}

label{
	color:#603;
}

.haut {
	margin: 0 10px 0 10px;
}


/* Pied de page*/
footer{
	line-height: 20px;
	font-size: .90em;
	padding: 15px 5px;
	text-align: left;
	background-color: #C9B462;
}

.aligner-mot {
    margin-left: 5%;
}


article {
	display:flex;
	flex-wrap:wrap;
	flex-direction:column;
	min-height:700px;
	width:80%;
	margin-bottom:20px;
}

section {
	display:block;
	width:98%;
	margin:2px;
	border: 2px solid lightgrey;
	box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 10px 0 rgba(0, 0, 0, 0.19);
	font-size: 0.9em;
	line-height: 18px;
	height: auto;
	padding:14px;
	background-color: white;
}

.liste-colonnes {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; 
  justify-items:left;
  text-align:left;
  font-size: .9em;
  column-gap: .5em;
}

.liste-colonnes > ul li {
 /* width: 60%; */
  box-sizing: border-box; 
  padding: 0; 
  list-style-type: none;
}

.cahiers {
  display: flex;
  flex-direction: row;
  flex-wrap:wrap;
}

.cahier {
  flex-grow: 1;
  width: 47%;
  max-width: 480px;
  margin:4px;
  padding: 4px;
  min-height:370px;
  border: 2px solid lightgrey;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 10px 0 rgba(0, 0, 0, 0.19);
  font-size:.95em;
  text-align:left;
  background-color: white;
}

.cahier img {
  width: 200px;
  float:right;
  padding: 2px;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.2), 0 3px 6px 0 rgba(0, 0, 0, 0.19);	
  margin-right:2px;
  position:relative; 
}

.masquer { display: none; }

.reduit { cursor: zoom-in;}

.curseur-in { cursor: zoom-in;}

.reduit img {
  background-color: white;
  border-radius: 3px;
  width: 145px;
  max-height: 320px;
}

.grand {
  cursor: zoom-out;
}

.grand img {
  display: block;
  background-color: white;
  border-radius: 3px;
}

.modal {
  display: flex;
  justify-content: center;
  position: absolute;  
  right: 0;
  left: 10%;
  top: 22%;
  visibility: hidden;
  opacity: 0;
  transition: all .4s;
  pointer-events: none;
  transform:scale(3.5);
  z-index:10;
}

.modal:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto; /*permet de fermer une image agrandie en affichant une loupe moins */
}

/* Place les 2 barres en colonnes */
/*@media screen and (max-width: 900px) {
}*/

@media screen and (max-width: 600px) {

	.cahier {  width:100%;}
	.cahier img {  width:40%;}
	.modal {
		justify-content: left;
		align-items: center;
		margin-left:50px;
		width:95%;
		}
	.mnhaut a {
		padding: 4px 2px;
		font-size: 0.8em;
		}
	nav {font-size:1em;}
	nav p {
		width:110px;
		min-height:28px;
		line-height: 14px;
		padding: 1px;
		}
	#cell-dim img {  width:50%;}
	
	aside {
		min-width: 9em;
		font-size: 0.8em;
		}
	#sidebar {
		min-width: 8.5em;
		padding: 1px 1px;
		}
	#sidebar ul li { padding: 1px;}
}

@media screen and (max-height: 499px) {

aside p {
	line-height:0.85em;
	font-size:0.85em;
}

article img {
  width:90%;
}

.modal {
  top:28%;
  transform:scale(3);
}

@keyframes barlat {
  from {
    transform: translateY(0%);
	   }
  to {
    transform: translateY(-95%);
	   }
   }
}


@keyframes barlat {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(-60%);
  }	
}


@media screen and (min-height: 500px) and (max-height:699px) {

aside p {
	line-height: 0.95em;
	font-size:0.95em;
}

.modal {
  top:28%;
  transform:scale(3);
}
@keyframes barlat {
  from {
    transform: translateY(0%);
  }
  to {
    transform: translateY(-60%);
  }	
}
}

@media screen and (min-height: 700px){

@keyframes barlat {
  from {
    transform: translateY(10%);
  }
  to {
    transform: translateY(-10%);
  }	
}
}
