
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

@import url('https://db.onlinewebfonts.com/c/7c6661efce01eac269383bac79303c1b?family=Arial+Narrow');

@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;800&display=swap");

@import url('https://fonts.googleapis.com/css?family=Oswald');*/


/****************************************/
/* styles générique du body */
/****************************************/
body{
	width: 100%;
	margin: auto;
	background-color: #FFFFFF;
	font-size: 100%;
}

@media screen and (max-width: 70em) {
	body {
		 font-size: 70%;
	  }
   }
@media screen and (max-width: 60em) {
	body {
		 font-size: 60%;
	  }
   }
   
@media screen and (max-width: 50em) {
	body {
		  font-size: 50%;
	  }
   }
   
@media screen and (max-width: 30em) {
	  body {
		   font-size: 40%;
	 }
   }  


img{
	vertical-align: middle;
}

/****************************************/
/* gestion des div de l'en-tête*/
/****************************************/
header {
	width: 100%;
    font-family : 'Arial narrow';
	font-size : 1em;
	background-color: #FFFFFF;
	position: sticky;
		top: 0;
		left: 0;
	z-index: 1;
}

header .en_tete {
	width:90%;
	margin: auto;
	display: flex; 
}

header .en_tete .logo {
	display: inline-block;
	padding: 3px 0 5px 3px;
}

header .en_tete .logo img {
    max-height: 80px;
    display: block;
}

header .en_tete .BV {
	display: table;
	font-size : 2.25em;
	width : 100%;
	font-weight: bold;
	text-align:center;
	text-shadow: 1px 1px 2px lightgray ;
}

header .en_tete .BV span{
	vertical-align:middle;
	display: table-cell;
}


header .en_tete .droit a{
	width: 125%;
	margin-top: 0.5em;
	height: 2em;
	padding: 0.75em 0.75em 0 0.75em;
	border: solid 2px #A1CB27;
	color: #A1CB27;
	border-radius: 5px;
	font-weight: bold;
	font-size: 1em;
	text-decoration: none;
	float: right;
	text-align: center;
	vertical-align: middle;
}
header .en_tete .droit a:hover{
	background-color: #A1CB27;
	color: #FFFFFF;
	cursor: pointer;
}

/*MENUS et SOUS-MENUS HORIZONTAUX*/
/*********************************/
.bandeau_noir{
	width: 100%;
	background-color: #54595F;
	font-family : 'Arial narrow';
}

.bar_nav{
	width: 90%;
	margin: auto;
	font-size: 0.9em;
	overflow:hidden;
	text-align:center;
	display:block;
}

.element {
	float:left;
	text-align:left;
}

.contenu .element {
	width:100%;
}

.menu {
float:left;
}

.sousMenu {
display:none;
position:absolute;
width:200px;
z-index:1;
background-color: rgba(161, 203, 39, 0.15);
}

.rubrique{
font:inherit;
color:#fff;
padding:14px 16px;
text-decoration:none;
background-color:#54595F;
cursor:pointer;
border-right: 1px solid #bbb;
}
.rubrique a{
font:inherit;
color:#fff;
text-decoration:none;
}

.s-rubrique{
	font:inherit;
	color:black;
	padding:8px 10px;
	text-decoration:none;
	background-color:lightgray;
	cursor:pointer;
}

.rubrique:hover{
	background-color: #111;
	font-size: 1em;
	font-weight: bolder;
}

.s-rubrique:hover{
	font:inherit;
	background-color: #111;
	color:#FFFFFF;
	font-weight:500;
	cursor:pointer;
}

.menu:hover .sousMenu{
	display:block
}

.active{
	background-color: #A1CB27;
	font-weight: bold;
	font-size: 1em;
}

.BV-R{
	background-color: #FFA500;
	font-weight: bold;
	font-size: 1,1em;
}

/* Champ de recherche  */
/****************************************/
.recherche {
	font-weight: bold;
	text-align: center;
	width: 100%;
	/*margin: 4px 0 0 1px;*/
}

.recherche input {
	position: relative;
	display: inline-block;
	margin-left: 5px;
	padding :6px;
	width: 100px;
	font-size: 0,75em;
	border: 1px solid #c9c9c9;
	border-radius: 5px;
	outline-color: #A1CB27;
	background: url('../photos/search.png') right no-repeat ;
	background-color: #FFFFFF;
}

.recherche button {
	position: relative;
	display: inline-block;
	background-color: #A1CB27;
	border: 1px solid #A1CB27;
	border-radius:5px;
	text-align: center;
	color: #FFFFFF;
	font-size: 0,5em;
	cursor: pointer;
	margin: 5px;
	padding :7px;
}

.recherche button:hover {
filter: contrast(1.25) drop-shadow(16px 16px 20px  #A1CB27);
}
/*FIN*/

header .bar_nav{
	width: 90%;
	margin: auto;
	font-size: 0.9em;
}
/* pour RECHERCHE ESTRAN*/

.bar_nav .recherche_estran{
	float: right;
	margin: 3px 0 0 1px;
	/*font-weight: bold;*/
	text-align: center;
	width: 70%;
}
.bar_nav .recherche_estran p{
	position: relative;
	display: inline-block;
	color: #FFFFFF;
}

.bar_nav .recherche_estran input {
    margin-left: 25px;
	padding :7px;
	width: 15%;
	font-size: 0,75em;
	border: 1px solid #c9c9c9;
	border-radius: 5px;
	outline-color: #A1CB27;
	background: url('../photos/search.png') right no-repeat ;
	background-color: #FFFFFF;
}

.bar_nav .recherche_estran .search_estran{
	width:10%;
}

.bar_nav .recherche_estran button {
	position: relative;
	display: inline-block;
	background-color: #A1CB27;
	border: 1px solid #A1CB27;
	border-radius:5px;
	text-align: center;
	color: #FFFFFF;
	font-size: 0,75em;
	cursor: pointer;
	margin: 5px;
	padding :7px;
  }

/****************************************/
/* Styles principaux du main */
/****************************************/
main {
    width: 80%;
	margin: auto;
	padding: 10px 20px 20px 20px;
	font-family: Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
	font-size: 1em;
    line-height: 1.5;
	text-align: justify;
	background-color: #FFFFFF;
}

h1,h2,h3{
	margin-top: .5em;
    margin-bottom: 1em;
	line-height: 1.2;
	font-weight: bold;
	}

h1 {
    padding-bottom: 10px;
	font-family: "Oswald", Sans-serif;
	font-size: 2em;
	color:#30317A;
	text-decoration : underline;
	text-decoration-color:#A1CB27;
	text-decoration-thickness: 5px;
	text-underline-offset: 0.2em;
}

h2 {
    margin-top: 20px;
	font-size: 1.5em;
	color:#30317A;
	text-decoration : underline;
	text-underline-offset: 0.3em;
	text-decoration-color:#A1CB27;
	text-decoration-thickness: 3px;
}

h3 {
    font-size: 1.15em;
	color:#30317A;
	display: list-item;
	list-style-type: square;
	margin-left: 1em;
}

h4 {
    font-size: 1em;
	color:#30317A;
	text-align: center;
}

p {
    margin-top: 0;
    margin-bottom: .9em
}

hr {
    width: 75%;
	box-sizing: content-box;
    overflow: visible;
	height: 2px;
	background-color: #A1CB27;
	border: 0;
}	

main .chapo{
    width: 75%;
    margin: auto;
    font-weight: bold;
    padding-bottom: 15px;
    border-bottom: 2px solid #A1CB27;
    margin-bottom: 20px;
    margin-top: 20px;
}

main span {
	font-weight:bold;
	text-decoration : underline;
	text-underline-offset: 0.3em;
	text-decoration-color:#A1CB27;
	text-decoration-thickness: 1px;
}

main .center{
	font-weight:bold;
	text-align: center;
	padding: 5px 0 15px 0;
}

main .center a{
	color: #000000;
	text-underline-offset: 0.3em;
	text-decoration-color:#A1CB27;
	text-decoration-thickness: 1px;
}

main .center a:hover{
	color: #000000;
	background-color: #A1CB27;
	text-decoration: none;
}

main a{
	font-weight: bolder;
	color: #000000;
	background-color: rgba(161, 203, 39, 0.15);
	text-underline-offset: 0.3em;
	text-decoration-color:#A1CB27;
	text-decoration-thickness: 1px;
}

main a:hover{
	color: #000000;
	background-color: #A1CB27;
	text-decoration: none;
}

main ul {
	list-style: none;
	list-style-position: inside;
	margin-left: -2em;
}
main li::before {
	content: "•"; 
	color: #A1CB27;
	display: inline-block; 
	width: 1.2em;
}

main li a {
    color: #000000;
    text-decoration: none;
}

main li a:hover {
    background-color: #A1CB27;
	color: #000000;
	font-weight: bold;
}

main button {
	position: relative;
	display: inline-block;
	margin: 5px;
	padding: 10px 50px;
	background-color: #A1CB27;
	border: 1px solid #A1CB27;
	border-radius:5px;
	text-align: center;
	color: #FFFFFF;
	font-size: 1.5em;
	cursor: pointer;
}

main button:hover {
	/*filter: contrast(1.25) drop-shadow(16px 16px 20px  #A1CB27);*/
	font-size: 1.75em;
}

/* Blocs TEXTE+IMAGE
/**************************/

main .bloc_texte_photo{
	width: 100%;
	display: flex;
}

main .texte{
	padding: 0 0 0 15px;
	width : 70%;
	display: inline-block;
}

main .texte_sortie{
	padding: 0 0 0 15px;
	margin: 5px 0 0 10px;
	width : 70%;
	display: inline-block;
}

main .texte_2{
	padding: 0 0 0 15px;
	width : 40%;
	display: inline-block;
}

main .texte_reserve{
	width : 30%;
	font-size: 1em;
	display: inline-block;
}


main .photo_reserve{
	width : 70%;
	display: inline-block;
	text-align: right;
}

main .photo_reserve a{
	background-color: transparent;
}

.photo_reserve img{
	width : 90%;
	height: auto;
	border: 1px solid lightgrey;
	box-shadow: 5px 5px 5px lightgray;
}

#map{
	height:400px;
	width: 60%;
	display: inline-block;
}

/* Blocs spéciaux
/*****************/

main .BV {
	margin: auto;
	padding: 20px 0 0 0;
	font-size : 2em;
	width : 100%;
	font-weight: bold;
	text-align:center;
	text-shadow: 1px 1px 2px lightgray ;
}

main .une{
	width: 100%;
	margin: auto;
	text-align: center;
	margin-bottom: 20px;
}

main .une video {
	width: 100%;
    height: auto;
}

main .une img {
	width: 100%;
    height: 100%;
	border: 1px solid lightgrey;
	box-shadow: 5px 5px 5px lightgray;
}

main .recherche_estranRE {
	width: 80%;
	display: flex;
	margin: auto;
}

main .recherche_estranRE p{
	font-size: 1.25em;
	color:#30317A;
	font-weight: bold;
}
main .recherche_estranRE .carte{
	margin: 0 10px 0 0x;
	width:23%;
	padding: 10px;
	display: inline-block;
	text-align: center;
	vertical-align: middle;
	border: 1px solid #30317A;
	background-color: rgba(48, 49, 122, 0.15);
	border-radius: 10px;
}

main .recherche_estranRE .carte img{
	border-radius: 5px;
}

main .recherche_estranRE .carte a:hover{
	filter: drop-shadow(4px 4px 4px #A1CB27) contrast(175%);
}

main .recherche_estranRE .espece{
	margin: 0 0 0 10px;
	width:23%;
	padding: 10px;
	display: inline-block;
	text-align: center;
	vertical-align: middle;
	border: 1px solid #30317A;
	background-color: rgba(48, 49, 122, 0.15);
	border-radius: 10px;
}

main .recherche_estranRE .espece a{
	background-color: rgba(161, 203, 39, 0);
}

main .recherche_estranRE .espece a:hover{
	filter: drop-shadow(5px 5px 5px #A1CB27) contrast(175%);
}


main .recherche_estranRE .phylum{
	margin: 0 0 0 10px;
	width:54%;
	padding:10px 5px 0 5px;
	display: inline-block;
	text-align: center;
	border: 1px solid #30317A;
	background-color: rgba(48, 49, 122, 0.15);
	border-radius: 10px;
}

main .recherche_estranRE .phylum .container{
	padding: 0 0 0 5px;
	column-count: 2;
	text-align: left;
}

main .recherche_estranRE .phylum .container a{
	text-decoration: none;
	padding: 1px 0 0 0;
}

main .recherche_estranRE .phylum .container p{
	font-size: 1em;
	color:#000000;
	font-weight: bold;
	margin-bottom: 0.2em;
}

/* bouton PDF*/
/*************/

.pdf{
	position: relative;
	display: inline-block;
	margin: 5px;
	padding: 10px 50px;
	background-color: #A1CB27;
	border-radius:5px;
	text-align: center;
	color: #FFFFFF;
	font-size: 1em;
	cursor: pointer;
}

.pdf a{
	color: #FFFFFF;
	text-decoration: none;
}

.pdf a:hover{
	color: #FFFFFF;
	filter: drop-shadow(16px 16px 20px  #A1CB27);
	font-size: 1.15em;
}

/****************************************/
/* Style du footer */
/****************************************/

footer{
	margin:0 0 0 0;
	background-color: #54595F;
	font-family: Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;
	line-height: 1em;
	font-size : 1em;
	color : #FFFFFF;
}
footer .pied_page{
	width: 100%;
	display: flex;
}
footer .logo{
	width : 10%;
	display: inline-block;
}

footer .mention{
	padding: 20px 10px 0 0;
	display: inline-block;
	width : 80%;
	font-weight: bold;
	text-align:center;
	}
footer .fen{
	display: inline-block;
	width : 10%;
	}
footer a {
    display: block;
    color: white;
	text-decoration: none;
   }

footer a:hover {
    color:#A1CB27;
}

/* DIV dans DIV  */
/****************************************/
.a-gauche { 
	float:left; 
	margin: 0 15px 0 0; 
}
.a-droite { 
	float:right;  
	margin: 0 0 0 15px; 
}
.centre{
	display: flex;
  	justify-content: center;
  	align-items: center;
	margin-bottom: 15px;
}

/******************/
/* Galerie phylum */
/******************/

/* Slider container */
.slider-container {
    width: 100%;
    overflow-x: auto;
}

/* Scrollbar personnalisée */
.slider-container::-webkit-scrollbar {
    height: 10px;
}

.slider-container::-webkit-scrollbar-track {
    background: rgba(161, 203, 39, 0.2);
    border-radius: 10px;
}

.slider-container::-webkit-scrollbar-thumb {
    background: rgba(161, 203, 39, 0.5);
    border-radius: 5px;
}

.slider-container::-webkit-scrollbar-thumb:hover {
    background: #A1CB27;
}

/*  Slider interne*/
.slider {
    display: flex;
    gap: 20px;
    padding: 20px;
    align-items: center;
    justify-content: flex-start;
}

/* Chaque slide */
.slide {
    position: relative;
    flex: 0 0 auto; /* empêche les slides de se rétrécir */
    transition: transform 0.3s ease;
}

/* Images responsives */
.slide img {
    width: 25vw;           /* largeur relative à la viewport */
    height: auto;           /* hauteur auto pour garder le ratio */
    max-width: 250px;       /* largeur max */
    max-height: 200px;      /* hauteur max */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    object-fit: cover;      /* remplit le cadre en coupant si nécessaire */
    display: block;
    transition: transform 0.3s ease;
}

/* Effet au survol */
.slide:hover {
    transform: scale(1.05);
}

/* Titre des images */
.titre {
    background-color: rgba(0,0,0,0.7);
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 15px;
    padding: 5px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slide:hover .titre {
    opacity: 1;
}
/************************/
/* Fenêtre modale */
/************************/
#modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

#modalContent {
    background: white;
    padding: 20px;
    max-width: 80%;
    max-height: 90%;
    overflow: auto;
    text-align: center;
    position: relative;
    border-radius: 8px;
    transform: scale(0);
    transition: transform 0.2s ease;
}

#modalTitle {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.fade-in {
    opacity: 1;
    transform: scale(1);
}

#modalImg {
    max-width: 100%;
    max-height: 70vh;
    margin-bottom: 10px;
}

#closeModal {
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
}

#closeModal:hover{
	color: #A1CB27;
}


#modalContent button {
    padding: 5px 12px;        
    font-size: 14px;          
	background-color: #A1CB27;
	border: 1px solid #A1CB27;
    border-radius: 4px;       
    cursor: pointer;
    margin: 5px;
}

#modalContent button:hover {
	background-color: #B7D85B;
	border: 1px solid #A1CB27;
}

/******************************************/
/* Affichage des espèces (en 4 colonnes)  */
/******************************************/

nav.menu-nav4 ul li img {
    width: 30px;          /* taille miniature */
    height: 30px;
    object-fit: cover;
    margin-right: 10px;
	margin-top: 5px;
	margin-bottom: 5px;
    vertical-align: middle;
    border-radius: 4px;
    transition: transform 0.2s;
}

nav.menu-nav4 ul li img:hover {
    transform: scale(1.1);
}

nav.menu-nav4 ul li a {
    text-decoration: none;
    color: inherit;
}

/* Conteneur de l'image */
#imageContainer {
    margin-top: 20px;
    width: 400px;   
    height: 300px;  
    position: relative;
}

/* Image principale */
#imageContainer img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Conteneur miniatures */
#thumbnailContainer {
    display: none;        
    flex-direction: column;
    gap: 5px;
    width: 400px;         
    height: 300px;        
    overflow-y: auto;     
    align-content: flex-start; 
    margin-top: 25px;
}

/* Chaque miniature + nom */
#thumbnailContainer div {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 2px;
}

/* Image miniature */
#thumbnailContainer div img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Nom de l’espèce */
#thumbnailContainer div span {
    font-size: 0.9rem;
    color: #000;               
    text-decoration: none;     
    cursor: pointer;           
    /*padding: 2px 4px;*/          
    transition: background-color 0.2s ease;
}

/* Effet survol uniquement sur le texte */
#thumbnailContainer div span:hover {
    background-color: rgba(161, 203, 39, 1); 
}

/* Styles pour la modale de recherche */
#resultModal {
  display: none;
  position: fixed;
  z-index: 1001; /* plus haut que le reste */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7); /* fond noir semi-transparent */
  justify-content: center;
  align-items: center;
}

#resultModal img{
  border-radius: 4px;
}

#resultContent {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
  text-align: left;
}

#resultContent h1, h2, h3{
	text-decoration: none;
}


#resultClose {
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

#resultClose:hover {
  color: rgba(161, 203, 39, 1);
}

/* Fade-in pour le container des résultats */
#modalResults {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#modalResults.show {
  opacity: 1;
  transform: translateY(0);
}

/* Effet sur chaque résultat au survol */
#modalResults div:hover {
 /*background-color: #e0f0ff; /* léger bleu */
  transform: scale(1.02);
  transition: all 0.2s ease;
}

/* Fade-in global de la modale */
#resultModal {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0); /* départ transparent pour fade-in */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

#resultModal.show {
  display: flex; /* doit rester flex pour centrage */
  opacity: 1;
  background-color: rgba(0,0,0,0.7);
}

/* Nom des résultats : pas de soulignement */
#modalResults div span {
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

/* Effet de survol sur le nom uniquement */
#modalResults div span:hover {
  background-color: rgba(161, 203, 39, 1);
  cursor: pointer;
}

/* CURIOSITES */
/***************/
  .liste-fiches {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
  }

  .liste-fiches li {
    list-style-position: inside;
  }

  .liste-fiches a {
    text-decoration: none;
	background-color: #FFFFFF ;
  }

  .liste-fiches a:hover {
  	background-color: rgba(161, 203, 39, 1);
  	cursor: pointer;
  }