body {
	font-family: 'Arial', sans-serif;
	background-color: #f4f7f6;
	color: #333;
	display: flex;
	flex-direction: column;
	min-height: 100vh; /* Pour que le footer reste en bas */
}

/* Application de la typographie moderne Tajawal sur l'en-tête */
.header-section {
	font-family: 'Tajawal', sans-serif;
	background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
	color: #f8fafc;
	padding: 50px 0 60px 0;
	text-align: center;
	border-bottom: 4px solid #3b82f6;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

/* Effet visuel subtil en arrière-plan */
.header-section::before {
	content: '';
	position: absolute;
	top: -50px;
	left: -50px;
	width: 200px;
	height: 200px;
	background: rgba(59, 130, 246, 0.1);
	border-radius: 50%;
	z-index: 1;
}

.header-section .container {
	position: relative;
	z-index: 2;
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
}


/* Bouton de retour stylisé */
.header-nav {
	display: flex;
	justify-content: flex-start; /* Aligné à droite en RTL */
	margin-bottom: 25px;
}

.back-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: rgba(255, 255, 255, 0.1);
	color: #f8fafc;
	padding: 8px 18px;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 500;
	font-size: 0.95em;
	backdrop-filter: blur(5px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	transition: all 0.3s ease;
}

.back-btn:hover {
	background-color: #3b82f6;
	color: #ffffff;
	border-color: #3b82f6;
	transform: translateY(-2px);
}

/* Titre principal */
.header-section h1 {
	font-size: 2.8em;
	font-weight: 800;
	margin-bottom: 20px;
	letter-spacing: -0.5px;
	color: #ffffff;
}

/* Paragraphe de description */
.header-section p {
	font-size: 1.25em;
	line-height: 1.8;
	max-width: 850px;
	margin: 0 auto;
	color: #cbd5e1;
	font-weight: 400;
}

.header-section p span {
	display: inline-block;
	margin-top: 10px;
	color: #93c5fd; /* Met en valeur la phrase sur l'open source */
} 

.main-content-wrapper {
	flex-grow: 1; /* Permet au contenu principal de prendre l'espace disponible */
	display: flex;
	padding: 20px 0;
	width: 100%; /* S'assure que le wrapper prend toute la largeur */
}
.sidebar {
	flex-basis: 20%; /* 20% de la largeur */
	padding: 15px;
	background-color: #f8f9fa;
	border-right: 1px solid #e9ecef;
	box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}
.sidebar-right {
	border-right: none;
	border-left: 1px solid #e9ecef;
	box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}
.central-content {
	flex-basis: 60%; /* 60% de la largeur */
	padding: 15px;
}
.footer-section {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 20px 0;
	text-align: center;
	border-top: 5px solid #3498db;
	flex-shrink: 0; /* Empêche le footer de rétrécir */
}
.table-responsive {
	margin-top: 20px;
}
.table thead th {
	background-color: #f0f0f0;
	vertical-align: middle;
}
.table tbody tr {
	vertical-align: middle;
}
.btn-like, .btn-download {
	font-size: 0.9em;
	padding: 5px 10px;
}
.form-check-input {
	margin-top: 0.25rem; /* Alignement */
}
.filters-section {
	background-color: #ffffff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	margin-bottom: 20px;
}
.call-to-action {
	background-color: #eaf6fd;
	border: 1px solid #b3e0ff;
	padding: 25px;
	border-radius: 8px;
	text-align: center;
	margin-top: 40px;
}
.call-to-action h3 {
	color: #007bff;
	margin-bottom: 15px;
}
.call-to-action p {
	font-size: 1.1em;
	color: #555;
	margin-bottom: 20px;
}

/* Styles pour la lightbox */
#image-lightbox {
	display: none; /* Ceci doit être 'none' par défaut */
	position: fixed; /* Reste en place même en scrollant */
	z-index: 1000; /* Par-dessus tout le reste */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.8); /* Fond noir semi-transparent */
	/* display: flex; <--- SUPPRIMEZ CETTE LIGNE ! */
	justify-content: center; /* Ces propriétés seront appliquées quand display devient 'flex' via JS */
	align-items: center;   /* Idem */
	cursor: pointer; /* Indique que l'arrière-plan est cliquable pour fermer */
}

/* Le reste de votre CSS pour la lightbox reste inchangé */
#image-lightbox > div {
	position: relative;
	max-width: 90%;
	max-height: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
}

#lightbox-image {
	max-width: 100%;
	max-height: 100%;
	display: block;
	object-fit: contain;
}

#lightbox-close {
	position: absolute;
	top: 10px;
	right: 20px;
	color: #fff;
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
}

#lightbox-close:hover,
#lightbox-close:focus {
	color: #bbb;
	text-decoration: none;
	cursor: pointer;
}

/* Styles existants */
.search-form {
	margin-bottom: 20px;
}
.filter-sort-row {
	margin-bottom: 20px;
}
.pagination {
	margin-top: 20px;
}
.download-action-btn {
	white-space: nowrap; /* Empêche le texte de se casser sur plusieurs lignes */
}
/* Styles pour les mini-images */
.thumbnail-img {
	width: 50px;
	height: 50px; /* Fixe la hauteur pour un meilleur contrôle */
	object-fit: cover; /* Recadre l'image pour qu'elle remplisse l'espace */
	border-radius: 5px;
}



.header-with-tooltip {
position: relative;
display: inline-block;
cursor: help;
}

.header-with-tooltip .tooltip {
visibility: hidden;
opacity: 0;
width: 320px;
background-color: #222;
color: #fff;
text-align: right;
direction: rtl;
border-radius: 8px;
padding: 12px;
position: absolute;
z-index: 1;
top: 120%;
right: 0;
box-shadow: 0 0 10px rgba(0,0,0,0.3);
transition: opacity 0.3s ease;
font-size: 0.95em;
line-height: 1.6;
}

.header-with-tooltip:hover .tooltip {
visibility: visible;
opacity: 1;
}
