/*
Theme Name: Nina Mag
Description: Magazine beauté : cheveux, ongles, tatouage et tendances. Léger, responsive, pensé pour la publicité (insertion automatique, colonne collante), Pinterest et le SEO.
Version: 3.1.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
Author: Nina Mag
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ninamag
Tags: blog, news, two-columns, custom-logo, custom-menu, featured-images, wide-blocks, translation-ready
*/

/* ==========================================================================
   1. Charte : encre, magenta, poudre, touches de jaune et turquoise
   ========================================================================== */
:root {
	--ink: #161214;
	--ink-soft: #5a5257;
	--line: #eee2df;
	--bg: #ffffff;
	--poudre: #fbf2ef;
	--accent: #e90063;        /* magenta Nina */
	--accent-dark: #b8004e;
	--accent-light: #ff7aac;  /* pour le texte sur fond sombre */
	--accent-pale: #ffe1ec;
	--jaune: #ffd500;
	--turquoise: #00c4c1;
	--turquoise-fonce: #007d7a;
	--turquoise-pale: #dcf6f5;
	--focus: #b8004e;

	--font-title: "Fraunces", Georgia, "Times New Roman", serif;
	--font-text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 1280px;
	--gutter: 32px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 24px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	overflow-x: clip; /* aucun défilement horizontal, sans casser les éléments collants */
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.55 var(--font-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
	text-decoration: none;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	display: block;
	height: auto;
}

h1, h2, h3, h4 {
	font-family: var(--font-title);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid var(--focus);
	outline-offset: 3px;
}

.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: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--accent);
	color: #fff;
	font-weight: 700;
	padding: 12px 16px;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

.wrap {
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.wrap--narrow {
	max-width: calc(760px + 2 * var(--gutter));
}

.placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	background:
		radial-gradient(circle at 30% 40%, var(--accent) 0 18%, transparent 18.5%),
		radial-gradient(circle at 70% 65%, var(--turquoise) 0 22%, transparent 22.5%),
		var(--poudre);
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 14px;
}

.eyebrow::before {
	content: "";
	width: 28px;
	height: 3px;
	background: var(--jaune);
}

/* Bouton */
.btn,
.comment-form .submit {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--accent);
	color: #fff;
	border: 2px solid var(--ink);
	padding: 14px 22px;
	font: 700 12px/1 var(--font-text);
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 4px 4px 0 var(--ink);
	transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.btn:hover,
.comment-form .submit:hover {
	transform: translate(2px, 2px);
	box-shadow: 2px 2px 0 var(--ink);
}

.btn:active {
	transform: translate(4px, 4px);
	box-shadow: 0 0 0 var(--ink);
}

/* Étiquette de rubrique */
.badge {
	position: relative;
	z-index: 2;
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	padding: 7px 9px 6px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.badge--1 { background: var(--turquoise); color: var(--ink); }
.badge--2 { background: var(--ink); color: #fff; }

a.badge:hover {
	background: var(--ink);
	color: var(--accent-light);
}

.empty {
	padding: 32px;
	background: var(--poudre);
	line-height: 1.6;
	border-left: 4px solid var(--accent);
}

/* Surligneur rose poudré (titres de liens) */
.hero__title a,
.card__link,
.article__content .toc a {
	background-image: linear-gradient(var(--accent-pale), var(--accent-pale));
	background-repeat: no-repeat;
	background-position: 0 88%;
	background-size: 0% 0.42em;
	transition: background-size 0.35s var(--ease);
}

.hero__title a:hover,
.card:hover .card__link,
.card__link:focus-visible {
	background-size: 100% 0.42em;
}

/* ==========================================================================
   3. En-tête
   ========================================================================== */
.site-header {
	position: relative;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 44px;
	background: var(--ink);
	color: #fff;
	/* Fond pleine largeur, contenu aligné sur la grille. */
	box-shadow: 0 0 0 100vmax var(--ink);
	clip-path: inset(0 -100vmax);
}

.topbar__tagline {
	margin: 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.topbar .search-form {
	border-bottom-color: rgba(255, 255, 255, 0.5);
}

.topbar .search-form__input,
.topbar .search-form__submit {
	color: #fff;
}

.topbar .search-form__input::placeholder {
	color: rgba(255, 255, 255, 0.7);
}

.search-form {
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--ink);
	min-width: 0;
}

.search-form__input {
	border: 0;
	background: transparent;
	font: 14px var(--font-text);
	padding: 8px 4px;
	width: 210px;
	max-width: 100%;
	min-width: 0;
	color: var(--ink);
}

.search-form__input::placeholder {
	color: var(--ink-soft);
}

.search-form__input:focus {
	outline: none;
}

.search-form:focus-within {
	outline: 3px solid var(--accent);
	outline-offset: 2px;
}

.search-form__submit {
	border: 0;
	background: transparent;
	color: var(--ink);
	padding: 6px;
	cursor: pointer;
	display: flex;
}

.brand {
	margin: 0;
	padding: 26px 0 22px;
	text-align: center;
	font-family: var(--font-title);
	font-weight: 400;
	font-size: clamp(56px, 9.5vw, 124px);
	font-weight: 600;
	font-style: italic;
	line-height: 0.95;
	letter-spacing: -0.035em;
}

/* Point magenta signature après le nom du site. */
.brand > a::after {
	content: ".";
	color: var(--accent);
	-webkit-text-stroke: 0;
}

.brand .custom-logo {
	margin-inline: auto;
	max-height: 120px;
	width: auto;
}

.nav {
	border-top: 3px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}

.nav .menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px clamp(8px, 3vw, 44px);
	list-style: none;
	margin: 0;
	padding: 10px 0;
}

.nav .menu a {
	display: block;
	padding: 8px 12px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	transition: background-color 0.15s ease;
}

.nav .menu a:hover {
	background: var(--accent-pale);
}

.nav .current-menu-item > a,
.nav .current-menu-parent > a,
.nav .current-post-ancestor > a,
.nav .current-category-ancestor > a {
	background: var(--accent);
	color: #fff;
}

.nav__toggle {
	display: none;
}

/* Outils du bandeau : langues + recherche */
.topbar__tools {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 0;
}

.lang ul {
	display: flex;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.lang a {
	display: block;
	padding: 6px 7px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: rgba(255, 255, 255, 0.75);
}

.lang a:hover,
.lang a[aria-current] {
	color: #fff;
	box-shadow: inset 0 -2px 0 var(--accent-light);
}

/* ==========================================================================
   4. Titres de sections
   ========================================================================== */
.section {
	margin-top: 80px;
}

.section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ink);
}

.section__title {
	font-size: clamp(32px, 4vw, 52px);
	line-height: 1;
	letter-spacing: -0.025em;
	margin: 0 0 28px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--ink);
}

.section__head .section__title {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Losange magenta devant chaque titre de section. */
.section__title::before {
	content: "";
	display: inline-block;
	width: 0.3em;
	height: 0.3em;
	margin-right: 0.36em;
	background: var(--accent);
	vertical-align: 0.14em;
	transform: rotate(45deg);
}

.section__more {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 8px 0 4px;
	border-bottom: 2px solid var(--accent);
	transition: border-color 0.15s ease;
}

.section__more:hover {
	border-color: var(--ink);
}

/* ==========================================================================
   5. Accueil
   ========================================================================== */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	align-items: center;
	gap: 64px;
	margin-top: 44px;
}

.hero__media {
	position: relative;
	display: block;
}

/* Cadre rose décalé derrière l'image. */
.hero__media::before {
	content: "";
	position: absolute;
	inset: 18px -18px -18px 18px;
	background: var(--accent-pale);
	border: 2px solid var(--accent);
	z-index: -1;
}

.hero__media img,
.hero .placeholder {
	width: 100%;
	aspect-ratio: 1.3;
	object-fit: cover;
}

.hero__body .badge {
	margin-left: 4px;
}

.hero__title {
	font-size: clamp(42px, 5.6vw, 80px);
	line-height: 0.98;
	letter-spacing: -0.035em;
	margin: 18px 0 20px;
}

.hero__meta {
	margin: -6px 0 16px;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: var(--ink-soft);
}

.hero__meta span,
.card__meta span {
	margin: 0 4px;
}

.hero__excerpt {
	font-size: 18px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0 0 28px;
	max-width: 46ch;
}

/* Les tendances : bandeau magenta, cartes numérotées */
.trend {
	margin-top: 96px;
	padding: 56px 0 64px;
	background: var(--accent);
	counter-reset: trend;
}

.trend .section__title {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.7);
}

.trend .section__title::before {
	background: #fff;
}

.trend .card {
	counter-increment: trend;
	background: #fff;
	box-shadow: 6px 6px 0 var(--ink);
}

.trend .card__media {
	position: relative;
}

.trend .card__media::after {
	content: counter(trend, decimal-leading-zero);
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 10px 14px 4px;
	background: #fff;
	font: italic 500 42px/1 var(--font-title);
	color: var(--accent);
}

.trend .card__body {
	padding: 14px 18px 20px;
}

/* Rubriques : un article en grand + une liste */
.feature {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.feature--single {
	grid-template-columns: minmax(0, 1fr);
}

/* Rubrique avec un seul article : image et texte côte à côte. */
.feature--single .card--large {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: 48px;
	align-items: center;
}

@media (max-width: 800px) {
	.feature--single .card--large {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}
}

.feature__list {
	display: grid;
	gap: 0;
}

.feature__list .card {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.feature__list .card:first-child {
	padding-top: 0;
}

.feature__list .card:last-child {
	border-bottom: 0;
}

/* ==========================================================================
   6. Cartes et grilles
   ========================================================================== */
.grid {
	display: grid;
	gap: 40px 28px;
}

.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
}

.card__media {
	overflow: hidden;
	background: var(--poudre);
}

.card__media img,
.card .placeholder {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform 0.6s var(--ease);
}

.card:hover .card__media img {
	transform: scale(1.05);
}

.card__body {
	padding-top: 16px;
}

.card__title {
	font-size: 24px;
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 12px 0 8px;
}

/* Toute la carte est cliquable via le lien du titre. */
.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.card__link:focus-visible {
	outline: none;
}

.card__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: 4px;
}

.card__excerpt {
	margin: 0 0 12px;
	color: var(--ink-soft);
	font-size: 16px;
	line-height: 1.6;
}

.card__meta {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	color: var(--ink-soft);
	letter-spacing: 0.01em;
}

/* Grande carte */
.card--large .card__media img,
.card--large .placeholder {
	aspect-ratio: 3 / 2;
}

.card--large .card__title {
	font-size: clamp(30px, 3vw, 40px);
	line-height: 1.04;
	letter-spacing: -0.025em;
}

/* Carte en liste */
.card--list {
	display: grid;
	grid-template-columns: 148px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
}

.card--list .card__media img,
.card--list .placeholder {
	aspect-ratio: 1;
}

.card--list .card__body {
	padding-top: 0;
}

.card--list .card__title {
	font-size: 21px;
	margin: 8px 0 6px;
}

/* ==========================================================================
   7. Article
   ========================================================================== */
.article {
	padding-top: 40px;
}

.article__columns {
	display: grid;
	grid-template-columns: minmax(0, 760px);
	justify-content: center;
	gap: 64px;
}

.has-ad-sidebar .article__columns {
	grid-template-columns: minmax(0, 760px) 300px;
}

.article__main {
	min-width: 0;
}

.breadcrumbs {
	font-size: 13px;
	color: var(--ink-soft);
	margin-bottom: 22px;
}

.breadcrumbs ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.breadcrumbs li:not(:last-child)::after {
	content: "/";
	margin-left: 6px;
	color: var(--line);
}

.breadcrumbs li:last-child span {
	display: inline-block;
	max-width: 32ch;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	vertical-align: bottom;
}

.breadcrumbs a:hover {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.article__title {
	font-size: clamp(40px, 5.4vw, 72px);
	line-height: 1;
	letter-spacing: -0.03em;
	margin: 18px 0 22px;
}

.article__lead {
	font-size: 22px;
	line-height: 1.5;
	color: var(--ink-soft);
	margin: 0 0 26px;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 14px;
	padding: 14px 0;
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--line);
	font-size: 14px;
	color: var(--ink-soft);
}

.post-meta > span + span::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 12px;
	margin-right: 14px;
	background: var(--line);
	vertical-align: -1px;
}

.post-meta__author a {
	color: var(--ink);
	font-weight: 700;
}

.post-meta__author a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.article__image {
	margin: 32px 0 0;
}

.article__image img {
	width: 100%;
}

.article__image figcaption,
.article__content figcaption {
	font-size: 13px;
	color: var(--ink-soft);
	margin-top: 10px;
	padding-left: 12px;
	border-left: 3px solid var(--accent);
}

/* Contenu */
.article__content {
	font-size: 19px;
	line-height: 1.75;
	overflow-wrap: break-word;
	margin-top: 36px;
}

.article__content > * {
	margin-block: 0 1.2em;
}

.article__content h2 {
	font-size: clamp(30px, 3.4vw, 40px);
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin-top: 1.9em;
	margin-bottom: 0.6em;
	scroll-margin-top: 24px;
}

.article__content h3 {
	font-size: clamp(23px, 2.6vw, 28px);
	margin-top: 1.6em;
	margin-bottom: 0.5em;
}

.article__content a {
	text-decoration: underline;
	text-decoration-color: var(--accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: background-color 0.15s ease;
}

.article__content a:hover {
	background: var(--accent-pale);
	text-decoration-color: var(--ink);
}

.article__content ul,
.article__content ol {
	padding-left: 1.4em;
}

.article__content li {
	margin-bottom: 0.45em;
	padding-left: 0.2em;
}

.article__content ul li::marker {
	color: var(--accent);
	font-size: 1.1em;
}

.article__content ol li::marker {
	color: var(--accent-dark);
	font-weight: 700;
}

.article__content blockquote {
	position: relative;
	margin-inline: 0;
	padding: 28px 32px 28px 72px;
	background: var(--poudre);
	font-family: var(--font-title);
	font-style: italic;
	font-size: 26px;
	line-height: 1.3;
}

.article__content blockquote::before {
	content: "“";
	position: absolute;
	left: 22px;
	top: 14px;
	font: 600 72px/1 var(--font-title);
	color: var(--accent);
}

.article__content blockquote p {
	margin: 0;
}

.article__content blockquote cite {
	display: block;
	margin-top: 10px;
	font: 600 14px var(--font-text);
	font-style: normal;
}

.article__content figure {
	margin-inline: 0;
}

.article__content img {
	height: auto;
}

/* Images portrait dans le texte : centrées, hauteur limitée à l'écran. */
.article__content figure img,
.article__content p > img {
	width: auto;
	max-height: 88vh;
	margin-inline: auto;
}

.article__content figure {
	text-align: center;
}

.article__content figcaption {
	text-align: left;
	max-width: 560px;
	margin-inline: auto;
}

.article__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.article__content th {
	background: var(--poudre);
	font-weight: 700;
}

.article__content th,
.article__content td {
	border-bottom: 1px solid var(--line);
	padding: 12px 10px;
	text-align: left;
}

.article__content .wp-block-image.alignfull img,
.article__content .wp-block-image.alignwide img {
	width: 100%;
}

body:not(.has-ad-sidebar) .article__content .alignfull,
.page-content .article__content .alignfull {
	margin-inline: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

/* Sommaire automatique */
.article__content .toc {
	margin: 32px 0 40px;
	padding: 24px 28px;
	background: var(--poudre);
	border-top: 3px solid var(--accent);
	font-size: 17px;
	line-height: 1.45;
}

.toc__title {
	margin: 0 0 12px !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.article__content .toc ol {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.article__content .toc li {
	counter-increment: toc;
	display: flex;
	gap: 14px;
	padding: 8px 0;
	margin: 0;
	border-top: 1px solid var(--line);
}

.article__content .toc li::before {
	content: counter(toc, decimal-leading-zero);
	flex: none;
	font: italic 500 18px/1.3 var(--font-title);
	color: var(--accent-dark);
}

.article__content .toc a {
	text-decoration: none;
	background-color: transparent;
}

.article__content .toc a:hover {
	background-size: 100% 0.42em;
	background-color: transparent;
}

.page-links {
	display: flex;
	gap: 10px;
	font-weight: 700;
}

/* Pied d'article */
.article__footer {
	margin-top: 48px;
}

.tags {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tags a {
	display: inline-block;
	padding: 7px 14px;
	background: var(--poudre);
	border-radius: 99px;
	font-size: 13px;
	font-weight: 600;
	transition: background-color 0.15s ease;
}

.tags a::before {
	content: "#";
	color: var(--accent-dark);
	margin-right: 2px;
}

.tags a:hover {
	background: var(--accent);
}

.share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 20px 0;
	border-top: 1px solid var(--ink);
	border-bottom: 1px solid var(--line);
}

.share__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	margin-right: 8px;
}

.share__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 42px;
	padding: 9px 15px;
	border: 1px solid var(--ink);
	background: #fff;
	color: var(--ink);
	font: 600 14px/1 var(--font-text);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.share__btn:hover {
	background: var(--ink);
	color: #fff;
}

.share__btn--pinterest {
	background: #e60023;
	border-color: #e60023;
	color: #fff;
}

.share__btn--pinterest:hover {
	background: #ad081b;
	border-color: #ad081b;
}

.author-box {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	margin-top: 36px;
	padding: 28px;
	background: var(--poudre);
	border-left: 6px solid var(--accent);
}

.author-box__avatar {
	border-radius: 50%;
	flex: none;
	width: 76px;
	height: 76px;
	background: var(--accent-pale);
	border: 3px solid #fff;
}

.author-box__kicker {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--accent-dark);
}

.author-box__name {
	margin: 4px 0 8px;
	font-family: var(--font-title);
	font-size: 28px;
	line-height: 1.1;
}

.author-box__name a:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.author-box__bio {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
}

/* Bouton Pinterest sur les images */
.has-pin {
	position: relative;
}

.pin-btn {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	padding: 9px 14px;
	border-radius: 99px;
	background: #e60023;
	color: #fff;
	font: 700 13px/1 var(--font-text);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.has-pin:hover .pin-btn,
.pin-btn:focus-visible {
	opacity: 1;
}

@media (hover: none) {
	.pin-btn {
		opacity: 0.92;
		padding: 7px 11px;
		font-size: 12px;
	}
}

/* À lire aussi */
.related {
	margin-top: 88px;
}

/* Commentaires */
.comments {
	max-width: 760px;
	margin: 88px auto 0;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 48px;
}

.comment-list .children {
	list-style: none;
	padding-left: 28px;
	border-left: 2px solid var(--accent);
}

.comment-body {
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
	background: var(--poudre);
}

.comment-metadata {
	font-size: 13px;
	color: var(--ink-soft);
	margin: 4px 0 8px;
}

.comment-reply-link {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	border-bottom: 2px solid var(--accent);
}

.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--ink);
	border-radius: 0;
	font: 16px var(--font-text);
	background: #fff;
}

.comment-form textarea:focus,
.comment-form input:focus {
	outline: 3px solid var(--accent);
	outline-offset: 0;
}

.comment-form .comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form .comment-form-cookies-consent label {
	font-weight: 400;
}

/* ==========================================================================
   8. Publicités
   ========================================================================== */
.ad-space {
	text-align: center;
	margin: 32px auto;
	max-width: 100%;
}

.ad-label {
	display: block;
	font: 600 10px/1 var(--font-text);
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6b6b6b;
	margin-bottom: 8px;
}

/* Hauteur réservée : la page ne « saute » pas au chargement de la pub (CLS). */
.ad-slot {
	min-height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 100%;
	overflow: hidden;
}

.ad-widget,
.ad-widget iframe {
	max-width: 100%;
}

.article-top {
	width: min(336px, 100%);
	margin: 0 auto 40px;
}

.article-incontent {
	width: min(336px, 100%);
	margin: 44px auto;
}

.article__aside .ad-space {
	position: sticky;
	top: 24px;
	width: 300px;
	margin: 0;
}

.taboola-space {
	margin: 64px auto 0;
	max-width: 1050px;
}

/* ==========================================================================
   9. Archives, recherche, 404
   ========================================================================== */
.archive-header {
	padding: 48px 0 28px;
	margin-bottom: 40px;
	border-bottom: 1px solid var(--ink);
}

.archive-header__avatar {
	border-radius: 50%;
	margin-bottom: 14px;
	background: var(--poudre);
}

.archive-header__title {
	font-size: clamp(46px, 7vw, 96px);
	line-height: 0.95;
	letter-spacing: -0.04em;
	margin: 0 0 18px;
}

.archive-header__description {
	max-width: 64ch;
	font-size: 19px;
	line-height: 1.6;
	color: var(--ink-soft);
	margin: 0;
}

.archive-header__description p {
	margin: 0 0 0.8em;
}

.search-page-form {
	margin: 20px 0 8px;
	max-width: 520px;
}

.search-page-form .search-form {
	border: 2px solid var(--ink);
	padding: 4px 6px 4px 12px;
	background: #fff;
}

.search-page-form .search-form__input {
	width: 100%;
	font-size: 18px;
	padding: 10px 4px;
}

.not-found {
	text-align: center;
	padding: 64px 0 24px;
}

.not-found__code {
	display: inline-block;
	margin: 0 0 8px;
	padding: 0 0.15em;
	font-family: var(--font-title);
	font-size: clamp(110px, 20vw, 220px);
	line-height: 0.9;
	letter-spacing: -0.04em;
	background: linear-gradient(transparent 62%, var(--accent-pale) 62% 92%, transparent 92%);
	font-style: italic;
}

.not-found p {
	font-size: 18px;
}

.not-found .search-page-form {
	margin-inline: auto;
}

.pagination {
	margin: 56px 0 0;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 46px;
	padding: 13px 15px;
	border: 1px solid var(--ink);
	text-align: center;
	font-weight: 700;
	font-size: 14px;
	transition: background-color 0.15s ease;
}

.pagination .page-numbers.current {
	background: var(--ink);
	color: #fff;
}

.pagination .page-numbers.dots {
	border-color: transparent;
}

.pagination a.page-numbers:hover {
	background: var(--accent);
}

/* ==========================================================================
   10. Pied de page
   ========================================================================== */
.site-footer {
	margin-top: 104px;
	background: var(--ink);
	color: #e9e5dc;
	padding: 64px 0 32px;
	border-top: 6px solid var(--accent);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 48px;
}

.site-footer__brand {
	margin: 0 0 14px;
	font-family: var(--font-title);
	font-size: 52px;
	font-weight: 600;
	font-style: italic;
	line-height: 1;
	letter-spacing: -0.035em;
	color: #fff;
}

.site-footer__brand a::after {
	content: ".";
	color: var(--accent-light);
}

.site-footer__about p {
	max-width: 44ch;
	line-height: 1.65;
}

.site-footer__title {
	margin: 6px 0 16px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--accent-light);
}

.site-footer .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-footer .menu li {
	margin-bottom: 10px;
}

.site-footer .menu a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: var(--accent-light);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.social {
	list-style: none;
	display: flex;
	gap: 10px;
	padding: 0;
	margin: 22px 0 0;
}

.social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.social a:hover {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.site-footer__copy {
	margin: 48px 0 0;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 13px;
	color: #a9a59c;
}

/* ==========================================================================
   11. Blocs WordPress
   ========================================================================== */
.alignleft {
	float: left;
	margin: 0.3em 1.4em 1em 0;
}

.alignright {
	float: right;
	margin: 0.3em 0 1em 1.4em;
}

.aligncenter {
	margin-inline: auto;
}

.wp-caption-text,
.wp-element-caption {
	font-size: 13px;
	color: var(--ink-soft);
}

.wp-block-button__link {
	background: var(--accent);
	color: #fff;
	border: 2px solid var(--ink);
	border-radius: 0;
	font-weight: 700;
	box-shadow: 4px 4px 0 var(--ink);
}

.article__content .wp-block-button__link {
	text-decoration: none;
}

.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--ink);
}

.wp-block-pullquote {
	border-block: 4px solid var(--accent);
}

.sticky,
.bypostauthor {
	/* Classes WordPress requises. */
	outline: 0;
}

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.has-ad-sidebar .article__columns {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 40px;
	}

	.hero {
		gap: 48px;
	}
}

@media (max-width: 960px) {
	.grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.feature {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}

	.has-ad-sidebar .article__columns {
		grid-template-columns: minmax(0, 760px);
	}

	.article__aside .ad-space {
		position: static;
		margin: 40px auto 0;
		width: min(300px, 100%);
	}

	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.site-footer__about {
		grid-column: 1 / -1;
	}
}

@media (max-width: 800px) {
	:root {
		--gutter: 18px;
	}

	.hero {
		grid-template-columns: 1fr;
		gap: 30px;
		margin-top: 24px;
	}

	.hero__media {
		margin-right: 12px;
	}

	.hero__media::before {
		inset: 12px -12px -12px 12px;
	}

	.hero__media img,
	.hero .placeholder {
		aspect-ratio: 1.35;
	}

	.grid--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.trend .grid--3 > :nth-child(3) {
		display: none;
	}

	.section {
		margin-top: 56px;
	}

	.trend {
		margin-top: 64px;
		padding: 40px 0 44px;
	}

	/* Menu mobile repliable */
	.nav {
		border-top-width: 2px;
	}

	.nav__toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
		width: 100%;
		padding: 15px 0;
		border: 0;
		background: transparent;
		color: var(--ink);
		font: 700 12px/1 var(--font-text);
		letter-spacing: 0.18em;
		text-transform: uppercase;
		cursor: pointer;
	}

	.nav__toggle-bars,
	.nav__toggle-bars::before,
	.nav__toggle-bars::after {
		display: block;
		width: 18px;
		height: 2px;
		background: currentColor;
		transition: transform 0.2s ease, background-color 0.2s ease;
	}

	.nav__toggle-bars {
		position: relative;
	}

	.nav__toggle-bars::before,
	.nav__toggle-bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.nav__toggle-bars::before { top: -6px; }
	.nav__toggle-bars::after { top: 6px; }

	.nav.is-open .nav__toggle-bars { background: transparent; }
	.nav.is-open .nav__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
	.nav.is-open .nav__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

	.nav__menu {
		display: none;
	}

	.nav.is-open .nav__menu {
		display: block;
		border-top: 1px solid var(--line);
	}

	.nav .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 4px 0 10px;
	}

	.nav .menu a {
		padding: 14px 4px;
		text-align: center;
		border-bottom: 1px solid var(--line);
	}

	.nav .menu li:last-child a {
		border-bottom: 0;
	}

	/* Sans JavaScript, le menu reste visible. */
	.no-js .nav__toggle { display: none; }
	.no-js .nav__menu { display: block; }
}

@media (max-width: 600px) {
	.topbar__tagline {
		display: none;
	}

	.topbar .search-form {
		width: 100%;
		border-bottom: 0;
	}

	.topbar__tools {
		width: 100%;
		gap: 10px;
	}

	.topbar__tools .search-form {
		flex: 1;
	}

	.search-form__input {
		width: 100%;
		flex: 1;
	}

	.brand {
		padding: 18px 0 16px;
		font-size: clamp(50px, 16vw, 68px);
	}

	.hero__title {
		font-size: 40px;
	}

	.hero__excerpt {
		font-size: 16px;
	}

	.card__title {
		font-size: 20px;
	}

	.card--large .card__title {
		font-size: 30px;
	}

	.article {
		padding-top: 24px;
	}

	.article__title {
		font-size: 38px;
	}

	.article__lead {
		font-size: 19px;
	}

	.article__content {
		font-size: 18px;
		line-height: 1.7;
	}

	.article__content blockquote {
		padding: 56px 22px 22px;
		font-size: 22px;
	}

	.article__content blockquote::before {
		left: 18px;
		top: 10px;
	}

	.article__content .toc {
		padding: 20px;
	}

	.article__image {
		margin-inline: calc(-1 * var(--gutter));
	}

	.post-meta {
		font-size: 13px;
	}

	.author-box {
		flex-direction: column;
		gap: 12px;
		padding: 22px;
	}

	.share__btn span {
		display: none;
	}

	.share__btn--pinterest span {
		display: inline;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.site-footer__brand {
		font-size: 44px;
	}
}

@media (max-width: 440px) {
	.grid--4,
	.grid--3 {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.trend .grid--3 {
		gap: 16px;
	}

	.trend .grid--3 > :nth-child(3) {
		display: grid;
	}

	/* Sur petit écran, les cartes passent en liste compacte. */
	.grid .card,
	.card--list {
		display: grid;
		grid-template-columns: 116px minmax(0, 1fr);
		gap: 16px;
		align-items: center;
	}

	.grid .card {
		padding: 16px 0;
		border-bottom: 1px solid var(--line);
	}

	.grid .card .card__media img,
	.grid .card .placeholder,
	.card--list .card__media img {
		aspect-ratio: 1;
	}

	.grid .card .card__body {
		padding-top: 0;
	}

	.card__title,
	.card--list .card__title {
		font-size: 18px;
		margin: 8px 0 4px;
	}

	.trend .grid .card {
		padding: 0;
		border: 0;
		box-shadow: 4px 4px 0 var(--ink);
	}

	.trend .card__media::after {
		font-size: 24px;
		padding: 6px 8px 2px;
	}

	.trend .card__body {
		padding: 10px 12px 10px 0;
	}
}

/* ==========================================================================
   13. Réglage optique de Fraunces
   L'axe « opsz » adapte le dessin à la taille : plus robuste et plus ouvert
   sur les petits titres, plus fin et plus élégant sur les grands.
   ========================================================================== */
.brand,
.site-footer__brand {
	font-weight: 700;
	font-variation-settings: "opsz" 72;
}

.hero__title,
.article__title,
.archive-header__title {
	font-weight: 600;
	font-variation-settings: "opsz" 72;
	letter-spacing: -0.015em;
}

.section__title {
	font-weight: 600;
	font-variation-settings: "opsz" 48;
}

.card__title,
.card--list .card__title,
.author-box__name {
	font-weight: 600;
	font-variation-settings: "opsz" 18;
	letter-spacing: 0;
}

.card--large .card__title,
.article__content h2 {
	font-weight: 600;
	font-variation-settings: "opsz" 36;
}

.article__content h3,
.article__content blockquote,
.toc li::before {
	font-weight: 600;
	font-variation-settings: "opsz" 18;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
