/*
Theme Name:   Ndaar
Theme URI:    https://ndaarnews.com/
Author:       Aigle d’Afrique
Description:  Thème d’information pour Ndaarnews : actualités, N’daar TV et radio en direct, version téléphone avec barre Accueil / Radio / N’daar TV. Conception et réalisation : Aigle d’Afrique.
Version:      1.2.0
Requires at least: 5.8
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:  ndaar
Tags:         news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ==========================================================
   Variables
   ========================================================== */
:root {
	--ndaar-accent: #0B7A3E;
	--ndaar-accent-dark: #075C2E;
	--ndaar-ink: #1A1A1A;
	--ndaar-muted: #5F5F5F;
	--ndaar-line: #E3E3E3;
	--ndaar-bg: #EFEFEF;
	--ndaar-card: #FFFFFF;
	--ndaar-dark: #222222;
	--ndaar-darker: #161616;
	--ndaar-radius: 4px;
	--ndaar-wrap: 1240px;
	--font-title: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
}

/* ==========================================================
   Base
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--ndaar-bg);
	color: var(--ndaar-ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--ndaar-ink); text-decoration: none; }
a:hover { color: var(--ndaar-accent); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--ndaar-accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.2; margin: 0 0 .5em; }
button { font: inherit; }

.wrap { width: 100%; max-width: var(--ndaar-wrap); margin: 0 auto; padding: 0 20px; }

.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 {
	position: fixed !important; top: 8px; left: 8px; width: auto; height: auto; clip: auto;
	padding: 10px 16px; background: #fff; color: var(--ndaar-ink); z-index: 1000; border-radius: var(--ndaar-radius);
}

.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; flex: 0 0 auto; animation: ndaar-pulse 1.4s ease-in-out infinite; }
@keyframes ndaar-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }

.notice { padding: 12px 16px; background: #FFF8E5; border-left: 4px solid #DBA617; color: var(--ndaar-ink); }

/* ==========================================================
   En-tête sombre
   ========================================================== */
.topbar { background: var(--ndaar-dark); color: #fff; }
.topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 84px; }
.brand { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; }
.brand .custom-logo { max-height: 60px; width: auto; }
.brand__text {
	font-family: var(--font-title); font-weight: 800; font-size: 44px; letter-spacing: -1.5px;
	line-height: 1; color: #fff; white-space: nowrap;
}
.brand__text:hover { color: #fff; }
.brand__dot { color: #3FBF6F; }

.livelinks { display: flex; gap: 32px; align-items: center; }
.livelink {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
	font-family: var(--font-title); font-size: 22px; font-weight: 500; color: #C8C8C8;
}
.livelink:hover, .livelink.is-active { color: #fff; }
.livelink.is-active { font-weight: 700; }

.iconbtn {
	display: none; width: 44px; height: 44px; border: none; background: transparent; color: #fff;
	align-items: center; justify-content: center; cursor: pointer; border-radius: var(--ndaar-radius);
}
.mobile-search { padding: 10px 0 14px; }
.mobile-search[hidden] { display: none; }

/* ==========================================================
   Menu vert
   ========================================================== */
.mainnav { background: var(--ndaar-accent); position: sticky; top: 0; z-index: 50; }
.admin-bar .mainnav { top: 32px; }
.mainnav__inner { display: flex; align-items: stretch; flex-wrap: nowrap; }
.mainnav ul { list-style: none; margin: 0; padding: 0; }
.mainnav__list { display: flex; align-items: stretch; }
.mainnav__list a, .homeitem__link {
	display: inline-flex; align-items: center; min-height: 50px; padding: 0 12px;
	font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .3px;
	color: #fff; white-space: nowrap;
}
.mainnav__list a:hover, .homeitem__link:hover { color: #fff; background: var(--ndaar-accent-dark); }
.mainnav__list .current-menu-item > a, .mainnav__list .current-cat > a { background: var(--ndaar-accent-dark); }

.homeitem { position: relative; display: flex; align-items: stretch; }
.homeitem__link { padding-right: 2px; }
.homeitem__link.is-current { background: var(--ndaar-ink); }
.homeitem__toggle {
	min-width: 32px; min-height: 50px; border: none; background: transparent; color: #fff;
	display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.homeitem__link.is-current + .homeitem__toggle { background: var(--ndaar-ink); }
.homeitem__toggle[aria-expanded="true"] { background: var(--ndaar-accent-dark); }
.homeitem__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.catmenu {
	position: absolute; top: 100%; left: 0; z-index: 60; width: 290px; max-height: 70vh; overflow: auto;
	background: #fff; border-top: 3px solid var(--ndaar-ink); box-shadow: 0 10px 28px rgba(0,0,0,.2); padding: 6px 0;
}
.catmenu[hidden] { display: none; }
.catmenu__list li a {
	display: flex; align-items: center; min-height: 42px; padding: 0 18px;
	font-weight: 600; font-size: 15px; color: var(--ndaar-ink); border-bottom: 1px solid #F0F0F0;
	text-transform: none; letter-spacing: 0;
}
.catmenu__list li a:hover { background: #F4F7F5; color: var(--ndaar-accent); }

.mainnav__search { flex: 1 1 200px; display: flex; align-items: center; justify-content: flex-end; padding: 8px 0 8px 12px; }
.searchform { display: flex; align-items: stretch; width: 100%; max-width: 320px; background: #fff; border-radius: var(--ndaar-radius); overflow: hidden; }
.searchform__input {
	flex: 1 1 auto; min-width: 0; border: none; outline: none; padding: 0 10px; min-height: 36px;
	font-family: inherit; font-size: 15px; color: var(--ndaar-ink); background: transparent;
}
.searchform__btn {
	min-width: 44px; border: none; background: var(--ndaar-accent-dark); color: #fff;
	display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-search .searchform, .empty .searchform { max-width: none; border: 1px solid var(--ndaar-line); }

/* ==========================================================
   Éléments communs
   ========================================================== */
.box { background: var(--ndaar-card); border-radius: var(--ndaar-radius); padding: 18px; }
.block { margin-top: 32px; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ndaar-ink); padding-bottom: 8px; margin-bottom: 18px; }
.section-title {
	display: flex; align-items: center; gap: 10px; margin: 0;
	font-family: var(--font-title); font-weight: 800; font-size: 20px;
}
.section-title::before { content: ""; width: 4px; height: 22px; background: var(--ndaar-accent); flex: 0 0 auto; }
.section-title--small { font-size: 18px; margin-bottom: 8px; }
.section-more { font-weight: 700; font-size: 15px; color: var(--ndaar-accent); white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
	display: inline-block; background: var(--ndaar-accent); color: #fff; font-size: 12px; font-weight: 700;
	line-height: 1.4; padding: 2px 8px; border-radius: 2px;
}
.chip:hover { color: #fff; filter: brightness(.9); }

.meta { color: var(--ndaar-muted); font-size: 13px; }

.thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #D3D3D3; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb--empty, .overlay__img.thumb--empty, .latest__img.thumb--empty, .ticker__img.thumb--empty {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, #2A2A2A, #3C3C3C); color: #8A8A8A;
	font-family: var(--font-title); font-weight: 800; font-size: 18px;
}
.thumb--empty b { color: var(--ndaar-accent); }

.btn-more {
	display: inline-flex; align-items: center; align-self: flex-start; min-height: 36px; padding: 0 14px;
	background: var(--ndaar-ink); color: #fff; font-size: 13px; font-weight: 700; border-radius: 2px;
}
.btn-more:hover { background: var(--ndaar-accent); color: #fff; }

/* Grilles */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Carte */
.card { background: var(--ndaar-card); border-radius: var(--ndaar-radius); overflow: hidden; display: flex; flex-direction: column; }
.card__media { display: block; }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.card__title { font-family: var(--font-title); font-weight: 700; font-size: 18px; line-height: 1.3; margin: 0; }
.card__excerpt { margin: 0; color: #444; font-size: 15px; }

/* Carte sur image */
.overlay { position: relative; overflow: hidden; border-radius: var(--ndaar-radius); background: #3A3A3A; min-height: 220px; }
.overlay__img { position: absolute; inset: 0; display: block; }
.overlay__img img { width: 100%; height: 100%; object-fit: cover; }
.overlay__text {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 20px;
	background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,0) 100%);
	display: flex; flex-direction: column; gap: 8px; color: #fff;
}
.overlay__title { font-family: var(--font-title); font-weight: 800; font-size: 28px; line-height: 1.18; margin: 0; }
.overlay__title a { color: #fff; }
.overlay__title a:hover { color: #fff; text-decoration: underline; }
.overlay .meta { color: #D9D9D9; }
.overlay--small { aspect-ratio: 4 / 3; min-height: 0; }
.overlay--small .overlay__title { font-size: 16px; }
.overlay--small .meta { display: none; }

/* ==========================================================
   Accueil
   ========================================================== */
.home { padding-top: 20px; padding-bottom: 40px; }

.ticker { display: flex; align-items: stretch; background: #fff; border-radius: var(--ndaar-radius); overflow: hidden; margin-bottom: 20px; }
.ticker__label {
	background: #E3241B; color: #fff; font-family: var(--font-title); font-weight: 800; font-size: 14px;
	padding: 0 16px; display: flex; align-items: center; flex: 0 0 auto;
}
.ticker__track { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; padding: 10px 0; overflow: hidden; }
.ticker__move { display: flex; width: max-content; animation: ndaar-ticker var(--ticker-dur, 40s) linear infinite; }
.ticker:hover .ticker__move, .ticker:focus-within .ticker__move { animation-play-state: paused; }
.ticker__group { display: flex; gap: 28px; padding-right: 28px; align-items: center; flex: none; }
@keyframes ndaar-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__track::-webkit-scrollbar { display: none; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.ticker__img { width: 40px; height: 40px; flex: 0 0 auto; overflow: hidden; border-radius: 2px; background: #D3D3D3; display: block; }
.ticker__img img { width: 100%; height: 100%; object-fit: cover; }
.ticker__img.thumb--empty { font-size: 0; }

.hero-row { display: flex; flex-wrap: wrap; gap: 20px; }
.slider { flex: 999 1 620px; min-width: 0; position: relative; min-height: 440px; border-radius: var(--ndaar-radius); overflow: hidden; background: #3A3A3A; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; }
.slider__dots { position: absolute; top: 16px; right: 16px; display: flex; gap: 6px; z-index: 2; }
.slider__dot { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; }
.slider__dot.is-active { background: #fff; }

.latest { flex: 1 1 320px; }
.latest__list { list-style: none; margin: 0; padding: 0; }
.latest__item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #ECECEC; align-items: flex-start; }
.latest__item:last-child { border-bottom: none; }
.latest__media { position: relative; flex: 0 0 76px; }
.latest__img { width: 76px; height: 76px; display: block; overflow: hidden; border-radius: 2px; background: #D3D3D3; }
.latest__img img { width: 100%; height: 100%; object-fit: cover; }
.latest__img.thumb--empty { font-size: 0; }
.latest__num {
	position: absolute; top: -6px; left: -6px; width: 24px; height: 24px; border-radius: 50%;
	background: var(--ndaar-accent); color: #fff; font-size: 13px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
}
.latest__item .chips { margin-bottom: 4px; }
.latest__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }

.ad-zone { margin-top: 32px; display: flex; justify-content: center; }

.with-sidebar { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 8px; }
.main-col { flex: 999 1 640px; min-width: 0; }
.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.sidebar .widget { min-width: 0; overflow-wrap: anywhere; background: var(--ndaar-card); border-radius: var(--ndaar-radius); padding: 18px; }
.sidebar .widget p { margin: 0 0 12px; color: #444; font-size: 15px; }
.sidebar .widget ul { margin: 0; padding-left: 18px; }

.livebox { display: flex; border-radius: var(--ndaar-radius); overflow: hidden; color: #fff; }
.livebox:hover { color: #fff; filter: brightness(1.08); }
.livebox--tv { flex-direction: column; gap: 10px; background: var(--ndaar-ink); padding: 16px; }
.livebox__screen { aspect-ratio: 16 / 9; background: #333; border-radius: 2px; display: flex; align-items: center; justify-content: center; color: var(--ndaar-accent); }
.livebox__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-title); font-weight: 800; font-size: 17px; }
.livebox__label .dot { color: #FF3B30; }
.livebox--radio { align-items: center; gap: 14px; background: var(--ndaar-accent); padding: 18px; }
.livebox__play { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--ndaar-accent); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.livebox__text { display: flex; flex-direction: column; font-size: 14px; }
.livebox__text strong { font-family: var(--font-title); font-size: 17px; }

.socials { display: flex; gap: 8px; }
.social { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--ndaar-ink); }
.social:hover { color: #fff; }
.social--facebook { background: #1E5FA8; }
.social--youtube { background: #C4302B; }
.social--whatsapp { background: #1F9D55; }

.missed { background: var(--ndaar-ink); padding: 36px 0 44px; }
.missed .section-head { border-color: #444; }
.missed .section-title { color: #fff; }

/* ==========================================================
   Listes, articles, pages
   ========================================================== */
.listing, .site-content > main.wrap { padding-top: 24px; padding-bottom: 48px; }
.page-head { margin-bottom: 4px; }
.page-title { font-family: var(--font-title); font-weight: 800; font-size: 30px; margin: 0 0 6px; }
.page-desc { color: var(--ndaar-muted); }

.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	background: #fff; border-radius: var(--ndaar-radius); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--ndaar-accent); color: #fff; }

.post { margin-top: 0; }
.with-sidebar > .main-col > .post { margin-top: 24px; }
.post__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.post__title { font-family: var(--font-title); font-weight: 800; font-size: 34px; line-height: 1.15; margin: 0; }
.post__image { margin: 0 0 20px; }
.post__image img { width: 100%; border-radius: var(--ndaar-radius); }
.post__image figcaption { font-size: 13px; color: var(--ndaar-muted); margin-top: 6px; }

.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content > * { margin-top: 0; margin-bottom: 1.1em; }
.entry-content a { color: var(--ndaar-accent); text-decoration: underline; }
.entry-content h2 { font-size: 26px; margin-top: 1.4em; }
.entry-content h3 { font-size: 21px; margin-top: 1.3em; }
.entry-content blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--ndaar-accent); font-style: italic; color: #333; }
.entry-content img { border-radius: var(--ndaar-radius); }
.entry-content figure { margin-left: 0; margin-right: 0; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--ndaar-line); padding: 8px 10px; text-align: left; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, .wp-element-caption { font-size: 13px; color: var(--ndaar-muted); }

.post__foot { border-top: 1px solid var(--ndaar-line); padding-top: 16px; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.post__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post__tags a { background: #F1F1F1; padding: 4px 10px; border-radius: 2px; font-size: 14px; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share__label { font-weight: 700; }
.share__btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 2px; color: #fff; font-weight: 700; font-size: 14px; }
.share__btn:hover { color: #fff; filter: brightness(.9); }
.share__btn--fb { background: #1E5FA8; }
.share__btn--wa { background: #1F9D55; }
.share__btn--x { background: var(--ndaar-ink); }

.comments { margin-top: 24px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 12px 0; border-bottom: 1px solid var(--ndaar-line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px; border: 1px solid #CFCFCF; border-radius: var(--ndaar-radius); font: inherit;
}
.comment-form .submit { min-height: 44px; padding: 0 20px; border: none; border-radius: var(--ndaar-radius); background: var(--ndaar-accent); color: #fff; font-weight: 700; cursor: pointer; }

.empty { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.empty p { margin: 0; }

/* ==========================================================
   Pages Direct TV / Radio
   ========================================================== */
.live { padding: 28px 0 48px; }
.live--tv { background: var(--ndaar-ink); color: #fff; }
.live__inner { display: flex; flex-direction: column; gap: 22px; }
.live__title { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 800; font-size: 28px; margin: 0; }
.live--tv .live__title .dot { color: #FF3B30; }
.live__player { max-width: 1000px; width: 100%; }
.live--tv .live__content { background: #2B2B2B; border-radius: var(--ndaar-radius); padding: 20px; color: #EDEDED; }
.live--tv .live__content a { color: #7CD9A0; }

.radio-hero {
	display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: center;
	background: var(--ndaar-accent); color: #fff; border-radius: var(--ndaar-radius); padding: 28px;
}
.radio-hero__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.radio-hero__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: 1px; }
.radio-hero__title { font-family: var(--font-title); font-weight: 900; font-size: 34px; margin: 0; line-height: 1.1; }
.radio-hero__name { margin: 0; font-size: 16px; }
.radio-hero__player { flex: 2 1 420px; min-width: 0; }
.radio-embed { background: #fff; border-radius: var(--ndaar-radius); overflow: hidden; }
.radio-embed iframe { display: block; width: 100%; border: 0; }
.radio-native { display: flex; flex-direction: column; gap: 10px; }
.radio-native audio { width: 100%; }
.radio-hero .ndaar-direct--radio { background: rgba(0,0,0,.18); margin: 0; }

/* ==========================================================
   Pied de page
   ========================================================== */
.site-footer { background: var(--ndaar-darker); color: #BDBDBD; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 28px 48px; padding-top: 40px; padding-bottom: 32px; }
.footer__brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; }
.footer__brand p { margin: 0; font-size: 15px; }
.brand__text--footer { font-size: 32px; }
.footer__col { flex: 1 1 160px; }
.footer__title { font-family: var(--font-title); font-size: 15px; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer .mainnav__list { display: flex; flex-direction: column; }
.site-footer .mainnav__list a { min-height: 0; padding: 0; text-transform: none; font-size: 15px; font-weight: 400; color: #BDBDBD; background: none; }
.site-footer a { color: #BDBDBD; }
.site-footer a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid #2A2A2A; font-size: 13px; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 14px; padding-bottom: 14px; }
.footer__credit { color: #E0E0E0; font-weight: 600; }
.footer__credit a { color: #E0E0E0; }

/* ==========================================================
   Barre du bas (téléphone)
   ========================================================== */
.tabbar { display: none; }

/* ==========================================================
   Téléphone et tablette
   ========================================================== */
@media (max-width: 820px) {
	body { font-size: 16px; }
	body.has-mobile-tabbar { padding-bottom: 104px; }

	.topbar__inner { min-height: 64px; gap: 4px; padding-left: 8px; padding-right: 8px; }
	.iconbtn { display: inline-flex; }
	.brand__text { font-size: 30px; letter-spacing: -1px; }
	.brand .custom-logo { max-height: 44px; }
	.livelinks { display: none; }

	.mainnav { position: static; display: none; }
	.mainnav.is-open { display: block; }
	.mainnav__inner { flex-direction: column; padding: 0; }
	.homeitem { flex-wrap: wrap; }
	.homeitem__link { flex: 1 1 auto; }
	.catmenu { position: static; width: 100%; box-shadow: none; border-top: none; max-height: none; }
	.mainnav__list { flex-direction: column; }
	.mainnav__list a { width: 100%; min-height: 48px; padding: 0 20px; border-top: 1px solid rgba(255,255,255,.15); }
	.homeitem__link { padding-left: 20px; }
	.mainnav__search { display: none; }

	.home, .listing, .site-content > main.wrap { padding-top: 14px; }
	.slider { min-height: 300px; flex-basis: 100%; }
	.overlay__title { font-size: 21px; }
	.overlay__text { padding: 16px; }
	.page-title { font-size: 24px; }
	.post__title { font-size: 26px; }
	.entry-content { font-size: 17px; }
	.box { padding: 14px; }
	.radio-hero { padding: 20px; }
	.radio-hero__title { font-size: 26px; }

	.tabbar {
		display: flex; gap: 4px; position: fixed; left: 14px; right: 14px; bottom: 16px; z-index: 90;
		padding: 6px; border-radius: 40px; background: rgba(236,236,236,.95);
		border: 1px solid #D0D0D0; box-shadow: 0 6px 20px rgba(0,0,0,.18);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
		padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px) * .5);
	}
	.tabbar__item {
		flex: 1 1 0; min-height: 60px; border-radius: 34px; display: flex; flex-direction: column; gap: 4px;
		align-items: center; justify-content: center; color: #2A2A2A; font-size: 13px; font-weight: 600; line-height: 1;
	}
	.tabbar__item:hover { color: var(--ndaar-accent); }
	.tabbar__item.is-active { background: var(--ndaar-accent); color: #fff; }
}

@media (max-width: 782px) {
	.admin-bar .mainnav { top: 0; }
}

@media print {
	.topbar, .mainnav, .sidebar, .tabbar, .site-footer, .share, .comments { display: none !important; }
	body { background: #fff; }
}

/* Widgets de blocs (recherche) */
.sidebar .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.sidebar .wp-block-search__input { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 0 10px; border: 1px solid #CFCFCF; border-radius: var(--ndaar-radius); font: inherit; }
.sidebar .wp-block-search__button { white-space: nowrap; min-height: 40px; padding: 0 14px; border: none; border-radius: var(--ndaar-radius); background: var(--ndaar-accent); color: #fff; font-weight: 700; cursor: pointer; margin: 0; }

/* ==========================================================
   Radio en direct (bouton de l'en-tête, comme Djandjo Info)
   ========================================================== */
.radio-top { display: flex; align-items: center; }
.radio-top audio { display: none; }
.radio-btn {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 6px;
	border: 0; border-radius: 8px; background: transparent; color: #C8C8C8; cursor: pointer; font-family: inherit;
}
.radio-btn:hover, .radio-btn.is-playing { background: rgba(255,255,255,.08); color: #fff; }
.radio-btn__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; text-align: left; }
.radio-btn__word { font-family: var(--font-title); font-weight: 700; font-size: 22px; color: #F2F2F2; text-transform: lowercase; }
.radio-btn__name { font-size: 12px; font-weight: 600; letter-spacing: .3px; color: #B8B8B8; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-btn.is-playing .radio-btn__name { color: #7CD9A0; }
.radio-btn__live {
	flex: none; width: 24px; height: 24px; border-radius: 50%; background: #E3241B; color: #fff;
	display: inline-flex; align-items: center; justify-content: center; animation: ndaar-blink 1.1s ease-in-out infinite;
}
.radio-btn__live svg { margin-left: 1px; }
.radio-btn__i-pause, .radio-btn.is-playing .radio-btn__i-play { display: none; }
.radio-btn.is-playing .radio-btn__i-pause { display: block; margin-left: 0; }
.radio-btn:hover .radio-btn__live { background: #FF4A40; }
.radio-btn.is-playing .radio-btn__live { background: #fff; color: #E3241B; animation: none; }
@keyframes ndaar-blink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(227,36,27,.8); } 50% { opacity: .35; } 70% { box-shadow: 0 0 0 9px rgba(227,36,27,0); } }
@media (prefers-reduced-motion: reduce) { .radio-btn__live { animation-duration: 2s; } }

button.livebox { border: 0; width: 100%; text-align: left; font: inherit; cursor: pointer; }
.livebox--radio.is-playing { background: var(--ndaar-accent-dark); }
.livebox--radio.is-playing .livebox__text strong::after { content: " · en direct"; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 0; color: #BDBDBD; font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.linkbtn:hover, .linkbtn.is-playing { color: #fff; }
button.tabbar__item { border: 0; background: transparent; font-family: inherit; cursor: pointer; }
@media (max-width: 820px) {
	button.tabbar__item.is-playing { background: #E3241B; color: #fff; }
}

/* ==========================================================
   Accueil (structure Djandjo Info)
   ========================================================== */
.une { display: flex; flex-wrap: wrap; gap: 20px; }

/* Carrousel À la une */
.hero { position: relative; flex: 999 1 620px; min-width: 0; border-radius: var(--ndaar-radius); overflow: hidden; background: #2F2F2F; }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.hero__link { position: relative; display: block; aspect-ratio: 16 / 9; min-height: 360px; color: #fff; }
.hero__link:hover { color: #fff; }
.hero__img { position: absolute; inset: 0; display: block; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero__link:hover .hero__img img { transform: scale(1.03); }
.hero__body {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 24px 44px; display: flex; flex-direction: column; gap: 10px;
	background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,0) 100%);
}
.hero__chips .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.hero__title { font-family: var(--font-title); font-weight: 800; font-size: 30px; line-height: 1.16; text-wrap: balance; }
.hero__meta { font-size: 14px; color: #DADADA; }
.hero__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0;
	background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.hero__arrow:hover { background: var(--ndaar-accent); }
.hero__arrow--prev { left: 12px; }
.hero__arrow--prev .icon { transform: rotate(90deg); }
.hero__arrow--next { right: 12px; }
.hero__arrow--next .icon { transform: rotate(-90deg); }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 6px; }
.hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .25s; }
.hero__dots button.is-on { width: 24px; background: #fff; }

/* En ce moment */
.now { flex: 1 1 300px; }
.now__list { list-style: none; margin: 0; padding: 0; }
.now__list li + li { border-top: 1px solid #ECECEC; }
.now__item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.now__img { width: 84px; height: 64px; flex: 0 0 84px; overflow: hidden; border-radius: 3px; background: #D3D3D3; display: block; }
.now__img img { width: 100%; height: 100%; object-fit: cover; }
.now__img.thumb--empty { font-size: 0; }
.now__cat { display: block; color: var(--ndaar-accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 2px; }
.now__title { display: block; font-weight: 700; font-size: 15px; line-height: 1.3; }

/* Bandes de vignettes qui défilent */
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rail::-webkit-scrollbar { display: none; }
.rail > .card { flex: 0 0 280px; scroll-snap-align: start; }
.rail-ctrl { display: flex; gap: 8px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #CFCFCF; background: #fff; color: var(--ndaar-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.round .icon { transform: rotate(90deg); }
.round--dark { background: var(--ndaar-ink); border-color: var(--ndaar-ink); color: #fff; }
.round--dark .icon { transform: rotate(-90deg); }
.round:hover { border-color: var(--ndaar-accent); }

/* Le fil de l'actualité */
.ftabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; }
.ftabs::-webkit-scrollbar { display: none; }
.ftabs button { flex: none; min-height: 38px; padding: 0 16px; border-radius: 19px; border: 1px solid #CFCFCF; background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--ndaar-ink); }
.ftabs button[aria-selected="true"] { background: var(--ndaar-ink); border-color: var(--ndaar-ink); color: #fff; }
.grid--feed { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid--feed > .card[hidden] { display: none; }
.feed__empty { color: var(--ndaar-muted); }
.btn-outline {
	display: inline-flex; align-items: center; justify-content: center; margin-top: 22px; min-height: 44px; padding: 0 22px;
	border: 2px solid var(--ndaar-ink); border-radius: var(--ndaar-radius); font-weight: 700;
}
.btn-outline:hover { background: var(--ndaar-ink); color: #fff; }
.btn-outline[hidden] { display: none; }

/* Vignettes par rubrique */
.rubric { padding: 8px 0; }
.rubric--dark { background: var(--ndaar-ink); padding: 32px 0 36px; }
.rubric--dark .section-head { border-color: #444; }
.rubric--dark .section-title { color: #fff; }
.rubric--dark .section-more { color: #7CD9A0; }
.home > .rubric:last-child { padding-bottom: 44px; }

@media (max-width: 820px) {
	.hero { flex-basis: 100%; margin: 0 -20px; border-radius: 0; }
	.hero__link { aspect-ratio: 4 / 5; min-height: 0; }
	.hero__title { font-size: 22px; }
	.hero__body { padding: 16px 16px 38px; }
	.hero__arrow { display: none; }
	.rail { margin: 0 -20px; padding: 0 20px 4px; scroll-padding-left: 20px; }
	.rail > .card { flex-basis: 72%; }
	.rail-ctrl { display: none; }
	.grid--feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
	.grid--feed .card__title { font-size: 15px; }
	.grid--feed .card__body { padding: 10px 10px 12px; }
	.grid--feed .meta { font-size: 12px; }
}

/* Logo Ndaar (image) */
.brand__logo { display: inline-flex; align-items: center; }
.brand__logo img { height: 62px; width: auto; display: block; }
.brand__logo--footer img { height: 44px; }
@media (max-width: 820px) {
	.brand__logo img { height: 44px; }
}

/* ==========================================================
   N'daar TV : fenêtre, grille des programmes, replays
   ========================================================== */
.tvbox { display: flex; flex-direction: column; background: var(--ndaar-ink); border-radius: var(--ndaar-radius); overflow: hidden; }
.tvbox .livebox--tv { border-radius: 0; }
.livebox__screen { position: relative; overflow: hidden; }
.livebox__screen img { width: 100%; height: 100%; object-fit: cover; display: block; }
.livebox__playbtn {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%;
	background: rgba(0,0,0,.55); color: #fff; display: flex; align-items: center; justify-content: center; transition: background .2s;
}
.livebox--tv:hover .livebox__playbtn { background: var(--ndaar-accent); }

.schedule__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.schedule__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--ndaar-line); font-variant-numeric: tabular-nums; }
.schedule__row[hidden] { display: none; }
.schedule__time { font-family: var(--font-title); font-weight: 800; color: var(--ndaar-accent); min-width: 54px; }
.schedule__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.schedule__name { font-weight: 700; }
.schedule__desc { color: var(--ndaar-muted); font-size: 14px; }
.schedule__badge { flex: none; background: #E3241B; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.schedule__badge[hidden] { display: none; }
.schedule__day { color: var(--ndaar-muted); font-size: 14px; }
.schedule__note { margin: 10px 0 0; font-size: 13px; color: var(--ndaar-muted); }

/* Version courte dans la fenêtre de l'accueil */
.schedule--compact { padding: 4px 16px 14px; color: #fff; }
.schedule__mini-title { margin: 6px 0 4px; font-family: var(--font-title); font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: #9FA39D; }
.schedule--compact .schedule__row { padding: 9px 0; border-color: #333; }
.schedule--compact .schedule__row.is-now { background: none; box-shadow: none; }
.schedule--compact .schedule__row.is-past .schedule__name, .schedule--compact .schedule__row.is-past .schedule__time { opacity: 1; }
.schedule--compact .schedule__time { color: #7CD9A0; min-width: 48px; }

/* Page TV (fond sombre) */
.live__below { display: flex; flex-direction: column; gap: 36px; }
.live--tv .schedule .section-title, .live--tv .replays .section-title { color: #fff; }
.live--tv .section-head { border-color: #444; }
.live--tv .schedule__row { border-color: #333; }
.live--tv .schedule__time { color: #7CD9A0; }
.live--tv .schedule__desc, .live--tv .schedule__day, .live--tv .schedule__note { color: #B5B9B2; }
.live--tv .section-more { color: #7CD9A0; }

/* Replays : 8 vignettes */
.replays__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px; }
.replay { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.replay__media { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--ndaar-radius); overflow: hidden; background: #2B2B2B; }
.replay__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.replay__media:hover img { transform: scale(1.04); }
.replay__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(227,36,27,.92); color: #fff; display: flex; align-items: center; justify-content: center; }
.replay__title { margin: 0; font-family: var(--font-title); font-size: 15px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.live--tv .replay__title a { color: #fff; }
.live--tv .replay__title a:hover { color: #7CD9A0; }
.replay__date { font-size: 13px; color: #9FA39D; }

.ytmodal { width: min(960px, 94vw); padding: 0; border: 0; border-radius: 8px; background: #000; color: #fff; }
.ytmodal::backdrop { background: rgba(0,0,0,.75); }
.ytmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; }
.ytmodal__title { margin: 0; font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ytmodal__close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ytmodal__frame { aspect-ratio: 16 / 9; }
.ytmodal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (max-width: 640px) { .replays__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .replays__grid { gap: 16px 12px; } .replay__title { font-size: 14px; } }

/* Grille des programmes en 2 colonnes : la 1re moitié à gauche, la 2e à droite. */
.schedule:not(.schedule--compact) .schedule__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(var(--rows, 4), auto); grid-auto-flow: column; column-gap: 32px; }
@media (max-width: 759px) {
  .schedule:not(.schedule--compact) .schedule__list { column-gap: 14px; }
  .schedule:not(.schedule--compact) .schedule__row { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 2px; }
  .schedule:not(.schedule--compact) .schedule__name { font-size: 14px; line-height: 1.25; }
  .schedule:not(.schedule--compact) .schedule__desc { font-size: 12px; line-height: 1.3; }
}

/* Bandeau « À la une » plus fin : petite étiquette rouge. */
.ticker { align-items: center; }
.ticker__label { align-self: center; margin-left: 10px; padding: 5px 10px; font-size: 12px; letter-spacing: .3px; border-radius: 3px; text-transform: uppercase; white-space: nowrap; }
.ticker__track { padding: 6px 0 6px 12px; }
.ticker__img { width: 30px; height: 30px; }
.ticker__item { font-size: 14px; }
@media (max-width: 600px) { .ticker__label { font-size: 11px; padding: 4px 8px; margin-left: 8px; } .ticker__img { width: 26px; height: 26px; } }
