/*
Theme Name: Mix Maxi
Theme URI: https://mixmaxiradio.fr/
Author: La rédaction d'Mix Maxi
Description: Thème éditorial du média Mix Maxi : sapin profond, ambre, titres en Bricolage.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: mixmax
*/

/* ══════════ Jetons : un fond papier, une encre, UN accent ══════════ */
:root {
	--papier: #FBF6EE;
	--papier-clair: #FFFFFF;
	--papier-2: #F1E6D6;
	--encre: #141B3C;
	--encre-2: #2E355A;
	--doux: #555B78;
	--filet: #E3D6C2;
	--accent: #C8321D;
	--accent-fort: #97230F;
	--accent-clair: #FFC24A;
	--accent-voile: #FCE4DA;

	--titre: "Dela Gothic One", system-ui, sans-serif;
	--texte: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--cadre: 1240px;
	--marge: 20px;
	--ombre-papier: 0 1px 1px rgba(20,27,60,.07), 0 10px 26px -10px rgba(20,27,60,.26), 0 26px 52px -26px rgba(20,27,60,.3);
	--tete-h: 76px;

	/* Habillage des blocs figés (blocs-valides.css) : seules ces variables changent */
	--sb-fond: #FFFFFF;
	--sb-encre: #141B3C;
	--sb-doux: #555B78;
	--sb-filet: #E3D6C2;
	--sb-accent: #C8321D;
	--sb-accent-fort: #97230F;
	--sb-accent-2: #97230F;
	--sb-surf: #F6EEE2;
	--sb-surf2: #F1E6D6;
	--sb-rub: #C8321D;
	--sb-rayon: 8px;
	--sb-ombre: 0 1px 1px rgba(20,27,60,.06), 0 8px 22px -10px rgba(20,27,60,.25);
	--sb-ombre-haut: 0 2px 3px rgba(20,27,60,.08), 0 18px 40px -16px rgba(20,27,60,.35);
	--sb-titre: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sb-lecture: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--sb-aside-largeur: 300px;
	--sb-haut-collant: 92px;
	--sb-alerte: #9B1C2E;
	--sb-alerte-fond: #FBEFF0;
	--sb-alerte-bord: #E6BFC4;
	color-scheme: light;
}

/* ══════════ Base ══════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background-color: var(--papier);
	color: var(--encre);
	font: 400 17px/1.62 var(--texte);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
	overflow-x: clip;
}
main { flex: 1 0 auto; display: block; }
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: var(--accent-fort); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--titre); font-weight: 400; color: var(--encre); margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-fort); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: #fff; }

.mx-cadre, .sb-cadre { width: min(var(--cadre), 100% - 2 * var(--marge)); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mx-saut:focus { position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto; margin: 0; padding: 12px 18px; background: var(--encre); color: var(--papier); z-index: 200; }
.mx-ico { flex: none; }
.mx-fond-papier { background: transparent; }
.mx-fond-papier2 { --filet: #D9C8AE; background: var(--papier-2); border-block: 1px solid #DDCDB5; }
.mx-fond-nuit { background: var(--encre); color: var(--papier); }
.mx-fond-nuit :focus-visible, .mx-pied :focus-visible { outline-color: var(--accent-clair); }

/* ══════════ En-tête : deux étages, le second porte les sept rubriques ══════════ */
.mx-tete { position: sticky; top: 0; z-index: 60; background: var(--papier); border-bottom: 1px solid var(--filet); transition: box-shadow .2s; }
.mx-tete.is-pose { box-shadow: 0 8px 24px -14px rgba(20,27,60,.45); }
.mx-tete-haut { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .2s; }
.mx-tete.is-pose .mx-tete-haut { height: 56px; }
.mx-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); flex: none; }
.mx-logo .mx-symbole { width: 46px; height: 46px; transition: width .2s, height .2s; }
.mx-tete.is-pose .mx-logo .mx-symbole { width: 36px; height: 36px; }
.mx-logo-mot { font: 700 38px/1 var(--titre); letter-spacing: -.012em; transition: font-size .2s; }
.mx-tete.is-pose .mx-logo-mot { font-size: 30px; }
.mx-devise { margin: 0; padding-left: 28px; border-left: 1px solid var(--filet); font: italic 400 16px/1.35 var(--texte); color: var(--doux); max-width: 22ch; }
.mx-tete.is-pose .mx-devise { display: none; }
.mx-tete-outils { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mx-date { font: 500 14px/1 var(--texte); color: var(--doux); white-space: nowrap; }
.mx-tete.is-pose .mx-date { display: none; }
.mx-loupe, .mx-burger { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--encre); background: transparent; color: var(--encre); cursor: pointer; padding: 0; transition: background .15s, color .15s; }
.mx-loupe:hover, .mx-burger:hover { background: var(--encre); color: var(--papier); }
.mx-burger { display: none; }

.mx-nav { border-top: 1px solid var(--filet); background: var(--papier); }
.mx-nav .mx-cadre { display: block; }
.mx-nav-liste { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; align-items: stretch; gap: 8px; }
.mx-nav-liste li { margin: 0; padding: 0; }
.mx-nav-liste a { display: flex; align-items: center; gap: 8px; height: 100%; padding: 13px 2px 11px; font: 600 14.5px/1.2 var(--texte); color: var(--encre); text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; transition: border-color .15s, color .15s; }
.mx-nav-liste a .mx-ico { color: var(--accent-fort); }
.mx-nav-liste a:hover { border-bottom-color: var(--encre); }
.mx-nav-liste a.is-actif { border-bottom-color: var(--accent); }
.mx-nav-sec { display: none; }

/* ══════════ Petits éléments communs ══════════ */
.mx-ariane { font: 500 14px/1.4 var(--texte); color: var(--doux); }
.mx-ariane ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mx-ariane li { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.mx-ariane li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.mx-ariane a { color: inherit; text-decoration: none; padding-block: 8px; }
.mx-ariane a:hover { color: var(--encre); text-decoration: underline; }
.mx-ariane [aria-current] { color: var(--encre); }

.mx-kick { display: inline-flex; align-items: center; gap: 7px; font: 700 14px/1.2 var(--texte); color: var(--accent-fort); text-decoration: none; }
.mx-kick:hover span { text-decoration: underline; text-underline-offset: 3px; }
.mx-fond-nuit .mx-kick { color: var(--accent-clair); }

.mx-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font: 500 13.5px/1.3 var(--texte); color: var(--doux); }
.mx-fond-nuit .mx-meta { color: rgba(251,246,238,.78); }
.mx-temps { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mx-temps svg { display: block; flex: none; }
.mx-temps .piste { fill: none; stroke: var(--filet); stroke-width: 2.4; }
.mx-temps .arc { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; }
.mx-fond-nuit .mx-temps .piste { stroke: rgba(251,246,238,.25); }
.mx-fond-nuit .mx-temps .arc { stroke: var(--accent-clair); }

.mx-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .72em 1.5em; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 4px; font: 700 16px/1.2 var(--texte); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.mx-btn:hover { background: var(--accent-fort); border-color: var(--accent-fort); color: #fff; }
.mx-btn--encre { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.mx-btn--encre:hover { background: var(--accent-fort); border-color: var(--accent-fort); }
.mx-btn--ligne { background: transparent; border-color: var(--encre); color: var(--encre); }
.mx-btn--ligne:hover { background: var(--encre); border-color: var(--encre); color: var(--papier); }
.mx-btn--clair { background: var(--papier-clair); border-color: var(--papier-clair); color: var(--encre); }
.mx-btn--clair:hover { background: var(--encre); border-color: var(--encre); color: var(--papier-clair); }
.mx-lien-suite { display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1.2 var(--texte); color: var(--encre); text-decoration: none; border-bottom: 2px solid var(--accent); padding-block: 4px; }
.mx-lien-suite:hover { color: var(--accent-fort); }
.mx-fond-nuit .mx-lien-suite { color: var(--papier); border-bottom-color: var(--accent-clair); }
.mx-fond-nuit .mx-lien-suite:hover { color: var(--accent-clair); }

/* La visée : quatre repères de cadrage, posés sur la photo de une et sur l'en-tête d'article seulement */
.mx-visee { position: relative; }
.mx-visee::after {
	content: ""; position: absolute; inset: -12px; z-index: 3; pointer-events: none;
	--c: var(--accent);
	background:
		linear-gradient(var(--c), var(--c)) 0 0 / 28px 3px,
		linear-gradient(var(--c), var(--c)) 0 0 / 3px 28px,
		linear-gradient(var(--c), var(--c)) 100% 0 / 28px 3px,
		linear-gradient(var(--c), var(--c)) 100% 0 / 3px 28px,
		linear-gradient(var(--c), var(--c)) 0 100% / 28px 3px,
		linear-gradient(var(--c), var(--c)) 0 100% / 3px 28px,
		linear-gradient(var(--c), var(--c)) 100% 100% / 28px 3px,
		linear-gradient(var(--c), var(--c)) 100% 100% / 3px 28px;
	background-repeat: no-repeat;
}

/* ══════════ Cartes : verticale et ligne ══════════ */
.mx-carte { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mx-carte-photo { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 3 / 2; background: var(--papier-2); }
.mx-carte-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mx-carte-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.mx-carte-titre { font: 700 clamp(20px, 1.7vw, 24px)/1.2 var(--titre); letter-spacing: -.005em; }
.mx-carte-titre a, .mx-ligne-titre a { color: inherit; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .25s; }
.mx-carte-titre a:hover, .mx-ligne-titre a:hover { background-size: 100% 2px; }
.mx-carte-chapo { margin: 0; font: 400 16px/1.55 var(--texte); color: var(--encre-2); }
.mx-sans-photo.mx-carte { padding-top: 16px; border-top: 3px solid var(--accent); }
.mx-ligne { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; min-width: 0; }
.mx-ligne.mx-sans-photo { grid-template-columns: minmax(0, 1fr); padding-left: 14px; border-left: 3px solid var(--accent); }
.mx-ligne-photo { display: block; overflow: hidden; border-radius: 3px; aspect-ratio: 4 / 3; background: var(--papier-2); }
.mx-ligne-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mx-ligne-texte { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.mx-ligne-titre { font: 700 18.5px/1.25 var(--titre); }
.mx-fond-nuit .mx-carte-titre, .mx-fond-nuit .mx-ligne-titre { color: var(--papier); }
.mx-fond-nuit .mx-carte-chapo { color: rgba(251,246,238,.86); }
.mx-fond-nuit .mx-carte-photo, .mx-fond-nuit .mx-ligne-photo { background: rgba(251,246,238,.12); }
.mx-plus-zone { display: flex; justify-content: center; margin-top: 40px; }
[data-mx-liste] > [hidden] { display: none !important; }

/* ══════════ Texte courant : articles, pages ══════════ */
.sb-texte { font: 400 18.5px/1.74 var(--texte); color: var(--encre); }
.sb-texte > * { max-width: 100%; }
.sb-texte p { margin: 0 0 1.25em; }
.sb-texte h2 { font: 700 clamp(28px, 2.7vw, 36px)/1.14 var(--titre); letter-spacing: -.01em; margin: 2.3em 0 .65em; scroll-margin-top: calc(var(--tete-h) + 20px); }
.sb-texte h2::before { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); margin-bottom: .55em; }
.sb-texte > h2:first-child { margin-top: 0; }
.sb-texte h3 { font: 700 clamp(19px, 1.6vw, 22px)/1.3 var(--texte); margin: 1.8em 0 .5em; scroll-margin-top: calc(var(--tete-h) + 20px); }
.sb-texte h4 { font: 700 18px/1.35 var(--texte); margin: 1.5em 0 .4em; }
.sb-texte ul:not([class]), .sb-texte ol:not([class]) { margin: 0 0 1.3em; padding-left: 1.4em; }
.sb-texte ul:not([class]) li { padding-left: .3em; margin-bottom: .45em; }
.sb-texte ul:not([class]) li::marker { color: var(--accent); }
.sb-texte ol:not([class]) li { margin-bottom: .45em; padding-left: .3em; }
.sb-texte ol:not([class]) li::marker { color: var(--accent-fort); font-weight: 800; }
.sb-texte blockquote { margin: 2em 0; padding: .2em 0 .2em 1.4em; border-left: 4px solid var(--accent); font: 700 clamp(22px, 2.2vw, 28px)/1.35 var(--titre); color: var(--encre); }
.sb-texte blockquote p { margin: 0; }
.sb-texte blockquote cite { display: block; margin-top: .7em; font: 600 14px/1.4 var(--texte); font-style: normal; color: var(--doux); }
.sb-texte figure { margin: 2em 0; }
.sb-texte figure img, .sb-texte p > img, .sb-texte .wp-block-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; max-height: 460px; object-fit: cover; border-radius: 3px; }
.sb-texte img.emoji { width: 1em; height: 1em; aspect-ratio: auto; display: inline; }
.sb-texte figcaption { margin-top: .6em; font: 500 14px/1.45 var(--texte); color: var(--doux); }
.sb-texte hr { border: 0; height: 1px; background: var(--filet); margin: 2.4em 0; }
.sb-texte strong { font-weight: 700; }

/* Tableaux : l'enveloppe du socle les rend défilables ; le thème les habille */
.sbs_tableau { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.8em 0; background: var(--papier-clair); border: 1px solid var(--filet); border-radius: 8px; box-shadow: var(--sb-ombre); max-width: 100%; }
.sbs_tableau table { width: 100%; min-width: 560px; border-collapse: collapse; font: 500 16px/1.45 var(--texte); }
.sbs_tableau caption { padding: 14px 18px; text-align: left; font: 700 16px/1.3 var(--texte); }
.sbs_tableau th { padding: 14px 18px; text-align: left; vertical-align: bottom; background: var(--encre); color: var(--papier); font: 700 15px/1.3 var(--texte); border: 0; white-space: nowrap; }
.sbs_tableau td { padding: 13px 18px; vertical-align: top; border-top: 1px solid var(--filet); }
.sbs_tableau tbody tr:nth-child(even) td { background: rgba(241,230,214,.45); }
.sbs_tableau td:first-child { font-weight: 700; }

/* Infographies du socle (éléments personnalisés sbs-*) */
sbs-lieu, sbs-tarifs, sbs-frise, sbs-jauges { display: block; margin: 2em 0; padding: 22px 24px; background: var(--papier-clair); border: 1px solid var(--filet); border-top: 4px solid var(--accent); border-radius: 8px; box-shadow: var(--sb-ombre); }
.sbs_lieu_nom, .sbs_tarifs_titre, .sbs_frise_titre, .sbs_jauges_titre { display: block; margin: 0 0 12px; font: 700 22px/1.25 var(--titre); }
.sbs_lieu_adresse { display: block; font-style: normal; font-weight: 600; margin-bottom: 6px; }
.sbs_lieu_acces { display: block; font: 500 15.5px/1.5 var(--texte); color: var(--doux); margin-bottom: 12px; }
.sbs_lieu_carte { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; background: var(--encre); color: var(--papier); border-radius: 4px; font: 700 15px/1.2 var(--texte); text-decoration: none; }
.sbs_lieu_carte:hover { background: var(--accent-fort); color: #fff; }
.sbs_icone_repere { width: 20px; height: 20px; fill: currentColor; }
.sbs_source { display: block; margin-top: 14px; font: 500 13.5px/1.45 var(--texte); color: var(--doux); }
sbs-tarif { display: grid; grid-template-columns: minmax(110px, 1.1fr) minmax(0, 2fr) auto; gap: 8px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--filet); }
.sbs_tarif_libelle { font: 600 15.5px/1.3 var(--texte); color: var(--encre); }
.sbs_tarif_barre { width: 100%; height: 12px; border: 0; border-radius: 6px; background: var(--papier-2); }
.sbs_tarif_barre::-webkit-meter-bar { background: var(--papier-2); border: 0; border-radius: 6px; height: 12px; }
.sbs_tarif_barre::-webkit-meter-optimum-value { background: var(--accent); border-radius: 6px; }
.sbs_tarif_barre::-moz-meter-bar { background: var(--accent); border-radius: 6px; }
.sbs_tarif_prix { font: 800 17px/1.2 var(--texte); font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; }
.sbs_tarifs_notes { display: block; margin-top: 10px; font: 500 14px/1.45 var(--texte); color: var(--doux); }
sbs-frise { border-left-width: 1px; border-top-width: 4px; }
sbs-etape { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 2px 18px; padding: 12px 0 12px 18px; border-top: 1px solid var(--filet); position: relative; }
sbs-etape::before { content: ""; position: absolute; left: 0; top: 20px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.sbs_etape_date { grid-row: 1 / span 2; font: 800 15px/1.4 var(--texte); color: var(--accent-fort); }
.sbs_etape_titre { font: 700 17px/1.35 var(--texte); }
.sbs_etape_desc { font: 400 15.5px/1.5 var(--texte); color: var(--encre-2); }
sbs-jauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.sbs_jauges_titre, sbs-jauges > .sbs_source { grid-column: 1 / -1; }
sbs-jauge { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--papier); border-radius: 8px; }
.sbs_jauge_valeur { font: 800 clamp(34px, 4vw, 46px)/1 var(--texte); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.02em; color: var(--accent-fort); }
.sbs_jauge_libelle { order: 2; font: 600 15px/1.35 var(--texte); }
.sbs_jauge_unite { order: 1; font: 700 14px/1.2 var(--texte); color: var(--doux); }

/* Formulaires */
.mx-form { display: flex; flex-wrap: wrap; gap: 18px; }
.mx-champ { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.mx-champ.mx-demi { flex: 1 1 calc(50% - 9px); min-width: 200px; }
.mx-champ label { font: 700 15px/1.3 var(--texte); }
.mx-champ input, .mx-champ select, .mx-champ textarea { width: 100%; min-height: 50px; padding: 12px 14px; background: var(--papier-clair); border: 1.5px solid var(--encre-2); border-radius: 4px; font: 400 17px/1.4 var(--texte); color: var(--encre); }
.mx-champ textarea { min-height: 170px; resize: vertical; }
.mx-champ input:focus, .mx-champ select:focus, .mx-champ textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent-fort); }
.mx-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mx-merci { flex: 1 1 100%; margin: 0 0 6px; padding: 14px 18px; background: var(--accent-voile); border-left: 4px solid var(--accent); border-radius: 4px; font-weight: 600; }

/* ══════════ Pied de page : quatre colonnes de hauteur voisine, jusqu'en bas de l'écran ══════════ */
.mx-pied { flex: none; background: var(--encre); color: var(--papier); margin-top: 0; }
.mx-pied a { color: var(--papier); }
.mx-pied-grille { display: grid; grid-template-columns: 1.35fr 1.1fr 1.15fr .8fr; gap: 48px; padding-block: 60px 52px; }
.mx-pied-marque .mx-logo { color: var(--papier); margin-bottom: 18px; }
.mx-pied-marque .mx-logo-mot { color: var(--papier); }
.mx-pied-devise { font: italic 400 19px/1.4 var(--texte); color: rgba(251,246,238,.92); margin: 0 0 14px; max-width: 30ch; }
.mx-pied-texte { font: 400 15.5px/1.6 var(--texte); color: rgba(251,246,238,.8); margin: 0 0 22px; max-width: 38ch; }
.mx-pied-loupe { display: flex; max-width: 380px; border: 1.5px solid rgba(251,246,238,.45); border-radius: 4px; overflow: hidden; }
.mx-pied-loupe input { flex: 1; min-width: 0; min-height: 48px; background: transparent; border: 0; color: var(--papier); padding: 0 14px; font: 400 16px/1 var(--texte); }
.mx-pied-loupe input::placeholder { color: rgba(251,246,238,.65); }
.mx-pied-loupe button { border: 0; background: var(--papier); color: var(--encre); padding: 0 18px; font: 700 15px/1 var(--texte); cursor: pointer; }
.mx-pied-loupe button:hover { background: var(--accent-clair); }
.mx-pied-titre { font: 700 21px/1.2 var(--titre); color: var(--papier); margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(251,246,238,.22); }
.mx-pied-liste, .mx-pied-fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mx-pied-liste a { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; font: 500 15.5px/1.3 var(--texte); text-decoration: none; }
.mx-pied-liste a .mx-ico { color: var(--accent-clair); }
.mx-pied-liste a:hover, .mx-pied-fil a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mx-pied-fil { gap: 14px; }
.mx-pied-fil a { font: 600 15.5px/1.35 var(--texte); text-decoration: none; display: block; }
.mx-pied-fil time { display: block; margin-bottom: 2px; font: 500 13px/1.3 var(--texte); color: rgba(251,246,238,.72); }
.mx-pied-bas { border-top: 1px solid rgba(251,246,238,.2); }
.mx-pied-bas .mx-cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 20px calc(22px + env(safe-area-inset-bottom)); font: 500 14px/1.5 var(--texte); color: rgba(251,246,238,.78); }
.mx-pied-bas a { color: rgba(251,246,238,.9); text-decoration: none; }
.mx-pied-bas a:hover { text-decoration: underline; }

/* ══════════ Éléments partagés par plusieurs gabarits ══════════ */
.mx-section-titre { font: 700 clamp(30px, 3.2vw, 42px)/1.1 var(--titre); letter-spacing: -.012em; }
.mx-avatar { display: block; width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--papier-2); box-shadow: 0 0 0 2px var(--papier-clair), 0 0 0 3.5px var(--accent); flex: none; }
.mx-avatar.sb-avatar-symbole { display: inline-grid; place-items: center; }
.mx-symbole--repli { width: 62%; height: 62%; }
.mx-compte { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 8px; margin-left: 6px; border-radius: 999px; background: var(--encre); color: var(--papier); font: 700 13px/1 var(--texte); font-variant-numeric: lining-nums; }
.mx-fond-nuit .mx-compte { background: var(--papier); color: var(--encre); }
.mx-bande-pict { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-voile); color: var(--accent-fort); flex: none; }
.mx-fond-papier2 .mx-bande-pict { background: var(--papier-clair); }
.mx-fond-nuit .mx-bande-pict { background: rgba(251,246,238,.1); color: var(--accent-clair); }
.mx-redac { padding-block: 52px 60px; }
.mx-redac-tete { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.mx-redac-liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.mx-redac-liste li { margin: 0; }
.mx-redac-liste a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; color: var(--encre); text-decoration: none; padding: 8px; }
.mx-avatar--redac { width: 132px; height: 132px; margin-bottom: 12px; box-shadow: 0 0 0 4px var(--papier), 0 0 0 6px var(--accent); }
.mx-fond-papier2 .mx-avatar--redac { box-shadow: 0 0 0 4px var(--papier-2), 0 0 0 6px var(--accent); }
.mx-redac-nom { font: 700 23px/1.2 var(--titre); }
.mx-redac-liste a:hover .mx-redac-nom { color: var(--accent-fort); text-decoration: underline; text-underline-offset: 4px; }
.mx-redac-role { font: 500 15px/1.4 var(--texte); color: var(--doux); }
@media (max-width: 1100px) { .mx-redac-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; } }
@media (max-width: 640px) {
	.mx-redac { padding-block: 36px 40px; }
	.mx-redac-tete { flex-wrap: wrap; }
	.mx-avatar--redac { width: 104px; height: 104px; }
	.mx-redac-nom { font-size: 20px; }
}

/* ══════════ Adaptations ══════════ */
@media (max-width: 1180px) {
	.mx-nav-liste a .mx-ico { display: none; }
	.mx-nav-liste a { font-size: 14px; }
	.mx-devise { display: none; }
}
@media (max-width: 1000px) {
	.mx-pied-grille { grid-template-columns: 1fr 1fr; gap: 40px 36px; }
}
@media (max-width: 900px) {
	:root { --tete-h: 62px; --sb-haut-collant: 78px; }
	.mx-tete-haut, .mx-tete.is-pose .mx-tete-haut { height: 62px; gap: 12px; }
	.mx-logo .mx-symbole, .mx-tete.is-pose .mx-logo .mx-symbole { width: 38px; height: 38px; }
	.mx-logo-mot, .mx-tete.is-pose .mx-logo-mot { font-size: 30px; }
	.mx-date { display: none; }
	.mx-loupe, .mx-burger { width: 44px; height: 44px; }
	.js .mx-burger { display: inline-grid; }
	.mx-nav { border-top: 0; }
	.js .mx-nav { position: fixed; z-index: 55; top: 62px; left: 0; right: 0; bottom: 0; overflow-y: auto; background: var(--encre); color: var(--papier); padding: 18px var(--marge) 44px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s, transform .2s, visibility .2s; }
	.js body.mx-menu-ouvert .mx-nav { opacity: 1; visibility: visible; transform: none; }
	body.mx-menu-ouvert { overflow: hidden; }
	.mx-nav .mx-cadre { width: 100%; }
	.js .mx-nav-liste { flex-direction: column; gap: 0; }
	.js .mx-nav-liste li { border-bottom: 1px solid rgba(251,246,238,.18); }
	.js .mx-nav-liste a { gap: 16px; padding: 17px 2px; font: 700 25px/1.2 var(--titre); color: var(--papier); border-bottom: 0; white-space: normal; }
	.js .mx-nav-liste a .mx-ico { display: block; width: 26px; height: 26px; color: var(--accent-clair); }
	.js .mx-nav-liste a.is-actif { color: var(--accent-clair); }
	.js .mx-nav-sec { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 26px; }
	.js .mx-nav-sec a { color: rgba(251,246,238,.88); font: 600 16px/1.3 var(--texte); text-decoration: none; padding: 10px 0; min-height: 44px; }
	html:not(.js) .mx-nav-liste { flex-wrap: wrap; gap: 4px 18px; padding: 10px 0; }
}
@media (max-width: 760px) {
	body { font-size: 16.5px; }
	.sb-texte { font-size: 17.5px; line-height: 1.7; }
	.mx-pied-grille { grid-template-columns: 1fr; gap: 36px; padding-block: 44px 36px; }
	.mx-ligne { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
	sbs-tarif { grid-template-columns: 1fr auto; }
	.sbs_tarif_barre { grid-column: 1 / -1; grid-row: 2; }
	sbs-etape { grid-template-columns: 1fr; }
	.sbs_etape_date { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ══════════ Mix Maxi : en-tête sombre, une seule barre ══════════ */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
.mx-tete { background: #141B3C; border-bottom: 3px solid #FFC24A; }
.mx-tete .mx-logo { color: #fff; }
.mx-logo-mot, .mx-tete.is-pose .mx-logo-mot { font: 800 28px/1 var(--titre); letter-spacing: -.03em; }
.mx-logo .mx-symbole, .mx-tete.is-pose .mx-logo .mx-symbole { width: 40px; height: 40px; }
.mx-tete-haut, .mx-tete.is-pose .mx-tete-haut { height: 72px; gap: 26px; }
.mx-tete .mx-nav { border: 0; background: none; flex: 1; }
.mx-tete .mx-nav-liste { justify-content: flex-end; gap: 22px; }
.mx-tete .mx-nav-liste a { color: #FBF6EE; font-size: 15px; padding: 24px 0 21px; border-bottom-width: 3px; }
.mx-tete .mx-nav-liste a .mx-ico { display: none; }
.mx-tete .mx-nav-liste a:hover, .mx-tete .mx-nav-liste a.is-actif { color: #FFC24A; border-bottom-color: #FFC24A; }
.mx-tete .mx-loupe, .mx-tete .mx-burger { border-color: rgba(251,246,238,.4); color: #fff; }
.mx-tete .mx-loupe:hover, .mx-tete .mx-burger:hover { background: #FFC24A; border-color: #FFC24A; color: #141B3C; }
.mx-tete .mx-tete-outils { margin-left: 0; }
.mx-tete :focus-visible { outline-color: #FFC24A; }
@media (max-width: 1080px) {
	.mx-tete .mx-tete-outils { margin-left: auto; }
	.mx-tete .mx-burger { display: inline-grid; }
	.mx-tete .mx-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #141B3C; max-height: calc(100vh - 76px); overflow: auto; padding: 8px 20px 24px; border-bottom: 3px solid #FFC24A; }
	.mx-menu-ouvert .mx-tete .mx-nav { display: block; }
	.mx-tete .mx-nav-liste { flex-direction: column; gap: 0; align-items: stretch; }
	.mx-tete .mx-nav-liste a { padding: 14px 2px; font-size: 17px; border-bottom: 1px solid rgba(251,246,238,.16); }
	.mx-tete .mx-nav-liste a .mx-ico { display: block; color: #FFC24A; }
	.mx-tete .mx-nav-sec { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-top: 18px; }
	.mx-tete .mx-nav-sec a { color: #FBF6EE; padding: 8px 0; }
}

/* Mix Maxi : pas de coins de visée, les photos de tête prennent le cadre du poste */
.mx-visee::after { display: none !important; }
.mx-rub-cadre { border-radius: 22px; box-shadow: 0 0 0 10px #C8321D, 0 30px 54px -28px rgba(20,27,60,.6); }
.mx-rub-cadre > img, .mx-rub-cadre::before { border-radius: 22px; }
