/* ==========================================================================
   AfricaTV — main stylesheet
   ========================================================================== */
:root {
	--atv-night: #08101b;
	--atv-night-2: #0d1724;
	--atv-panel: #111c2a;
	--atv-gold: #ffb400;
	--atv-gold-2: #ffc933;
	--atv-red: #e6232e;
	--atv-green: #0b9a4f;
	--atv-purple: #7a2cf0;
	--atv-ink: #ffffff;
	--atv-muted: #c3cbd6;
	--atv-dim: #8d99a8;
	--atv-line: rgba(255, 255, 255, .16);
	--atv-display: "Poppins", "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
	--atv-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--atv-wrap: 1180px;
	--atv-header-h: 88px;
	--atv-radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--atv-header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	background: var(--atv-night);
	color: var(--atv-ink);
	font-family: var(--atv-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--atv-gold); }
h1, h2, h3, h4 { font-family: var(--atv-display); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--atv-gold); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000; top: 10px; left: 10px;
	padding: 10px 16px; background: var(--atv-gold); color: #111; border-radius: 8px; font-weight: 700;
}

.wrap { width: min(var(--atv-wrap), calc(100% - 48px)); margin-inline: auto; }
.wrap--narrow { width: min(760px, calc(100% - 40px)); }
.wrap--media { width: min(1040px, calc(100% - 40px)); }
.section-pad { padding-block: 48px 80px; }

.atv-icon { flex: none; }

/* Buttons ---------------------------------------------------------------- */
.btn, .wp-block-button__link, input[type="submit"], .comment-form .submit {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 24px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--atv-gold); color: #111 !important; font-family: var(--atv-display); font-weight: 700; font-size: 15px;
	transition: background .2s, transform .2s;
}
.btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover { background: var(--atv-gold-2); color: #111; }

/* Tricolor bar ------------------------------------------------------------ */
.tricolor { display: flex; width: 142px; height: 6px; border-radius: 3px; overflow: hidden; margin: 18px 0 22px; }
.tricolor i { flex: 1; }
.tricolor i:nth-child(1) { background: var(--atv-green); }
.tricolor i:nth-child(2) { background: var(--atv-gold); }
.tricolor i:nth-child(3) { background: var(--atv-red); }

/* Wordmark ---------------------------------------------------------------- */
.wordmark { font-family: var(--atv-display); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: #fff; white-space: nowrap; }
.wordmark__accent { color: var(--atv-gold); }
.wordmark__tld { font-size: .82em; letter-spacing: -.02em; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(8, 16, 27, .92);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
	background-origin: border-box;
	padding-top: env(safe-area-inset-top, 0px);
}
.has-hero .site-header {
	position: fixed; left: 0; right: 0;
	background: linear-gradient(180deg, rgba(8, 16, 27, .85), rgba(8, 16, 27, 0));
	background-origin: border-box;
	border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
	transition: background .3s, backdrop-filter .3s;
}
.has-hero .site-header.is-scrolled { background: rgba(8, 16, 27, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255, 255, 255, .06); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner { height: var(--atv-header-h); display: flex; align-items: center; gap: 32px; }

.site-brand { margin: 0; font-size: 34px; }
.site-brand a { display: flex; align-items: center; gap: 4px; }
.site-brand a:hover { color: inherit; }
.site-brand__mark { width: 1.9em; height: auto; margin-right: -2px; }
.site-brand--logo img { max-height: 70px; width: auto; }

.site-nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.primary-nav { margin-inline: auto; }
.primary-nav .menu { list-style: none; display: flex; gap: 8px; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu a { display: block; white-space: nowrap; padding: 10px 16px; font-family: var(--atv-display); font-weight: 500; font-size: 15px; color: #fff; }
.primary-nav .menu a:hover { color: var(--atv-gold); }
.primary-nav .menu > .current-menu-item > a,
.primary-nav .menu > .current_page_item > a,
.primary-nav .menu > .current-menu-ancestor > a { color: var(--atv-gold); }
.primary-nav .menu > .current-menu-item > a::after,
.primary-nav .menu > .current_page_item > a::after,
.primary-nav .menu > .current-menu-ancestor > a::after {
	content: ""; display: block; height: 2px; margin-top: 8px; margin-bottom: -10px; background: var(--atv-gold); border-radius: 2px;
}
.primary-nav .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: var(--atv-panel); border: 1px solid var(--atv-line); border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { border-radius: 8px; padding: 8px 12px; font-size: 14px; }
.primary-nav .sub-menu a:hover { background: rgba(255, 255, 255, .06); }

.search-form { position: relative; display: flex; align-items: center; width: 204px; }
.search-form__field {
	width: 100%; height: 38px; padding: 0 46px 0 18px; border-radius: 999px;
	border: 1px solid var(--atv-line); background: rgba(255, 255, 255, .1); color: #fff; font-size: 13px;
}
.search-form__field::placeholder { color: #d6dde6; }
.search-form__field:focus { outline: none; border-color: var(--atv-gold); background: rgba(255, 255, 255, .14); }
.search-form__field::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form__submit {
	position: absolute; right: 3px; width: 34px; height: 32px; border: 0; border-radius: 999px;
	display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.search-form__submit:hover { background: var(--atv-gold); color: #111; }

.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--atv-line); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; place-items: center; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(720px, 100svh);
	display: flex; align-items: center;
	padding: calc(var(--atv-header-h) + 40px) 0 72px;
	background: var(--atv-night);
}
.hero__media { position: absolute; inset: 0 0 0 30%; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, var(--atv-night) 0%, rgba(8, 16, 27, .7) 18%, rgba(8, 16, 27, 0) 45%),
		linear-gradient(0deg, var(--atv-night) 0%, rgba(8, 16, 27, 0) 22%),
		linear-gradient(180deg, rgba(8, 16, 27, .55) 0%, rgba(8, 16, 27, 0) 25%);
}
.hero__inner { position: relative; }
.hero__content { max-width: 560px; }
.hero__wordmark { margin: 0 0 6px; font-size: clamp(52px, 7vw, 90px); }
.hero__wordmark .wordmark { letter-spacing: -.045em; }
.hero__title { font-size: clamp(44px, 5.4vw, 72px); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; margin: 0 0 26px; text-wrap: balance; }
.hero__title span { color: var(--atv-gold); }
.hero__lead { font-size: 19px; line-height: 1.5; color: #eef1f5; max-width: 34ch; margin: 0 0 32px; }

.btn-watch {
	display: inline-flex; align-items: center; gap: 18px;
	padding: 9px 22px 9px 9px; border-radius: 999px;
	background: var(--atv-gold); color: #111;
	font-family: var(--atv-display); font-weight: 700; font-size: 17px;
	box-shadow: 0 14px 34px rgba(255, 180, 0, .25);
	transition: transform .2s, background .2s, box-shadow .2s;
}
.btn-watch:hover { color: #111; background: var(--atv-gold-2); transform: translateY(-2px); box-shadow: 0 18px 40px rgba(255, 180, 0, .35); }
.btn-watch__play { width: 44px; height: 44px; border-radius: 50%; background: #111; color: #fff; display: grid; place-items: center; }
.btn-watch__play svg { margin-left: 2px; }
.btn-watch__label { padding-right: 10px; }

/* ==========================================================================
   Rubriques (category cards)
   ========================================================================== */
.rubriques {
	position: relative; padding: 24px 0 26px;
	background: linear-gradient(180deg, #121b27 0%, #0b131e 100%);
	border-top: 1px solid rgba(255, 255, 255, .04);
}
.rubriques__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.rubrique__link {
	height: 100%; display: flex; flex-direction: column; overflow: hidden;
	border-radius: var(--atv-radius); border: 1px solid rgba(255, 255, 255, .22);
	background: #0f1824; box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
	transition: border-color .25s, transform .25s;
}
.rubrique__link:hover { color: inherit; border-color: var(--c); transform: translateY(-4px); }
.rubrique__media { display: block; height: 150px; overflow: hidden; }
.rubrique__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rubrique__link:hover .rubrique__media img { transform: scale(1.05); }
.rubrique__body {
	position: relative; flex: 1; display: block; padding: 34px 20px 24px;
	background: linear-gradient(180deg, #121c29 0%, #0c1520 100%);
}
.rubrique__icon {
	position: absolute; top: -28px; left: 18px;
	width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
	background: var(--c); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .4);
}
.rubrique__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.rubrique__title { font-family: var(--atv-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.rubrique__chev { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; transition: transform .2s; }
.rubrique__link:hover .rubrique__chev { transform: translateX(3px); }
.rubrique__text { display: block; color: #d9dfe7; font-size: 15px; line-height: 1.45; max-width: 24ch; }

/* ==========================================================================
   Feature band
   ========================================================================== */
.feature {
	position: relative; isolation: isolate; overflow: hidden;
	padding: 60px 0 52px; min-height: 290px;
	background: var(--atv-night-2);
}
.feature::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--feature-bg) center 30% / cover no-repeat;
	opacity: .55;
}
.feature::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(10, 16, 24, .96) 0%, rgba(10, 16, 24, .75) 30%, rgba(10, 16, 24, .55) 60%, rgba(10, 16, 24, .3) 100%),
		linear-gradient(0deg, rgba(8, 16, 27, .85) 0%, rgba(8, 16, 27, 0) 60%);
}
.feature__inner { display: grid; grid-template-columns: minmax(0, 350px) minmax(0, 1fr); gap: 32px; align-items: center; padding-right: 22%; }
.feature__title { font-size: clamp(28px, 2.9vw, 36px); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin: 0; }
.feature__title span { color: var(--atv-gold); }
.feature .tricolor { margin: 20px 0 22px; }
.feature__text { font-size: 16px; color: #e5e9ef; margin: 0; max-width: 36ch; }

.feature__items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature__icon {
	width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
	border: 2.5px solid var(--c); color: var(--c); margin: 0 0 20px 34px;
	background: rgba(8, 16, 27, .45);
}
.feature__item h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.feature__item p { font-size: 13px; line-height: 1.55; color: #d0d7e0; margin: 0; max-width: 22ch; }

.feature__portrait { position: absolute; top: 0; right: 0; bottom: 0; width: 25%; z-index: -1; }
.feature__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.feature__portrait::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(10, 16, 24, .9) 0%, rgba(10, 16, 24, 0) 35%);
}

/* ==========================================================================
   Card grid (latest, archives, related)
   ========================================================================== */
.latest { padding: 64px 0 72px; }
.latest--related { padding-top: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-title { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; margin: 0; }
.section-more { display: inline-flex; align-items: center; gap: 4px; font-family: var(--atv-display); font-weight: 600; font-size: 15px; color: var(--atv-gold); }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--atv-panel); border: 1px solid rgba(255, 255, 255, .08); transition: border-color .2s; }
.card:hover { border-color: var(--c, var(--atv-gold)); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1b2636, #0f1824); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .25); }
.card__play { position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--atv-gold); color: #111; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.card__play svg { margin-left: 2px; }
.card__body { padding: 16px 18px 20px; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; }
.card__title a:hover { color: var(--atv-gold); }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--atv-dim); margin-bottom: 8px; }
.entry-meta__cat { color: var(--chip, var(--atv-gold)); font-weight: 600; font-family: var(--atv-display); }
.entry-meta__cat:hover { color: #fff; }
.entry-meta__duration { display: inline-flex; align-items: center; gap: 4px; }

/* Pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--atv-line); font-weight: 600; }
.pagination .page-numbers.current { background: var(--atv-gold); color: #111; border-color: var(--atv-gold); }
.pagination a.page-numbers:hover { border-color: var(--atv-gold); }

/* ==========================================================================
   Page / archive heading
   ========================================================================== */
.page-hero {
	padding: 64px 0 8px;
	background: radial-gradient(ellipse 60% 120% at 85% 0%, color-mix(in srgb, var(--c, var(--atv-gold)) 22%, transparent), transparent 70%);
}
.page-hero__title { font-size: clamp(34px, 4.5vw, 56px); font-weight: 800; letter-spacing: -.025em; margin: 0; }
.page-hero__title span { color: var(--atv-gold); }
.page-hero__desc { color: var(--atv-muted); max-width: 60ch; margin-top: 12px; }
.page-hero .tricolor { margin-bottom: 0; }

/* ==========================================================================
   Single
   ========================================================================== */
.single-entry__header { padding: 56px 0 28px; }
.single-entry__title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 16px; text-wrap: balance; }
.single-entry__lead { font-size: 19px; color: var(--atv-muted); margin: 0; }
.single-entry__player, .single-entry__figure { margin-block: 0 40px; }
.single-entry__player { border-radius: var(--atv-radius); overflow: hidden; background: #000; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.single-entry__figure img { width: 100%; border-radius: var(--atv-radius); }
.single-entry__footer { padding: 16px 0 48px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tag-list a { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--atv-line); font-size: 13px; }
.tag-list a:hover { border-color: var(--atv-gold); }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border-top: 1px solid var(--atv-line); padding-top: 24px; }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; }
.post-navigation .nav-label { display: block; font-size: 13px; color: var(--atv-dim); }
.post-navigation .nav-title { font-family: var(--atv-display); font-weight: 600; }

/* Entry content ------------------------------------------------------------ */
.entry-content { font-size: 18px; line-height: 1.75; color: #e7ebf0; }
.entry-content > * { margin-block: 0 1.2em; }
.entry-content h2 { font-size: 30px; margin-top: 1.6em; }
.entry-content h3 { font-size: 23px; margin-top: 1.4em; }
.entry-content a { color: var(--atv-gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: #fff; }
.entry-content blockquote, .wp-block-quote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--atv-gold); font-family: var(--atv-display); font-size: 22px; line-height: 1.5; color: #fff; }
.entry-content img, .entry-content figure img { border-radius: 12px; }
.entry-content figcaption, .wp-element-caption { font-size: 14px; color: var(--atv-dim); margin-top: 8px; text-align: center; }
.entry-content pre, .entry-content code { background: var(--atv-panel); border-radius: 8px; font-size: .88em; }
.entry-content pre { padding: 18px; overflow-x: auto; }
.entry-content code { padding: 2px 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--atv-line); padding: 10px; text-align: left; }
.entry-content hr { border: 0; height: 1px; background: var(--atv-line); }
.entry-content .alignwide { width: min(1040px, calc(100vw - 40px)); margin-inline: calc(50% - min(520px, calc(50vw - 20px))); max-width: none; }
.entry-content .alignfull { width: 100vw; margin-inline: calc(50% - 50vw); max-width: none; }
.entry-content .wp-block-embed iframe { width: 100%; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.home-page-content { padding: 64px 0; }

/* Comments ----------------------------------------------------------------- */
.comments-area { padding: 32px 0 64px; border-top: 1px solid var(--atv-line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 32px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--atv-line); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--atv-dim); margin: 4px 0 8px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: 6px; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
	width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--atv-line); background: var(--atv-panel); color: #fff;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--atv-gold); }

/* Empty / 404 ---------------------------------------------------------------- */
.empty-state, .error-404 { text-align: center; padding: 48px 0 32px; }
.error-404 { padding: 72px 0 96px; }
.error-404__code { font-family: var(--atv-display); font-weight: 800; font-size: clamp(90px, 16vw, 180px); line-height: 1; margin: 0 0 12px; color: var(--atv-gold); letter-spacing: -.05em; }
.empty-state .search-form, .error-404 .search-form { margin: 24px auto; width: min(420px, 100%); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .1); background: var(--atv-night); padding: 22px 0; }
.site-footer__inner { display: flex; align-items: center; gap: 24px 28px; flex-wrap: wrap; }
.site-footer .site-brand { font-size: 26px; }
.footer-nav { flex: 1; display: flex; justify-content: center; }
.footer-nav .menu { list-style: none; display: flex; flex-wrap: nowrap; align-items: center; margin: 0; padding: 0; }
.footer-nav li { display: flex; align-items: center; }
.footer-nav li + li::before { content: ""; width: 1px; height: 12px; background: rgba(255, 255, 255, .45); }
.footer-nav a { white-space: nowrap; padding: 4px 12px; font-size: 13px; font-family: var(--atv-display); font-weight: 500; }
.social-links { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.social-links a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); display: grid; place-items: center; color: #fff; transition: .2s; }
.social-links a:hover { background: var(--atv-gold); border-color: var(--atv-gold); color: #111; }
.site-footer__copy { margin: 0; font-size: 12px; color: #e3e7ec; }

/* ==========================================================================
   2.0 components
   ========================================================================== */

/* Live pill in header */
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; background: var(--atv-red); color: #fff; font: 700 13px/1 var(--atv-display); margin-left: -12px; }
.live-pill:hover { color: #fff; background: #ff3842; }
.live-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: atv-pulse 1.4s ease-in-out infinite; }

/* Section helpers */
.section-more--button { background: none; border: 0; cursor: pointer; padding: 4px 0; }
.section-more--button:hover { color: #fff; }

/* Entry meta extras */
.entry-meta__views { display: inline-flex; align-items: center; gap: 4px; }
.card__episode { position: absolute; top: 10px; left: 10px; padding: 4px 9px; border-radius: 6px; background: rgba(8, 16, 27, .85); color: #fff; font: 700 12px/1.2 var(--atv-display); }
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.country-chips a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid var(--atv-line); font-size: 13px; font-weight: 600; }
.country-chips a:hover { border-color: var(--atv-gold); }
.country-chips svg { color: var(--atv-gold); }

/* Share bar */
.share-bar { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 28px; margin-bottom: 8px; border-bottom: 1px solid var(--atv-line); }
.share-bar__label { font: 600 14px/1 var(--atv-display); color: var(--atv-dim); margin-right: 4px; }
.share-bar__btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; min-width: 40px; justify-content: center; padding: 0 12px; border-radius: 999px; border: 1px solid var(--atv-line); background: rgba(255, 255, 255, .04); color: #fff; font: 600 14px/1 var(--atv-display); cursor: pointer; transition: background .15s, border-color .15s; }
.share-bar__btn:hover { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .1); }
.share-bar__btn--whatsapp { background: #1fae54; border-color: #1fae54; padding: 0 16px; }
.share-bar__btn--whatsapp:hover { background: #25c962; border-color: #25c962; }
.share-bar__copy.is-done { border-color: var(--atv-green); color: #7ff0ae; }
.share-bar__status { font-size: 13px; color: #7ff0ae; }
.share-bar__native { background: var(--atv-gold); border-color: var(--atv-gold); color: #111; padding: 0 16px; }
.share-bar__native:hover { background: var(--atv-gold-2); color: #111; }

/* Series box */
.series-box { margin: 32px 0 40px; padding: 22px 24px; border-radius: var(--atv-radius); background: linear-gradient(135deg, #152234, #0e1825); border: 1px solid var(--atv-line); }
.series-box__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.series-box__kicker { margin: 0 0 4px; font-size: 13px; color: var(--atv-gold); font-weight: 600; }
.series-box__title { font-size: 22px; margin: 0; }
.series-box__count { margin: 0; font: 600 14px/1.3 var(--atv-display); color: var(--atv-muted); white-space: nowrap; }
.series-box__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.series-box__btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); font: 600 15px/1.3 var(--atv-display); }
.series-box__btn small { display: block; font: 500 12px/1.4 var(--atv-body); color: var(--atv-dim); margin-bottom: 2px; }
.series-box__btn:hover { color: #fff; border-color: var(--atv-gold); }
.series-box__btn--next { grid-column: 2; justify-content: space-between; text-align: right; background: var(--atv-gold); color: #111; border-color: var(--atv-gold); }
.series-box__btn--next small { color: rgba(17, 17, 17, .7); }
.series-box__btn--next:hover { color: #111; background: var(--atv-gold-2); }
.series-box__all { margin-top: 14px; }
.series-box__all summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: 600 14px/1 var(--atv-display); color: var(--atv-muted); padding: 6px 0; }
.series-box__all summary:hover { color: #fff; }
.series-box__all ol { list-style: none; margin: 10px 0 0; padding: 0; max-height: 320px; overflow-y: auto; }
.series-box__all li a { display: flex; gap: 12px; padding: 9px 8px; border-radius: 8px; font-size: 15px; }
.series-box__all li a:hover { background: rgba(255, 255, 255, .05); }
.series-box__all li.is-current a { color: var(--atv-gold); background: rgba(255, 180, 0, .08); }
.series-box__n { flex: none; width: 26px; text-align: right; font: 700 14px/1.6 var(--atv-display); color: var(--atv-dim); }

/* Continue watching */
.continue { padding: 48px 0 56px; }
.continue__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.continue__item { position: relative; }
.continue__link { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: var(--atv-panel); border: 1px solid rgba(255, 255, 255, .08); }
.continue__link:hover { color: inherit; border-color: var(--atv-gold); }
.continue__media { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: #1b2636; }
.continue__media img { width: 100%; height: 100%; object-fit: cover; }
.continue__media .card__play { left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%); width: 32px; height: 32px; }
.continue__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.continue__progress::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--atv-red); }
.continue__body { min-width: 0; padding-right: 22px; }
.continue__cat { display: block; font-size: 12px; color: var(--atv-gold); font-weight: 600; }
.continue__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 600 14px/1.35 var(--atv-display); }
.continue__at { display: block; font-size: 12px; color: var(--atv-dim); margin-top: 2px; }
.continue__remove { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: var(--atv-dim); display: grid; place-items: center; cursor: pointer; }
.continue__remove:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Most viewed */
.popular { padding: 24px 0 64px; }
.popular__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.popular__item { position: relative; display: flex; flex-direction: column; }
.popular__rank { position: absolute; z-index: 2; top: -18px; left: -6px; font: 800 72px/1 var(--atv-display); color: var(--atv-night); -webkit-text-stroke: 2px var(--atv-gold); letter-spacing: -.05em; pointer-events: none; }
.popular__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #1b2636; margin-bottom: 12px; }
.popular__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.popular__item:hover .popular__media img { transform: scale(1.04); }
.popular__body { padding-left: 4px; }

/* Map section */
.map-section { padding: 72px 0; background: radial-gradient(ellipse 50% 70% at 72% 50%, rgba(255, 180, 0, .09), transparent 70%), var(--atv-night); border-top: 1px solid rgba(255, 255, 255, .05); }
.map-section__inner { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: center; }
.map-section__intro p { color: var(--atv-muted); font-size: 17px; max-width: 34ch; }
.map-section__stat { font: 700 15px/1.3 var(--atv-display) !important; color: var(--atv-gold) !important; }
.map-section__hint { font-size: 14px !important; padding: 12px 14px; border-radius: 10px; border: 1px dashed var(--atv-line); }
.map-section__map { max-width: 560px; justify-self: center; width: 100%; }

/* Newsletter band */
.newsletter { padding: 16px 0 80px; }

/* Ads */
.ad-slot { margin: 32px auto; text-align: center; }
.ad-slot__label { display: block; font-size: 11px; color: var(--atv-dim); margin-bottom: 6px; }
.ad-slot img { margin-inline: auto; border-radius: 8px; }
.ad-slot--inline { margin: 32px 0; padding: 16px 0; border-block: 1px solid var(--atv-line); }
.ad-slot--home { margin: 8px auto 48px; }

/* Page hero variants */
.page-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.page-hero__kicker { margin: 0 0 6px; font: 600 15px/1 var(--atv-display); color: var(--atv-gold); }
.page-hero__meta { margin: 10px 0 0; color: var(--atv-muted); font-weight: 600; }
.page-hero__map { flex: none; width: 190px; }
.page-hero--live .atv-live__badge { margin-bottom: 14px; }
.live-player { margin-top: 32px; }
.live-player + .wrap .share-bar { margin-top: 24px; }
.live-player .atv-live { box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.programme { padding: 40px 0 80px; }

/* Breadcrumbs */
.breadcrumbs { margin: 0 0 14px; font-size: 13px; color: var(--atv-dim); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; margin: 0 10px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumbs a { color: var(--atv-muted); }
.breadcrumbs a:hover { color: var(--atv-gold); }
.breadcrumbs [aria-current] span { color: var(--atv-dim); max-width: 42ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.single-entry .breadcrumbs { margin-bottom: 12px; }

/* Footer legal links */
.site-footer__legal { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-left: 14px; }
.site-footer__legal a { text-decoration: underline; text-underline-offset: 3px; color: var(--atv-muted); }
.site-footer__legal a:hover { color: var(--atv-gold); }

/* Block editor / blocks on pages */
.atv-block { margin-block: 32px; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid var(--atv-gold); color: var(--atv-gold) !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.search-form { width: 170px; }
	.primary-nav .menu a { padding-inline: 11px; }
	.feature__inner { padding-right: 0; grid-template-columns: 1fr; gap: 36px; max-width: 72%; margin-left: max(24px, calc((100% - var(--atv-wrap)) / 2)); }
	.feature__portrait { width: 30%; }
	.card-grid { grid-template-columns: repeat(3, 1fr); }
	.continue__list { grid-template-columns: repeat(2, 1fr); }
	.popular__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 960px) {
	:root { --atv-header-h: 72px; }
	.site-brand { font-size: 28px; }
	.nav-toggle { display: grid; }
	.site-nav {
		position: fixed; inset: calc(var(--atv-header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 16px 24px 28px; background: rgba(8, 16, 27, .98);
		border-bottom: 1px solid var(--atv-line);
		max-height: calc(100vh - var(--atv-header-h)); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s;
	}
	.admin-bar .site-nav { top: calc(var(--atv-header-h) + 46px); }
	.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open.has-hero .site-header { background: rgba(8, 16, 27, .98); }
	.primary-nav { margin: 0; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { padding: 13px 4px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.primary-nav .menu > .current-menu-item > a::after, .primary-nav .menu > .current_page_item > a::after, .primary-nav .menu > .current-menu-ancestor > a::after { display: none; }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; background: none; padding: 0 0 0 14px; }
	.search-form { width: 100%; }
	.search-form__field { height: 46px; font-size: 16px; }
	.search-form__submit { height: 40px; width: 40px; }

	.hero { min-height: 0; padding: calc(var(--atv-header-h) + 32px) 0 56px; }
	.hero__media { inset: 0; }
	.hero__media img { object-position: 70% center; }
	.hero__media::after { background: linear-gradient(90deg, rgba(8, 16, 27, .92) 0%, rgba(8, 16, 27, .55) 60%, rgba(8, 16, 27, .2) 100%), linear-gradient(0deg, var(--atv-night) 0%, rgba(8, 16, 27, 0) 30%); }

	.rubriques__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
	.card-grid { grid-template-columns: repeat(2, 1fr); }

	.feature { padding-bottom: 0; }
	.feature__inner { max-width: none; margin-inline: auto; }
	.feature__portrait { position: relative; z-index: 0; width: 100%; height: 320px; margin-top: 32px; }
	.feature__portrait::before { background: linear-gradient(0deg, rgba(10, 16, 24, 0) 60%, rgba(10, 16, 24, .95) 100%); }
	.site-footer__inner { justify-content: center; text-align: center; }
	.map-section__inner { grid-template-columns: 1fr; gap: 28px; }
	.map-section__intro p { max-width: none; }
	.page-hero__map { width: 130px; }
	.site-footer__legal { display: flex; justify-content: center; margin: 8px 0 0; }
	.live-pill { margin-left: 0; }
	.footer-nav { flex-basis: 100%; order: 3; }
	.footer-nav .menu { flex-wrap: wrap; justify-content: center; }
	.site-footer__copy { flex-basis: 100%; order: 4; }
}

@media (max-width: 600px) {
	.wrap { width: calc(100% - 32px); }
	.hero__lead { font-size: 17px; }
	.btn-watch { font-size: 16px; gap: 12px; }
	.rubriques__grid { grid-template-columns: 1fr; }
	.rubrique__link { flex-direction: row; }
	.rubrique__media { width: 38%; height: auto; min-height: 150px; }
	.rubrique__body { padding: 18px 16px 18px 18px; }
	.rubrique__icon { top: 16px; left: -22px; width: 44px; height: 44px; }
	.rubrique__icon svg { width: 20px; height: 20px; }
	.rubrique__head { padding-left: 16px; }
	.rubrique__text { padding-left: 16px; font-size: 14px; }
	.rubrique__title { font-size: 20px; }
	.rubrique__body { overflow: visible; min-width: 0; flex: 1; }
	.rubrique__link { overflow: visible; }
	.rubrique__media { border-radius: var(--atv-radius) 0 0 var(--atv-radius); }
	.feature__items { grid-template-columns: 1fr; gap: 22px; }
	.feature__item { display: grid; grid-template-columns: 54px 1fr; column-gap: 16px; }
	.feature__icon { grid-row: span 2; margin: 0; }
	.feature__item p { max-width: none; }
	.card-grid { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.post-navigation .nav-next { text-align: left; }
	.entry-content { font-size: 17px; }
	.continue__list, .popular__list { grid-template-columns: 1fr; }
	.popular__rank { font-size: 56px; top: -12px; }
	.series-box { padding: 18px 16px; }
	.series-box__head { flex-direction: column; align-items: flex-start; gap: 4px; }
	.series-box__nav { grid-template-columns: 1fr; }
	.series-box__btn--next { grid-column: 1; grid-row: 1; }
	.share-bar__label { width: 100%; }
	.page-hero__map { display: none; }
	.atv-live--off { aspect-ratio: 4 / 3; }
}
@keyframes atv-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .live-pill__dot { animation: none; } }
