/* Page Documents — grille de telechargement */
.documents-page-main h2 {
	margin-bottom: 1.5rem;
}

.documents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 1.35rem;
	margin-bottom: 2rem;
}

.documents-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.documents-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
}

.documents-card-preview {
	position: relative;
	aspect-ratio: 4 / 3;
	background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
	overflow: hidden;
}

.documents-card-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.documents-card:hover .documents-card-preview img {
	transform: scale(1.04);
}

.documents-card-preview--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--webiste-second-color, #1579be);
	font-size: 3rem;
	opacity: 0.35;
}

.documents-card-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.3rem 0.65rem;
	font-family: Outfit, Montserrat, sans-serif;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(6px);
	border-radius: 999px;
	max-width: calc(100% - 1.5rem);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.documents-card-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.1rem 1.15rem 1.15rem;
	gap: 0.85rem;
}

.documents-card-title {
	margin: 0;
	font-family: Outfit, Montserrat, sans-serif;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--webiste-footer-color, #0f172a);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.documents-card-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding-top: 0.5rem;
	border-top: 1px solid #f1f5f9;
}

.documents-card-type {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: Outfit, sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	color: #94a3b8;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.documents-card-type ion-icon {
	font-size: 1rem;
	color: #ef4444;
}

.documents-card-download {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	border-radius: 50%;
	color: #fff !important;
	text-decoration: none !important;
	background: var(--webiste-second-color);
	box-shadow: 0 8px 20px -6px rgba(30, 64, 127, 0.45);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.documents-card-download ion-icon {
	font-size: 1.35rem;
}

.documents-card-download:hover {
	transform: scale(1.08);
	box-shadow: 0 12px 28px -8px rgba(30, 64, 127, 0.55);
	color: #fff !important;
}

.documents-card-download:focus-visible {
	outline: 2px solid var(--webiste-third-color, #1579be);
	outline-offset: 2px;
}

.documents-empty {
	grid-column: 1 / -1;
	text-align: center;
	padding: 3rem 1.5rem;
	color: #64748b;
	font-family: Outfit, sans-serif;
	font-size: 1rem;
	background: #f8fafc;
	border-radius: 16px;
	border: 1px dashed #cbd5e1;
}

.documents-sidebar h2 {
	margin-bottom: 1rem;
}

.page-nav-section.documents-nav li a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

@media (max-width: 767px) {
	.documents-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.documents-card-preview {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 575px) {
	.documents-grid {
		grid-template-columns: 1fr;
	}
}
