/*
Theme Name: LRDL
Theme URI: https://www.la-reunion-des-livres.re
Author: Pierre Delaunay
Author URI: https://pierre-delaunay.fr
Description: Thème custom pour La Réunion des Livres, basé sur Underscores (_s). Direction "enseignes de rue créoles" — voir .impeccable/surfaces/homepage.md.
Version: 0.3.2
Requires at least: 6.4
Requires PHP: 8.2
Text Domain: lrdl
*/

/* ==========================================================================
   Tokens — approximations tirées de design/charte/logo-lrdl.jpg. À affiner
   sur des valeurs hex exactes une fois la charte cliente confirmée. Jamais
   #6b63ff (couleur personnelle de Pierre Delaunay, hors sujet ce projet).
   ========================================================================== */

:root {
	/* Couleurs du logo, une par catégorie (vitrine) */
	--c-auteurs: #b84f23;       /* orange — assombri vs. #d9612f d'origine, 3.68:1 en texte blanc ne tenait pas 4.5:1 */
	--c-editeurs: #3f74a6;      /* bleu */
	--c-librairies: #4f3018;    /* brun */
	--c-lecture: #b8916b;       /* beige/tan */
	--c-manifestations: #bd4877; /* rose — assombri vs. #c94f80 d'origine pour tenir 4.5:1 en texte blanc */
	--c-actions: #6f7322;       /* olive — assombri vs. #8c9130 d'origine pour tenir 4.5:1 en texte blanc */
	--c-dedicaces: #8f3457;     /* rose foncé, teinte de la famille rose */

	--c-ink: #241a12;           /* encre proche noir chaud, jamais gris pur */
	--c-ground: #e7c48f;        /* toile de store réunionnaise, saturée — pas crème/parchemin */
	--c-ground-raised: #ffffff;
	--c-line: #c39a5f;
	--c-muted: #4a3820;         /* texte secondaire, ~6.8:1 sur --c-ground (retuné après le durcissement du fond) */

	--font-display: "Manrope", "Segoe UI", sans-serif; /* titres de composants/boutons — neutre, géométrique, institutionnel */
	--font-accent: "Source Serif 4", Georgia, serif;   /* grands titres de section, façon maquette cliente ("À la une") */
	--font-playful: "Baloo 2", "Segoe UI", sans-serif;  /* réservée aux contextes explicitement jeunesse (ex. Salon du livre de jeunesse) */
	--font-body: "Work Sans", "Segoe UI", sans-serif;

	--radius-pill: 999px;    /* navigation et actions uniquement — jamais le contenu */
	--radius-panel: 20px;    /* kiosque "à la une" et surfaces image */
	--radius-content: 6px;   /* cartes de contenu (ouvrages, auteurs), badges — angles nets */

	--space-1: 0.5rem;
	--space-2: 1rem;
	--space-3: 1.75rem;
	--space-4: 2.75rem;
	--space-5: 4.5rem;
	--space-6: 7rem;

	--shadow-panel: 0 14px 30px -14px rgba(36, 26, 18, 0.35);
	--shadow-pill: 0 8px 18px -8px rgba(36, 26, 18, 0.45);

	--ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--c-ground);
	color: var(--c-ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	display: block;
}

a {
	color: inherit;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	line-height: 1.08;
	margin: 0;
	font-weight: 700;
	max-width: 22ch;
	text-wrap: balance;
}

p {
	margin: 0;
	max-width: 68ch;
}

.container {
	width: min(1200px, 100% - 2.5rem);
	margin-inline: auto;
}

/* Surfaces navigateur — theming plutôt que défauts gris */
::selection {
	background: var(--c-auteurs);
	color: #fff;
}

::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}
::-webkit-scrollbar-track {
	background: var(--c-ground);
}
::-webkit-scrollbar-thumb {
	background: var(--c-librairies);
	border-radius: var(--radius-pill);
	border: 3px solid var(--c-ground);
}

:focus-visible {
	outline: 3px solid var(--c-actions);
	outline-offset: 3px;
	border-radius: 4px;
}

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

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	background: var(--c-ink);
	color: #fff;
	padding: 0.75rem 1.25rem;
	z-index: 100;
}
.skip-link:focus {
	left: var(--space-2);
	top: var(--space-2);
}

/* ==========================================================================
   Header — bandeau fin : logo, recherche, réseaux sociaux
   ========================================================================== */

.site-header {
	background: var(--c-ground-raised);
	border-bottom: 3px solid var(--c-ink);
}

.site-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-3);
	padding-block: var(--space-2);
	flex-wrap: wrap;
}

.site-header__brand {
	display: flex;
	align-items: center;
	text-decoration: none;
}

/* Taille unique, strictement identique sur toutes les pages et tous les
   breakpoints — le header partagé ne varie nulle part en dehors de la nav
   catégories (pleine/quiet). Une version différenciée par template
   (accueil plus grand) a existé puis a été retirée : elle créait un écart
   visuel entre gabarits, justement ce que ce composant partagé doit
   éliminer. */
.site-header__logo {
	height: 95px;
	width: auto;
}

.site-header__brand-text {
	margin-left: 0.9rem;
	padding-left: 0.9rem;
	border-left: 1px solid var(--c-line);
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}
.site-header__tagline {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--c-muted);
	max-width: 34ch; /* la formulation complète (Réunion & océan Indien) tient sur 2 lignes, pas 3 */
	line-height: 1.25;
}
.site-header__about-link {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--c-auteurs);
	text-decoration: underline;
	text-underline-offset: 2px;
	width: fit-content;
}
/* La tagline reste visible à toutes les tailles : c'est elle qui lève
   l'ambiguïté "annuaire vs. site d'actualités" signalée en revue, y compris
   (surtout) sur mobile — elle passe sous le logo plutôt que disparaître. */
@media (max-width: 560px) {
	.site-header__brand {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.site-header__brand-text {
		margin-left: 0;
		padding-left: 0;
		border-left: 0;
		margin-top: 0.3rem;
		align-items: center;
		max-width: none;
	}
	.site-header__tagline {
		max-width: none;
	}
}

.site-header__tools {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

.site-search {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--c-ground);
	border: 1px solid var(--c-ink);
	border-radius: var(--radius-pill);
	padding: 0.55rem 1.1rem;
	min-width: 300px;
}
.site-search input {
	border: 0;
	background: none;
	font-family: var(--font-body);
	font-size: 0.9rem;
	width: 100%;
	color: var(--c-ink);
}
.site-search input::placeholder {
	overflow: visible;
	text-overflow: clip;
	color: var(--c-muted);
	opacity: 1; /* Firefox applique une opacité réduite par défaut */
}
.site-search input:focus {
	outline: none;
}
.site-search svg {
	flex-shrink: 0;
}

.site-social {
	display: flex;
	gap: 0.6rem;
}
/* Contour plutôt que plein — même vocabulaire que .is-secondary
   ("Signaler une information") sur la fiche auteur. */
.site-social a {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: transparent;
	border: 1px solid var(--c-ink);
	color: var(--c-ink);
	display: grid;
	place-items: center;
	text-decoration: none;
	transition: transform 0.2s var(--ease-out-strong), background 0.2s, border-color 0.2s;
}
.site-social a:hover {
	border-color: var(--c-manifestations);
	transform: translateY(-2px);
}

/* ==========================================================================
   Enseignes — navigation catégories (vitrines de rue)
   ========================================================================== */

/* Pleine largeur (edge-to-edge) : la nav a son propre bandeau, distinct du
   contenu contenu par .container — pas de max-width ici, juste un padding
   fixe calé sur le gutter du container pour l'alignement visuel. */
/* Fond pleine largeur ; le contenu est centré via le .container interne
   (voir category-nav.php) pour rester aligné avec le header au pixel près. */
.category-street {
	background: var(--c-ground-raised);
	padding-block: var(--space-2);
}

.category-street__title {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: var(--c-muted);
	margin-bottom: var(--space-2);
	font-family: var(--font-body);
	font-weight: 600;
}

.category-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Padding/gap/taille resserrés (par rapport à un premier jet plus large) pour
   que les 7 pilules tiennent sur une seule ligne dans la largeur du
   .container (1200px), sans quoi elles retombent sur deux lignes en
   desktop. Le variant "quiet" partage cette même règle de base — ne jamais
   redonner à l'un des deux variants un padding/font-size différent. */
.category-pill {
	--pill-color: var(--c-auteurs);
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: var(--pill-color);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 0.92rem;
	padding: 0.65rem 1.05rem;
	border-radius: var(--radius-pill);
	text-decoration: none;
	box-shadow: var(--shadow-pill);
	border: 1px solid rgba(0, 0, 0, 0.12);
	transition: transform 0.25s var(--ease-out-strong), box-shadow 0.25s var(--ease-out-strong);
	white-space: nowrap;
}
.category-pill:hover,
.category-pill:focus-visible {
	transform: translateY(-3px) rotate(-0.6deg);
	box-shadow: 0 16px 26px -10px rgba(36, 26, 18, 0.5);
}
.category-pill svg {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}
/* Version allégée — pages internes : le repère couleur reste (bordure +
   pictogramme), sans l'aplat plein réservé à la mise en scène de l'accueil. */
.category-row--quiet .category-pill {
	background: var(--c-ground-raised);
	color: var(--c-ink);
	border: 1px solid var(--pill-color);
	box-shadow: none;
}
.category-row--quiet .category-pill svg {
	color: var(--pill-color);
	stroke: var(--pill-color);
}
.category-row--quiet .category-pill:hover,
.category-row--quiet .category-pill:focus-visible {
	background: var(--pill-color);
	color: #fff;
}
.category-row--quiet .category-pill:hover svg,
.category-row--quiet .category-pill:focus-visible svg {
	color: #fff;
	stroke: #fff;
}
/* Lecture publique reste en texte ink même au survol/focus : le tan est
   trop clair pour du blanc (même règle que la pilule pleine intensité). */
.category-row--quiet .category-pill--lecture:hover,
.category-row--quiet .category-pill--lecture:focus-visible {
	color: var(--c-ink);
}
.category-row--quiet .category-pill--lecture:hover svg,
.category-row--quiet .category-pill--lecture:focus-visible svg {
	color: var(--c-ink);
	stroke: var(--c-ink);
}

.category-pill--auteurs { --pill-color: var(--c-auteurs); }
.category-pill--editeurs { --pill-color: var(--c-editeurs); }
.category-pill--librairies { --pill-color: var(--c-librairies); }
.category-pill--lecture { --pill-color: var(--c-lecture); color: var(--c-ink); }
.category-pill--manifestations { --pill-color: var(--c-manifestations); }
.category-pill--actions { --pill-color: var(--c-actions); }
.category-pill--dedicaces { --pill-color: var(--c-dedicaces); }

/* ==========================================================================
   À la une — kiosque d'affiches sérigraphiées
   ========================================================================== */

.poster-kiosk {
	background: #f7ead2;
	border-block: 3px solid var(--c-ink);
	padding-block: var(--space-3);
	position: relative;
	overflow: hidden;
}

/* Centré, avec fioriture façon trait de plume de part et d'autre — reprend
   le traitement de la maquette cliente pour ce titre "hero" précis. Les
   autres titres de section restent alignés à gauche (titre + lien sur la
   même ligne), un ornement symétrique n'y aurait pas sa place. */
.poster-kiosk__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	margin-bottom: var(--space-3);
}
.poster-kiosk__title {
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--c-ink);
	font-family: var(--font-accent);
	font-weight: 600;
	font-size: clamp(1.8rem, 3vw, 2.6rem);
}
.poster-kiosk__flourish {
	flex-shrink: 0;
	opacity: 0.7;
}
.poster-kiosk__flourish--right {
	transform: scaleX(-1);
}
.poster-kiosk__head p {
	font-size: 0.9rem;
	color: var(--c-muted);
}
@media (max-width: 560px) {
	.poster-kiosk__flourish {
		width: 34px;
	}
}

.poster-kiosk .container {
	position: relative;
}

.poster-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(78vw, 420px);
	gap: var(--space-2);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	mask-image: linear-gradient(to right, black calc(100% - 4rem), transparent 100%);
}
.poster-track::-webkit-scrollbar {
	display: none;
}
.poster-track:focus-within,
.poster-track.is-at-end {
	mask-image: none;
}

.poster-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	margin-top: var(--space-2);
}
.poster-controls__arrow {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--c-ink);
	background: transparent;
	color: var(--c-ink);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	flex-shrink: 0;
}
.poster-controls__arrow:hover,
.poster-controls__arrow:focus-visible {
	background: var(--c-ink);
	color: #fff;
}
.poster-controls__dots {
	display: flex;
	gap: 0.5rem;
}
.poster-controls__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 1px solid var(--c-ink);
	background: transparent;
	padding: 0;
	cursor: pointer;
}
.poster-controls__dot.is-active {
	background: var(--c-ink);
}

.poster-card {
	scroll-snap-align: start;
	border-radius: var(--radius-panel);
	overflow: hidden;
	position: relative;
	aspect-ratio: 16 / 8;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	color: #fff;
	text-decoration: none;
	box-shadow: var(--shadow-panel);
	transition: transform 0.25s var(--ease-out-strong);
}
.poster-card:hover,
.poster-card:focus-visible {
	transform: translateY(-3px);
}
.poster-card__ink {
	position: absolute;
	inset: 0;
	z-index: 0;
}
.poster-card__ink span {
	position: absolute;
	inset: 0;
}
.poster-card--vanille .poster-card__ink span:nth-child(1) { background: var(--c-actions); clip-path: polygon(0 0, 100% 0, 100% 55%, 0 70%); }
.poster-card--vanille .poster-card__ink span:nth-child(2) { background: var(--c-lecture); clip-path: polygon(0 60%, 100% 45%, 100% 100%, 0 100%); }
.poster-card--salon .poster-card__ink span:nth-child(1) { background: var(--c-editeurs); clip-path: polygon(0 0, 100% 0, 100% 40%, 0 60%); }
.poster-card--salon .poster-card__ink span:nth-child(2) { background: var(--c-auteurs); clip-path: polygon(0 55%, 100% 35%, 100% 100%, 0 100%); }
.poster-card--dedicace .poster-card__ink span:nth-child(1) { background: var(--c-dedicaces); clip-path: polygon(0 0, 100% 0, 100% 50%, 0 65%); }
.poster-card--dedicace .poster-card__ink span:nth-child(2) { background: var(--c-manifestations); clip-path: polygon(0 60%, 100% 50%, 100% 100%, 0 100%); }

.poster-card__cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.poster-card__cover-img--contain {
	object-fit: contain;
	background: #fff;
	padding: var(--space-3);
	box-sizing: border-box;
}
/* Visuel réel (photo/logo) : scrim sombre + texte blanc, comme les book-cards
   à couverture. Les cartes sans image (aplats diagonaux) gardent le texte
   ink sur scrim clair — deux registres, chacun lisible sur son propre fond. */
.poster-card:has(.poster-card__cover-img) .poster-card__caption {
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78), transparent 65%);
}
.poster-card:has(.poster-card__cover-img) .poster-card__title {
	color: #fff;
}
.poster-card:has(.poster-card__cover-img) .poster-card__meta {
	color: rgba(255, 255, 255, 0.85);
}

.poster-card__caption {
	position: relative;
	z-index: 1;
	padding: var(--space-2) var(--space-2) var(--space-3);
	background: linear-gradient(to top, rgba(255, 255, 255, 0.82), transparent 70%);
}
.poster-card__title {
	font-family: var(--font-display);
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.3rem, 2.4vw, 1.8rem);
	letter-spacing: -0.01em;
	color: var(--c-ink);
	max-width: none;
}
.poster-card__title.is-jeunesse {
	font-family: var(--font-playful);
}
.poster-card__meta {
	margin-top: 0.4rem;
	font-size: 0.85rem;
	color: var(--c-muted);
}
.poster-card__badge {
	position: absolute;
	top: var(--space-2);
	right: var(--space-2);
	z-index: 1;
	background: #fff;
	color: var(--c-ink);
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.72rem;
	text-transform: uppercase;
	padding: 0.35rem 0.7rem;
	border-radius: var(--radius-content);
}

/* ==========================================================================
   Comptoir de dépôt — mise en avant du formulaire de contribution
   ========================================================================== */

.contribute-counter {
	background: var(--c-lecture);
	border-radius: var(--radius-panel);
	padding: var(--space-3);
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--space-3);
	margin-block: var(--space-3);
	box-shadow: var(--shadow-panel);
}
.contribute-counter .brand-stripe {
	margin-bottom: var(--space-1);
}
.contribute-counter__icon {
	width: 64px;
	height: 64px;
	border-radius: var(--radius-content);
	background: var(--c-ink);
	color: #fff;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}
.contribute-counter h2 {
	font-family: var(--font-accent);
	font-weight: 600;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
}
.contribute-counter p {
	margin-top: 0.4rem;
	color: var(--c-ink);
}
.contribute-counter__cta {
	background: var(--c-ink);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 700;
	padding: 0.9rem 1.6rem;
	border-radius: var(--radius-pill);
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--shadow-pill);
	transition: transform 0.2s var(--ease-out-strong);
}
.contribute-counter__cta:hover {
	transform: translateY(-2px);
}

/* ==========================================================================
   Étals — sections auteurs / ouvrages (contenu réel varié)
   ========================================================================== */

/* Réglette de marque — rappel des barres du vrai logo, jamais le logo lui-même */
.brand-stripe {
	width: 64px;
	height: 5px;
	border-radius: 3px;
	margin-bottom: var(--space-3);
	background: linear-gradient(
		to right,
		var(--c-editeurs) 0 16.6%,
		var(--c-manifestations) 16.6% 33.3%,
		var(--c-actions) 33.3% 50%,
		var(--c-auteurs) 50% 66.6%,
		var(--c-librairies) 66.6% 83.3%,
		var(--c-lecture) 83.3% 100%
	);
}

.shelf {
	padding-block: var(--space-5);
}
.shelf__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: var(--space-3);
	gap: var(--space-2);
	flex-wrap: wrap;
}
.shelf__head h2 {
	font-family: var(--font-accent);
	font-weight: 600;
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}
.shelf__link {
	font-family: var(--font-body);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

.shelf-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: var(--space-2);
}

.book-card {
	aspect-ratio: 3 / 4;
	border-radius: var(--radius-content);
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 1rem;
	color: #fff;
	background: var(--c-muted);
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: var(--shadow-pill);
	transition: transform 0.2s var(--ease-out-strong);
}
.book-card:hover,
.book-card:focus-visible {
	transform: translateY(-3px);
}
/* Vocabulaire "incomplet/placeholder" déjà établi (bordure tiretée --c-line,
   voir .author-hero__portrait--empty, .empty-note) réutilisé ici pour que
   la carte de test de mécanisme ne se confonde pas avec une vraie fiche. */
.book-card--placeholder-test {
	border: 3px dashed var(--c-line);
	box-shadow: none;
}
.book-card__cover-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 0;
}
.book-card:has(.book-card__cover-img)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
	z-index: 0;
}
.book-card__title {
	position: relative;
	z-index: 1;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.2;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.book-card__author {
	position: relative;
	z-index: 1;
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.85);
	margin-top: 0.35rem;
}

.author-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: var(--space-2);
}
/* 8 cards en auto-fill tombent sur 5+3 dans le container 1200px — un
   2×4 propre plutôt qu'une dernière ligne à moitié pleine. */
@media (min-width: 900px) {
	.author-row {
		grid-template-columns: repeat(4, 1fr);
	}
}
.author-card {
	--plaque-color: var(--c-auteurs);
	background: var(--c-ink);
	border-radius: var(--radius-content);
	padding: var(--space-2);
	display: flex;
	gap: 1rem;
	align-items: center;
	text-decoration: none;
	color: var(--c-ground-raised);
	border: 1px solid var(--plaque-color);
	box-shadow: var(--shadow-pill);
	transition: transform 0.2s var(--ease-out-strong);
}
.author-card:hover,
.author-card:focus-visible {
	transform: translateY(-3px);
}
.author-card__portrait {
	width: 52px;
	height: 52px;
	border-radius: var(--radius-content);
	background: var(--plaque-color);
	display: grid;
	place-items: center;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	flex-shrink: 0;
}
.author-card__portrait--photo {
	object-fit: cover;
}
.author-card__name {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.05rem;
}
.author-card__role {
	display: block;
	font-size: 0.82rem;
	color: #cbb99a;
	margin-top: 0.2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

/* Semis d'étoiles très discret — prolonge le concept "rue commerçante
   créole" jusqu'au footer sombre (la nuit tombée sur la rue). CSS pur
   (radial-gradient), pas de filtre SVG, pas d'image chargée. Opacité un
   cran au-dessus de l'essai de comparaison initial (trop imperceptible sur
   une grande surface plate) — à ajuster encore si ça reste trop discret ou
   devient trop présent. */
.site-footer {
	background-color: var(--c-ink);
	background-image:
		radial-gradient(1.5px 1.5px at 20px 30px, rgba(255, 255, 255, 0.22), transparent),
		radial-gradient(1px 1px at 90px 80px, rgba(255, 255, 255, 0.16), transparent),
		radial-gradient(1.5px 1.5px at 150px 20px, rgba(255, 255, 255, 0.19), transparent),
		radial-gradient(1px 1px at 60px 130px, rgba(255, 255, 255, 0.14), transparent),
		radial-gradient(1.5px 1.5px at 190px 150px, rgba(255, 255, 255, 0.18), transparent),
		radial-gradient(1px 1px at 120px 190px, rgba(255, 255, 255, 0.13), transparent),
		radial-gradient(1px 1px at 40px 200px, rgba(255, 255, 255, 0.15), transparent),
		radial-gradient(1.5px 1.5px at 170px 90px, rgba(255, 255, 255, 0.17), transparent);
	background-size: 220px 220px;
	color: var(--c-ground);
	padding-block: var(--space-5) var(--space-4);
	margin-top: var(--space-4);
}
/* Liens du footer : couleur nettement différenciée plutôt que soulignés —
   garde la lisibilité de ce qui est cliquable sans surcharger visuellement. */
.site-footer a {
	color: var(--c-lecture);
	text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}
.site-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: var(--space-3);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid rgba(244, 236, 223, 0.2);
}
.site-footer__grid h3 {
	color: var(--c-ground);
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.8rem;
}
.site-footer__grid ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.5rem;
	font-size: 0.92rem;
	color: #cbb99a;
}
.site-footer__partners {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	flex-wrap: wrap;
	padding-top: var(--space-3);
	font-size: 0.85rem;
	color: #cbb99a;
}
.site-footer__partners-logos {
	display: flex;
	gap: 0.5rem;
	flex-shrink: 0;
}
.site-footer__partners-logo {
	height: 100px;
	width: auto;
	background: #fff;
	border-radius: 4px;
	padding: 6px 10px;
	flex-shrink: 0;
}
.site-footer__partners p {
	margin: 0;
	max-width: none;
}
.site-footer__legal {
	margin-top: var(--space-2);
	font-size: 0.78rem;
	color: #97896f;
}

/* ==========================================================================
   Fiche auteur
   ========================================================================== */

.author-hero {
	padding-block: var(--space-5);
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: var(--space-4);
	align-items: start;
}
.author-hero__portrait {
	width: 220px;
	height: 220px;
	border-radius: var(--radius-panel);
	background: var(--c-auteurs);
	display: grid;
	place-items: center;
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 3rem;
	box-shadow: var(--shadow-panel);
}
.author-hero__portrait--photo {
	object-fit: cover;
}
.author-hero__portrait--empty {
	background: var(--c-ground-raised);
	border: 3px dashed var(--c-line);
	color: var(--c-muted); /* #b8a888 d'origine ne tenait que 2.33:1 sur blanc — trouvé en audit */
	font-size: 0.9rem;
	font-family: var(--font-body);
	font-weight: 600;
	padding: var(--space-2);
	text-align: center;
}
.author-hero__name {
	font-size: clamp(2.2rem, 4.5vw, 3.4rem);
	max-width: none;
}
.author-hero__meta {
	display: flex;
	gap: 1.2rem;
	flex-wrap: wrap;
	margin-top: var(--space-2);
	font-size: 0.95rem;
	color: var(--c-muted);
}
.author-hero__actions {
	display: flex;
	gap: 0.8rem;
	margin-top: var(--space-3);
	flex-wrap: wrap;
}
.author-hero__actions a {
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
	padding: 0.75rem 1.4rem;
	border-radius: var(--radius-pill);
}
.author-hero__actions .is-primary {
	background: var(--c-auteurs);
	color: #fff;
	box-shadow: var(--shadow-pill);
}
.author-hero__actions .is-secondary {
	border: 1px solid var(--c-ink);
}

.author-bio {
	padding-block: var(--space-4);
	max-width: 72ch;
}
.author-bio h2 {
	font-family: var(--font-accent);
	font-weight: 600;
	font-size: 1.4rem;
	margin-bottom: var(--space-2);
}
.author-bio p + p {
	margin-top: 1rem;
}

/* Manifestations — participations à des salons/prix, format observé sur le
   site actuel : date + lieu, lien vers la manifestation. */
.manifestations {
	padding-block: var(--space-4);
	max-width: 72ch;
}
.manifestations h2 {
	font-family: var(--font-accent);
	font-weight: 600;
	font-size: 1.4rem;
	margin-bottom: var(--space-2);
}
.manifestations__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.6rem;
}
.manifestations__list a {
	display: flex;
	align-items: baseline;
	gap: 0.8rem;
	text-decoration: none;
	color: var(--c-ink);
	padding: 0.7rem 0.9rem;
	border: 1.5px solid var(--c-line);
	border-radius: var(--radius-content);
	transition: background 0.15s, border-color 0.15s;
}
.manifestations__list a:hover,
.manifestations__list a:focus-visible {
	background: rgba(184, 79, 35, 0.08);
	border-color: var(--c-auteurs);
}
.manifestations__date {
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.manifestations__label {
	flex: 1;
}
.manifestations__arrow {
	color: var(--c-ink); /* var(--c-auteurs) ne tenait que 3.04:1 sur --c-ground — trouvé en audit */
	font-weight: 700;
}

.works-list {
	padding-block: var(--space-5);
}
.works-list__head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: var(--space-3);
	flex-wrap: wrap;
	gap: var(--space-2);
}
.works-list__head h2 {
	font-family: var(--font-accent);
	font-weight: 600;
}
.works-list__count {
	font-family: var(--font-display);
	font-weight: 700;
	background: var(--c-auteurs);
	color: #fff;
	padding: 0.3rem 0.8rem;
	border-radius: var(--radius-content);
	font-size: 0.85rem;
}

.works-table {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--c-line);
}
.works-table__row {
	display: grid;
	grid-template-columns: auto 1fr auto auto;
	gap: var(--space-2);
	align-items: center;
	padding: 0.9rem 0.5rem;
	border-bottom: 1px solid var(--c-line);
	text-decoration: none;
	color: var(--c-ink);
	transition: background 0.15s;
}
.works-table__cover {
	width: 40px;
	height: 56px;
	border-radius: 4px;
	object-fit: cover;
	flex-shrink: 0;
}
.works-table__cover--empty {
	display: grid;
	place-items: center;
	background: var(--c-muted);
	color: #fff;
	font-family: var(--font-display);
	font-weight: 800;
	font-size: 0.9rem;
}
.works-table__row:hover {
	background: rgba(217, 97, 47, 0.08);
}
.works-table__title {
	font-family: var(--font-display);
	font-weight: 700;
}
.works-table__year {
	font-size: 0.85rem;
	color: var(--c-muted);
	font-variant-numeric: tabular-nums;
}
.works-table__tag {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 600;
	color: var(--c-muted);
	border: 1.5px solid var(--c-line);
	border-radius: var(--radius-content);
	padding: 0.25rem 0.7rem;
	white-space: nowrap;
}

.empty-note {
	background: var(--c-ground-raised);
	border: 1px dashed var(--c-line);
	border-radius: var(--radius-panel);
	padding: var(--space-3);
	color: var(--c-muted);
	font-style: italic;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 780px) {
	.site-header__bar { justify-content: center; }
	/* .site-search a bien flex:1 1 100% + order:3 pour passer sous les
	   icônes sociales, mais ça n'a d'effet que si son parent flex peut lui
	   aussi wrapper — sans ça la recherche reste coincée sur la même ligne
	   que .site-social et déborde de l'écran. */
	.site-header__tools { flex-wrap: wrap; width: 100%; justify-content: center; }
	.site-search { min-width: 0; flex: 1 1 100%; order: 3; }
	.contribute-counter { grid-template-columns: 1fr; text-align: center; justify-items: center; }
	/* text-align:center centre le texte À L'INTÉRIEUR d'une boîte, pas la
	   boîte elle-même. La brand-stripe (bloc 64px) et le h2 (plafonné à
	   max-width:22ch par la règle globale h1-h4) sont tous les deux des
	   blocs plus étroits que leur parent, sans margin auto par défaut : ils
	   restent donc collés à gauche même avec text-align:center, ce qui
	   n'est visible qu'une fois le parent assez large pour que l'écart
	   saute aux yeux (au-delà de ~600px de large, sous la barre des 780px). */
	.contribute-counter .brand-stripe,
	.contribute-counter h2 { margin-inline: auto; }
	.author-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.author-hero__meta { justify-content: center; }
	.author-hero__actions { justify-content: center; }
	.works-table__row { grid-template-columns: auto 1fr; row-gap: 0.2rem; text-align: left; }
	.works-table__cover { grid-row: 1 / span 3; }
	.works-table__title,
	.works-table__year,
	.works-table__tag { grid-column: 2; justify-self: start; }
	/* Date/texte/flèche compressés sur une ligne partagée à cette largeur ;
	   on empile plutôt que de tout aligner comme en desktop. */
	.manifestations__list a {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.3rem;
	}
	.manifestations__arrow {
		align-self: flex-end;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
}
