/* ==========================================================================
   Base documentaire (GED) — rendu public
   Voir docs/GED_PLAN.md
   ========================================================================== */

.ged-list__icon { width: 34px; vertical-align: middle; }

.ged-list__title {
	font-weight: 600;
	text-decoration: none;
}

.ged-list__ref {
	display: block;
	color: #64748b;
	font-size: .78rem;
}

.ged-list__desc {
	color: #64748b;
	font-size: .82rem;
	line-height: 1.4;
}

.ged-list__date { width: 110px; white-space: nowrap; color: #64748b; }

.ged-list__actions { width: 150px; white-space: nowrap; }

.ged-list__file {
	color: #94a3b8;
	font-size: .72rem;
	padding-top: 4px;
}

/* ── Accordéon par année ──────────────────────────────────────────────────── */

.ged-years .accordion-button { font-weight: 600; }

.ged-years__count {
	margin-left: 10px;
	font-size: .74rem;
	font-weight: 400;
	background: rgba(15, 23, 42, .08);
	border-radius: 12px;
	padding: 1px 9px;
}

/* ── Grille publique ──────────────────────────────────────────────────────── */

.ged-front-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 18px;
	margin: 16px 0;
}

.ged-front-card {
	display: flex;
	flex-direction: column;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s ease, transform .2s ease;
}

.ged-front-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.ged-front-card__preview {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 210px;
	background: #f8fafc;
	overflow: hidden;
}

.ged-front-card__preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
}

.ged-front-card__body { padding: 10px 12px 14px; }

.ged-front-card__title {
	font-size: .92rem;
	line-height: 1.3;
	margin: 0 0 6px;
}

.ged-front-card__title a { text-decoration: none; }

.ged-front-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	font-size: .76rem;
	color: #64748b;
}

.ged-front-card__actions {
	display: flex;
	gap: 6px;
	margin: 10px 0 0;
}

/* ── Pièces jointes et résultats de recherche ─────────────────────────────── */

/* Les documents rattachés reprennent le tableau des documents liés
   (articles_docments.html.twig) : tout le style vient de Bootstrap, il ne
   reste ici que l'espacement entre les deux listes quand elles se suivent. */
.ged-attachments { margin-top: 16px; }

.ged-search-results { margin-top: 32px; }

/* ── Fiche isolée ─────────────────────────────────────────────────────────── */

.ged-fiche {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
	margin: 16px 0;
}

.ged-fiche__thumb img {
	width: 140px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.ged-fiche__body { flex: 1; }

.ged-fiche__title { font-size: 1.1rem; margin: 0 0 6px; }

.ged-fiche__ref,
.ged-fiche__meta {
	color: #64748b;
	font-size: .82rem;
}

.ged-fiche__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 10px 0 14px;
}

.ged-front-tag {
	background: #f1f5f9;
	border-radius: 20px;
	padding: 2px 10px;
	font-size: .74rem;
}

@media (max-width: 575.98px) {
	.ged-fiche { flex-direction: column; }
	.ged-fiche__thumb img { width: 100%; }
	.ged-list__actions { width: auto; }
	.ged-list__date { display: none; }
}

/* ── Page de recherche publique ───────────────────────────────────────────── */

.ged-search__form {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 18px;
}

.ged-search__row {
	display: flex;
	gap: 8px;
}

.ged-search__row input[type="search"] {
	flex: 1;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 8px 12px;
	min-width: 0;
}

.ged-search__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 10px;
}

.ged-search__filters select {
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	padding: 5px 10px;
	font-size: .86rem;
	background: #fff;
}

.ged-search__reset {
	font-size: .82rem;
	color: #64748b;
}

.ged-search__count {
	color: #64748b;
	font-size: .88rem;
	margin-bottom: 10px;
}

.ged-search__empty {
	text-align: center;
	padding: 40px 16px;
	color: #94a3b8;
}

.ged-search__empty i { opacity: .4; display: block; margin-bottom: 10px; }

@media (max-width: 575.98px) {
	.ged-search__row { flex-direction: column; }
	.ged-search__filters select { flex: 1 1 100%; }
}

/* ── Liste regroupée par sous-type ────────────────────────────────────────── */

.ged-groups__head {
	font-size: 1rem;
	font-weight: 600;
	border-bottom: 2px solid #cbd5e1 !important;
	padding-top: 14px;
}
