/*
Theme Name: Africobs
Theme URI: https://africobs.media
Description: Thème maison d'Africobs, média 100 % digital de l'actualité africaine. Écrit en PHP, sans constructeur de pages ni extension : SEO, données structurées, vidéo et formulaires intégrés.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: africobs
License: Propriétaire
*/

/* ==========================================================================
   1. Police (hébergée dans le thème) et variables
   ========================================================================== */

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--navy: #0B1B3A;
	--yellow: #F5B800;
	--ink: #0B1B3A;
	--text: #1d2433;
	--muted: #5b6475;
	--line: #e6e9f0;
	--bg: #ffffff;
	--bg-soft: #f4f6fa;
	--radius: 16px;
	--wrap: 1280px;
	--gap: 24px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.hp { position: absolute; left: -9999px; }

.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 10px 18px; border-radius: 999px; border: 0;
	font-weight: 700; font-size: 15px; cursor: pointer;
	transition: transform .15s ease, background .15s ease;
}
.btn--accent { background: var(--yellow); color: var(--navy); }
.btn--accent:hover { background: #ffcb2e; transform: translateY(-1px); }

/* Étiquette de rubrique : couleur de la rubrique (--c). */
.tag {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--c, var(--navy));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	line-height: 1.4;
}
.meta { font-size: 13px; color: var(--muted); margin: 0; }

/* Pastille « lecture vidéo ». */
.play {
	position: absolute; left: 50%; top: 50%;
	width: 56px; height: 56px; margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
	pointer-events: none;
}
.play::after {
	content: ""; position: absolute; left: 22px; top: 17px;
	border-style: solid; border-width: 11px 0 11px 17px;
	border-color: transparent transparent transparent var(--navy);
}

/* ==========================================================================
   3. En-tête
   ========================================================================== */

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff;
	border-bottom: 3px solid var(--yellow);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }

.site-header__in { display: flex; align-items: center; gap: 20px; height: 72px; }

.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; background: none; border: 0; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; }

.brand { display: inline-flex; align-items: baseline; font-weight: 900; font-size: 30px; letter-spacing: -0.04em; color: var(--navy); line-height: 1; }
.brand__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-left: 3px; }
.brand__logo { height: 34px; width: auto; }
.brand--light { color: #fff; }

.nav { flex: 1; min-width: 0; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list > li { position: relative; }
.nav__list > li > a {
	display: block; padding: 8px 12px; border-radius: 8px;
	font-weight: 700; font-size: 15px; color: var(--navy); white-space: nowrap;
}
.nav__list > li > a:hover, .nav__list > li.current-menu-item > a, .nav__list > li.current-category-ancestor > a { background: var(--bg-soft); }
.nav__list .menu-item-has-children > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; }
.nav__list .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 200px;
	list-style: none; margin: 6px 0 0; padding: 8px;
	background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(11, 27, 58, .15);
	opacity: 0; visibility: hidden; transform: translateY(4px); transition: .15s ease;
}
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu, .nav__list li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__list .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: 15px; }
.nav__list .sub-menu a:hover { background: var(--bg-soft); }

.site-header__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--navy); cursor: pointer; }
.icon-btn:hover { background: var(--bg-soft); }

.search-panel { border-top: 1px solid var(--line); padding: 16px 0; background: #fff; }

.searchform { display: flex; gap: 8px; max-width: 720px; }
.searchform input { flex: 1; min-width: 0; padding: 12px 16px; border: 2px solid var(--line); border-radius: 999px; }
.searchform input:focus { border-color: var(--navy); outline: 0; }
.searchform button { padding: 12px 20px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }

/* Menu latéral. */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(11, 27, 58, .55); }
.drawer__in {
	position: absolute; top: 0; left: 0; bottom: 0; width: min(380px, 88vw);
	background: #fff; padding: 64px 24px 32px; overflow-y: auto;
}
.drawer__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg-soft); font-size: 26px; line-height: 1; cursor: pointer; }
.drawer__list, .drawer__list .sub-menu { list-style: none; margin: 0; padding: 0; }
.drawer__list a { display: block; padding: 10px 0; font-weight: 800; font-size: 20px; color: var(--navy); border-bottom: 1px solid var(--line); }
.drawer__list .sub-menu a { font-size: 17px; font-weight: 600; padding-left: 16px; }
.drawer__list .menu-item-has-children > a[href="#"] { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; border: 0; padding-top: 18px; }
.drawer__nl { margin-top: 28px; padding: 20px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.drawer__title { font-weight: 800; font-size: 18px; margin-bottom: 4px; }

@media (max-width: 1180px) {
	.nav { display: none; }
}

/* ==========================================================================
   4. Accueil
   ========================================================================== */

.site-main { min-height: 50vh; }

/* Blocs de une : image verticale, titre sur aplat à la couleur de la rubrique. */
.hero {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
	padding-top: 32px;
	padding-bottom: 8px;
}
.hero-card { position: relative; border-radius: 20px; overflow: hidden; background: var(--c); }
.hero-card__link { position: relative; display: block; aspect-ratio: 4 / 5; color: #fff; }
.hero-card__img { position: absolute; inset: 0 0 auto 0; height: 66%; overflow: hidden; }
.hero-card__img img, .hero-card__img .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hero-card__link::before {
	/* Fondu de l'image vers la couleur de la rubrique. */
	content: ""; position: absolute; left: 0; right: 0; top: 40%; height: 27%; z-index: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, var(--c) 100%);
}
.hero-card .play { top: 33%; z-index: 2; }
.hero-card__body {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	padding: 0 26px 24px;
	min-height: 40%;
	justify-content: flex-end;
}
.hero-card__body .tag { background: rgba(255, 255, 255, .18); }
.hero-card__title {
	display: block;
	font-size: clamp(18px, 1.6vw, 25px);
	display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
	font-weight: 900;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #fff;
}
.hero-card .meta { color: rgba(255, 255, 255, .8); }
.hero-card:hover .hero-card__img img { transform: scale(1.04); }
.hero-card:hover .play { transform: scale(1.08); }

/* Rangées par rubrique. */
.row { padding-top: 48px; }
.row__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.row__title {
	display: flex; align-items: center; gap: 12px;
	margin: 0; font-size: 28px; font-weight: 900;
}
.row__title::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c); flex: none; }
.row__more { font-weight: 700; font-size: 14px; color: var(--navy); padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); }
.row__more:hover { background: var(--c); color: #fff; }

.grid { display: grid; gap: var(--gap); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Carte standard. */
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(11, 27, 58, .12), 0 0 0 1px var(--line); }
.card__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.card__img img, .card__img .ph { width: 100%; height: 100%; object-fit: cover; }
.card__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); }
.card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.card__title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.25; }
.card__title a:hover { color: var(--c); }
.card__excerpt { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.card .meta { margin-top: auto; }
.ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--c, var(--navy)), var(--navy)); }

/* Bandeau newsletter. */
.nl-band {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
	margin-top: 64px; margin-bottom: 64px; padding: 40px;
	background: var(--navy); color: #fff; border-radius: 24px;
	max-width: calc(var(--wrap) - 48px);
}
.nl-band h2 { color: #fff; font-size: 30px; font-weight: 900; }
.nl-band p { color: rgba(255, 255, 255, .8); margin: 0; }

.nl { display: flex; flex-wrap: wrap; gap: 8px; }
.nl input[type="email"] { flex: 1 1 220px; min-width: 0; padding: 13px 16px; border: 0; border-radius: 999px; }
.nl button { padding: 13px 22px; border: 0; border-radius: 999px; background: var(--yellow); color: var(--navy); font-weight: 800; cursor: pointer; }
.nl button:hover { background: #ffcb2e; }
.msg { flex-basis: 100%; margin: 6px 0 0; font-size: 14px; font-weight: 600; }
.msg.ok { color: #7ee2a8; }
.msg.err { color: #ffb4a8; }

/* ==========================================================================
   5. Article
   ========================================================================== */

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a:hover { color: var(--navy); text-decoration: underline; }
.crumbs li[aria-current] { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.article__head { max-width: 900px; padding-top: 32px; }
.article__title { margin-top: 14px; font-size: clamp(30px, 4.2vw, 50px); font-weight: 900; line-height: 1.08; }
.article__lede { font-size: 21px; line-height: 1.5; color: var(--text); font-weight: 500; }
.article__head .meta { margin-bottom: 24px; }

.article__media { max-width: 1100px; }
.article__media > img { width: 100%; border-radius: 20px; }

.player { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; cursor: pointer; }
.player img { width: 100%; height: 100%; object-fit: cover; }
.player__btn { position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, rgba(11, 27, 58, 0) 50%, rgba(11, 27, 58, .45)); cursor: pointer; }
.player__btn .play { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--yellow); }
.player__btn .play::after { left: 33px; top: 26px; border-width: 16px 0 16px 25px; }
.player:hover .play { transform: scale(1.06); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player.is-on img, .player.is-on .player__btn { display: none; }

.article__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; max-width: 1100px; padding-top: 36px; padding-bottom: 64px; }

.prose { font-size: 18px; line-height: 1.75; }
.prose > * { max-width: 70ch; }
.prose h2 { font-size: 26px; font-weight: 900; margin: 1.6em 0 .5em; padding-left: 14px; border-left: 5px solid var(--c, var(--yellow)); }
.prose h3 { font-size: 21px; font-weight: 800; margin: 1.4em 0 .4em; }
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--c, var(--yellow)); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { background: color-mix(in srgb, var(--c, var(--yellow)) 15%, transparent); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--c, var(--yellow)); font-size: 21px; font-weight: 600; color: var(--ink); }
.prose img { border-radius: 12px; }
.prose figure { margin: 1.5em 0; }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.share span { font-weight: 800; color: var(--navy); margin-right: 6px; }
.share a { padding: 8px 14px; border-radius: 999px; background: var(--bg-soft); font-size: 14px; font-weight: 700; color: var(--navy); text-decoration: none; }
.share a:hover { background: var(--c, var(--navy)); color: #fff; }

.article__aside { position: sticky; top: 100px; align-self: start; }
.aside__title { font-weight: 900; font-size: 20px; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.aside__title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c, var(--yellow)); }
.mini { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini__img { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.mini__img img, .mini__img .ph { width: 100%; height: 100%; object-fit: cover; }
.mini__title { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.mini:hover .mini__title { color: var(--c, var(--navy)); }

/* ==========================================================================
   6. Rubriques, pages, recherche
   ========================================================================== */

/* En-tête de rubrique façon Brut : sobre, sans bandeau. */
.cat-head, .cat-intro { padding-top: 32px; padding-bottom: 8px; }
.cat-head__title, .cat-intro__title { margin: 0; font-size: clamp(36px, 5vw, 56px); font-weight: 900; color: var(--ink); letter-spacing: -0.03em; }
.cat-head__desc, .cat-intro__desc { max-width: 70ch; margin-top: 8px; font-size: 16px; font-weight: 500; color: var(--text); }
.cat-intro__desc p { margin: 0; }
.cat-head__search { margin-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.chips a { display: inline-block; padding: 8px 14px; border: 1px solid #c9ceda; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.chips a:hover { border-color: var(--ink); }

/* Grand bloc « Dernière vidéo » sur fond flouté. */
.feature {
	position: relative; overflow: hidden; isolation: isolate;
	display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center;
	margin-top: 28px; padding: 32px clamp(24px, 9%, 130px);
	border-radius: 16px; background: var(--navy); color: #fff;
}
.feature__bg { position: absolute; inset: -40px; z-index: -2; background-size: cover; background-position: center; filter: blur(36px) saturate(1.1); transform: scale(1.1); }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .38); }
.feature__media .player { border-radius: 10px; }
.feature__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 8px; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 16px; }
.feature__title { margin: 16px 0 14px; font-size: clamp(28px, 3.2vw, 44px); font-weight: 900; line-height: 1.1; color: #fff; }
.feature__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.feature__excerpt { font-size: 17px; line-height: 1.45; font-weight: 500; color: rgba(255, 255, 255, .92); margin: 0 0 18px; }
.feature__more { font-weight: 800; color: #fff; border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.list__title { font-size: 28px; font-weight: 900; margin: 0 0 18px; }

.list { padding-top: 36px; padding-bottom: 64px; }
.empty { font-size: 18px; color: var(--muted); padding: 40px 0; }

.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 14px; border-radius: 999px; background: var(--bg-soft); font-weight: 700; color: var(--navy); }
.page-numbers.current { background: var(--navy); color: #fff; }
a.page-numbers:hover { background: var(--yellow); }

.static { max-width: 860px; padding-top: 32px; padding-bottom: 64px; }
.page__title { font-size: clamp(32px, 4.5vw, 48px); font-weight: 900; }

.contact p { max-width: 560px; }
.contact label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.contact input, .contact select, .contact textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; }
.contact input:focus, .contact select:focus, .contact textarea:focus { border-color: var(--navy); outline: 0; }
.contact button { padding: 13px 26px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 800; cursor: pointer; }
.static .msg.ok { color: #1E8E3E; }
.static .msg.err { color: #C62828; }

.notfound { text-align: center; }
.notfound__code { font-size: 120px; font-weight: 900; line-height: 1; color: var(--yellow); margin: 0; }
.notfound .searchform { margin: 24px auto; }

/* ==========================================================================
   7. Pied de page
   ========================================================================== */

.site-footer { background: var(--navy); color: #fff; margin-top: 64px; padding: 56px 0 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.site-footer__logo { font-size: clamp(56px, 7vw, 96px); font-weight: 900; letter-spacing: -0.05em; line-height: .9; color: #fff; }
.site-footer__logo span { color: var(--yellow); }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 40px; }
.site-footer__title { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, .45); }
.site-footer__cols ul { list-style: none; margin: 0; padding: 0; }
.site-footer__cols a { display: inline-block; padding: 3px 0; font-size: 16px; font-weight: 600; color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__social { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 48px 0 0; padding: 0; }
.site-footer__social a { display: inline-flex; color: #fff; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 48px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.site-footer__bottom p { margin: 0; font-weight: 600; color: rgba(255, 255, 255, .7); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.site-footer__legal a { color: rgba(255, 255, 255, .5); }

/* ==========================================================================
   8. Écrans moyens et mobiles
   ========================================================================== */

@media (max-width: 1100px) {
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.article__grid { grid-template-columns: 1fr; gap: 32px; }
	.article__aside { position: static; }
}
@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr 1fr; }
	.hero-card:first-child { grid-column: 1 / -1; }
	.hero-card:first-child .hero-card__link { aspect-ratio: 16 / 11; }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.nl-band { grid-template-columns: 1fr; padding: 28px; }
	.feature { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding-left: 16px; padding-right: 16px; }
	.site-header__in { height: 60px; gap: 10px; }
	.brand { font-size: 25px; }
	.site-header .btn--accent { display: none; }
	.hero { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
	.hero-card__link, .hero-card:first-child .hero-card__link { aspect-ratio: 4 / 5; }
	.hero-card__title { font-size: 24px; }
	.grid--4, .grid--3 { grid-template-columns: 1fr; }
	.row { padding-top: 36px; }
	.row__title { font-size: 23px; }
	.prose { font-size: 17px; }
	.article__lede { font-size: 19px; }
	.player, .article__media > img { border-radius: 0; margin: 0 -16px; }
	.nl-band { border-radius: 0; margin-left: 0; margin-right: 0; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
	.nl-band h2 { font-size: 24px; }
}

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

/* ==========================================================================
   9. Mode nuit
   ========================================================================== */

.icon-btn .i-sun { display: none; }
html[data-theme="dark"] .icon-btn .i-sun { display: block; }
html[data-theme="dark"] .icon-btn .i-moon { display: none; }

html[data-theme="dark"] {
	--ink: #ffffff;
	--text: #dfe4ee;
	--muted: #9aa4b8;
	--line: #243150;
	--bg: #0a1224;
	--bg-soft: #16213b;
	color-scheme: dark;
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .search-panel,
html[data-theme="dark"] .drawer__in,
html[data-theme="dark"] .nav__list .sub-menu,
html[data-theme="dark"] .card { background: #111b33; }
html[data-theme="dark"] .brand,
html[data-theme="dark"] .nav__list > li > a,
html[data-theme="dark"] .drawer__list a,
html[data-theme="dark"] .icon-btn,
html[data-theme="dark"] .row__more,
html[data-theme="dark"] .share span,
html[data-theme="dark"] .share a,
html[data-theme="dark"] .page-numbers,
html[data-theme="dark"] .prose a { color: #fff; }
html[data-theme="dark"] .burger span { background: #fff; }
html[data-theme="dark"] .page-numbers.current { background: var(--yellow); color: var(--navy); }
html[data-theme="dark"] .searchform input,
html[data-theme="dark"] .contact input,
html[data-theme="dark"] .contact select,
html[data-theme="dark"] .contact textarea { background: #0a1224; color: #fff; border-color: var(--line); }
html[data-theme="dark"] .searchform input:focus,
html[data-theme="dark"] .contact input:focus,
html[data-theme="dark"] .contact textarea:focus { border-color: var(--yellow); }
html[data-theme="dark"] .searchform button,
html[data-theme="dark"] .contact button { background: var(--yellow); color: var(--navy); }
html[data-theme="dark"] .nl-band,
html[data-theme="dark"] .drawer__nl { background: #16213b; }
html[data-theme="dark"] .site-footer { background: #060c1a; }
html[data-theme="dark"] .chips a { border-color: var(--line); color: #fff; }

/* Barre de menu : le logo mène déjà à l'accueil, l'entrée « Accueil » reste dans le menu latéral. */
.nav__list > li.menu-item-home { display: none; }
.nav__list > li > a { padding: 8px 10px; }
@media (max-width: 1240px) { .nav { display: none; } }

/* ==========================================================================
   10. Mobile façon Brut : logo à gauche, menu à droite, menu plein écran
   ========================================================================== */

.burger span { width: 24px; flex: none; }
.drawer__top { display: none; }
.drawer__tools { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.drawer__tools .searchform { max-width: none; }
.drawer__mode, .drawer__link { display: flex; align-items: center; gap: 14px; padding: 6px 0; border: 0; background: none; font-weight: 800; font-size: 20px; color: var(--ink); cursor: pointer; text-align: left; }
.drawer__mode .i-sun { display: none; }
html[data-theme="dark"] .drawer__mode .i-sun { display: block; }
html[data-theme="dark"] .drawer__mode .i-moon { display: none; }
.drawer__list > li > a[style*="--c"]::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--c); margin-right: 14px; vertical-align: middle; }
.drawer__list .sub-menu a[style*="--c"]::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 12px; vertical-align: middle; }

@media (max-width: 640px) {
	.site-header { border-bottom: 1px solid var(--line); }
	.site-header__in { height: 64px; }
	.brand { order: 1; font-size: 30px; }
	.burger { order: 3; margin-left: auto; margin-right: -8px; }
	.site-header__tools { display: none; }

	.drawer { background: var(--bg); }
	.drawer__in { width: 100%; padding: 0 24px 40px; }
	.drawer__top { display: flex; align-items: center; justify-content: space-between; height: 64px; margin-bottom: 12px; }
	.drawer__close { position: static; background: none; width: 44px; height: 44px; margin-right: -10px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
	.drawer__list a { border: 0; font-size: 24px; padding: 11px 0; }
	.drawer__list .sub-menu a { font-size: 19px; padding: 8px 0 8px 2px; }
	.drawer__list .menu-item-has-children > a[href="#"] { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

	/* Blocs de une façon Brut : visuel arrondi dans la carte, titre dessous. */
	.hero-card { border-radius: 18px; }
	.hero-card__link, .hero-card:first-child .hero-card__link { aspect-ratio: auto; display: flex; flex-direction: column; padding: 14px; }
	.hero-card__link::before { display: none; }
	.hero-card__img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; border-radius: 12px; }
	.hero-card .play { top: 14px; margin-top: 0; transform: translateY(calc(((100vw - 60px) * 9 / 16) / 2 - 28px)); }
	.hero-card:hover .play { transform: translateY(calc(((100vw - 60px) * 9 / 16) / 2 - 28px)); }
	.hero-card__body { position: static; min-height: 0; padding: 16px 6px 6px; }
	.hero-card__title { font-size: 23px; -webkit-line-clamp: 5; }
}

/* Menu mobile : liste continue façon Brut, sous la barre d'administration si connecté. */
@media (max-width: 640px) {
	.drawer__list .sub-menu a { font-size: 24px; font-weight: 800; padding: 11px 0; }
	.drawer__list .sub-menu a[style*="--c"]::before { width: 12px; height: 12px; margin-right: 14px; }
	.admin-bar .drawer { top: 46px; }
}
@media (min-width: 641px) and (max-width: 782px) { .admin-bar .drawer { top: 46px; } }
@media (min-width: 783px) { .admin-bar .drawer { top: 32px; } }

.drawer__top .drawer__close { order: 2; }

/* Menu mobile stable : rien ne déborde, la page derrière ne bouge pas, pas de zoom à la saisie. */
body.no-scroll { position: fixed; left: 0; right: 0; overflow: hidden; }
.drawer__in { overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.drawer__tools { grid-template-columns: minmax(0, 1fr); }
.drawer__tools .searchform input { min-width: 0; }
@media (max-width: 640px) {
	input, select, textarea { font-size: 16px; }
	.searchform button { padding: 12px 16px; }
	.drawer__nl { margin-left: 0; margin-right: 0; }
}

/* Fil d'Ariane masqué (comme Brut). Il reste lisible par Google via les données structurées. */
.crumbs { display: none; }

/* ==========================================================================
   11. Podcast : lecteur audio
   ========================================================================== */
.audio { position: relative; margin: 0; border-radius: 20px; overflow: hidden; background: var(--c, #37474F); color: #fff; display: grid; grid-template-columns: minmax(0, 1fr); }
.audio__cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.audio__body { display: grid; gap: 12px; padding: 20px 24px 22px; }
.audio__label { justify-self: start; padding: 4px 10px; border-radius: 6px; background: var(--yellow); color: var(--navy); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.audio audio { width: 100%; height: 48px; }
.audio__credit { font-size: 13px; color: rgba(255, 255, 255, .75); }
@media (min-width: 900px) {
	.audio { grid-template-columns: 1.2fr 1fr; align-items: center; }
	.audio__cover { height: 100%; aspect-ratio: auto; min-height: 300px; }
	.audio__body { padding: 32px; }
}
@media (max-width: 640px) {
	.audio { border-radius: 0; margin: 0 -16px; }
}

/* Barre de menu fixe en haut de l'écran, sur ordinateur comme sur téléphone. */
.site-header { position: fixed; top: 0; left: 0; right: 0; }
body { padding-top: 75px; }
html { scroll-padding-top: 90px; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .admin-bar #wpadminbar { position: fixed; } .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) {
	body { padding-top: 65px; }
	html, body { overflow-x: clip; }
}

/* Description de rubrique sur une seule ligne, façon Brut. */
.cat-intro__desc, .cat-head__desc { max-width: none; }
@media (min-width: 641px) { .cat-intro__desc p, .cat-head__desc p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* Lecteur podcast dans le grand bloc d'une rubrique. */
.feature .audio, .feature .audio { margin: 0; border-radius: 10px; grid-template-columns: minmax(0, 1fr); background: rgba(0, 0, 0, .35); }
.feature .audio__cover { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
.feature .audio__body { padding: 14px 16px 16px; }
