/*
Theme Name: Méridien
Theme URI: https://meridienjournal.com
Author: Méridien
Description: Thème éditorial du journal Méridien (actualité internationale). Bleu nuit, ivoire, bordeaux et or discret ; titres en Source Serif 4, textes en Source Sans 3. Hiérarchie de média d'information, pages d'articles lisibles, formulaires de contact et de newsletter intégrés, données structurées.
Version: 2.0.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meridien
Tags: news, blog, custom-menu, custom-logo, featured-images
*/

/* Mise en page : grille de quotidien, ivoire pour la lecture, bleu nuit pour l'en-tête et le pied. */
:root {
	--night: #101C2C;
	--night-deep: #0B1420;
	--ivory: #F5F2EA;
	--paper: #FBF9F4;
	--paper-2: #ECE6D9;
	--ink: #101C2C;
	--ink-2: #364253;
	--gray: #697586;
	--line: #DCD4C4;
	--line-soft: #E8E2D5;
	--bordeaux: #7D2638;
	--bordeaux-dark: #641D2C;
	--gold: #B99A63;
	--gold-soft: rgba(185, 154, 99, .35);

	--serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
	--sans: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	--wrap: 76rem;
	--gutter: max(1.25rem, env(safe-area-inset-left, 0px));
	--radius: 4px;
}

/* --- Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
::selection { background: var(--bordeaux); color: var(--ivory); }
.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; }
.m-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--bordeaux); color: #fff; padding: .6rem 1rem; }
.m-skip:focus { left: 1rem; top: 1rem; }
html.m-noscroll { overflow: hidden; }
.m-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: max(1.25rem, env(safe-area-inset-right, 0px)); }
.m-ico { width: 1.1em; height: 1.1em; flex-shrink: 0; }
.m-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* --- Typographie commune ------------------------------------------------ */
.m-h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.m-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.m-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux); }
.m-kicker a:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-kicker__flag { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .55rem; background: var(--bordeaux); color: var(--ivory); border-radius: 2px; }
.m-cat { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bordeaux); }
a.m-cat:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-meta { font-size: .85rem; color: var(--gray); font-variant-numeric: tabular-nums; }
.m-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.m-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-top: .7rem; margin-bottom: 1.5rem; border-top: 3px solid var(--night); }
.m-section-title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.m-section-intro { margin-top: .25rem; color: var(--gray); font-size: .98rem; }
.m-more { display: inline-flex; align-items: center; gap: .35rem; font-size: .9rem; font-weight: 600; color: var(--bordeaux); white-space: nowrap; }
.m-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.m-more .m-ico { width: 1em; height: 1em; }
.m-noimg { display: block; width: 100%; height: 100%; min-height: 4rem; background: linear-gradient(135deg, var(--paper-2), var(--line)); }

/* --- Boutons et champs -------------------------------------------------- */
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem; line-height: 1.2; border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.m-btn--sm { min-height: 2.25rem; padding: .4rem .9rem; font-size: .88rem; }
.m-btn--accent { background: var(--bordeaux); color: #fff; }
.m-btn--accent:hover { background: var(--bordeaux-dark); }
.m-btn--dark { background: var(--night); color: var(--ivory); }
.m-btn--dark:hover { background: #1B2B42; }
.m-btn--outline { border-color: var(--night); color: var(--night); }
.m-btn--outline:hover { background: var(--night); color: var(--ivory); }
.m-input { width: 100%; min-height: 2.9rem; padding: .65rem .85rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 1rem; }
.m-input:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 3px rgba(16, 28, 44, .12); }
textarea.m-input { min-height: 9rem; resize: vertical; }
.m-field { margin-bottom: 1rem; }
.m-field label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.m-field .required { color: var(--bordeaux); }
.m-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--ink-2); margin: .3rem 0 1rem; cursor: pointer; }
.m-check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--bordeaux); flex-shrink: 0; }
.m-field-error { color: var(--bordeaux); font-size: .9rem; font-weight: 600; margin-bottom: .8rem; }
.m-notice { padding: .75rem 1rem; border-radius: var(--radius); font-size: .95rem; margin-bottom: 1rem; border-left: 3px solid; }
.m-notice--ok { background: #EAF3EC; border-color: #2E7D4F; color: #1E5134; }
.m-notice--err { background: #F8E8EA; border-color: var(--bordeaux); color: var(--bordeaux-dark); }
.m-notice--info { background: var(--paper-2); border-color: var(--gold); color: var(--ink-2); }
.m-grid-2 { display: grid; grid-template-columns: 1fr; gap: 0 1rem; }
@media (min-width: 640px) { .m-grid-2 { grid-template-columns: 1fr 1fr; } }

/* --- En-tête ------------------------------------------------------------ */
.m-masthead { background: var(--night); color: var(--ivory); }
.m-topbar { border-bottom: 1px solid rgba(245, 242, 234, .1); font-size: .8rem; color: rgba(245, 242, 234, .7); }
.m-topbar__inner { display: flex; align-items: center; gap: 1.25rem; min-height: 2.1rem; }
.m-topbar__date::first-letter { text-transform: uppercase; }
.m-topbar__edition { color: var(--gold); letter-spacing: .06em; }
.m-topbar__links { margin-left: auto; display: flex; gap: 1.1rem; }
.m-topbar__links a:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 3px; }
.m-brandrow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.m-brand { grid-column: 2; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; }
.m-brand__emblem { width: auto; height: 2.6rem; margin-bottom: .25rem; }
.m-brand__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: .22em; text-transform: uppercase; padding-left: .22em; }
.m-brand__tagline { font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); padding-left: .32em; }
.m-brandrow__menu { grid-column: 1; justify-self: start; }
.m-iconbtn.m-brandrow__menu { display: none; }
.m-brandrow__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: .6rem; }
.m-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; color: inherit; transition: background-color .15s; }
.m-iconbtn:hover { background: rgba(245, 242, 234, .1); }
.m-iconbtn .m-ico { width: 1.25rem; height: 1.25rem; }
.m-search { background: var(--night-deep); border-top: 1px solid rgba(245, 242, 234, .1); padding: 1rem 0; }

.m-nav { position: sticky; top: 0; z-index: 40; background: var(--night); color: var(--ivory); border-top: 1px solid rgba(185, 154, 99, .3); box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.admin-bar .m-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .m-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar .m-nav { top: 0; } }
.m-nav__inner { display: flex; align-items: center; gap: 1rem; min-height: 3rem; }
.m-nav__home { display: none; }
.m-nav__home img { height: 1.4rem; width: auto; }
.m-nav__links { display: flex; justify-content: center; gap: .25rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.m-nav__links::-webkit-scrollbar { display: none; }
.m-nav__link { position: relative; flex-shrink: 0; padding: .85rem .8rem; font-size: .9rem; font-weight: 600; letter-spacing: .02em; color: rgba(245, 242, 234, .85); white-space: nowrap; }
.m-nav__link:hover { color: #fff; }
.m-nav__link.is-current { color: #fff; }
.m-nav__link.is-current::after, .m-nav__link:hover::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: 0; height: 3px; background: var(--gold); }

.m-searchform { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .3rem .3rem .3rem .85rem; color: var(--gray); max-width: 44rem; margin: 0 auto; }
.m-searchform__input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .45rem 0; color: var(--ink); font-size: 1rem; }
.m-searchform__input:focus { outline: none; }

/* Menu mobile */
.m-drawer { position: fixed; inset: 0; z-index: 90; }
.m-drawer__backdrop { position: absolute; inset: 0; background: rgba(11, 20, 32, .6); }
.m-drawer__panel { position: relative; width: min(22rem, 88vw); height: 100%; overflow-y: auto; background: var(--ivory); padding: calc(1rem + env(safe-area-inset-top, 0px)) 1.25rem 2rem calc(1.25rem + env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: .75rem; }
.m-drawer__head { display: flex; align-items: center; justify-content: space-between; }
.m-drawer__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.m-drawer .m-iconbtn:hover { background: var(--paper-2); }
.m-drawer .m-searchform { margin: 0; }
.m-drawer .m-searchform .m-btn { display: none; }
.m-drawer__label { margin-top: .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux); }
.m-drawer__nav { display: flex; flex-direction: column; }
.m-drawer__nav a { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.m-drawer__nav--small a { font-family: var(--sans); font-size: 1rem; font-weight: 500; }

@media (max-width: 860px) {
	.m-topbar__edition, .m-topbar__links { display: none; }
	.m-iconbtn.m-brandrow__menu { display: inline-flex; }
	.m-brandrow__nl { display: none; }
	.m-brand__emblem { height: 2rem; }
	.m-brand__tagline { font-size: .58rem; letter-spacing: .22em; }
	.m-nav__links { justify-content: flex-start; }
}

/* --- Accueil : l'essentiel + à la une ----------------------------------- */
.m-une { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 960px) { .m-une { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; } }
.m-lead-story__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.m-lead-story__media img, .m-lead-story__media .m-noimg { width: 100%; height: 100%; object-fit: cover; }
.m-lead-story__body { padding-top: 1.1rem; display: flex; flex-direction: column; gap: .7rem; }
.m-lead-story__title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.m-lead-story__title a:hover, .m-card__title a:hover, .m-analysis__title a:hover { color: var(--bordeaux); }
.m-lead-story__dek { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.m-alaune { border-top: 3px solid var(--night); padding-top: .7rem; }
.m-alaune .m-section-title { margin-bottom: .5rem; }
.m-alaune__item { border-bottom: 1px solid var(--line); }
.m-alaune__link { display: flex; gap: .9rem; padding: 1rem 0; }
.m-alaune__thumb { width: 5.5rem; aspect-ratio: 1; flex-shrink: 0; overflow: hidden; background: var(--paper-2); }
.m-alaune__thumb img, .m-alaune__thumb .m-noimg { width: 100%; height: 100%; object-fit: cover; }
.m-alaune__text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.m-alaune__title { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.25; }
.m-alaune__link:hover .m-alaune__title { color: var(--bordeaux); }
.m-alaune .m-more { margin-top: 1rem; }

/* --- Cartes ------------------------------------------------------------- */
.m-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 1.75rem; }
@media (min-width: 640px) { .m-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .m-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-card { display: flex; flex-direction: column; }
.m-card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.m-card__media img, .m-card__media .m-noimg { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.m-card:hover .m-card__media img { transform: scale(1.03); }
.m-card__body { display: flex; flex-direction: column; gap: .45rem; padding-top: .9rem; flex: 1; }
.m-card__title { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.2; text-wrap: balance; }
.m-card__dek { color: var(--ink-2); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-card .m-meta { margin-top: auto; padding-top: .3rem; }

/* --- Décryptages (bandeau bleu nuit) ------------------------------------ */
.m-band { margin-top: clamp(2.5rem, 5vw, 4rem); background: var(--night); color: var(--ivory); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.m-section-head--inverse { border-top-color: var(--gold); }
.m-section-head--inverse .m-section-intro { color: rgba(245, 242, 234, .7); }
.m-band .m-more { color: var(--gold); }
.m-analyses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 960px) { .m-analyses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-analysis { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1.25rem; align-items: start; }
.m-analysis__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night-deep); }
.m-analysis__media img, .m-analysis__media .m-noimg { width: 100%; height: 100%; object-fit: cover; }
.m-analysis__body { display: flex; flex-direction: column; gap: .5rem; }
.m-band .m-cat { color: var(--gold); }
.m-analysis__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; line-height: 1.2; }
.m-band .m-analysis__title a:hover { color: var(--gold); }
.m-analysis__dek { color: rgba(245, 242, 234, .78); font-size: .97rem; }
.m-band .m-meta { color: rgba(245, 242, 234, .6); }
@media (max-width: 560px) { .m-analysis { grid-template-columns: minmax(0, 1fr); } }

/* --- Le monde par régions ----------------------------------------------- */
.m-regions__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: start; }
@media (min-width: 960px) { .m-regions__grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.m-regions__stage { background: var(--paper); border: 1px solid var(--line); padding: 1rem; }
.m-regions__map { position: relative; aspect-ratio: 1000 / 470; max-width: 100%; }
.m-regions__loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--gray); font-size: .9rem; padding: 1rem; }
.m-worldmap { width: 100%; height: 100%; }
.m-worldmap__neutral path { fill: #E6DFD1; stroke: var(--paper); stroke-width: .6; }
.m-worldmap__region path { fill: #D3C6AC; stroke: var(--paper); stroke-width: .6; transition: fill .2s; }
.m-worldmap__region.is-available { cursor: pointer; }
.m-worldmap__region.is-available:hover path { fill: #BFA984; }
.m-worldmap__region.is-active path, .m-worldmap__region.is-active:hover path { fill: var(--bordeaux); }
.m-worldmap__marker { cursor: pointer; }
.m-worldmap__marker circle { fill: var(--night); stroke: var(--paper); stroke-width: 2; }
.m-worldmap__marker text { fill: var(--ivory); font: 700 11px var(--sans); pointer-events: none; }
.m-regions__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.m-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.4rem; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 600; color: var(--ink-2); transition: all .15s; }
.m-chip:hover { border-color: var(--night); color: var(--ink); }
.m-chip.is-active { background: var(--night); border-color: var(--night); color: var(--ivory); }
.m-chip__n { font-size: .8rem; opacity: .7; font-variant-numeric: tabular-nums; }
.m-panel__title { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; }
.m-panel__desc { margin-top: .25rem; color: var(--gray); font-size: .95rem; }
.m-panel__list { margin-top: .75rem; }
.m-panel__list li { border-bottom: 1px solid var(--line); }
.m-mini { display: flex; gap: .85rem; align-items: center; padding: .8rem 0; }
.m-mini__thumb { width: 4.5rem; height: 3.3rem; flex-shrink: 0; overflow: hidden; background: var(--paper-2); }
.m-mini__thumb img, .m-mini__thumb .m-noimg { width: 100%; height: 100%; object-fit: cover; }
.m-mini__body { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.m-mini__title { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.m-mini:hover .m-mini__title { color: var(--bordeaux); }
.m-panel .m-more { margin-top: 1rem; }
.m-panel__empty { color: var(--gray); padding: 1rem 0; }

/* --- Newsletter --------------------------------------------------------- */
.m-nl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--bordeaux); }
@media (min-width: 900px) { .m-nl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.m-nl__text { display: flex; flex-direction: column; gap: .6rem; }
.m-nl__title { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 700; line-height: 1.15; }
.m-nl__lead { color: var(--ink-2); }
.m-nl-form__row { display: flex; gap: .5rem; margin-bottom: .6rem; }
.m-nl-form__row .m-input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .m-nl-form__row { flex-direction: column; } }

/* --- Article ------------------------------------------------------------ */
.m-article__head { max-width: 52rem; padding-top: clamp(1.5rem, 4vw, 2.75rem); display: flex; flex-direction: column; gap: .9rem; }
.m-crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: var(--gray); }
.m-crumbs a:hover { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.m-article__title { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
.m-article__dek { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink-2); }
.m-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m-byline { font-size: .95rem; line-height: 1.5; }
.m-article__figure { max-width: 64rem; margin-top: 1.75rem; }
.m-article__figure img { width: 100%; max-height: 640px; object-fit: cover; }
.m-article__figure figcaption { margin-top: .5rem; font-size: .85rem; color: var(--gray); }

.m-prose { max-width: 42rem; margin: 2rem auto 0; font-size: 1.15rem; line-height: 1.75; color: var(--ink); }
.m-prose > * + * { margin-top: 1.25em; }
.m-prose p.wp-block-paragraph, .m-prose p { color: var(--ink) !important; font-size: inherit !important; }
.m-prose h2, .m-prose h3, .m-prose h4 { font-family: var(--serif); font-weight: 700; line-height: 1.2; color: var(--ink) !important; margin-top: 2em; }
.m-prose h2 { font-size: 1.65rem !important; }
.m-prose h3 { font-size: 1.35rem !important; }
.m-prose a { color: var(--bordeaux); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.m-prose a:hover { text-decoration-thickness: 2px; }
.m-prose ul, .m-prose ol { padding-left: 1.3em; }
.m-prose li + li { margin-top: .4em; }
.m-prose blockquote { border-left: 3px solid var(--gold); padding-left: 1.25rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--ink-2); }
.m-prose figure img { width: 100%; }
.m-prose figcaption { font-size: .85rem; color: var(--gray); margin-top: .45rem; }
.m-prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.m-prose th, .m-prose td { border-bottom: 1px solid var(--line); padding: .55rem .7rem; text-align: left; }
.m-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.m-sources { margin-top: 2.5em !important; padding: 1.25rem 1.4rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--night); font-size: .95rem; line-height: 1.6; }
.m-sources h2, .m-sources h3 { margin-top: 0 !important; font-family: var(--sans); font-size: .8rem !important; letter-spacing: .12em; text-transform: uppercase; color: var(--bordeaux) !important; }
.m-sources ul { margin-top: .6rem; padding-left: 1.1em; }
.m-sources-inline { font-size: .95rem !important; padding: 1rem 1.2rem; background: var(--paper); border-left: 3px solid var(--night); }

.m-article__foot { max-width: 42rem; margin: 2.5rem auto 0; display: flex; flex-direction: column; gap: 1.25rem; }
.m-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.m-tag { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--ink-2); background: #fff; }
.m-tag:hover { border-color: var(--night); color: var(--ink); }
.m-article__share { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.m-article__share-label { font-weight: 600; font-size: .95rem; }
.m-share { display: flex; flex-wrap: wrap; gap: .4rem; }
.m-share__btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--night); transition: all .15s; }
.m-share__btn:hover { background: var(--night); border-color: var(--night); color: var(--ivory); }
.m-share__btn .m-ico { width: 1rem; height: 1rem; }
.m-share__done { position: absolute; bottom: calc(100% + .4rem); left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--night); color: var(--ivory); font-size: .78rem; padding: .25rem .5rem; border-radius: var(--radius); }

/* --- Commentaires ------------------------------------------------------- */
.m-comments { max-width: 48rem; }
.m-comments__empty { color: var(--gray); margin-bottom: 1.5rem; }
.m-comment-list { margin-bottom: 2rem; }
.m-comment-list .children { list-style: none; margin: 1rem 0 0 1.25rem; padding-left: 1rem; border-left: 2px solid var(--line); }
.m-comment + .m-comment { margin-top: 1rem; }
.m-comment__body { background: var(--paper); border: 1px solid var(--line); padding: 1.1rem 1.25rem; }
.m-comment__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.m-comment__initials { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--night); color: var(--gold); font-family: var(--serif); font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.m-comment__name { display: block; font-weight: 700; }
.m-comment__text { color: var(--ink-2); overflow-wrap: anywhere; }
.m-comment__text p + p { margin-top: .7em; }
.m-comment__reply { margin-top: .6rem; }
.m-comment__reply a { font-size: .85rem; font-weight: 700; color: var(--bordeaux); }
.m-comment-form { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); }
.m-comment-form__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; margin-bottom: .4rem; }
.m-comment-form__title small { margin-left: .75rem; font-family: var(--sans); font-size: .85rem; font-weight: 600; }
.m-comment-form__title small a { color: var(--bordeaux); }
.m-comment-form__note { font-size: .9rem; color: var(--gray); margin-bottom: 1rem; }
.m-comment-form .form-submit { margin: 0; }
.comment-awaiting-moderation { display: none; }
.m-comments .nav-links { display: flex; justify-content: space-between; margin-bottom: 2rem; font-weight: 600; color: var(--bordeaux); }

/* --- Archives, recherche, 404 ------------------------------------------- */
.m-archive-head { display: flex; flex-direction: column; gap: .6rem; padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.m-archive-head__desc { color: var(--ink-2); max-width: 62ch; }
.m-archive-head__search { margin-top: .75rem; max-width: 44rem; }
.m-archive-head__search .m-searchform { margin: 0; }
.m-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: 3rem; }
.m-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; min-height: 2.6rem; padding: 0 .9rem; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.m-pagination .page-numbers:hover { border-color: var(--night); }
.m-pagination .current { background: var(--night); border-color: var(--night); color: var(--ivory); }
.m-empty-box { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; padding: 2rem; background: var(--paper); border: 1px solid var(--line); max-width: 44rem; }
.m-empty-box .m-searchform { margin: 0; width: 100%; }
.m-empty-box__title { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.m-404, .m-empty { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; padding-bottom: 2rem; }
.m-404 .m-searchform { margin: 0; width: 100%; }

/* --- Pages (contenu en blocs) ------------------------------------------- */
.m-page__head { padding-top: clamp(2rem, 4vw, 3rem); }
.m-page .m-prose { margin-top: 1.5rem; }
.m-blocks { width: 100%; }
.m-blocks__inner { max-width: var(--wrap); margin: 0 auto; padding: 0 max(1.25rem, env(safe-area-inset-right, 0px)) 0 var(--gutter); }
.m-blocks__inner > * + * { margin-top: 0; }
.m-blocks__inner > .wp-block-group, .m-blocks__inner > .wp-block-columns { margin-top: clamp(2rem, 4vw, 3rem); }
.m-blocks__inner > :first-child { margin-top: clamp(1.5rem, 4vw, 2.5rem); }
.m-blocks h1, .m-blocks h2, .m-blocks h3, .m-blocks h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; text-wrap: balance; }
.m-blocks h1 { font-size: clamp(2rem, 4vw, 3rem); }
.m-blocks h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.m-blocks h3 { font-size: 1.3rem; }
.m-blocks p { max-width: 70ch; }
.m-blocks p + p, .m-blocks h2 + p, .m-blocks h3 + p, .m-blocks h1 + p { margin-top: .8rem; }
.m-blocks .wp-block-heading + .wp-block-heading { margin-top: .5rem; }
.m-blocks a:not(.wp-block-button__link) { color: var(--bordeaux); text-decoration: underline; text-underline-offset: 3px; }
.m-blocks .wp-block-group.has-background { padding: clamp(1.5rem, 4vw, 2.75rem); }
.m-blocks .wp-block-columns { gap: 1.5rem; margin-bottom: 0; }
.m-blocks .wp-block-column > * + * { margin-top: .75rem; }
.m-blocks .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.m-blocks .wp-block-buttons { margin-top: 1.25rem; gap: .6rem; }
.m-blocks .wp-block-button__link { border-radius: var(--radius); padding: .7rem 1.3rem; font-weight: 600; font-size: .95rem; text-decoration: none; }
.m-blocks .is-style-fill .wp-block-button__link, .m-blocks .wp-block-button__link.has-primary-background-color { background: var(--bordeaux) !important; color: #fff !important; }
.m-blocks .is-style-outline .wp-block-button__link { background: transparent !important; border: 1px solid var(--night) !important; color: var(--night) !important; }
.m-blocks .wp-block-quote { border-left: 3px solid var(--gold); padding-left: 1.25rem; font-family: var(--serif); font-style: italic; font-size: 1.25rem; }
.m-blocks .hostinger-ai-card { background: var(--paper); border: 1px solid var(--line); padding: 1.5rem; height: 100%; }
.m-blocks .hostinger-ai-image { overflow: hidden; }
.m-blocks .hostinger-ai-aspect-portrait img { aspect-ratio: 4 / 5; }
.m-blocks .hostinger-ai-aspect-landscape img { aspect-ratio: 16 / 10; }
.m-blocks .hostinger-ai-stat { font-family: var(--serif); font-weight: 700; }
.m-blocks .hostinger-ai-map { display: none; }
.m-blocks .hostinger-ai-contact-details { display: grid; gap: 1rem; }
.m-blocks .hostinger-ai-contact-field a { color: var(--bordeaux); }
.m-blocks .wp-block-query .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.5rem; list-style: none; padding: 0; }
.m-blocks .wp-block-post-title { font-family: var(--serif); font-size: 1.25rem; margin-top: .6rem; }

/* Couleurs et tailles héritées de l'ancien thème (pages existantes) */
.has-primary-color, .has-ink-color { color: var(--ink) !important; }
.has-ink-soft-color { color: var(--gray) !important; }
.has-ink-inverse-color { color: var(--ivory) !important; }
.has-accent-color { color: var(--bordeaux) !important; }
.has-gold-color { color: var(--gold) !important; }
.has-surface-background-color { background-color: var(--paper) !important; }
.has-surface-alt-background-color { background-color: var(--paper-2) !important; }
.has-primary-background-color, .has-ink-background-color { background-color: var(--night) !important; }
.has-accent-background-color { background-color: var(--bordeaux) !important; }
.has-primary-background-color, .has-primary-background-color h1, .has-primary-background-color h2, .has-primary-background-color h3, .has-primary-background-color p { color: var(--ivory); }
.has-small-font-size { font-size: .9rem !important; }
.has-medium-font-size { font-size: 1.1rem !important; }
.has-large-font-size { font-size: 1.35rem !important; }
.has-x-large-font-size { font-size: clamp(1.5rem, 3vw, 2rem) !important; }
.has-xx-large-font-size { font-size: clamp(2rem, 4.5vw, 3rem) !important; }
.has-text-align-center { text-align: center; }
.has-text-align-center.wp-block-heading, p.has-text-align-center { margin-left: auto; margin-right: auto; }
.m-prose .has-x-large-font-size, .m-prose .has-medium-font-size { font-size: inherit !important; }

/* Formulaire de contact */
.m-contact-form { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); max-width: 44rem; }

/* --- Pied de page ------------------------------------------------------- */
.m-footer { margin-top: clamp(3rem, 6vw, 5rem); background: var(--night); color: rgba(245, 242, 234, .78); padding: 3rem 0 calc(1.5rem + env(safe-area-inset-bottom, 0px)); font-size: .95rem; }
.m-footer__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 720px) { .m-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .m-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .m-footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .m-footer__brand { grid-column: auto; } }
.m-footer__brand img { width: auto; height: 6.5rem; margin-bottom: 1rem; }
.m-footer__brand p { max-width: 36ch; line-height: 1.6; }
.m-footer__title { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.m-footer__col nav { display: flex; flex-direction: column; gap: .5rem; }
.m-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.m-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(245, 242, 234, .12); font-size: .85rem; color: rgba(245, 242, 234, .6); }
.m-footer__legal { display: flex; flex-wrap: wrap; gap: 1.1rem; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
