body {
	height: 100%;
	margin: 0px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
	/*font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;*/
	font-family: Arial, sans-serif;
	margin-bottom: 200Px;
}


/*NAVBAR_______________________________________________________________________________________*/

/* Bouton hamburger caché sur desktop */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
	padding-right: 15px;
}

/* Navbar pleine largeur */
.navbar {
    width: 100%;
    background-color: #333;
	/*font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;*/
	font-family: Arial, sans-serif;
}

/* Contenu centré limité à 1200px */
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Liens à gauche */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}



/* Logo à droite */
.logo img {
    max-height: 50px;
    width: auto;
	padding-right: 15px;
}


/* Effet hover */
.nav-links a:hover {
    color: #00bcd4;
}

.citation {
  font-style: italic;
  font-size: 18px;
  color: white;
  white-space: nowrap; /* évite le retour à la ligne */
  margin-right: auto;
}


/*IMAGE BACKGROUND _________________________________________________________________________________*/

.full-width {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    position: relative;
	margin-bottom: 10px;
}


.full-width img {
	width: 100%;
    height: clamp(50px, 30vh, 250px);
    object-fit: cover;
	display:block;
}


.full-text {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    z-index: 2;
	text-shadow: 8px 8px 8px black;
	text-align: center;
	font-weight: bold;
}


/*BOUTONS RETOURS______________________________________________________________________________________*/

.retour img {
max-height: 40px;	
}


/*PAGE ACCUEIL_____________________________________________________________________*/

.container-col {
    display: flex;
    /*grid-template-columns: 1fr 1fr;*/
    gap: 20px;
	font-size: 14px;
}

.colonne-gauche {
    flex: 2;   /* plus grande */
    padding: 20px;
	text-align: justify;
}

.colonne-droite {
    flex: 1;   /* plus petite */
    /*background: lightgray;*/
}


.search-form {
    display: flex;
    gap: 0px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.search-form input {
    width: 250px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.3s;
}

.search-form input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.search-form button {
    padding: 10px 20px;
    border: none;
    background-color: #4a90e2;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.search-form button:hover {
    background-color: #357abd;
}

.recherche {
	margin-top: 25px;
	padding-bottom: 20px;
	border: 1px solid lightgray;
}

.titre {
	font-size: 20px;
	font-weight: bold;
}

.titre-recherche {
	font-size: 15px;
	border-bottom: 1px solid lightgray;
	padding: 10px;
	background: whitesmoke;
	font-weight: bold;
}

.tuto {
	font-size: 12px;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 8px;
	text-align: justify;
}

.dropdown {
    width: 600px;
    cursor: pointer;
	margin: 40px auto;     /* centre horizontalement */
    text-align: center;
}

.dropdown summary {
    font-weight: bold;
    padding: 10px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
}

.dropdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ccc;
    border-top: none;
}

.dropdown li {
    padding: 8px;
}

.dropdown li:hover {
    background-color: #eaeaea;
}

.dropdown a {
    text-decoration: none;
    color: #333;
}


.liste-specimens {
    list-style: none;
    padding: 0;
    margin: 20px auto;
    width: 450px;
}

.item-specimen {
    background-color: #f5f5f5;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #ddd;
    transition: 0.2s;
	display: flex;
}

.item-specimen:hover {
    background-color: #eaeaea;
    transform: scale(1.02);
}


.item-specimen a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    display: block;
}


.item-specimen img {
  width: 30px;   /* taille de la vignette */
  height: auto;
  margin-left: auto;
}

.collec {
		margin-left: 30px;
}

.collec img {
	max-height: 250px;
}


.container-colmeta {
    display: flex;
    /*grid-template-columns: 1fr 1fr;*/
    gap: 20px;
	font-size: 14px;
}


.colonne-gauche-meta {
    flex: 2;   /* plus grande */
    padding: 20px;
	text-align: justify;
	border: 1px solid #333;
}

.colonne-droite-meta {
    flex: 1;   /* plus petite */
	padding: 20px;
	border: 1px solid #333; 
 /*background: lightgray;*/
}


/*PAGE VIEWER_____________________________________________________________________*/

.tview {
	display: flex;
	align-items: center;
	width: 100%;
	justify-content: space-between;
}

.tview img {
	height: 30px;
	margin-left: auto;
}



iframe {
	border: 1px solid #333;
	width:800px;
	height:450px;
}

#viewer {
	border: 1px solid #333;
	width:800px;
	height:400px;
}

table {
  border-collapse: collapse; /* fusionne les bordures */
  width: 100%;
}

th {
	text-align: left;
	background-color: #f5f5f5;
}

td, th {
  border: 1px solid black; /* bordure des cellules */
  padding: 8px;
}

td {
	font-size: 14px;
}

footer {
	position: fixed;
	bottom: 0;
	width: 100%;
    background-color: white;
	border-top: 2px solid #333;
	height: auto;
	min-height: 50px;
	padding: 10px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.logo-bar {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.logo-bar img {
	padding-top: 2px;
	padding-bottom: 2px;
    max-height: 30px;
    max-width: 1200px;
    object-fit: contain;
}

.text_static {
	text-align: justify;
}

.foot_credits {
	padding-top: 10px;
	text-align: center;
	font-size: 12px;	
}

/*MEDIA QUERIES____________________________________________________________________________*/

@media (max-width: 400px) {
	
	.tcg {
		display: none;
	}
	
	
	.colonne-droite {
	
	width: 80%;
	}
	
	
	.dropdown {
		width: 300px;
		cursor: pointer;
		margin: 40px auto;     /* centre horizontalement */
		text-align: center;
		
	}
	
	.liste-specimens {
		width: 300px;
	}
	
	footer {
		width: 100%;
		background-color: white;
		border-top: 2px solid #333;
		padding: 2px;
		/*font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;*/
		font-family: Arial, sans-serif;
	}
	
	
	.logo-bar {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
		gap: 0px;
		align-items: center;
		justify-items: center;
	}

	.logo-bar img {
		max-height: 20px;
		width: 100%;
		object-fit: contain;
	}

	.foot_credits {
		padding-top: 0px;
		text-align: center;
		font-size: 10px;	
	}


	.container-colmeta {
		flex-direction: column;
	}

	.colonne-gauche-meta,
	.colonne-droite-meta {
		flex: none;
		width: 100%;
		padding: 0px;
	}
	
	 
	  .tview {
		width: 300px;
		margin-left: auto;
		margin-right: auto;
	}
	  
	iframe {
		width:300px !important;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
	  
	#viewer {
		max-width: 300px !important;
		margin-left: auto;
		margin-right: auto;		
	}
	
	table {
		width: 300px;
		margin-left: auto;
		margin-right: auto;
	}
	
	
}


/* Mobile */
@media (max-width: 900px) {

    .navbar-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        display: none; /* caché par défaut */
        padding: 10px;
    }

    .nav-links.active {
        display: flex; /* affiché quand ouvert */
    }

    .menu-toggle {
        display: block;
        align-self: flex-end;


    }
	
	.logo img {
		display: none;			
	}
	
	.citation {
		display: none;
	}
	
	
	  .container-colmeta {
		flex-direction: column;
	  }

	  .colonne-gauche-meta,
	  .colonne-droite-meta {
		flex: none;
		padding: 5px;
		width: 100%;
	  }
	  
	  .tview {
		width: 600px;
		margin-left: auto;
		margin-right: auto;
	}
	  
	  iframe {
		width:600px;
		margin-left: auto;
		margin-right: auto;
		display: block;
	  }
	  
	  #viewer {
		width: 600px;
		margin-left: auto;
		margin-right: auto;
	  }
	  
	  
	  table {
		width: 600px;
		margin-left: auto;
		margin-right: auto;

	}
	  
	  footer {
		width: 100%;
		background-color: white;
		border-top: 2px solid #333;
		padding: 2px;
		font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	}
		
	.logo-bar {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
		gap: 0px;
		align-items: center;
		justify-items: center;
	}

	.logo-bar img {
		max-height: 30px;
		width: 100%;
		object-fit: contain;
	}

	.foot_credits {
		padding-top: 0px;
		padding-bottom: 5px;
		text-align: center;
		font-size: 10px;	
	}
	
}

