/*=================================*/
/* E-improve
/* November 2016
/*=================================*/

blockquote:before, blockquote:after,
q:before, q:after {
	content:"";
}
blockquote, q {
	quotes:"" "";
}
/* HTML5 tags */
header, section, footer, aside, nav, article, figure { display: block; }

/*=====================*/
/*=== Slider Styles ===*/
/*=====================*/

.slider-wrapper { 
	width: 72%; 
	margin: auto; /*100px auto; */
}

/*====================*/
/*=== Other Styles ===*/
/*====================*/
.clear {
	clear:both;
}

/*==============================*/
/*=== E-improve theme Styles ===*/
/*==============================*/
body { font-family: 'Segoe UI', sans-serif; display: flex; flex-direction: column; min-height: 100vh; }

/* Layout Principal */
header { background: #2c3e50; color: white; padding: 0rem; text-align: center; }
        
.container { 
	display: flex; 
	flex: 1; /* Remplit l'espace entre header et footer */
	flex-direction: row;
	width: 70%;
	margin:auto;
}

nav { background: #ecf0f1; width: 200px; border:1px solid #007bff; border-radius:8px;}
main { flex: 1; background: white; }
inter { background: white; width: 10px; }        
footer { background: #34495e; color: white; text-align: center; padding: 1rem; }

/* Responsive Design */
@media (max-width: 768px) {
	.container { flex-direction: column; }
	nav { width: 100%; border-bottom: 1px solid #ddd; }
}

/*====================*/
/*=== E-improve login form ===*/
/*====================*/	

#formLogin{
	background-color: #e7e7e7;
	border:1px solid #1084a7;
	border-radius: 5px;
	margin: 6px 6px 10px 6px;
	-moz-border-radius:5px;
	-webkit-border-radius: 5px;
	/*line-height: 1;*/
	padding: 10px;
	/*width: auto;*/
	height: auto;
}
#formLogin button.login {
    margin-top:8px;
    margin-bottom: 8px;
}
#formLogin div{
	margin-bottom: 5px;
}
#formLogin label{
	text-transform: none !important; /*uppercase;*/
}

/* form elements */
select, textarea, input{
	background-color: #fff;
	border:1px solid #b8b8b6;
	border-radius: 5px;
	color : #333;
	cursor: pointer;
	padding-left:3px;
	-moz-border-radius: 5px;
	-webkit-border-radius: 5px;
}
input[type="text"], textarea{
	/*width: 795px;*/
}
input[type="text"], input[type="password"]{
	width: 120px;
	height: 20px;
}
select:hover, select:focus, textarea:hover, textarea:focus, input:hover, input:focus{
	background-color: #f6f6f6;
	border-radius: 5px;
	color : #333;
	border:1px solid #1084a7;
	cursor: pointer;
}
button {
	color : #7f7f7f;
	background-color: #e8e8e8;
	border:1px solid #7f7f7f;
	border-radius: 8px;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;
	cursor: pointer;
	min-height: 28px;
	padding:5px;
	vertical-align:middle;
	/*text-transform:uppercase;*/
	font-weight:bold;
}
/*=================== menu =================*/
:root {
	--sidebar-bg: #2c3e50;
	--sidebar-hover: #c6cbd5; /*#34495e;*/
	--accent-color: #1a73e8;
	--text-color: #5067c1; /*#ecf0f1;*/
}

body { font-family: 'Segoe UI', sans-serif; margin: 0; display: flex; }

/* Style de la Sidebar */
/*.sidebar {
	width: 260px;
	height: 100vh;
	background-color: var(--sidebar-bg);
	color: var(--text-color);
	position: fixed;
	overflow-y: auto;
}
*/
.sidebar-header {
	padding: 10px;
	text-align: center;
	font-size: 1em;
	font-weight: bold;
	background: rgba(0,0,0,0.2);
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Elements de liste */
.menu-item {
	list-style: none;
	padding: 0;
	margin: 0;
	font-weight: bold;
}

.menu-btn {
	width: 100%;
	padding: 0px 8px;
	background: none;
	border: none;
	color: var(--text-color);
	text-align: left;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: background 0.3s;
}

.menu-btn:hover { background-color: var(--sidebar-hover); }

/* Sous-menu (caché par défaut) */
.submenu {
	background-color: white;/*background-color: rgba(0,0,0,0.1);*/
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out;
}

.submenu a {
	display: block;
	padding: 3px 20px;
	color: #e6a934;
	text-decoration: none;
	font-size: 12px;
	transition: color 0.3s;
}

.submenu a:hover {
	color: var(--text-color);
	background-color: rgba(255,255,255,0.05);
}

/* Indicateur flèche */
.arrow {
	border: solid var(--text-color);
	border-width: 0 2px 2px 0;
	display: inline-block;
	padding: 3px;
	transform: rotate(45deg);
	transition: transform 0.3s;
}

.active .arrow { transform: rotate(-135deg); }
.active + .submenu { max-height: 200px; }
		
/* Ajuster selon le nombre d'items */

/* Zone de contenu principal */
.main-content { margin-left: 260px; padding: 20px; flex-grow: 1; }

/*====================================================/*
/* Ajustements pour mobile (écrans de moins de 600px) */
@media (max-width: 600px) {
	.custom-card {
		flex-direction: column; /* Aligne les éléments verticalement */
		text-align: center;     /* Centre le texte pour un meilleur look mobile */
	}
    
	.custom-card img {
		margin-right: 0 !important; /* Enlève la marge de droite */
		margin-bottom: 10px;        /* Ajoute un espace sous l'image */
	}

	.custom-card div {
		text-align: center !important; /* Centre le texte sur mobile */
	}
}
