/*!
Theme Name: CSC — Les guides Café
Theme URI: https://www.chacunsoncafe.fr/blog
Author: Chacun Son Café
Author URI: https://www.chacunsoncafe.fr
Description: Thème du blog "Les guides Café" de Chacun Son Café. Thème hybride (templates PHP + theme.json) implémentant le design system 2026 : palette noir/bleu sur fond neutre chaud, typographie Roboto, cartes articles, méga-menu et sidebar e-commerce PrestaShop.
Version: 1.0.1
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csc-guides
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
	/* Couleurs */
	--csc-ink: #0a0a0a;            /* texte principal, fonds noirs, pills actives */
	--csc-gray: #6b6b6b;           /* texte secondaire, méta, labels */
	--csc-gray-light: #e4e4e4;     /* bordures cartes, séparateurs */
	--csc-gray-label: #eeeeee;     /* fond pills catégorie sur cartes */
	--csc-bg: #f5f3ef;             /* fond de page */
	--csc-surface: #ffffff;        /* cartes, header, nav */
	--csc-link: #0021cb;           /* accent unique : liens, CTA */
	--csc-link-hover: #001a9e;
	--csc-on-dark: #cfcfcf;        /* texte secondaire sur fond noir */
	--csc-on-dark-muted: #b3b3b3;  /* description footer */
	--csc-on-dark-faint: #999999;  /* copyright */
	--csc-border-dark: #333333;    /* séparateur copyright */

	/* Typographie */
	--csc-font: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	--csc-fs-h1: 42px;
	--csc-fs-h2: 26px;
	--csc-fs-card-title: 21px;
	--csc-fs-lead: 22px;
	--csc-fs-body: 17px;
	--csc-fs-excerpt: 14.5px;
	--csc-fs-meta: 13.5px;
	--csc-fs-small: 12.5px;

	/* Layout */
	--csc-container: 1400px;
	--csc-pad-h: 48px;
	--csc-sidebar-w: 300px;
	--csc-grid-gap: 28px;
	--csc-layout-gap: 32px;
	--csc-article-gap: 128px;

	/* Rayons */
	--csc-radius-card: 16px;
	--csc-radius-img: 12px;
	--csc-radius-thumb: 10px;
	--csc-radius-sm: 8px;
	--csc-radius-pill: 100px;

	/* Ombres */
	--csc-shadow-card-hover: 0 14px 28px rgba(61, 43, 31, 0.14);
	--csc-shadow-mega: 0 4px 8px rgba(0, 0, 0, 0.05);

	/* Motion */
	--csc-t-fast: 0.15s ease;
	--csc-t-card: 0.18s ease;

	/* Header (hauteur mesurée par JS pour positionner le méga-menu) */
	--csc-header-h: 64px;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--csc-bg);
	color: var(--csc-ink);
	font-family: var(--csc-font);
	font-size: var(--csc-fs-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--csc-ink); color: #fff; }

img { max-width: 100%; height: auto; }

a { color: var(--csc-link); }
a:hover { color: var(--csc-link-hover); }

button { font-family: inherit; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--csc-ink);
	color: #fff;
	padding: 10px 18px;
}
.skip-link:focus { left: 0; color: #fff; }

.csc-container {
	max-width: var(--csc-container);
	margin: 0 auto;
	padding-left: var(--csc-pad-h);
	padding-right: var(--csc-pad-h);
}

/*--------------------------------------------------------------
# Header / navigation
--------------------------------------------------------------*/
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: var(--csc-surface);
	border-bottom: 1px solid var(--csc-gray-light);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.site-header__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: none;
}
.site-header__brand a { display: block; line-height: 0; }
.site-header__logo { width: 72px; height: auto; display: block; }
.site-header__bcorp { width: 26px; height: auto; display: block; }

.site-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	flex: 1;
	min-width: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }

.site-nav__item { position: relative; }

.site-nav__link {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	color: var(--csc-ink);
	text-decoration: none;
	white-space: nowrap;
	border-radius: 25px;
	padding: 10px 12px;
	background: transparent;
	border: none;
	cursor: pointer;
	transition: background var(--csc-t-fast);
}
.site-nav__link:hover,
.site-nav__item.is-open > .site-nav__link {
	background: #e2e2e2;
	color: var(--csc-ink);
}
.site-nav__chevron { transition: transform var(--csc-t-fast); }
.site-nav__item.is-open .site-nav__chevron { transform: rotate(180deg); }

/* Méga-menu */
.mega-menu {
	position: fixed;
	top: var(--csc-header-h);
	left: 0;
	right: 0;
	background: var(--csc-surface);
	border-top: 1px solid #ccc;
	box-shadow: var(--csc-shadow-mega);
	z-index: 70;
	padding: 48px var(--csc-pad-h);
	display: none;
	flex-direction: row;
	justify-content: center;
	gap: 64px;
}
.site-nav__item.is-open .mega-menu {
	display: flex;
	animation: csc-mega-in 0.22s ease-out forwards;
}
.mega-menu--large { gap: 48px; }

@keyframes csc-mega-in {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

.mega-menu__col {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: fit-content;
}
.mega-menu--large .mega-menu__col { gap: 48px; }

.mega-menu__link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-decoration: none;
	color: var(--csc-ink);
}
.mega-menu__title {
	font-size: 16px;
	font-weight: 600;
	white-space: nowrap;
}
.mega-menu--large .mega-menu__title { font-size: 25px; }
.mega-menu__link:hover .mega-menu__title { text-decoration: underline; }
.mega-menu__subtitle {
	font-size: 13px;
	font-style: italic;
	color: var(--csc-ink);
	white-space: nowrap;
}
.mega-menu--large .mega-menu__subtitle { font-size: 17px; }
.mega-menu__subtitle .emoji { font-style: normal; }

/* Hamburger (mobile) */
.site-header__burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	flex-direction: column;
	gap: 4px;
}
.site-header__burger span {
	width: 22px;
	height: 2px;
	background: var(--csc-ink);
	display: block;
}

/*
 * Desktop uniquement : la nav en flex:1 ne se centre que dans l'espace
 * restant après le logo, donc son milieu n'est pas celui du conteneur
 * (décalé vers la droite d'autant que la largeur du bloc logo). Une
 * grille à 3 pistes (logo / nav / piste vide symétrique) épingle le logo
 * à gauche et centre la nav sur le conteneur entier, quelle que soit la
 * largeur du logo — la 3e piste vide fait contrepoids à droite.
 */
@media (min-width: 1025px) {
	.site-header__inner {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
	}
	.site-header__brand { justify-self: start; }
}

/*--------------------------------------------------------------
# Drawer mobile
--------------------------------------------------------------*/
.mobile-menu {
	position: fixed;
	inset: 0;
	height: 100dvh;
	background: var(--csc-surface);
	z-index: 200;
	display: none;
	flex-direction: column;
	overflow: hidden;
}
.mobile-menu.is-open {
	display: flex;
	animation: csc-drawer-in 0.28s ease-out forwards;
}
@keyframes csc-drawer-in {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}

.mobile-menu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--csc-gray-light);
	flex: none;
}
.mobile-menu__bar-left { display: flex; align-items: center; gap: 12px; }
.mobile-menu__back,
.mobile-menu__close {
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	line-height: 0;
}
.mobile-menu__view-title { font-size: 17px; font-weight: 700; }

.mobile-menu__body {
	flex: 1;
	min-height: 0;
	overflow-y: auto;
	padding: 8px 20px;
}
.mobile-menu__list { display: none; }
.mobile-menu__list.is-current { display: block; }

.mobile-menu__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 18px 0;
	border: none;
	border-bottom: 1px solid #f0f0f0;
	background: none;
	text-align: left;
	text-decoration: none;
	color: var(--csc-ink);
	font-size: 17px;
	cursor: pointer;
}

body.mobile-menu-open { overflow: hidden; }

/*--------------------------------------------------------------
# Bandeau accroche
--------------------------------------------------------------*/
.tagline-band { background: var(--csc-surface); }
.tagline-band__text {
	font-size: 17px;
	line-height: 1.5;
	margin: 0;
	padding-top: 28px;
	padding-bottom: 20px;
}
.tagline-band__accent { color: var(--csc-link); }
.tagline-band__muted { color: var(--csc-gray); }
.tagline-band__ink { color: var(--csc-ink); }

/*--------------------------------------------------------------
# Pills de filtre catégorie
--------------------------------------------------------------*/
.filter-band { background: var(--csc-surface); }
.filter-pills {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scrollbar-width: none;
	align-items: stretch;
	padding-top: 4px;
	padding-bottom: 28px;
	cursor: grab;
}
.filter-pills::-webkit-scrollbar { display: none; }
.filter-pills.is-dragging { cursor: grabbing; user-select: none; }
.filter-pill { -webkit-user-drag: none; }

.filter-pill {
	flex: none;
	border-radius: var(--csc-radius-pill);
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	background: transparent;
	color: var(--csc-gray);
	border: 1px solid var(--csc-ink);
	text-decoration: none;
	transition: background var(--csc-t-fast), color var(--csc-t-fast), border-color var(--csc-t-fast);
}
.filter-pill:hover,
.filter-pill.is-active {
	background: var(--csc-ink);
	color: #fff;
	border-color: var(--csc-ink);
	font-weight: 700;
}

/*--------------------------------------------------------------
# Layout principal (contenu + sidebar)
--------------------------------------------------------------*/
.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--csc-sidebar-w);
	gap: var(--csc-layout-gap);
	align-items: start;
	padding-top: 40px;
	padding-bottom: 72px;
}
.layout--article { gap: var(--csc-article-gap); }

/*--------------------------------------------------------------
# Grille de cartes
--------------------------------------------------------------*/
.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--csc-grid-gap);
	min-width: 0;
}

.article-card {
	background: var(--csc-surface);
	border-radius: var(--csc-radius-card);
	overflow: hidden;
	border: 1px solid var(--csc-gray-light);
	display: flex;
	flex-direction: column;
	transition: transform var(--csc-t-card), box-shadow var(--csc-t-card);
}
.article-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--csc-shadow-card-hover);
}

.article-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--csc-gray-label);
}
.article-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.article-card__body {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.cat-label {
	align-self: flex-start;
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--csc-gray);
	background: var(--csc-gray-label);
	padding: 5px 11px;
	border-radius: var(--csc-radius-pill);
	text-decoration: none;
}

.article-card__title {
	font-size: var(--csc-fs-card-title);
	font-weight: 600;
	line-height: 1.25;
	margin: 0;
}
.article-card__title a {
	color: var(--csc-ink);
	text-decoration: none;
}
.article-card__title a:hover { color: var(--csc-link); }

.article-card__excerpt {
	font-size: var(--csc-fs-excerpt);
	line-height: 1.55;
	color: var(--csc-gray);
	margin: 0;
	flex: 1;
}

.article-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 4px;
}
.article-card__byline { display: flex; flex-direction: column; gap: 2px; }
.article-card__author { font-size: 12.5px; font-weight: 600; color: var(--csc-ink); }
.article-card__readtime { font-size: 12px; font-weight: 600; color: var(--csc-gray); }
.article-card__more {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--csc-link);
	text-decoration: none;
}

/* Bouton "Plus d'articles" */
.load-more-wrap {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	margin-top: 8px;
}
.load-more {
	border: 1px solid var(--csc-gray);
	border-radius: var(--csc-radius-pill);
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 700;
	color: var(--csc-ink);
	background: transparent;
	cursor: pointer;
	transition: background var(--csc-t-fast), color var(--csc-t-fast);
}
.load-more:hover { background: var(--csc-ink); color: #fff; }
.load-more[disabled] { opacity: 0.5; cursor: wait; }

.article-grid__empty {
	grid-column: 1 / -1;
	color: var(--csc-gray);
	font-size: var(--csc-fs-excerpt);
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/
.sidebar {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.sidebar__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--csc-ink);
	margin: 0 0 16px;
}

/* Bannière promo */
.promo-banner {
	border-radius: var(--csc-radius-card);
	overflow: hidden;
	background: var(--csc-ink);
}
.promo-banner__media {
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}
.promo-banner__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.promo-banner__body { padding: 18px; }
.promo-banner__title {
	font-size: 19px;
	font-weight: 600;
	color: var(--csc-bg);
	margin: 0 0 6px;
}
.promo-banner__text {
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--csc-on-dark);
	margin: 0 0 16px;
}
.promo-banner__cta {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: var(--csc-ink);
	border: 1px solid var(--csc-on-dark);
	padding: 10px 18px;
	border-radius: var(--csc-radius-pill);
	text-decoration: none;
	transition: background var(--csc-t-fast), color var(--csc-t-fast);
}
.promo-banner__cta:hover { background: #fff; color: var(--csc-ink); }

/* Derniers articles */
.recent-list { display: flex; flex-direction: column; gap: 14px; }
.recent-item {
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: inherit;
}
.recent-item__thumb {
	width: 72px;
	height: 72px;
	flex: none;
	border-radius: var(--csc-radius-thumb);
	overflow: hidden;
	background: var(--csc-gray-label);
}
.recent-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.recent-item__meta {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
}
.recent-item__title {
	font-size: 14.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--csc-ink);
}
.recent-item:hover .recent-item__title { color: var(--csc-link); }
.recent-item__readtime { font-size: 12px; font-weight: 600; color: var(--csc-gray); }

/* Must-have (produits PrestaShop) */
.musthave-list { display: flex; flex-direction: column; gap: 14px; }
.musthave-item {
	display: flex;
	gap: 12px;
	align-items: center;
	background: var(--csc-surface);
	border: 1px solid var(--csc-gray-light);
	border-radius: var(--csc-radius-img);
	padding: 10px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow var(--csc-t-card);
}
.musthave-item:hover { box-shadow: var(--csc-shadow-card-hover); }
.musthave-item__thumb {
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: var(--csc-radius-sm);
	overflow: hidden;
	background: var(--csc-gray-label);
}
.musthave-item__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.musthave-item__meta { display: flex; flex-direction: column; gap: 3px; }
.musthave-item__name { font-size: 13.5px; font-weight: 600; color: var(--csc-ink); }
.musthave-item__price { font-size: 12.5px; font-weight: 700; color: var(--csc-gray); }

/* Instagram */
.insta-block__handle { font-size: 13px; color: var(--csc-gray); margin: 0 0 14px; }
.insta-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
}
.insta-grid > * {
	aspect-ratio: 1 / 1;
	border-radius: var(--csc-radius-sm);
	overflow: hidden;
	background: var(--csc-gray-label);
}
/* Le plugin instagram-feed injecte sa propre grille : on le contraint doucement */
.insta-block #sb_instagram { padding-bottom: 0 !important; }

/*--------------------------------------------------------------
# Page article (single)
--------------------------------------------------------------*/
.article-hero {
	width: 100%;
	aspect-ratio: 32 / 9;
	overflow: hidden;
	background: var(--csc-gray-label);
}
.article-hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.single-article { min-width: 0; }
.single-article .cat-label { margin-bottom: 18px; }

.single-article__title {
	font-size: var(--csc-fs-h1);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 18px;
}

.single-article__meta {
	display: flex;
	gap: 14px;
	align-items: center;
	flex-wrap: wrap;
	font-size: var(--csc-fs-meta);
	color: var(--csc-gray);
	font-weight: 600;
	margin-bottom: 36px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--csc-gray-light);
}

.single-article__lead {
	font-size: var(--csc-fs-lead);
	line-height: 1.5;
	color: var(--csc-gray);
	margin: 0 0 28px;
	font-weight: 400;
}

.entry-content { font-size: var(--csc-fs-body); line-height: 1.75; }
.entry-content > * { margin-top: 0; margin-bottom: 22px; }
.entry-content h2 {
	font-size: var(--csc-fs-h2);
	font-weight: 600;
	line-height: 1.3;
	margin: 36px 0 18px;
}
.entry-content h3 {
	font-size: var(--csc-fs-card-title);
	font-weight: 600;
	margin: 28px 0 14px;
}
.entry-content a { color: var(--csc-link); font-weight: 600; }
.entry-content a:hover { color: var(--csc-link-hover); }
.entry-content img,
.entry-content figure img {
	display: block;
	/* min() plutôt qu'une valeur fixe : 820px est un plafond desktop, mais
	   un attribut width/style inline posé par l'éditeur de blocs sur l'image
	   peut prendre le dessus sur width:100% ci-dessous — sans min(), 820px
	   dépasserait un écran mobile (~375px) et ferait déborder toute la page
	   horizontalement (débordement constaté sur mobile, un seul article). */
	max-width: min(820px, 100%);
	width: 100%;
	height: auto;
	margin-left: auto;
	margin-right: auto;
	border-radius: var(--csc-radius-img);
}
.entry-content figure { margin: 36px 0; }
.entry-content figcaption {
	font-size: 13px;
	color: var(--csc-gray);
	margin-top: 10px;
	text-align: center;
}
.entry-content blockquote {
	border-left: 3px solid var(--csc-link);
	margin: 28px 0;
	padding: 4px 0 4px 20px;
	color: var(--csc-gray);
}
.entry-content ul, .entry-content ol { padding-left: 24px; }

/* Tableaux : enveloppés dans .csc-table par csc_guides_wrap_tables() pour
   défiler horizontalement sur mobile au lieu de faire déborder la page.
   Préfixe .csc-table pour passer devant les styles du bloc Tableau (core). */
.entry-content .csc-table {
	overflow-x: auto;
	margin: 28px 0;
	background: var(--csc-surface);
	border: 1px solid var(--csc-gray-light);
	border-radius: var(--csc-radius-sm);
}
.entry-content figure.wp-block-table { margin: 28px 0; }
.entry-content figure.wp-block-table .csc-table { margin: 0; }
.entry-content .csc-table table {
	/* width: 100% passe devant un attribut width="…" laissé par l'éditeur. */
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.5;
}
.entry-content .csc-table thead { border: 0; }
.entry-content .csc-table th,
.entry-content .csc-table td {
	padding: 12px 16px;
	border: 0;
	border-bottom: 1px solid var(--csc-gray-light);
	text-align: left;
	vertical-align: top;
}
.entry-content .csc-table th {
	background: var(--csc-bg);
	font-weight: 600;
}
.entry-content .csc-table tr:last-child > td,
.entry-content .csc-table tr:last-child > th { border-bottom: 0; }
.entry-content .csc-table thead tr:last-child > th { border-bottom: 1px solid var(--csc-gray-light); }
.entry-content .csc-table tbody tr:nth-child(even) > td { background: #faf9f7; }
.entry-content .wp-block-table.is-style-stripes { border-bottom: 0; }
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: transparent; }

/*--------------------------------------------------------------
# Pages standard, recherche, 404, commentaires, pagination
--------------------------------------------------------------*/
.page-plain {
	background: var(--csc-surface);
	border-radius: var(--csc-radius-card);
	border: 1px solid var(--csc-gray-light);
	padding: 40px;
	min-width: 0;
}
.page-plain .entry-title {
	font-size: var(--csc-fs-h1);
	font-weight: 600;
	line-height: 1.15;
	margin: 0 0 24px;
}

.archive-header { padding-top: 8px; }
.archive-header__title {
	font-size: 28px;
	font-weight: 600;
	margin: 0 0 8px;
}
.archive-header__desc {
	color: var(--csc-gray);
	font-size: var(--csc-fs-excerpt);
	margin: 0 0 16px;
	max-width: 640px;
}

.pagination {
	grid-column: 1 / -1;
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 24px;
	font-size: 14px;
	font-weight: 600;
}
.pagination .page-numbers {
	display: inline-block;
	padding: 8px 14px;
	border-radius: var(--csc-radius-pill);
	border: 1px solid var(--csc-gray-light);
	background: var(--csc-surface);
	color: var(--csc-ink);
	text-decoration: none;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--csc-ink);
	color: #fff;
	border-color: var(--csc-ink);
}

.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--csc-gray-light); }
.comments-area .comment-list { list-style: none; padding: 0; }
.comments-area .comment-body {
	background: var(--csc-surface);
	border: 1px solid var(--csc-gray-light);
	border-radius: var(--csc-radius-img);
	padding: 18px;
	margin-bottom: 16px;
	font-size: var(--csc-fs-excerpt);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-form .search-field {
	width: 100%;
	border: 1px solid var(--csc-gray-light);
	border-radius: var(--csc-radius-sm);
	padding: 10px 14px;
	font-family: inherit;
	font-size: 14px;
	background: var(--csc-surface);
}
.comment-form .submit,
.search-form .search-submit {
	border: none;
	border-radius: var(--csc-radius-pill);
	padding: 12px 28px;
	font-size: 14px;
	font-weight: 700;
	background: var(--csc-ink);
	color: #fff;
	cursor: pointer;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background: var(--csc-ink);
	color: var(--csc-on-dark);
	padding: 64px var(--csc-pad-h) 32px;
	margin-top: 24px;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 36px;
	max-width: var(--csc-container);
	margin: 0 auto;
}
.site-footer__brand-name {
	font-weight: 600;
	font-size: 22px;
	color: var(--csc-bg);
	margin: 0 0 10px;
}
.site-footer__brand-desc {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--csc-on-dark-muted);
	margin: 0;
	max-width: 280px;
}
.site-footer__heading {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 14px;
}
.site-footer__links { display: flex; flex-direction: column; gap: 10px; }
.site-footer__links a {
	font-size: 13.5px;
	color: var(--csc-on-dark);
	text-decoration: none;
}
.site-footer__links a:hover { color: #fff; text-decoration: underline; }

/*
 * Rendu des blocs génériques (Paragraphe, Titre, Catégories, Navigation,
 * Liste…) quand une colonne du footer est remplie via Apparence → Widgets
 * plutôt que par le repli PHP ci-dessus — même charte, sans que l'admin
 * ait à re-styler chaque bloc manuellement.
 */
.site-footer .footer-widget { min-width: 0; }
.site-footer .footer-widget:not(:last-child) { margin-bottom: 20px; }
.site-footer p,
.site-footer .wp-block-paragraph {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--csc-on-dark-muted);
	margin: 0 0 10px;
}
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4,
.site-footer .wp-block-heading {
	font-size: 22px;
	font-weight: 600;
	color: var(--csc-bg);
	margin: 0 0 10px;
}
.site-footer a { color: var(--csc-on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.site-footer ul li { font-size: 13.5px; }
.site-footer .wp-block-navigation { font-size: 13.5px; }
.site-footer .wp-block-buttons .wp-block-button__link {
	border-radius: var(--csc-radius-pill);
	background: #fff;
	color: var(--csc-ink);
	font-weight: 700;
	text-decoration: none;
}
.site-footer .wp-block-buttons .wp-block-button__link:hover { background: var(--csc-on-dark); }

.site-footer__bottom {
	max-width: var(--csc-container);
	margin: 32px auto 0;
	padding-top: 20px;
	border-top: 1px solid var(--csc-border-dark);
	font-size: 12.5px;
	color: var(--csc-on-dark-faint);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
}
.site-footer__bottom a { color: var(--csc-on-dark-faint); text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }

/*--------------------------------------------------------------
# Responsive — tablette (769px – 1024px)
--------------------------------------------------------------*/
@media (max-width: 1024px) {
	.article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	.layout,
	.layout--article {
		grid-template-columns: 1fr;
		gap: 48px;
	}
	.sidebar { max-width: 640px; }
}

/*--------------------------------------------------------------
# Responsive — mobile (≤768px)
--------------------------------------------------------------*/
@media (max-width: 768px) {
	:root {
		--csc-pad-h: 20px;
		--csc-fs-h1: 30px;
		--csc-grid-gap: 20px;
	}

	.site-nav { display: none; }
	.site-header__burger { display: flex; }

	.tagline-band__text { font-size: 15px; padding-top: 18px; padding-bottom: 14px; }

	.article-grid { grid-template-columns: 1fr; }

	.entry-content .csc-table table { font-size: 14px; }
	.entry-content .csc-table th,
	.entry-content .csc-table td { padding: 10px 12px; }

	.layout { padding-top: 20px; padding-bottom: 40px; }

	.article-hero { aspect-ratio: 16 / 9; }

	.site-footer { padding: 40px 24px 28px; }
	.site-footer__grid { grid-template-columns: 1fr; }

	.page-plain { padding: 24px; }
}
