html {
	height: 100vh;
	margin: 0;
	padding: 0;
}

body {
	background-color:#6A6A6A;
	margin: 0;
	padding: 2%;
	height: 100vh; /* Prendre toute la hauteur de la fenêtre */
	overflow: hidden;
	box-sizing: border-box;
	/* Retirer display: flex et flex-direction: column pour garder le layout horizontal */
}

.corps
{
	width: 69%;
	height: calc(100vh - 120px);
	min-height: calc(100vh);
	max-height: calc(100vh - 120px);
	background-color: #6A6A6A;
	border: solid;
	border-width: 0px;
	border-color: #cc0000;
	float: right;
	color: #E8EDDF;
	font-family: Roboto;
	opacity: 0.9;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
}

.menu
{
	width:29%;
	height: calc(100vh - 4vh - 50px);
	max-height: calc(100vh - 4vh - 50px);
	background-color:#4E4E4E;
	border:solid;
	border-width:0px;
	border-color:#cc0000;
	float:left;
	opacity: 0.85;
	border-radius: 10px;
	padding-bottom: 15px;
	margin-bottom: 10px;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	overflow: hidden;
}

.menu_texte
{
	font-size:14px;
	color:#E8EDDF;
	font-family:Roboto;
	text-align:justify;
}

.menu_lien
{
	font-size:17px;
	color:#E8EDDF;
	font-family:Roboto;
	text-align:center;
	text-decoration: none;
	padding-left:20px;
}

.menu_lien.active
{
	background-color: #F5CB5C;
	color:#333533;
	border-radius: 3px;
	padding: 2px 5px;
	font-weight: bold;
}

.menu_titre
{
	font-size:22px;
	color:#E8EDDF;
	font-family:Roboto;
	text-align:center;
}

/* Styles pour le menu dynamique */
.menu-folder-header
{
	cursor: pointer;
	padding: 2px 5px;
	margin: 1px 0;
	border-radius: 2px;
}

.menu-folder-header:hover
{
	background-color: rgba(0,0,0,0.1);
}

.menu-folder-content
{
	border-left: 1px solid rgba(0,0,0,0.2);
	margin-left: 8px;
}

.menu-file
{
	padding: 1px 0;
}

.folder-icon, .file-icon
{
	margin-right: 3px;
}

/* Message d'état vide (aucun document sélectionné) */
.empty-state
{
	text-align: center;
	padding: 50px;
	color: #E8EDDF;
}

.empty-state__text
{
	font-size: 18px;
}

/* Boîte pour le titre du fichier */
.file-title-box
{
	background-color: #4E4E4E;
	border-radius: 10px;
	padding: 10px 20px;
	margin: 5px auto;
	text-align: center;
	max-width: 80%;
	opacity: 0.9;
	flex-shrink: 0;
	flex-grow: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.file-title-box h1
{
	margin: 0;
	background-color: #4E4E4E;
	border: none;
	border-radius: 10px;
	padding: 8px 20px;
	color: #E8EDDF;
	font-family: Roboto;
	font-size: 24px;
	font-weight: bold;
	flex: 1;
	text-align: left;
	opacity: 0.9;
	transition: all 0.3s ease;
}

.file-title-box a
{
	text-decoration: none;
	color: #E8EDDF;
	flex: 1;
	display: block;
}

.file-title-box a:hover h1
{
	background-color: #5A5A5A;
	opacity: 1;
	transform: translateY(-2px);
}

/* Bouton toggle menu stylé */
.toggle-menu-btn
{
	background-color: #4E4E4E;
	border: none;
	border-radius: 10px;
	padding: 8px 20px;
	margin: 0;
	display: inline-block;
	color: #E8EDDF;
	font-family: Roboto;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	opacity: 0.9;
	transition: all 0.3s ease;
	flex-shrink: 0;
	white-space: nowrap;
}

.toggle-menu-btn:hover
{
	background-color: #5A5A5A;
	opacity: 1;
	transform: translateY(-2px);
}

.toggle-menu-btn:active
{
	transform: translateY(0);
}


/* Boîte pour le header */
.header{
	background-color: #4E4E4E;
	border-radius: 10px;
	padding: 10px 20px;
	margin: 5px auto 10px auto;
	text-align: center;
	max-width: 90%;
	opacity: 0.9;
}

.header h1
{
	margin: 0;
	color: #E8EDDF;
	font-family: Roboto;
	font-size: 28px;
	font-weight: bold;
}

/* Classes pour l'indentation du menu */
.menu-level-0 { margin-left: 0px; }
.menu-level-1 { margin-left: 15px; }
.menu-level-2 { margin-left: 30px; }
.menu-level-3 { margin-left: 45px; }
.menu-level-4 { margin-left: 60px; }
.menu-level-5 { margin-left: 75px; }

/* Container pour le PDF qui prend l'espace restant */
.pdf-container
{
	flex: 1 1 0%;
	position: relative;
	overflow: hidden;
	margin: 0;
	padding: 0;
	min-height: 300px;
	width: 100%;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.pdf-iframe
{
	flex: 1 1 0%;
	width: 100%;
	height: 100%;
	min-height: 300px;
	border: none;
	display: block;
	background-color: white;
	box-sizing: border-box;
}

.pdf-canvas
{
	flex: 1 1 0%;
	width: 100%;
	height: auto;
	min-height: 300px;
	display: block;
	background-color: white;
	box-sizing: border-box;
	margin: 0 auto;
}

/* Champ de filtre pour le menu */
.menu-filter
{
	width: calc(100% - 20px); /* Prendre toute la largeur moins le padding */
	margin: 10px;
	padding: 8px;
	border: none;
	border-radius: 5px;
	background-color: #5A5A5A;
	color: #E8EDDF;
	font-family: Roboto;
	font-size: 14px;
	box-sizing: border-box;
}

.menu-filter::placeholder
{
	color: #6A6A6A;
}

.menu-filter:focus
{
	outline: none;
	background-color: #6A6A6A;
}

/* Bouton pour réduire tous les dossiers */
.menu-collapse-btn
{
	background-color: #4E4E4E;
	border: none;
	border-radius: 10px;
	padding: 8px 20px;
	margin: 8px 10px 10px 10px;
	display: block;
	color: #E8EDDF;
	font-family: Roboto;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	opacity: 0.9;
	transition: all 0.3s ease;
	width: calc(100% - 20px);
	box-sizing: border-box;
}

.menu-collapse-btn:hover
{
	background-color: #5A5A5A;
	opacity: 1;
	transform: translateY(-2px);
}

.menu-collapse-btn:active
{
	transform: translateY(0);
}

/* Conteneur scrollable pour la liste des fichiers du menu */
.menu-content
{
	flex: 1 1 0;
	overflow-y: auto;
	overflow-x: hidden;
	padding: 0 5px;
	margin-top: 5px;
	min-height: 0;
}

/* Style pour la barre de défilement du menu */
.menu-content::-webkit-scrollbar {
	width: 8px;
}

.menu-content::-webkit-scrollbar-track {
	background: #4E4E4E;
	border-radius: 4px;
}

.menu-content::-webkit-scrollbar-thumb {
	background: #6A6A6A;
	border-radius: 4px;
}

.menu-content::-webkit-scrollbar-thumb:hover {
	background: #6A6A6A;
}

/* Style pour les éléments cachés par le filtre */
.menu-hidden {
	display: none !important;
}
