/* =========================================================================
   LFITNESS - main.css
   Systeme de design du magazine. Mobile first, custom properties, zero framework.
   Palette et typo propres au projet. Accessibilite AA, focus visibles.
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. POLICES SELF-HOSTEES (woff2, font-display: swap)
   Deposez les fichiers dans assets/fonts/. Le site reste lisible avant
   leur arrivee grace aux polices de repli.
   ---------------------------------------------------------------------- */
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Fraunces";
	src: url("../fonts/fraunces-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-500.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("../fonts/inter-600.woff2") format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

/* -------------------------------------------------------------------------
   2. TOKENS (custom properties)
   ---------------------------------------------------------------------- */
:root {
	/* Couleurs */
	--c-ink: #14181f;        /* titres, texte fort */
	--c-body: #2b303b;       /* corps de texte */
	--c-muted: #565e6b;      /* meta, secondaire (AA sur fond clair) */
	--c-bg: #f7f8f6;         /* fond general */
	--c-surface: #ffffff;    /* cartes */
	--c-border: #e4e7e2;     /* filets */
	--c-accent: #f0522b;     /* ember : highlights, filets, badges */
	--c-action: #14624f;     /* vert profond : liens, boutons, focus (AA) */
	--c-action-dark: #0e4a3b;
	--c-action-tint: #eaf2ef;

	/* Typo */
	--font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Rythme */
	--maxw: 1180px;
	--maxw-reading: 720px;
	--gap: clamp(1rem, 3vw, 2rem);
	--section-y: clamp(2.5rem, 7vw, 5rem);
	--radius: 14px;
	--radius-sm: 8px;

	/* Ombres discretes */
	--shadow: 0 1px 2px rgba(20, 24, 31, .04), 0 8px 24px rgba(20, 24, 31, .06);
}

/* -------------------------------------------------------------------------
   3. BASE
   ---------------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body.lfitness {
	margin: 0;
	background: var(--c-bg);
	color: var(--c-body);
	font-family: var(--font-text);
	font-size: 18px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
	font-family: var(--font-display);
	color: var(--c-ink);
	line-height: 1.15;
	margin: 0 0 .5em;
	font-weight: 700;
	letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }

p { margin: 0 0 1.2em; }

a {
	color: var(--c-action);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
a:hover { color: var(--c-action-dark); }

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

/* Focus visible homogene et net */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--c-action);
	outline-offset: 2px;
	border-radius: 2px;
}

/* -------------------------------------------------------------------------
   4. UTILITAIRES
   ---------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--maxw);
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 2rem);
}
.container--reading {
	max-width: var(--maxw-reading);
}

.eyebrow {
	font-family: var(--font-text);
	font-weight: 600;
	font-size: .8rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--c-accent);
	margin: 0 0 .6rem;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: -999px;
	top: 0;
	z-index: 1000;
	background: var(--c-ink);
	color: #fff;
	padding: .8rem 1.2rem;
	border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
	left: 0;
	color: #fff;
}

.section-head {
	max-width: 640px;
	margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}
.section-head p { color: var(--c-muted); margin: 0; }
.section-head__solo {
	margin: 0 0 clamp(1.2rem, 3vw, 2rem);
}

/* Boutons */
.btn {
	display: inline-block;
	font-family: var(--font-text);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1;
	padding: .95rem 1.6rem;
	border-radius: 999px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary {
	background: var(--c-action);
	color: #fff;
}
.btn--primary:hover {
	background: var(--c-action-dark);
	color: #fff;
}
.btn--ghost {
	background: transparent;
	color: var(--c-ink);
	border-color: var(--c-border);
}
.btn--ghost:hover {
	border-color: var(--c-ink);
	color: var(--c-ink);
}

/* Badge de categorie */
.badge {
	display: inline-block;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--c-accent);
	background: rgba(240, 82, 43, .09);
	padding: .3rem .6rem;
	border-radius: 999px;
	text-decoration: none;
	margin-bottom: .6rem;
}
.badge:hover { color: var(--c-accent); background: rgba(240, 82, 43, .16); }

.empty-note {
	color: var(--c-muted);
	background: var(--c-surface);
	border: 1px dashed var(--c-border);
	border-radius: var(--radius);
	padding: 1.5rem;
	text-align: center;
}

/* -------------------------------------------------------------------------
   5. HEADER (non sticky)
   ---------------------------------------------------------------------- */
.site-header {
	background: var(--c-surface);
	border-bottom: 1px solid var(--c-border);
	/* volontairement NON sticky : position statique */
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 72px;
}

.site-brand {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: 1.4rem;
	letter-spacing: -0.02em;
}
.site-brand a {
	text-decoration: none;
	color: var(--c-ink);
	display: inline-flex;
	align-items: baseline;
}
.site-brand__mark { color: var(--c-accent); }
.site-brand__name { color: var(--c-ink); }
.site-brand--footer { font-size: 1.6rem; color: #fff; }
.site-brand--footer .site-brand__name { color: #fff; }

/* Bouton menu mobile */
.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	background: transparent;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	padding: .5rem .9rem;
	font-family: var(--font-text);
	font-weight: 600;
	color: var(--c-ink);
}
.nav-toggle__bar {
	position: relative;
	width: 18px;
	height: 2px;
	background: var(--c-ink);
	display: inline-block;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: var(--c-ink);
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

/* Navigation */
.site-nav .nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site-nav a {
	display: block;
	text-decoration: none;
	color: var(--c-ink);
	font-weight: 500;
	padding: .6rem 0;
}
.site-nav a:hover { color: var(--c-action); }

/* Mobile : nav repliee */
@media (max-width: 63.99em) {
	.site-nav {
		position: absolute;
		left: 0;
		right: 0;
		background: var(--c-surface);
		border-bottom: 1px solid var(--c-border);
		box-shadow: var(--shadow);
		padding: .5rem clamp(1rem, 4vw, 2rem) 1.2rem;
		display: none;
		z-index: 50;
	}
	.site-nav.is-open { display: block; }
	.site-nav .nav-menu li { border-top: 1px solid var(--c-border); }
	.site-header__inner { position: relative; }
}

/* Desktop : nav horizontale, bouton cache */
@media (min-width: 64em) {
	.nav-toggle { display: none; }
	.site-nav { display: block !important; }
	.site-nav .nav-menu {
		display: flex;
		gap: 1.6rem;
		align-items: center;
	}
	.site-nav a { padding: .4rem 0; }
}

/* -------------------------------------------------------------------------
   6. HERO
   ---------------------------------------------------------------------- */
.hero {
	background: linear-gradient(180deg, var(--c-surface), var(--c-bg));
	border-bottom: 1px solid var(--c-border);
	padding-block: var(--section-y);
}
.hero__inner {
	display: grid;
	gap: var(--gap);
}
.hero__title { margin-top: .2rem; }
.hero__lead {
	font-size: 1.15rem;
	color: var(--c-muted);
	max-width: 42ch;
}
.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: .5rem;
}
.hero__media img {
	width: 100%;
	height: auto;
	border-radius: var(--radius);
	filter: grayscale(1) contrast(1.05);
	border: 1px solid var(--c-border);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
@media (min-width: 64em) {
	.hero__inner {
		grid-template-columns: 1.05fr 1fr;
		align-items: center;
		gap: clamp(2rem, 5vw, 4rem);
	}
}

/* -------------------------------------------------------------------------
   7. PILIERS
   ---------------------------------------------------------------------- */
.pillars {
	padding-block: clamp(2rem, 5vw, 3.5rem);
	border-bottom: 1px solid var(--c-border);
	background: var(--c-surface);
}
.pillars__grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: 1fr;
}
.pillar__title {
	font-size: 1.05rem;
	margin-bottom: .3rem;
}
.pillar p { margin: 0; color: var(--c-muted); font-size: .95rem; }
.pillar {
	padding-left: 1rem;
	border-left: 3px solid var(--c-accent);
}
@media (min-width: 40em) {
	.pillars__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
	.pillars__grid { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
   8. LES UNIVERS
   ---------------------------------------------------------------------- */
.universe { padding-block: var(--section-y); }
.universe__grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: 1fr;
}
.universe-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.universe-card__media {
	display: block;
	overflow: hidden;
	background: var(--c-action-tint);
}
.universe-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform .3s ease;
}
.universe-card:hover .universe-card__media img { transform: scale(1.03); }
.universe-card__inner {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.universe-card__title { font-size: 1.35rem; margin-bottom: .4rem; }
.universe-card__title a { text-decoration: none; color: var(--c-ink); }
.universe-card__title a:hover { color: var(--c-action); }
.universe-card__desc { color: var(--c-muted); font-size: .96rem; }
.universe-card__links {
	list-style: none;
	margin: .4rem 0 1rem;
	padding: 0;
	border-top: 1px solid var(--c-border);
}
.universe-card__links li { border-bottom: 1px solid var(--c-border); }
.universe-card__links a {
	display: block;
	padding: .55rem 0;
	font-size: .95rem;
	text-decoration: none;
	color: var(--c-body);
}
.universe-card__links a:hover { color: var(--c-action); }
.universe-card__more {
	margin-top: auto;
	font-weight: 600;
	font-size: .9rem;
}
@media (min-width: 40em) {
	.universe__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
	.universe__grid { grid-template-columns: repeat(3, 1fr); }
}

/* -------------------------------------------------------------------------
   9. CARTES ARTICLE (a la une, archives, lies)
   ---------------------------------------------------------------------- */
.featured { padding-block: var(--section-y); background: var(--c-surface); border-block: 1px solid var(--c-border); }
.featured__grid,
.archive__grid,
.related__grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: 1fr;
}

.post-card {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.post-card__media {
	display: block;
	overflow: hidden;
	background: var(--c-action-tint);
}
.post-card__media img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform .3s ease;
}
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .1rem; }
.post-card__title { font-size: 1.15rem; margin: .2rem 0 .4rem; }
.post-card__title a { text-decoration: none; color: var(--c-ink); }
.post-card__title a:hover { color: var(--c-action); }
.post-card__excerpt { font-size: .93rem; color: var(--c-muted); margin: 0 0 .6rem; }
.post-card__meta { font-size: .82rem; color: var(--c-muted); margin: 0; }

@media (min-width: 40em) {
	.featured__grid,
	.archive__grid,
	.related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
	.featured__grid { grid-template-columns: repeat(2, 1fr); }
	.archive__grid { grid-template-columns: repeat(3, 1fr); }
	.related__grid { grid-template-columns: repeat(3, 1fr); }

	/* Article vedette en pleine largeur, format horizontal */
	.post-card--lead {
		grid-column: 1 / -1;
		flex-direction: row;
	}
	.post-card--lead .post-card__media { flex: 1 1 55%; }
	.post-card--lead .post-card__media img { height: 100%; aspect-ratio: auto; }
	.post-card--lead .post-card__body { flex: 1 1 45%; justify-content: center; padding: 2rem; }
	.post-card--lead .post-card__title { font-size: 1.7rem; }
}

/* -------------------------------------------------------------------------
   9bis. SECTION INFORMATIONNELLE
   ---------------------------------------------------------------------- */
.info { padding-block: var(--section-y); }
.info__body { font-size: 1.06rem; }
.info__body h3 { margin-top: 1.8rem; }
.info__body a {
	color: var(--c-action);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.info__body a:hover { color: var(--c-action-dark); text-decoration-thickness: 2px; }
.info__note {
	margin-top: 1.6rem;
	padding: 1rem 1.2rem;
	background: var(--c-action-tint);
	border-left: 3px solid var(--c-action);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: .92rem;
	color: var(--c-muted);
}

/* -------------------------------------------------------------------------
   10. CHIFFRES
   ---------------------------------------------------------------------- */
.stats { padding-block: var(--section-y); }
.stats__grid {
	display: grid;
	gap: var(--gap);
	grid-template-columns: repeat(2, 1fr);
	text-align: center;
}
.stat__num {
	display: block;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(2.2rem, 6vw, 3.4rem);
	color: var(--c-ink);
	line-height: 1;
}
.stat__label { color: var(--c-muted); font-size: .9rem; }
@media (min-width: 64em) {
	.stats__grid { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------------------
   11. CITATION
   ---------------------------------------------------------------------- */
.quote {
	padding-block: var(--section-y);
	background: var(--c-ink);
	color: #fff;
}
.quote__block { margin: 0; max-width: 820px; }
.quote__text {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: clamp(1.4rem, 3.5vw, 2rem);
	line-height: 1.3;
	color: #fff;
}
.quote__text::before { content: "\00AB\00A0"; color: var(--c-accent); }
.quote__text::after { content: "\00A0\00BB"; color: var(--c-accent); }
.quote__by {
	color: #c9cfd6;
	font-size: .95rem;
	display: flex;
	flex-wrap: wrap;
	gap: .3rem 1rem;
	align-items: center;
}
.quote__link { color: #fff; }

/* -------------------------------------------------------------------------
   12. DISCLAIMER
   ---------------------------------------------------------------------- */
.disclaimer {
	font-size: .85rem;
	color: var(--c-muted);
	margin: 0;
}
.disclaimer-band {
	padding-block: clamp(1.2rem, 3vw, 2rem);
	background: var(--c-bg);
	border-bottom: 1px solid var(--c-border);
}
.disclaimer-band .disclaimer {
	text-align: center;
	max-width: 720px;
	margin-inline: auto;
}
.disclaimer--footer { color: #aeb6bf; }

/* -------------------------------------------------------------------------
   13. NEWSLETTER
   ---------------------------------------------------------------------- */
.newsletter { padding-block: var(--section-y); background: var(--c-action-tint); }
.newsletter__inner {
	display: grid;
	gap: var(--gap);
}
.newsletter h2 { margin-bottom: .3rem; }
.newsletter p { color: var(--c-muted); margin: 0; }
.newsletter__form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-start; }
.newsletter__form input[type="email"] {
	flex: 1 1 220px;
	min-width: 0;
	padding: .95rem 1.1rem;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	font: inherit;
	background: #fff;
	color: var(--c-ink);
}
.newsletter__consent {
	flex-basis: 100%;
	font-size: .8rem;
	color: var(--c-muted);
	margin: .2rem 0 0;
}
.newsletter__consent label { display: flex; gap: .5rem; align-items: flex-start; }
@media (min-width: 64em) {
	.newsletter__inner { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* -------------------------------------------------------------------------
   14. FIL D'ARIANE
   ---------------------------------------------------------------------- */
.breadcrumb { padding-block: 1rem 0; font-size: .85rem; }
.breadcrumb ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	margin: 0;
	padding: 0;
	color: var(--c-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: var(--c-border); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-action); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); }

/* -------------------------------------------------------------------------
   15. ARTICLE (single) et PAGE
   ---------------------------------------------------------------------- */
.single, .page-single { padding-bottom: var(--section-y); }
.single__head, .page-single__head { padding-top: 1rem; }
.single__title { margin-bottom: .6rem; }
.single__meta, .page-single__meta { color: var(--c-muted); font-size: .9rem; }
.single__media, .page-single__media { margin: 1.5rem 0; }
.single__media img, .page-single__media img {
	width: 100%;
	border-radius: var(--radius);
	aspect-ratio: 2 / 1;
	object-fit: cover;
}

/* Corps de lecture : liens contextuels bien visibles sans encart */
.single__content, .page-single__content {
	font-size: 1.08rem;
}
.single__content h2, .page-single__content h2 { margin-top: 2rem; }
.single__content h3, .page-single__content h3 { margin-top: 1.5rem; }
.single__content a, .page-single__content a {
	color: var(--c-action);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.single__content a:hover, .page-single__content a:hover {
	color: var(--c-action-dark);
	text-decoration-thickness: 2px;
}
.single__content img, .page-single__content img { border-radius: var(--radius-sm); margin: 1.5rem 0; }
.single__content ul, .single__content ol { padding-left: 1.3rem; }
.single__content li { margin-bottom: .4rem; }
.single__content blockquote, .page-single__content blockquote {
	margin: 1.5rem 0;
	padding: .5rem 0 .5rem 1.3rem;
	border-left: 3px solid var(--c-accent);
	color: var(--c-ink);
	font-family: var(--font-display);
	font-size: 1.2rem;
}

/* --- Tableaux : cadre a defilement horizontal pour ne jamais deborder --- */
/* .table-scroll est ajoute par main.js autour des tableaux classiques ;
   figure.wp-block-table est le conteneur natif de l'editeur de blocs. */
.single__content .table-scroll,
.single__content figure.wp-block-table,
.page-single__content .table-scroll,
.page-single__content figure.wp-block-table {
	margin: 1.5rem 0;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	background: var(--c-surface);
}
/* Indice de defilement au clavier. */
.single__content .table-scroll:focus-visible,
.page-single__content .table-scroll:focus-visible {
	outline: 3px solid var(--c-action);
	outline-offset: 2px;
}
.single__content table,
.page-single__content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
	font-size: .96rem;
	line-height: 1.5;
}
/* Le tableau natif de l'editeur est deja dans sa figure : on neutralise sa marge. */
.single__content figure.wp-block-table table,
.page-single__content figure.wp-block-table table { margin: 0; }
.single__content th,
.single__content td,
.page-single__content th,
.page-single__content td {
	padding: .7rem .9rem;
	border-bottom: 1px solid var(--c-border);
	border-right: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}
.single__content th:last-child,
.single__content td:last-child,
.page-single__content th:last-child,
.page-single__content td:last-child { border-right: 0; }
.single__content thead th,
.page-single__content thead th {
	background: var(--c-action-tint);
	color: var(--c-ink);
	font-family: var(--font-display);
	font-weight: 700;
	white-space: nowrap;
}
.single__content tbody tr:nth-child(even),
.page-single__content tbody tr:nth-child(even) { background: var(--c-bg); }
.single__content tbody tr:hover,
.page-single__content tbody tr:hover { background: var(--c-action-tint); }
.single__content tbody tr:last-child td,
.page-single__content tbody tr:last-child td { border-bottom: 0; }
.single__content table caption,
.page-single__content table caption {
	caption-side: bottom;
	padding: .6rem .9rem;
	font-size: .85rem;
	color: var(--c-muted);
	text-align: left;
}

/* Encadre auteur */
.author-box {
	margin-top: 2.5rem;
	padding: 1.5rem;
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
}
.author-box__name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin: 0; color: var(--c-ink); }
.author-box__role { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent); margin: 0 0 .5rem; }
.author-box__bio { font-size: .95rem; color: var(--c-muted); margin: 0 0 .6rem; }
.author-box__link { font-weight: 600; font-size: .9rem; }

/* Articles lies */
.related { padding-block: var(--section-y); background: var(--c-surface); border-top: 1px solid var(--c-border); }

/* -------------------------------------------------------------------------
   16. ENTETES D'ARCHIVE
   ---------------------------------------------------------------------- */
.archive-head { padding-block: clamp(1.5rem, 4vw, 3rem) 0; }
.archive-head__intro { color: var(--c-muted); font-size: 1.05rem; }
.archive-head__intro a { color: var(--c-action); }
.archive { padding-block: clamp(1.5rem, 4vw, 3rem) var(--section-y); }

/* -------------------------------------------------------------------------
   17. PAGINATION
   ---------------------------------------------------------------------- */
.navigation.pagination { margin-top: 2.5rem; }
.navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	justify-content: center;
}
.navigation.pagination .page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 .8rem;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-sm);
	text-decoration: none;
	color: var(--c-ink);
	background: var(--c-surface);
}
.navigation.pagination .page-numbers.current {
	background: var(--c-action);
	color: #fff;
	border-color: var(--c-action);
}
.navigation.pagination a.page-numbers:hover { border-color: var(--c-action); color: var(--c-action); }

/* -------------------------------------------------------------------------
   18. FOOTER
   ---------------------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: #c9cfd6; margin-top: var(--section-y); }
.site-footer__inner {
	display: grid;
	gap: var(--gap);
	padding-block: clamp(2.5rem, 6vw, 4rem);
	grid-template-columns: 1fr;
}
.site-footer__baseline { color: #aeb6bf; font-size: .95rem; }
.site-footer__title { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: .5rem; }
.site-footer__col a, .footer-menu a { color: #c9cfd6; text-decoration: none; }
.site-footer__col a:hover, .footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: .5rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__bottom p { margin: 0; padding-block: 1.2rem; font-size: .82rem; color: #9aa2ab; }
@media (min-width: 48em) {
	.site-footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
}

/* -------------------------------------------------------------------------
   19. ACCORDEON (FAQ des pages a propos / contact)
   Le comportement aria est gere par main.js.
   ---------------------------------------------------------------------- */
.accordion { border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; background: var(--c-surface); }
.accordion__item + .accordion__item { border-top: 1px solid var(--c-border); }
.accordion__trigger {
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	padding: 1.1rem 1.3rem;
	font: 600 1.05rem/1.4 var(--font-text);
	color: var(--c-ink);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	cursor: pointer;
}
.accordion__trigger::after {
	content: "+";
	font-size: 1.4rem;
	color: var(--c-accent);
	transition: transform .2s ease;
}
.accordion__trigger[aria-expanded="true"]::after { content: "\2212"; }
.accordion__panel { padding: 0 1.3rem 1.2rem; color: var(--c-muted); }
.accordion__panel[hidden] { display: none; }

/* -------------------------------------------------------------------------
   20. ARTICLE : mise en page 3 colonnes (sommaire + contenu + a lire)
   ---------------------------------------------------------------------- */

/* Mobile d'abord : une seule colonne, les colonnes laterales s'empilent. */
.single-layout {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}
.single-main { min-width: 0; }

/* Le contenu garde une mesure de lecture confortable sur mobile et tablette. */
.single-main .single__head,
.single-main .single__media,
.single-main .single__content,
.single-main .author-box { max-width: var(--maxw-reading); }

/* Ancrage des titres pour le saut depuis le sommaire. */
.single__content h2,
.single__content h3 { scroll-margin-top: 1.5rem; }

/* Ordre d'empilement sur mobile : contenu d'abord, puis a lire, puis sommaire en bas. */
.single-toc { order: 3; }
.single-main { order: 1; }
.single-aside { order: 2; }

/* --- Sommaire (element details/summary : repliable nativement) --- */
.toc {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: .3rem 1rem .8rem;
}
.toc__summary {
	font-family: var(--font-display);
	font-weight: 700;
	color: var(--c-ink);
	cursor: pointer;
	padding: .7rem 0;
	list-style: none;
	display: flex;
	align-items: center;
	gap: .55rem;
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__summary::before {
	content: "";
	flex: 0 0 auto;
	width: 3px;
	height: 1.05em;
	background: var(--c-accent);
	border-radius: 2px;
}
.toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: .92rem;
}
.toc__list li { margin: 0; }
.toc__list a {
	display: block;
	padding: .35rem .5rem;
	color: var(--c-muted);
	text-decoration: none;
	border-left: 2px solid transparent;
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	line-height: 1.35;
}
.toc__list li.toc__sub a {
	padding-left: 1.5rem;
	font-size: .87rem;
}
.toc__list a:hover {
	color: var(--c-action);
	background: var(--c-action-tint);
}
.toc__list a.is-active {
	color: var(--c-action);
	border-left-color: var(--c-action);
	background: var(--c-action-tint);
	font-weight: 600;
}

/* --- Sidebar droite : bloc "A lire" --- */
.widget {
	background: var(--c-surface);
	border: 1px solid var(--c-border);
	border-radius: var(--radius);
	padding: 1.2rem 1.3rem 1.3rem;
}
.widget__title {
	font-size: 1.15rem;
	margin: 0 0 1rem;
	padding-bottom: .7rem;
	border-bottom: 1px solid var(--c-border);
}
.widget__list { list-style: none; margin: 0; padding: 0; }
.mini { display: flex; gap: .8rem; align-items: flex-start; }
.mini + .mini {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--c-border);
}
.mini__media {
	flex: 0 0 72px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	line-height: 0;
}
.mini__media img {
	width: 72px;
	height: 54px;
	object-fit: cover;
	aspect-ratio: 4 / 3;
	transition: transform .3s ease;
}
.mini:hover .mini__media img { transform: scale(1.05); }
.mini__body { min-width: 0; }
.mini__title {
	display: block;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
	color: var(--c-ink);
	text-decoration: none;
}
.mini__title:hover { color: var(--c-action); }
.mini__date {
	display: block;
	font-size: .78rem;
	color: var(--c-muted);
	margin-top: .25rem;
}
.widget__more {
	display: inline-block;
	margin-top: 1.1rem;
	font-weight: 600;
	font-size: .9rem;
}

/* --- Desktop : trois colonnes, colonnes laterales sticky --- */
@media (min-width: 64em) {
	/* Conteneur article elargi : plus d'air pour la colonne de lecture. */
	.single > .container { max-width: 1340px; }

	.single-layout {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr) 290px;
		gap: 2.5rem;
		/* Colonnes etirees sur toute la hauteur : indispensable pour que les
		   sidebars en position sticky aient de la place pour rester collees
		   pendant le defilement. Avec align-items:start, le sticky ne bouge pas. */
		align-items: stretch;
	}
	/* Sur desktop l'ordre visuel suit l'ordre du DOM : sommaire, contenu, a lire. */
	.single-toc { order: 0; }
	.single-main { order: 0; }
	.single-aside { order: 0; }
	/* Pleine largeur de colonne pour le contenu (la grille borne deja la mesure). */
	.single-main .single__head,
	.single-main .single__media,
	.single-main .single__content,
	.single-main .author-box { max-width: none; }
	.single-toc__inner,
	.single-aside__inner {
		position: sticky;
		top: 1.5rem;
		max-height: calc(100vh - 3rem);
		overflow-y: auto;
	}
}

/* -------------------------------------------------------------------------
   21. PREFERENCES DE MOUVEMENT
   ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
