/*
Theme Name: Medias241
Theme URI: https://medias241.ga/
Author: Medias241
Description: Thème d'actualité sur mesure pour Medias241 — charte bleu #09328e et jaune #f99c1b, accueil magazine (diaporama, onglets « À la une », Medias241 TV, blocs par rubrique), emplacements publicitaires (970×90, 300×250, 300×600, 970×250, 728×90), newsletter intégrée et « Les plus lus ».
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: medias241
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images
*/

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	--m241-blue: #09328e;
	--m241-blue-dark: #061f5a;
	--m241-blue-deep: #041745;
	--m241-blue-soft: #e8eefb;
	--m241-yellow: #f99c1b;
	--m241-yellow-soft: #fff3e0;
	--m241-red: #e02424;
	--m241-ink: #121826;
	--m241-text: #374151;
	--m241-muted: #6b7280;
	--m241-line: #e5e7eb;
	--m241-bg: #ffffff;
	--m241-bg-alt: #f5f7fb;
	--m241-radius: 6px;
	--m241-font: "Plus Jakarta Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--m241-container: 1240px;
	--m241-sidebar: 300px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--m241-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--m241-text);
	background: var(--m241-bg);
	-webkit-font-smoothing: antialiased;
}
body.m241-no-scroll { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--m241-blue); text-decoration: none; }
a:hover { color: var(--m241-blue-dark); }
h1, h2, h3, h4, h5, h6 { color: var(--m241-ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--m241-yellow); outline-offset: 2px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.m241-skip:focus {
	clip: auto; clip-path: none; height: auto; width: auto; z-index: 1000;
	background: var(--m241-yellow); color: var(--m241-ink); padding: 10px 16px; top: 8px; left: 8px;
}
.m241-hp { position: absolute; left: -9999px; }

.m241-container { width: 100%; max-width: var(--m241-container); margin: 0 auto; padding: 0 20px; }
.m241-icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ==========================================================================
   Barre du haut
   ========================================================================== */
.m241-topbar { background: var(--m241-blue-deep); color: #dbe3f5; font-size: 13px; }
.m241-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.m241-topbar__left, .m241-topbar__right { display: flex; align-items: center; gap: 18px; }
.m241-topbar__city { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: #fff; }
.m241-topbar__city .m241-icon { color: var(--m241-yellow); }
.m241-topbar__follow { opacity: .8; }
.m241-topbar__nl { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; padding-left: 18px; border-left: 1px solid rgba(255,255,255,.2); }
.m241-topbar__nl:hover { color: var(--m241-yellow); }

.m241-social { display: flex; align-items: center; gap: 12px; }
.m241-social a { color: inherit; display: inline-flex; font-size: 16px; transition: color .2s, transform .2s; }
.m241-social--top a { color: #fff; }
.m241-social a:hover { color: var(--m241-yellow); transform: translateY(-1px); }

/* ==========================================================================
   En-tête
   ========================================================================== */
.m241-header { background: #fff; }
.m241-header__inner { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 24px; padding-top: 18px; padding-bottom: 18px; }
.m241-burger, .m241-header .m241-search-toggle--mobile { display: none; }
.m241-alert {
	display: inline-flex; align-items: center; gap: 8px;
	background: var(--m241-red); color: #fff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .03em;
	padding: 9px 14px; border-radius: 4px; white-space: nowrap;
	animation: m241-pulse 2.4s ease-in-out infinite;
}
.m241-alert:hover { color: #fff; background: #c81e1e; }
@keyframes m241-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,36,36,.45); } 50% { box-shadow: 0 0 0 7px rgba(224,36,36,0); } }

.m241-brand .custom-logo-link { display: block; }
.m241-brand .custom-logo { max-height: 92px; width: auto; }
.m241-brand__text { font-size: 34px; font-weight: 800; color: var(--m241-blue); letter-spacing: -.02em; }
.m241-brand__text span { color: var(--m241-yellow); }
.m241-header__ad { justify-self: end; width: 100%; max-width: 728px; }
.m241-header__ad .m241-ad { margin: 0; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.m241-nav { background: var(--m241-blue); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(4,23,69,.18); }
.admin-bar .m241-nav { top: 32px; }
.m241-nav__inner { display: flex; align-items: center; justify-content: space-between; }
.m241-nav__close { display: none; }
.m241-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.m241-nav__list > li { position: relative; }
.m241-nav__list a {
	display: block; color: #fff; font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
	padding: 15px 14px; position: relative;
}
.m241-nav__list > li > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--m241-yellow);
	transform: scaleX(0); transition: transform .2s;
}
.m241-nav__list > li:hover > a::after,
.m241-nav__list > .current-menu-item > a::after,
.m241-nav__list > .current-menu-ancestor > a::after,
.m241-nav__list > .current-category-ancestor > a::after { transform: scaleX(1); }
.m241-nav__list .current-menu-item > a { color: var(--m241-yellow); }
.m241-nav__list .sub-menu {
	list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--m241-blue-dark); box-shadow: 0 10px 24px rgba(0,0,0,.2);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.m241-nav__list li:hover > .sub-menu, .m241-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.m241-nav__list .sub-menu a { text-transform: none; font-weight: 600; padding: 9px 16px; }
.m241-search-toggle { background: none; border: 0; color: #fff; padding: 12px 6px; font-size: 20px; display: inline-flex; }
.m241-search-toggle:hover { color: var(--m241-yellow); }
.m241-search { background: var(--m241-blue-dark); padding: 14px 0; }
.m241-nav-overlay { position: fixed; inset: 0; background: rgba(4,23,69,.55); z-index: 90; }

.m241-searchform { display: flex; max-width: 640px; }
.m241-searchform input {
	flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 11px 14px;
	border: 1px solid var(--m241-line); border-right: 0; border-radius: var(--m241-radius) 0 0 var(--m241-radius);
}
.m241-searchform button {
	border: 0; background: var(--m241-yellow); color: var(--m241-ink); padding: 0 16px; font-size: 18px;
	border-radius: 0 var(--m241-radius) var(--m241-radius) 0; display: inline-flex; align-items: center;
}

/* ==========================================================================
   Flash info
   ========================================================================== */
.m241-flash { background: #fff; border-bottom: 1px solid var(--m241-line); }
.m241-flash__inner { display: flex; align-items: center; gap: 16px; height: 46px; }
.m241-flash__label {
	flex: none; background: var(--m241-red); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase;
	padding: 6px 16px 6px 12px; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%);
}
.m241-flash__track { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 30px, #000 calc(100% - 30px), transparent); }
.m241-flash__items { display: inline-flex; white-space: nowrap; animation: m241-ticker 70s linear infinite; }
.m241-flash__track:hover .m241-flash__items { animation-play-state: paused; }
.m241-flash__items a { color: var(--m241-ink); font-size: 14px; font-weight: 600; padding: 0 22px; position: relative; }
.m241-flash__items a::before { content: ""; position: absolute; left: 6px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--m241-yellow); }
.m241-flash__items a:hover { color: var(--m241-blue); }
@keyframes m241-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .m241-flash__items, .m241-alert { animation: none; } }

/* ==========================================================================
   Mise en page
   ========================================================================== */
.m241-main { padding: 28px 0 48px; }
.m241-layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--m241-sidebar); gap: 32px; align-items: start; }
.m241-content { min-width: 0; }
.m241-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 72px; }
.admin-bar .m241-sidebar { top: 104px; }

/* ==========================================================================
   Éléments communs
   ========================================================================== */
.m241-cat {
	display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
	color: var(--m241-yellow); margin-bottom: 6px;
}
.m241-cat:hover { color: var(--m241-blue); }
.m241-cat--light { color: var(--m241-ink); background: var(--m241-yellow); padding: 3px 9px; border-radius: 3px; }
.m241-cat--light:hover { color: var(--m241-ink); background: #fff; }

.m241-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12.5px; color: var(--m241-muted); }
.m241-meta span { display: inline-flex; align-items: center; gap: 5px; }

.m241-thumb { display: block; position: relative; overflow: hidden; border-radius: var(--m241-radius); background: var(--m241-blue-soft); aspect-ratio: 16 / 10; }
.m241-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; color: transparent; font-size: 0; }
a.m241-thumb:hover img, article:hover .m241-thumb img { transform: scale(1.04); }
.m241-thumb__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--m241-blue); font-weight: 800; opacity: .35; font-size: 13px; }
.m241-play {
	position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
	background: rgba(255,255,255,.92); color: var(--m241-blue); display: flex; align-items: center; justify-content: center; font-size: 22px;
	box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.m241-excerpt { font-size: 14px; color: var(--m241-text); margin: 0 0 8px; }
.m241-more { font-size: 13px; font-weight: 700; color: var(--m241-blue); white-space: nowrap; }
.m241-more:hover { color: var(--m241-yellow); }
.m241-btn { display: inline-block; background: var(--m241-blue); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: var(--m241-radius); }
.m241-btn:hover { background: var(--m241-yellow); color: var(--m241-ink); }

.m241-section { margin-top: 36px; }
.m241-section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--m241-line); margin-bottom: 18px; }
.m241-section__title { font-size: 19px; text-transform: uppercase; letter-spacing: .02em; margin: 0; padding-bottom: 10px; position: relative; }
.m241-section__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 3px; background: var(--m241-yellow); }
.m241-section__title a { color: inherit; }

/* Ligne : vignette + titre */
.m241-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: start; }
.m241-row .m241-thumb { aspect-ratio: 4 / 3; }
.m241-row__title { font-size: 14.5px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.m241-row__title a, .m241-card__title a, .m241-feature__title a, .m241-list-item__title a, .m241-mini__title a, .m241-slide__title a { color: var(--m241-ink); }
.m241-row__title a:hover, .m241-card__title a:hover, .m241-feature__title a:hover, .m241-list-item__title a:hover, .m241-mini__title a:hover { color: var(--m241-blue); }

/* Cartes */
.m241-grid { display: grid; gap: 22px; }
.m241-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m241-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.m241-card .m241-thumb { margin-bottom: 10px; }
.m241-card__title { font-size: 15.5px; font-weight: 700; margin: 0 0 6px; line-height: 1.35; }

/* ==========================================================================
   Accueil : diaporama
   ========================================================================== */
.m241-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; }
.m241-slider { position: relative; border-radius: 8px; overflow: hidden; background: var(--m241-blue-deep); min-height: 420px; }
.m241-slider__track { position: absolute; inset: 0; }
.m241-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.m241-slide.is-active { opacity: 1; visibility: visible; }
.m241-slide__img, .m241-slide__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m241-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,23,69,0) 35%, rgba(4,23,69,.92) 100%); pointer-events: none; }
.m241-slide__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 28px 40px; z-index: 2; }
.m241-slide__title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 6px 0 12px; }
.m241-slide__title a { color: #fff; }
.m241-slide__title a:hover { color: var(--m241-yellow); }
.m241-slide .m241-meta { color: #d5ddef; }
.m241-slider__btn {
	position: absolute; top: 24px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.9); color: var(--m241-blue); display: flex; align-items: center; justify-content: center; font-size: 24px;
	opacity: .85; transition: .2s;
}
.m241-slider__btn:hover { opacity: 1; background: var(--m241-yellow); color: var(--m241-ink); }
.m241-slider__btn--prev { right: 62px; }
.m241-slider__btn--next { right: 14px; }
.m241-slider__dots { position: absolute; z-index: 3; right: 24px; bottom: 16px; display: flex; gap: 7px; }
.m241-slider__dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); }
.m241-slider__dots button.is-active { background: var(--m241-yellow); width: 22px; border-radius: 5px; }
.m241-hero__side { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.m241-hero__side .m241-row { padding-bottom: 14px; border-bottom: 1px solid var(--m241-line); }
.m241-hero__side .m241-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* ==========================================================================
   Accueil : onglets « À la une »
   ========================================================================== */
.m241-tabs__nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.m241-tabs__nav::-webkit-scrollbar { display: none; }
.m241-tabs__nav button {
	background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
	font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--m241-muted); padding: 8px 12px 11px; white-space: nowrap;
}
.m241-tabs__nav button:hover { color: var(--m241-blue); }
.m241-tabs__nav button[aria-selected="true"] { color: var(--m241-blue); border-bottom-color: var(--m241-blue); }
.m241-tabs__panel { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; }
.m241-tabs__panel[hidden] { display: none; }
.m241-feature .m241-thumb { margin-bottom: 12px; }
.m241-feature__title { font-size: 21px; margin-bottom: 8px; }
.m241-tabs__list { display: flex; flex-direction: column; gap: 14px; }
.m241-tabs__list .m241-row { padding-bottom: 14px; border-bottom: 1px solid var(--m241-line); }
.m241-tabs__list .m241-more { margin-top: auto; }

/* ==========================================================================
   Publicités
   ========================================================================== */
.m241-ad { position: relative; margin: 32px auto 0; text-align: center; }
.m241-ad__label { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--m241-muted); margin-bottom: 4px; }
.m241-ad img { margin: 0 auto; border-radius: 4px; }
.m241-ad .m241-ad-widget + .m241-ad-widget { margin-top: 10px; }
.m241-ad figure { margin: 0; }
.m241-ad--empty a {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	color: var(--m241-blue); text-transform: uppercase; border-radius: var(--m241-radius);
	background: var(--m241-blue-soft); border: 1px dashed rgba(9,50,142,.25); transition: .2s;
}
.m241-ad--empty a:hover { background: var(--m241-yellow-soft); border-color: var(--m241-yellow); color: var(--m241-blue-dark); }
.m241-ad--empty strong { font-size: 15px; font-weight: 800; letter-spacing: .03em; }
.m241-ad--empty span { font-size: 13px; font-weight: 600; opacity: .8; }
.m241-ad--empty em { position: absolute; right: 10px; bottom: 8px; font-style: normal; font-size: 10px; font-weight: 800; background: var(--m241-ink); color: #fff; padding: 2px 6px; border-radius: 3px; }

.m241-ad--pub-header { margin: 0; }
.m241-ad--pub-header .m241-ad__label { display: none; }
.m241-ad--pub-header.m241-ad--empty a { aspect-ratio: 970 / 90; background: var(--m241-yellow); border: 0; color: var(--m241-ink); flex-direction: row; gap: 14px; }
.m241-ad--pub-header.m241-ad--empty a:hover { background: #ffb347; }
.m241-ad--pub-header img { max-height: 90px; width: auto; max-width: 100%; }
.m241-ad--pub-sidebar-1, .m241-ad--pub-sidebar-2, .m241-ad--pub-sidebar-3 { margin: 0; max-width: 300px; width: 100%; }
.m241-ad--pub-sidebar-1.m241-ad--empty a, .m241-ad--pub-sidebar-2.m241-ad--empty a { aspect-ratio: 300 / 250; }
.m241-ad--pub-sidebar-2.m241-ad--empty a { background: #e9f7ef; border-color: rgba(22,163,74,.25); }
.m241-ad--pub-sidebar-3.m241-ad--empty a { aspect-ratio: 300 / 600; background: var(--m241-yellow-soft); border-color: rgba(249,156,27,.35); }
.m241-ad--pub-intermediaire.m241-ad--empty a { aspect-ratio: 970 / 250; max-height: 250px; background: #f1ecfb; border-color: rgba(109,40,217,.2); }
.m241-ad--pub-article { margin: 26px auto; max-width: 728px; }
.m241-ad--pub-article.m241-ad--empty a { aspect-ratio: 728 / 90; background: var(--m241-yellow); border: 0; color: var(--m241-ink); flex-direction: row; gap: 14px; }

/* ==========================================================================
   Colonne latérale
   ========================================================================== */
.m241-box { background: #fff; border: 1px solid var(--m241-line); border-radius: 8px; padding: 18px; }
.m241-box__title { font-size: 15px; text-transform: uppercase; letter-spacing: .03em; color: var(--m241-blue); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--m241-yellow); }
.m241-mini { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; }
.m241-mini + .m241-mini { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--m241-line); }
.m241-mini .m241-thumb { aspect-ratio: 1; }
.m241-mini__title { font-size: 13.5px; font-weight: 700; margin: 0 0 4px; line-height: 1.35; }
.m241-popular { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.m241-popular li { counter-increment: pop; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--m241-line); }
.m241-popular li:first-child { border-top: 0; padding-top: 0; }
.m241-popular li::before {
	content: counter(pop); width: 28px; height: 28px; border-radius: 50%; background: var(--m241-blue); color: #fff;
	font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center;
}
.m241-popular li:first-child::before { background: var(--m241-yellow); color: var(--m241-ink); }
.m241-popular a { color: var(--m241-ink); font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.m241-popular a:hover { color: var(--m241-blue); }

/* Newsletter */
.m241-newsletter { background: var(--m241-blue); color: #dbe3f5; border-radius: 8px; padding: 22px 20px; position: relative; overflow: hidden; }
.m241-newsletter::before { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: rgba(249,156,27,.18); }
.m241-newsletter h3 { color: #fff; font-size: 17px; text-transform: uppercase; margin-bottom: 6px; position: relative; }
.m241-newsletter p { font-size: 13.5px; margin-bottom: 14px; position: relative; }
.m241-newsletter form { display: flex; flex-direction: column; gap: 10px; position: relative; }
.m241-newsletter input[type="email"] { font: inherit; font-size: 14px; padding: 11px 12px; border-radius: var(--m241-radius); border: 0; }
.m241-newsletter button { border: 0; background: var(--m241-yellow); color: var(--m241-ink); font-weight: 800; text-transform: uppercase; font-size: 13.5px; padding: 12px; border-radius: var(--m241-radius); }
.m241-newsletter button:hover { background: #fff; }
.m241-newsletter__consent { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; line-height: 1.4; }
.m241-newsletter__consent input { margin-top: 2px; accent-color: var(--m241-yellow); }
.m241-newsletter__msg { background: rgba(255,255,255,.12); padding: 8px 10px; border-radius: 4px; color: #fff; }
.m241-newsletter__msg--err { background: rgba(224,36,36,.3); }

/* ==========================================================================
   Listes (rubriques, recherche)
   ========================================================================== */
.m241-breadcrumb { font-size: 13px; color: var(--m241-muted); margin-bottom: 14px; }
.m241-breadcrumb a { color: var(--m241-muted); }
.m241-breadcrumb a:hover { color: var(--m241-blue); }
.m241-breadcrumb span { margin: 0 2px; }
.m241-archive-head { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 2px solid var(--m241-line); position: relative; }
.m241-archive-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 72px; height: 3px; background: var(--m241-yellow); }
.m241-archive-head__title { font-size: 30px; text-transform: uppercase; margin: 0; }
.m241-archive-head__desc { margin-top: 8px; color: var(--m241-muted); }
.m241-archive-head .m241-searchform { margin-top: 14px; }
.m241-list { display: flex; flex-direction: column; gap: 22px; }
.m241-list-item { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--m241-line); }
.m241-list-item__title { font-size: 19px; margin: 0 0 8px; line-height: 1.3; }
.m241-list .m241-ad { margin: 0; }
.m241-empty { padding: 30px; background: var(--m241-bg-alt); border-radius: 8px; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--m241-radius); border: 1px solid var(--m241-line); color: var(--m241-ink); font-weight: 700; font-size: 14px; }
.page-numbers.current { background: var(--m241-blue); border-color: var(--m241-blue); color: #fff; }
a.page-numbers:hover { border-color: var(--m241-yellow); color: var(--m241-blue); }
.page-numbers.dots { border: 0; }

/* ==========================================================================
   Article
   ========================================================================== */
.m241-article__title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; margin: 4px 0 16px; letter-spacing: -.01em; }
.m241-article__bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 0; border-top: 1px solid var(--m241-line); border-bottom: 1px solid var(--m241-line); margin-bottom: 22px; }
.m241-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; }
.m241-byline__avatar { border-radius: 50%; width: 36px; height: 36px; }
.m241-byline a { font-weight: 700; color: var(--m241-ink); }
.m241-share { display: flex; gap: 6px; }
.m241-share a, .m241-share button {
	width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--m241-line); background: #fff; color: var(--m241-blue);
	display: inline-flex; align-items: center; justify-content: center; font-size: 16px; transition: .2s; padding: 0;
}
.m241-share a:hover, .m241-share button:hover { background: var(--m241-blue); color: #fff; border-color: var(--m241-blue); }
.m241-share button.is-copied { background: var(--m241-yellow); color: var(--m241-ink); border-color: var(--m241-yellow); }
.m241-article__media { margin: 0 0 24px; }
.m241-article__media img { width: 100%; border-radius: 8px; }
.m241-article__media figcaption { font-size: 13px; color: var(--m241-muted); margin-top: 8px; font-style: italic; }

.m241-prose { font-size: 17.5px; line-height: 1.75; color: #1f2937; }
.m241-prose > * { margin: 0 0 1.15em; }
.m241-prose h2 { font-size: 25px; margin: 1.4em 0 .6em; }
.m241-prose h3 { font-size: 21px; margin: 1.4em 0 .5em; color: var(--m241-blue); }
.m241-prose h4 { font-size: 18px; margin: 1.2em 0 .5em; }
.m241-prose a { color: var(--m241-blue); text-decoration: underline; text-decoration-color: rgba(249,156,27,.7); text-underline-offset: 3px; }
.m241-prose a:hover { text-decoration-color: var(--m241-blue); }
.m241-prose strong { color: var(--m241-ink); }
.m241-prose ul, .m241-prose ol { padding-left: 1.3em; }
.m241-prose li { margin-bottom: .35em; }
.m241-prose blockquote { margin: 1.5em 0; padding: 14px 20px; border-left: 4px solid var(--m241-yellow); background: var(--m241-bg-alt); font-size: 19px; font-style: italic; color: var(--m241-ink); }
.m241-prose blockquote p:last-child { margin: 0; }
.m241-prose img, .m241-prose .wp-block-image img { border-radius: 6px; }
.m241-prose figure { margin-left: 0; margin-right: 0; }
.m241-prose figcaption, .m241-prose .wp-caption-text { font-size: 13px; color: var(--m241-muted); }
.m241-prose .wp-caption { max-width: 100%; }
.m241-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.m241-prose th, .m241-prose td { border: 1px solid var(--m241-line); padding: 8px 10px; text-align: left; }
.m241-prose iframe { width: 100%; }
.m241-prose .alignleft { float: left; margin: .3em 1.2em 1em 0; }
.m241-prose .alignright { float: right; margin: .3em 0 1em 1.2em; }
.m241-prose .aligncenter { margin-left: auto; margin-right: auto; }
.m241-prose--dropcap > p:first-of-type::first-letter {
	float: left; font-size: 3.6em; line-height: .9; font-weight: 800; color: var(--m241-blue); margin: .06em .1em 0 0;
}
.m241-prose--dropcap > p:first-of-type:has(> strong:first-child)::first-letter { color: var(--m241-blue); }
.m241-prose em:only-child { color: var(--m241-muted); }

.m241-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0 0; font-size: 14px; }
.m241-tags a { background: var(--m241-bg-alt); color: var(--m241-blue); padding: 5px 11px; border-radius: 20px; font-weight: 600; font-size: 13px; }
.m241-tags a:hover { background: var(--m241-yellow); color: var(--m241-ink); }

/* Commentaires */
.comments-area { margin-top: 40px; }
.comments-area .comment-list { list-style: none; padding: 0; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--m241-line); border-radius: var(--m241-radius); }
.comment-form .submit { background: var(--m241-blue); color: #fff; border: 0; padding: 11px 20px; border-radius: var(--m241-radius); font-weight: 700; }

/* 404 */
.m241-404 { text-align: center; padding: 30px 0; }
.m241-404__code { font-size: 96px; font-weight: 800; color: var(--m241-blue); line-height: 1; margin: 0; }
.m241-404 .m241-searchform { margin: 20px auto; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.m241-footer { background: var(--m241-blue-dark); color: #c9d3ea; font-size: 14px; border-top: 4px solid var(--m241-yellow); }
.m241-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-top: 48px; padding-bottom: 40px; }
.m241-footer__logo { display: inline-block; background: #fff; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: 26px; font-weight: 800; color: var(--m241-blue); }
.m241-footer__logo span { color: var(--m241-yellow); }
.m241-footer__logo img { max-height: 70px; width: auto; }
.m241-footer__title { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.m241-footer__links { list-style: none; margin: 0; padding: 0; }
.m241-footer__links li { margin-bottom: 8px; }
.m241-footer__links a { color: #c9d3ea; }
.m241-footer__links a:hover { color: var(--m241-yellow); }
.m241-social--footer { margin-top: 10px; }
.m241-social--footer a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; justify-content: center; align-items: center; }
.m241-social--footer a:hover { background: var(--m241-yellow); color: var(--m241-ink); }
.m241-footer .m241-newsletter { background: rgba(255,255,255,.07); padding: 0; background: none; }
.m241-footer .m241-newsletter::before { display: none; }
.m241-footer .m241-newsletter h3 { font-size: 15px; letter-spacing: .04em; }
.m241-footer__bottom { background: var(--m241-blue-deep); padding: 16px 0; font-size: 13px; text-align: center; color: #9fb0d6; }
.m241-totop {
	position: fixed; right: 20px; bottom: 20px; width: 44px; height: 44px; border-radius: 50%; background: var(--m241-blue); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; z-index: 40;
	opacity: 0; visibility: hidden; transition: .25s; box-shadow: 0 6px 16px rgba(4,23,69,.3);
}
.m241-totop.is-visible { opacity: 1; visibility: visible; }
.m241-totop:hover { background: var(--m241-yellow); color: var(--m241-ink); }

/* Alignements et légendes WordPress */
.alignnone { margin: 0; }
.wp-caption { max-width: 100%; }
.sticky, .gallery-caption, .bypostauthor { outline: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.m241-header__inner { grid-template-columns: auto 1fr; }
	.m241-alert { display: none; }
	.m241-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.m241-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
	.m241-layout { grid-template-columns: minmax(0, 1fr); }
	.m241-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.m241-sidebar .m241-ad { margin: 0 auto; }
	.m241-hero { grid-template-columns: minmax(0, 1fr); }
	.m241-slider { min-height: 0; aspect-ratio: 16 / 10; }
	.m241-hero__side { display: grid; grid-template-columns: 1fr 1fr; }
	.m241-hero__side .m241-row { border-bottom: 0; padding-bottom: 0; }
	.m241-ad--pub-sidebar-3 { display: none; }
}

@media (max-width: 782px) {
	.admin-bar .m241-nav { top: 46px; }
	.m241-topbar__follow, .m241-topbar__date { display: none; }

	.m241-header__inner { grid-template-columns: 44px 1fr 44px; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
	.m241-burger, .m241-header .m241-search-toggle--mobile {
		display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 8px;
		background: var(--m241-blue-soft); color: var(--m241-blue); font-size: 22px;
	}
	.m241-brand { justify-self: center; }
	.m241-brand .custom-logo { max-height: 48px; }
	.m241-brand__text { font-size: 26px; }
	.m241-header__ad { grid-column: 1 / -1; justify-self: stretch; max-width: none; order: 10; }
	.m241-prose--dropcap > p:first-of-type::first-letter { float: none; font-size: inherit; line-height: inherit; margin: 0; color: inherit; }

	.m241-nav {
		position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 100;
		transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; box-shadow: none;
	}
	.admin-bar .m241-nav { top: 0; }
	.m241-nav.is-open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.35); }
	.m241-nav__inner { flex-direction: column; align-items: stretch; padding: 60px 0 20px; }
	.m241-nav__close { display: inline-flex; position: absolute; top: 12px; right: 12px; background: none; border: 0; color: #fff; font-size: 24px; }
	.m241-nav__list { flex-direction: column; }
	.m241-nav__list a { padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 15px; }
	.m241-nav__list > li > a::after { display: none; }
	.m241-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; }
	.m241-nav .m241-search-toggle { display: none; }
	.m241-search { position: static; }
	.m241-nav-overlay:not([hidden]) { display: block; }

	.m241-flash__inner { height: 42px; gap: 10px; }
	.m241-flash__label { font-size: 11px; padding: 5px 12px 5px 9px; }
	.m241-flash__items a { font-size: 13px; }

	.m241-main { padding-top: 18px; }
	.m241-slider { aspect-ratio: 4 / 3.6; min-height: 0; }
	.m241-slide__body { padding: 18px 18px 34px; }
	.m241-slider__btn { display: none; }
	.m241-slider__dots { right: 18px; bottom: 12px; }
	.m241-hero__side { grid-template-columns: minmax(0, 1fr); }
	.m241-hero__side .m241-row { border-bottom: 1px solid var(--m241-line); padding-bottom: 12px; }

	.m241-section__head { flex-direction: column; align-items: flex-start; gap: 4px; }
	.m241-tabs .m241-section__head { border-bottom: 0; }
	.m241-tabs__nav { width: 100%; border-bottom: 2px solid var(--m241-line); }
	.m241-tabs__panel { grid-template-columns: minmax(0, 1fr); }
	.m241-grid--3 { grid-template-columns: minmax(0, 1fr); }
	.m241-grid--3 .m241-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
	.m241-grid--3 .m241-card .m241-thumb { margin: 0; grid-row: span 2; aspect-ratio: 4 / 3; }
	.m241-grid--3 .m241-card__title { font-size: 14.5px; }
	.m241-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

	.m241-list-item { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
	.m241-list-item .m241-thumb { aspect-ratio: 4 / 3; }
	.m241-list-item__title { font-size: 15.5px; }
	.m241-list-item .m241-excerpt { display: none; }
	.m241-archive-head__title { font-size: 24px; }

	.m241-sidebar { grid-template-columns: minmax(0, 1fr); }
	.m241-prose { font-size: 17px; }
	.m241-article__bar { flex-direction: column; align-items: flex-start; }
	.m241-ad--pub-intermediaire.m241-ad--empty a { aspect-ratio: 300 / 250; max-height: none; max-width: 300px; margin: 0 auto; }

	.m241-footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 36px; }
}

@media (min-width: 783px) {
	.m241-nav-overlay { display: none !important; }
}
