/* - - - - - - - - - - TYPOS - - - - - - - - - - */
@font-face {
	font-family: "HKGrotesk";
	font-weight: normal;
	font-style: normal;
	src: url('../Fonts/HKGrotesk-Regular.otf');
}

@font-face {
	font-family: "HKGrotesk";
	font-weight: bold;
	font-style: normal;
	src: url('../Fonts/HKGrotesk-Bold.otf');
}

@font-face {
	font-family: "HKGrotesk";
	font-weight: bold;
	font-style: italic;
	src: url('../Fonts/HKGrotesk-BoldItalic.otf');
}

* {
	font-family: "HKGrotesk" !important;
	/*color: #000000 !important;*/
}

/* - - - - - - - - - GENERAL - - - - - - - - - - */
.tx-material-pi1 {
	margin-top: 90px;
}
h1 {
	color: #000000;
	font-weight: bold;
	font-style: normal;
	font-size: 1.6em;
}
h2 {
	color: #000000;
	font-weight: bold;
	font-size: 1.2em;
	margin: 10px 0;
}
h3 {
	color: #000000;
	font-size: 1.0em;
	margin: 10px 0;
	font-weight: bold;

}
.white {
	visibility: hidden;
}
.text-right {
	text-align: right;
}
.pr-0 {
	padding-right: 0;
}
.bloc-image:hover {
	filter: opacity(40%);
}
.bloc-image a {
	text-decoration: none;
	color: #000000;
}
#object-title {
	font-weight: bold;
	margin: 0;
}
.page-title {
	font-size: 3em!important;
}
.imgCover {
	max-width: 100%;
	aspect-ratio: 1/1;
}
.page-list a {
	text-decoration: none;
	color: #000000!important;
}
.video {
	aspect-ratio: 16/9;
	width: 100%;
}
.hidden {
	visibility: hidden;
}
.display {
	display: none!important;
}
hr {
	margin: 40px 0;
}
.bold {
	font-weight: bold;
}
.background-grey {
	background-color: #D2D2D2;
}

/* - - - - - - - - - - NAV - - - - - - - - - */
#nav {
	z-index: 1000;
	position: fixed;
	top: 0;
	left: 13px;
	width: 100%;
	background-color: #ffffff;
	border-bottom: 1px solid #D2D2D2;
	padding: 10px;
}
#user-info, #user-notifications {
	background-color: #ffffff;
	border: 0;
}
#user-notifications {
	padding-top: 3px;
	padding-bottom: 3px;
}
.user-info-btn {
    position: relative;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.user-info-btn img {
    display: block;
}

.notification-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 2px rgba(0,0,0,0.3);
}
#nav a {
	text-decoration: none;
}
#nav h1 {
	text-align: center;
	font-style: italic;
	margin: 0;
}
#bloc-search {
	display: flex;
	justify-content: flex-end;
}
#user {
	z-index: 1001;
	position: fixed;
	top: 45px;
	left: 13px;
	background-color: #ffffff;
	border: 1px solid #D2D2D2;
	border-radius: 20px;
	padding: 10px;
	display: flex;
}
.round-picture {
	height: 60px;
	width: 60px;
	margin-right: 5px;
}
.user-picture {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 100%;
}
#user-name-logout {
	margin: auto;
}
#user-name {
	margin: 0;
}
#user-logout {
	background-color: #ffffff;
	font-weight: bold;
	border: none;
	padding: 0;
	margin: 0;
}
#show-what-search, #show-what-search-samples {
	margin: auto 10px;
}
#what-search {
	z-index: 1001;
	position: fixed;
	top: 60px;
	right: 40px;
	background-color: #ffffff;
	border: 1px solid #D2D2D2;
	border-radius: 20px;
	padding: 10px;
	max-width: 400px;
}
#what-search p {
	margin: 0;
}
#searchBar {
	border: 1px solid #D2D2D2;
	padding: 5px 15px;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	width: 300px;
}
.border-bottom-radius {
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
}
#bloc-search ul {
	position: absolute;
	z-index: 1002;
	background-color: #ffffff;
	list-style-type: none;
	padding: 5px 0;
	width: 300px;
	border: 1px solid #D2D2D2;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
}
#bloc-search ul li {
	padding: 5px 15px;
	cursor: pointer;
}
#bloc-search ul li a {
	color: #000000;
}
.result-type-object:hover {
	background-color: #F0E86B;
}
.result-type-author:hover {
	background-color: #F0E86B;
}
.result-type-process:hover {
	background-color: #b8de78;
}
.result-type-resource:hover {
	background-color: #f6794c;
}
.result-type-material:hover {
	background-color: #2674d6;
}
.result-type-typologie:hover {
	background-color: #F0E86B;
}
.result-type-caracteristique:hover {
	background-color: #2674d6;
}
.result-type-samples:hover {
	background-color: #d5c2a1 ;
}
.last-result {
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

/* Results */
.search-tags {
	font-size: 20px;
	margin: auto 10px;
}
.cross-mark {
	cursor: pointer;
}
.bad-search {
	margin-top: 40px;
	font-size: 20px;
}
.results-search {
	margin-top: 40px;
}

/* List */
#navResources:hover
{
	color: #f6794c !important;
}

#navMaterial:hover
{
	color: #2674d6 !important;
}

#navProcess:hover
{
	color: #b8de78 !important;
}
#navSamples:hover
{
	color: #d5c2a1 !important;
}
#menu {
    text-align: center;
	font-weight: bold;
}
.menuItem {
	display: flex;
}
#menu a {
	color: #000000 !important;
	text-decoration: none;
	align-content: flex-end;
	line-height: 100%;
}
.explore {
	text-decoration: none;
	color: #000000;
	font-weight: bold;
}
.explore:hover {
	text-decoration: underline!important;
}

/* Objects */
.objects-list {
	padding-left: 25px;
}
.letter {
	font-size: 3em!important;
	font-weight: bold;
	margin-bottom: 0;
}
.yellow {
	border-left: 7px solid #F0E86B;
}

/* Object */
.object-title {
	margin-bottom: 10px;
}
.informations h1 {
	padding-top: 10px;
}
.previousNext a {
	color: #000000;
	text-decoration: none;
}
.previousNext p {
	font-weight: bold;
	text-align: center;
}
.b-icon {
	cursor: pointer;
	vertical-align: -0.65em !important;
	width: 100%;
}
.author-date {
	margin-bottom: 0!important;
	color: #929292;
}
.block {
	padding-top: 20px;
}
.block ul {
	list-style-type: none;
	padding: 0;
}
.block ul li {
	font-size: 1.5em;
	font-weight: bold;
}
.block ul li a {
	text-decoration: none;
	color: #000000;
}

.block ul li .material:hover {
	color: #2674d6 !important;
}
.block ul li .process:hover {
	color: #b8de78 !important;
}

/* Resource */
.resource-title {
	margin-bottom: 10px;
}
.parents {
	margin-bottom: 0!important;
	color: #929292;
}
.parents a {
	text-decoration: none;
	color: #929292;
}
.legend {
	font-weight: bold;
	color: #929292;
}
.buttonSources {
	font-weight: bold;
	background-color: #ffffff;
	border: none;
}
#sources {
	border-left: 1px solid #929292;
	overflow-y: scroll;
	overflow-x: hidden;
	overflow-wrap: break-word;
	height: 150px;
	padding-left: 10px;
}
/* Materials */
#filterByTags {
	border-radius: 100%;
	background-color: #ffffff;
	font-size: 15px;
	border: 1px solid #000000;
	font-weight: bold;
	vertical-align: middle;
}
.dark {
	background-color: #000000!important;
	color: #ffffff!important;
}
.tags-list td {
	padding: 10px 10px 10px 0;
}
.tag-category {
	width: 25%;
}
.tag-not-select {
	background-color: #ffffff;
	border: 1px solid #000000;
	color: #000000;
	border-radius: 20px;
	padding: 0 10px;
	margin: 0 5px;
}
.tag-select {
	background-color: #000000;
	border: 1px solid #000000;
	color: #ffffff!important;
	border-radius: 20px;
	padding: 0 10px;
	margin: 0 5px;
}
.blue {
	border-left: 7px solid #2674d6;
}

/* Material */
.material-title {
	margin-bottom: 10px;
}
.information {
	color: #ffffff!important;
	border-radius: 100%;
	background-color: #000000!important;
	font-size: 15px;
	border: 1px solid #000000;
	font-weight: bold;
	vertical-align: middle;
	padding: 0 7px;
	cursor: pointer;
}
.information-bloc {
	float: right;
	margin-top: -340px;
	width: 45%;
	background: rgba(0, 0, 0, .7);
	border-radius: 10px;
	padding: 20px;
	color: #ffffff;
	position: relative;
}
.information-bloc h3 {
	color: #ffffff!important;
}
.information-blue {
	color: #ffffff!important;
	border-radius: 100%;
	background-color: #7096ff!important;
	font-size: 12px;
	border: 1px solid #7096ff;
	font-weight: bold;
	padding: 0 6px;
	margin-right: 5px;
}
.tag-title {
	display: flex;
	justify-content: space-between;
}
.tag {
	color: #ffffff;
	background-color: #000000;
	padding: 5px 10px;
	border-radius: 20px;
}
.supplier ul {
	list-style-type: none;
	padding-left: 0;
}
/* Process */
.video-process {
	margin-top: 50px;
}

/* Samples */
.flex {
	display: flex;
}
#procedetheque {
	width: 259px;
	height: auto;
}
#bloc-search-samples {
	display: flex;
}
#bloc-search-samples ul {
	position: absolute;
	z-index: 1002;
	background-color: #ffffff;
	list-style-type: none;
	padding: 5px 0;
	width: 500px;
	border: 1px solid #D2D2D2;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
}
/* 🔹 Style pour Chrome, Edge, Safari, Brave (WebKit) */
#bloc-search ul::-webkit-scrollbar, #bloc-search-samples ul::-webkit-scrollbar, #bodytext-input::-webkit-scrollbar, #sources-input::-webkit-scrollbar {
	width: 8px;
}
#bloc-search ul::-webkit-scrollbar-track, #bloc-search-samples ul::-webkit-scrollbar-track, #bodytext-input::-webkit-scrollbar-track, #sources-input::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 10px;
}
#bloc-search ul::-webkit-scrollbar-thumb, #bloc-search-samples ul::-webkit-scrollbar-thumb, #bodytext-input::-webkit-scrollbar-thumb, #sources-input::-webkit-scrollbar-thumb {
	background-color: #999;
  	border-radius: 10px;
  	border: 2px solid transparent; /* effet d'espace autour */
  	background-clip: padding-box;
}
#bloc-search ul:hover::-webkit-scrollbar-thumb, #bloc-search-samples ul:hover::-webkit-scrollbar-thumb, #bodytext-input:hover::-webkit-scrollbar-thumb, #sources-input:hover::-webkit-scrollbar-thumb {
  	background-color: #666; /* couleur plus visible au survol */
}
/* 🔸 Style pour Firefox */
#bloc-search ul, #bloc-search-samples ul, #bodytext-input, #sources-input {
  	scrollbar-width: thin;               /* réduit l'épaisseur */
  	scrollbar-color: #999 transparent;   /* thumb + track */
}
#bloc-search ul:hover, #bloc-search-samples ul:hover, #bodytext-input:hover, #sources-input:hover {
  	scrollbar-color: #666 transparent;
}
#bloc-search-samples ul li {
	padding: 5px 15px;
	cursor: pointer;
}
#bloc-search-samples ul li a {
	color: #000000;
}
#searchBarSamples {
	border: 1px solid #D2D2D2;
	padding: 5px 15px;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	width: 500px;
}
#what-search-samples {
	z-index: 1001;
	position: fixed;
	background-color: #ffffff;
	border: 1px solid #D2D2D2;
	border-radius: 20px;
	padding: 10px;
}
#what-search-samples p {
	margin: 0;
}
#search-results {
	margin-left: 10px;
	width: 100%;
}
#search-samples {
	margin: auto;
}
.pict-samples {
	width: 100%;
}
.sample-info p {
	margin-bottom: 2px;
}
.show-more {
	border: 1px solid;
	border-color: #D2D2D2;
	color: #000000;
	padding: 5px 15px;
	border-radius: 20px;
	background-color: #ffffff;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.show-more:hover {
	background-color: #f1f1f1;
	border-color: #b1b1b1;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Update */
.timeline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
}

.step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
	cursor: pointer;
}

.step .dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #e5e5e5;
	z-index: 2;
}

.step.active .dot {
  	background: #4a4a4a; /* couleur active */
}

.step span {
	margin-top: 8px;
	font-size: 14px;
	color: #888;
}

.step.active span {
  	font-weight: bold;
  	color: #4a4a4a;
}

.line {
	position: absolute;
	top: 10px; /* centre vertical des points */
	left: 50%;
	width: 100%;
	height: 2px;
	background: #e5e5e5;
	z-index: 1;
}

.step:last-child .line {
  	display: none;
}
.input-design {
	border: 1px solid #D2D2D2;
	padding: 5px 15px;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
}
#steps-navigation {
	text-align: end;
}
.update-label {
	margin: auto 0;
}
.classification-select {
    width: 100%;
    max-width: 400px;
    padding: 0.5em;
    font-size: 1rem;
    border: 1px solid #D2D2D2;
    border-radius: 0.4em;
    background-color: #fff;
    color: #222;
}

/* BACKEND */
.admin-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	border-left: 4px solid #ddd;
	cursor: pointer;
	transition: background-color 0.2s ease; /* 🔹 ajout de la transition */
}
.admin-card:hover {
	background-color: #ddd;
}
.admin-card-validated {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	border-left: 4px solid #ddd;
}

/* Accessibilité : focus bien visible */
.classification-select:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}

/* Indentation hiérarchique avec espaces insécables */
.classification-select option {
    padding-left: 0.5em;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Pour simuler une arborescence visuelle */
.classification-select option[data-level="1"] { 
	padding-left: 1.5em; 
}
.classification-select option[data-level="2"] { 
	padding-left: 3em; 
}
.classification-select option[data-level="3"] { 
	padding-left: 4.5em; 
}

.materials-tree { 
	list-style: none; 
	padding-left: 0; 
	margin: 0; 
}
.materials-tree .tree-row { 
	display: flex; 
	align-items: center; 
	margin: 4px 0; 
}
.tree-toggle { 
	background: none; 
	border: none; 
	cursor: pointer; 
	width: 24px; 
	text-align: center; 
	padding: 0; 
	margin-right: 6px; 
}
.tree-emptyslot { 
	display: inline-block;
	width: 24px; 
	margin-right: 6px; 
}
.tree-label { 
	margin-left: 6px; 
}
.materials-children { 
	list-style: none; 
	padding-left: 20px; 
	margin: 0; 
}
.tree-toggle:focus,
.tree-toggle:hover {
  	outline: 2px solid #005fcc;
  	border-radius: 3px;
}
/* Checkbox focus accessible */
input[type="checkbox"]:focus {
  	outline: 3px solid #005fcc;
  	outline-offset: 2px;
}
#searchBarManifestObject, #searchBarRelatedObject {
	width: 300px;
}
#searchResultsManifestObject, #searchResultsRelatedObject {
	position: absolute;
	z-index: 1002;
	background-color: #ffffff;
	list-style-type: none;
	padding: 5px 0;
	width: 300px;
	border: 1px solid #D2D2D2;
	border-bottom-left-radius: 20px;
	border-bottom-right-radius: 20px;
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
}
#searchResultsManifestObject li, #searchResultsRelatedObject li {
	padding: 5px 15px;
	cursor: pointer;
}
#searchResultsManifestObject li:hover, #searchResultsRelatedObject li:hover {
	background-color: #c2d6fd;
}
/*--COOKIE--*/
.tx-om-cookie-consent .om-cookie-panel {
	width: 100%;
	padding: 10px!important;
	margin: 0!important;
}
.cookie-panel__description p {
	padding: 0!important;
	font-size: 14px!important;
}
.button {
	font-size: 12px!important;
	font-weight: normal!important;
	color: #ffffff!important;
	border-radius: 2px!important;
	cursor: pointer!important;
}
.acceptAll {
	background-color: #b8de78!important;
	border: 1px solid #e1fbb3!important;
}
.onlyEssential, .saveAndClose {
	background-color: #595E5F!important;
	border: 1px solid #AFB1B2!important;
}
.onlyEssential {
	margin-left: 2px!important;
	margin-right: 2px!important;
}
.cookie-link {
	font-family: 'Open Sans SemiBold'!important;
	font-size: 14px!important;
	color: #595E5F!important;
	text-decoration: none!important;
}
.cookie-link:hover {
  	color: #b8de78 !important;
}
input[type="checkbox"]:not(#nav-trigger):checked+label::after {
	left: 4px!important;
	top: -2px!important;
	color: #b8de78!important;
}
.om-cookie-panel .cookie-panel__checkbox + label::before {
  	border: 2px solid #b8de78!important;
}
.cookies-table {
  	font-size: 16px!important;
}
.cookies-table thead th {
  	text-align: center!important;
  	padding: 10px 5px!important;
  	border-bottom: 2px solid #b4b4b4!important;
}
.cookies-table tbody td {
  	padding: 10px 5px!important;
  	border-bottom: 1px solid #b4b4b4!important;
}
/* FOOTER */
.signature {
	text-align: center;
	margin-bottom: 20px;
	margin-top: 40px;
}
.signature p {
	margin: 0;
}
.signature .dateMaj {
	color: #929292;
}

/* PHONE */
@media (max-width: 767px) {
	#menu {
		font-size: 2rem;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	#searchBar, #bloc-search ul {
		width: 130px!important;
	}
	#nav > ul {
		display: flex;
		justify-content: start;
	}
	.bodytext {
		-webkit-column-count:1;
		-moz-column-count: 1;
		column-count: 1;
	}
	.flex {
		display: block!important;
	}
	#searchBarSamples {
		width: 100%!important;
	}
	#search-samples {
		width: 100%;
		margin: 0!important;
	}
	#what-search-samples {
		margin: 10px;
		top: initial;
		left: 0;
		max-width: fit-content;
	}
	#procedetheque {
		margin: 10px auto;
		width: 100%;
	}
}

/* TABLET AND MORE */
@media (min-width: 768px) {
	#menu {
		order: 2;
		text-align: left;
	}
	#home {
		margin-left: 7%;
		margin-right: 7%;
	}
	.bodytext {
		-webkit-column-count:2;
		-moz-column-count: 2;
		column-count: 2;
		text-align: justify;
		column-gap: 60px;
	}
	.children {
		padding-left: 40px;
	}
	.tag-title {
		width: 400px;
	}
}
/* - - - - - - - - - DESKTOP - - - - - - - - - */
@media (min-width: 1030px) {
	#nav > ul {
		display: flex;
		justify-content: center;
	}
}

/* - - - - - - - - - AFFICHAGE NAVIGATION EN FONCTION DES ECRANS - - - - - - - - - */
@media (min-width: 768px) and (max-width: 991px) {
	#searchBar, #bloc-search ul {
		width: 200px!important;
	}
	#menu {
		font-size: 3rem;
	}
	.menuItemFirst {
		height: 61px;
	}
	.menuItemMiddle {
		height: 67px;
	}
	.menuItemLast {
		height: 68px;
	}
	#searchBarSamples {
		width: 400px!important;
	}
	#what-search-samples {
		top: 175px!important;
		left: 360px!important;
		max-width: 400px!important;
	}
}
@media (min-width: 992px) and (max-width: 1198px) {
	#menu {
		font-size: 3.5rem;
	}
	.menuItemFirst {
		height: 90px;
	}
	.menuItemMiddle {
		height: 93px;
	}
	.menuItemLast {
		height: 92px;
	}
	#what-search-samples {
		top: 175px!important;
		left: 400px!important;
		max-width: 500px!important;
	}
}
@media (min-width: 1199px) and (max-width: 1400px) {
	#menu {
		font-size: 4.5rem;
	}
	.menuItemFirst {
		height: 110px;
	}
	.menuItemMiddle {
		height: 113px;
	}
	.menuItemLast {
		height: 112px;
	}
	#what-search-samples {
		top: 175px!important;
		left: 430px!important;
		max-width: 500px!important;
	}
}
@media (min-width: 1400px) {
	#menu {
		padding: 0 30px;
		font-size: 5rem;
	}
	.menuItemFirst {
		height: 130px;
	}
	.menuItemMiddle {
		height: 132px;
	}
	.menuItemLast {
		height: 130px;
	}
	#what-search-samples {
		top: 175px!important;
		left: 470px!important;
		max-width: 500px!important;
	}
}