/* ── Actualité & Guides shared styles ── */

.acgu-content {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 6rem 1.5rem 3rem;
}

/* ── Page header ── */
.acgu-page-header {
	text-align: center;
	margin-bottom: 1.5rem;
	max-width: 600px;
}

.acgu-page-header h1 {
	font-size: 2rem;
	font-weight: 800;
	color: #222;
	margin: 0 0 0.4rem;
}

.acgu-page-header p {
	font-size: 0.95rem;
	color: #888;
	margin: 0;
}

/* ── Search bar ── */
.acgu-search {
	display: flex;
	width: 100%;
	max-width: 750px;
	margin-bottom: 2rem;
	border: 1.5px solid #e0e0e0;
	border-radius: 0.6rem;
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #fff;
}

.acgu-search:focus-within {
	border-color: var(--color-theme-main, #E2781A);
	box-shadow: 0 0 0 3px rgba(226, 120, 26, 0.08);
}

.acgu-search-input {
	flex: 1;
	border: none;
	outline: none;
	padding: 0.6rem 1rem;
	font-size: 0.9rem;
	background: transparent;
}

.acgu-search-btn {
	border: none;
	background: none;
	padding: 0.6rem 1rem;
	cursor: pointer;
	color: #999;
	font-size: 1rem;
	transition: color 0.15s;
}

.acgu-search-btn:hover {
	color: var(--color-theme-main, #E2781A);
}

/* ── Horizontal card list ── */
.acgu-list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	max-width: 750px;
}

.acgu-card {
	background: #fff;
	border-radius: 0.7rem;
	overflow: hidden;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
	transition: box-shadow 0.2s, border-color 0.2s;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: row;
	border: 1px solid #f0f0f0;
}

.acgu-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
	border-color: #e0e0e0;
}

/* ── Card cover (left side) ── */
.acgu-card-cover {
	width: 200px;
	min-height: 140px;
	flex-shrink: 0;
	overflow: hidden;
	background: #f5f5f5;
}

.acgu-card-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.acgu-card-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #FFF5EC, #FFE5C8);
}

.acgu-card-cover-placeholder i {
	font-size: 2rem;
	color: var(--color-theme-main, #E2781A);
	opacity: 0.4;
}

/* ── Card body (right side) ── */
.acgu-card-body {
	padding: 0.9rem 1.2rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.acgu-card-title {
	font-size: 1.05rem;
	font-weight: 700;
	color: #222;
	margin: 0 0 0.3rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.acgu-card-summary {
	font-size: 0.84rem;
	color: #666;
	margin: 0 0 0.5rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.acgu-card-meta {
	font-size: 0.75rem;
	color: #aaa;
	display: flex;
	gap: 0.3rem;
}

.acgu-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin-top: 0.4rem;
}

/* ── Tags ── */
.acgu-tag {
	font-size: 0.68rem;
	font-weight: 600;
	padding: 0.15rem 0.5rem;
	background: #FFF5EC;
	color: var(--color-theme-main, #E2781A);
	border-radius: 1rem;
}

/* ── Empty state ── */
.acgu-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.8rem;
	padding: 4rem 1rem;
	color: #bbb;
}

.acgu-empty i {
	font-size: 3rem;
	opacity: 0.4;
}

.acgu-empty span {
	font-size: 0.95rem;
}

/* ── Pagination ── */
.acgu-pagination {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}

.acgu-page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.6rem;
	border-radius: 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: #555;
	text-decoration: none;
	background: #fff;
	border: 1px solid #e0e0e0;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.acgu-page-link:hover {
	background: #FFF5EC;
	border-color: var(--color-theme-main, #E2781A);
	color: var(--color-theme-main, #E2781A);
}

.acgu-page-link.active {
	background: var(--color-theme-main, #E2781A);
	color: #fff;
	border-color: var(--color-theme-main, #E2781A);
}

/* ── Detail page ── */
.acgu-detail {
	width: 100%;
	max-width: 720px;
}

.acgu-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--color-theme-main, #E2781A);
	text-decoration: none;
	margin-bottom: 1.5rem;
	transition: opacity 0.15s;
}

.acgu-back-link:hover {
	opacity: 0.7;
}

.acgu-detail-cover {
	border-radius: 0.8rem;
	overflow: hidden;
	margin-bottom: 1.8rem;
	max-height: 380px;
}

.acgu-detail-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.acgu-detail-title {
	font-size: 1.9rem;
	font-weight: 800;
	color: #1a1a1a;
	margin: 0 0 0.8rem;
	line-height: 1.3;
	letter-spacing: -0.02em;
}

.acgu-detail-meta {
	font-size: 0.85rem;
	color: #999;
	margin-bottom: 1rem;
	display: flex;
	gap: 0.3rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid #eee;
}

.acgu-detail-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 1.8rem;
}

/* ── Article body typography ── */
.acgu-article-body {
	font-size: 1.05rem;
	line-height: 1.85;
	color: #2c2c2c;
	word-break: break-word;
	letter-spacing: 0.005em;
}

.acgu-article-body h1 {
	font-size: 1.65rem;
	font-weight: 800;
	margin: 2.2rem 0 0.8rem;
	color: #1a1a1a;
	letter-spacing: -0.01em;
}

.acgu-article-body h2 {
	font-size: 1.35rem;
	font-weight: 700;
	margin: 2rem 0 0.7rem;
	color: #1a1a1a;
	padding-bottom: 0.4rem;
	border-bottom: 1px solid #f0f0f0;
}

.acgu-article-body h3 {
	font-size: 1.15rem;
	font-weight: 700;
	margin: 1.6rem 0 0.5rem;
	color: #222;
}

.acgu-article-body h4,
.acgu-article-body h5,
.acgu-article-body h6 {
	font-size: 1rem;
	font-weight: 700;
	margin: 1.2rem 0 0.4rem;
	color: #333;
}

.acgu-article-body p {
	margin: 0 0 1.2rem;
}

.acgu-article-body img {
	max-width: 100%;
	border-radius: 0.5rem;
	margin: 1rem 0;
}

.acgu-article-body a {
	color: var(--color-theme-main, #E2781A);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.acgu-article-body a:hover {
	opacity: 0.8;
}

.acgu-article-body ul,
.acgu-article-body ol {
	margin: 0.5rem 0 1.2rem 1.5rem;
}

.acgu-article-body li {
	margin-bottom: 0.4rem;
}

.acgu-article-body blockquote {
	border-left: 3px solid var(--color-theme-main, #E2781A);
	margin: 1.2rem 0;
	padding: 0.8rem 1.2rem;
	background: #FFF8F0;
	color: #555;
	border-radius: 0 0.4rem 0.4rem 0;
	font-style: italic;
}

.acgu-article-body pre {
	background: #f5f5f5;
	border-radius: 0.5rem;
	padding: 1rem 1.2rem;
	overflow-x: auto;
	font-family: monospace;
	font-size: 0.85rem;
	margin: 1.2rem 0;
	line-height: 1.6;
}

.acgu-article-body code {
	font-family: monospace;
	font-size: 0.85em;
	background: #f0f0f0;
	padding: 0.15rem 0.4rem;
	border-radius: 0.25rem;
}

.acgu-article-body pre code {
	background: none;
	padding: 0;
	font-size: inherit;
}

.acgu-article-body table {
	border-collapse: collapse;
	width: 100%;
	margin: 1.2rem 0;
	font-size: 0.95rem;
}

.acgu-article-body td,
.acgu-article-body th {
	border: 1px solid #ddd;
	padding: 0.6rem 0.85rem;
	text-align: left;
}

.acgu-article-body th {
	background: #f9f9f9;
	font-weight: 600;
}

.acgu-article-body hr {
	border: none;
	border-top: 1px solid #e0e0e0;
	margin: 2rem 0;
}

.acgu-article-body iframe {
	max-width: 100%;
	border-radius: 0.4rem;
	margin: 1rem 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
	.acgu-content {
		padding: 5rem 1rem 2rem;
	}

	.acgu-detail-title {
		font-size: 1.6rem;
	}

	.acgu-card-cover {
		width: 160px;
	}
}

@media (max-width: 600px) {
	.acgu-content {
		padding: 4.5rem 0.75rem 1.5rem;
	}

	.acgu-page-header h1 {
		font-size: 1.5rem;
	}

	.acgu-card {
		flex-direction: column;
	}

	.acgu-card-cover {
		width: 100%;
		height: 160px;
		min-height: unset;
	}

	.acgu-detail-title {
		font-size: 1.35rem;
	}

	.acgu-detail-cover {
		max-height: 250px;
	}

	.acgu-article-body {
		font-size: 0.95rem;
		line-height: 1.75;
	}
}