/*
Theme Name: Infos Actu
Theme URI: https://actu-infos.fr/
Author: Actu Infos
Description: Thème magazine d'actualité (Comores, Afrique, Monde) : bandeau « Dernière minute », grande une, colonne « À la une », grille d'actualités et bloc vidéo.
Version: 1.0.0
Requires at least: 6.0
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: infos-actu
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images
*/

:root {
	--navy: #0b2a55;
	--navy-dark: #081f40;
	--red: #e30613;
	--text: #1a1a1a;
	--muted: #6b7280;
	--line: #e5e7eb;
	--bg: #ffffff;
	--soft: #eef2f7;
	--c-comores: #e30613;
	--c-afrique: #1f7a3a;
	--c-france: #1d4ed8;
	--c-politique: #0b4aa2;
	--c-economie: #f08a00;
	--c-societe: #0b4aa2;
	--c-international: #6d28d9;
	--radius: 4px;
	--wrap: 1410px;
	--font-title: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
	--font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.15; margin: 0 0 .4em; color: var(--navy); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; flex-shrink: 0; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-dark); color: #dbe4f0; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar-date { color: #fff; font-weight: 600; }
.topbar-sep { margin: 0 12px; opacity: .6; }
.topbar-social { display: flex; gap: 18px; align-items: center; }
.topbar-social a { color: #fff; display: inline-flex; }
.topbar-social svg { width: 17px; height: 17px; fill: currentColor; }
.topbar-social .icon { fill: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand { gap: 14px; }
.custom-logo-link { display: inline-block; }
.custom-logo { max-height: 110px; width: auto; }
.brand-logo { width: auto; height: 104px; object-fit: contain; flex-shrink: 0; }
.brand-globe { width: 88px; height: 88px; flex-shrink: 0; }
.brand-name, .brand-sub { display: block; }
.brand-name { white-space: nowrap; }
.brand-name { font-family: "Montserrat", Arial, sans-serif; font-weight: 900; font-size: 54px; line-height: .95; letter-spacing: -1px; text-transform: uppercase; }
.brand-name .w1 { color: var(--navy); }
.brand-name .w2 { color: var(--red); }
.brand-sub { font-family: "Montserrat", Arial, sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 3px; color: var(--navy); text-align: center; margin-top: 6px; text-transform: uppercase; }
.header-motto { font-style: italic; color: var(--navy); font-size: 18px; display: flex; gap: 12px; }
.header-motto span + span::before { content: "•"; margin-right: 12px; font-style: normal; }
.header-weather { display: flex; align-items: center; gap: 10px; color: var(--navy); font-size: 12px; }
.header-weather .w-icon { font-size: 40px; line-height: 1; }
.header-weather strong { display: block; font-size: 16px; }

/* ---------- Nav ---------- */
.main-nav { background: var(--navy); position: sticky; top: 0; z-index: 50; }
.admin-bar .main-nav { top: 32px; }
.main-nav .wrap { display: flex; align-items: stretch; min-height: 50px; }
.nav-home { background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; width: 56px; flex-shrink: 0; }
.nav-home:hover { color: #fff; background: #c00510; }
.nav-home svg { width: 22px; height: 22px; fill: currentColor; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 0 16px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
.menu-primary { list-style: none; margin: 0; padding: 0 0 0 8px; display: flex; flex: 1; flex-wrap: wrap; }
.menu-primary > li { position: relative; }
.menu-primary > li > a { display: flex; align-items: center; height: 50px; padding: 0 18px; color: #fff; font-family: var(--font-title); font-weight: 600; font-size: 17px; }
.menu-primary > li.menu-item-has-children > a::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -4px 0 0 10px; }
.menu-primary > li > a:hover, .menu-primary > li.current-menu-item > a, .menu-primary > li.current-category-ancestor > a { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 -3px 0 var(--red); }
.menu-primary .sub-menu { list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.15); border-top: 3px solid var(--red); display: none; z-index: 60; }
.menu-primary li:hover > .sub-menu, .menu-primary li:focus-within > .sub-menu { display: block; }
.menu-primary .sub-menu a { display: block; padding: 8px 16px; color: var(--navy); font-weight: 600; }
.nav-live { background: var(--red); color: #fff; display: flex; align-items: center; gap: 8px; padding: 0 18px; font-family: var(--font-title); font-weight: 700; font-size: 16px; text-transform: uppercase; flex-shrink: 0; }
.nav-live:hover { color: #fff; background: #c00510; }
.nav-live svg { width: 20px; height: 20px; }

/* ---------- Breaking ---------- */
.breaking { margin-top: 8px; }
.breaking-inner { background: var(--red); color: #fff; display: flex; align-items: center; min-height: 36px; padding: 0 14px; gap: 14px; overflow: hidden; }
.breaking-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: 17px; padding-right: 14px; border-right: 1px solid rgba(255,255,255,.5); white-space: nowrap; }
.breaking-label svg { width: 16px; height: 16px; fill: currentColor; }
.breaking-items { flex: 1; position: relative; height: 36px; overflow: hidden; }
.breaking-items a { position: absolute; inset: 0; display: flex; align-items: center; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .5s; }
.breaking-items a.is-active { opacity: 1; z-index: 1; }
.breaking-next { background: none; border: 0; color: #fff; cursor: pointer; display: flex; padding: 4px; }
.breaking-next svg { width: 18px; height: 18px; }

/* ---------- Layout ---------- */
.site-content { padding: 18px 0 40px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 32px; }
.layout > .sidebar { border-left: 1px solid var(--line); padding-left: 16px; }

/* ---------- Badges & meta ---------- */
.badge { display: inline-block; background: var(--navy); color: #fff; font-family: var(--font-title); font-weight: 700; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; line-height: 1.3; }
.badge:hover { color: #fff; filter: brightness(1.1); }
.cat-label { font-family: var(--font-title); font-weight: 700; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; color: var(--navy); }
.cat-comores { --cat: var(--c-comores); } .cat-afrique { --cat: var(--c-afrique); } .cat-france { --cat: var(--c-france); }
.cat-politique { --cat: var(--c-politique); } .cat-economie { --cat: var(--c-economie); } .cat-societe { --cat: var(--c-societe); }
.cat-international { --cat: var(--c-international); }
.badge[class*="cat-"] { background: var(--cat, var(--navy)); }
.cat-label[class*="cat-"] { color: var(--cat, var(--navy)); }
.meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--muted); font-size: 13px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
.hero-main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 455px; background: var(--navy); display: flex; }
.hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.hero-main:hover img { transform: scale(1.03); }
.hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(4,20,45,.88) 100%); }
.hero-body { position: relative; z-index: 2; margin-top: auto; padding: 24px 20px; color: #fff; max-width: 640px; }
.hero-body .badge { margin-bottom: 10px; }
.hero-title { font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.hero-title a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; }
.hero-excerpt { font-size: 17px; margin: 0 0 14px; color: #eef2f7; }
.hero-body .meta { color: #fff; font-size: 14px; }
.hero-side { display: flex; flex-direction: column; gap: 14px; }
.side-card + .side-card { border-top: 1px solid var(--line); padding-top: 12px; }
.side-card .thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--soft); }
.thumb > a:not(.badge) { display: block; width: 100%; height: 100%; }
.side-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.side-card .badge { position: absolute; left: 0; bottom: 0; border-radius: 0 2px 0 0; }
.side-card h3 { font-size: 19px; font-weight: 600; margin: 10px 0 8px; }

/* ---------- Section titles ---------- */
.section-head { display: flex; align-items: flex-end; gap: 14px; margin: 28px 0 16px; }
.section-head h1, .section-head h2 { font-size: 22px; font-weight: 700; text-transform: uppercase; margin: 0; position: relative; padding-bottom: 6px; }
.section-head h1::after, .section-head h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 3px; background: var(--red); }
.section-head .rule { flex: 1; height: 1px; background: var(--line); margin-bottom: 6px; }
.section-head .more { font-size: 14px; color: var(--navy); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.sidebar .section-head { margin-top: 0; }
.sidebar .section-head h2 { font-size: 20px; }

/* ---------- Grid ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.grid-4 .card { padding: 0 14px; border-left: 1px solid var(--line); }
.grid-4 .card:first-child { padding-left: 0; border-left: 0; }
.grid-4 .card:last-child { padding-right: 0; }
.card .thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 1.25; background: var(--soft); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .thumb img { transform: scale(1.05); }
.card .badge { position: absolute; top: 8px; left: 8px; }
.card h3 { font-size: 17px; font-weight: 600; margin: 12px 0 10px; color: var(--navy); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 22px; }

/* ---------- Sidebar list ---------- */
.list-item { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 0 0 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.list-item .thumb { display: block; aspect-ratio: 96 / 72; border-radius: 2px; overflow: hidden; background: var(--soft); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item h3 { font-size: 15px; font-weight: 600; margin: 2px 0 6px; font-family: var(--font-body); line-height: 1.3; }
.list-item .meta { font-size: 12px; }
.ad-box { background: var(--soft); border: 1px solid var(--line); text-align: center; padding: 14px; margin: 4px 0 26px; color: var(--muted); font-size: 13px; }
.ad-box strong { display: block; letter-spacing: 2px; font-size: 13px; color: var(--muted); }
.widget { margin-bottom: 28px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }

/* ---------- Video ---------- */
.video-card .thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 6.4; background: var(--navy); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%; border: 3px solid #fff; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; }
.video-play svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.video-card h3 { font-size: 19px; margin: 12px 0 4px; }
.video-card p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Single / pages ---------- */
.entry-header { margin-bottom: 18px; }
.entry-title { font-size: clamp(28px, 3vw, 42px); font-weight: 700; margin: 10px 0 12px; }
.entry-lede { font-size: 20px; color: #374151; margin: 0 0 12px; }
.entry-header .meta + .meta { margin-top: 6px; }
.entry-featured {border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.entry-featured figcaption { font-size: 13px; color: var(--muted); padding: 6px 0; }
.entry-content { font-size: 18px; line-height: 1.7; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2 { font-size: 28px; margin-top: 1.4em; }
.entry-content h3 { font-size: 22px; margin-top: 1.2em; }
.entry-content a { color: var(--red); text-decoration: underline; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--red); font-size: 20px; font-style: italic; color: var(--navy); }
.entry-content img { border-radius: var(--radius); }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content figure { margin: 1.5em 0; }
.entry-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.entry-tags a { background: var(--soft); padding: 4px 10px; border-radius: 2px; font-size: 14px; color: var(--navy); }
.share { display: flex; gap: 8px; align-items: center; margin: 20px 0; font-weight: 600; color: var(--navy); }
.share a { display: inline-flex; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; align-items: center; justify-content: center; }
.share a:hover { background: var(--red); color: #fff; }
.share svg { width: 16px; height: 16px; fill: currentColor; }
.author-box { display: flex; gap: 16px; padding: 18px; background: var(--soft); border-radius: var(--radius); margin: 28px 0; }
.author-box img { border-radius: 50%; }
.author-box h4 { margin: 0 0 4px; }
.author-box p { margin: 0; font-size: 15px; color: var(--muted); }
.archive-header { margin-bottom: 20px; }
.archive-header .archive-description { color: var(--muted); }
.pagination { margin: 32px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 2px; color: var(--navy); font-weight: 600; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.comments-area { margin-top: 32px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea, .search-form input[type="search"] { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 2px; font: inherit; }
.comment-form .submit, .search-form button, .btn { background: var(--red); color: #fff; border: 0; padding: 10px 20px; font-family: var(--font-title); font-weight: 700; text-transform: uppercase; font-size: 15px; cursor: pointer; border-radius: 2px; }
.search-form { display: flex; gap: 8px; }
.empty-state { padding: 40px 0; text-align: center; color: var(--muted); }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; background: rgba(8,31,64,.95); z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding-top: 18vh; }
.search-overlay.is-open { display: flex; }
.search-overlay .search-form { width: min(680px, 92vw); }
.search-overlay input[type="search"] { font-size: 22px; padding: 14px 16px; border: 0; }
.search-close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }
.topbar-search { background: none; border: 0; color: #fff; cursor: pointer; display: inline-flex; padding: 0; }
.topbar-search svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #c9d4e4; margin-top: 20px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 40px 16px 24px; }
.site-footer h3 { color: #fff; font-size: 18px; text-transform: uppercase; }
.site-footer a { color: #c9d4e4; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 4px 0; }
.footer-brand .brand-name { font-size: 34px; }
.footer-brand .brand-logo { height: 72px; background: #fff; border-radius: 8px; padding: 4px; }
.footer-brand .brand-name .w1 { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 16px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.layout { grid-template-columns: 1fr; }
	.layout > .sidebar { border-left: 0; padding-left: 0; }
	.header-motto { display: none; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 0; }
	.grid-4 .card:nth-child(odd) { padding-left: 0; border-left: 0; }
	.grid-4 .card:nth-child(even) { padding-right: 0; }
}
@media (max-width: 900px) {
	.hero { grid-template-columns: 1fr; }
	.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
	.side-card + .side-card { border-top: 0; padding-top: 0; }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nav-toggle { display: flex; align-items: center; }
	.brand-name { font-size: 42px; }
	.brand-logo { height: 84px; }
	.main-nav .wrap { flex-wrap: wrap; padding: 0; }
	.menu-primary { display: none; flex-basis: 100%; order: 5; flex-direction: column; padding: 0; background: var(--navy-dark); }
	.main-nav.is-open .menu-primary { display: flex; }
	.menu-primary .sub-menu { position: static; display: block; box-shadow: none; background: transparent; border: 0; padding-left: 16px; }
	.menu-primary .sub-menu a { color: #c9d4e4; }
	.nav-spacer { flex: 1; }
	.footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.topbar-tagline, .topbar-sep { display: none; }
	.header-weather { display: none; }
	.brand-globe { width: 60px; height: 60px; }
	.brand-logo { height: 60px; }
	.brand { gap: 10px; }
	.brand-name { font-size: 34px; }
	.brand-sub { font-size: 9px; letter-spacing: 2px; }
	.hero-main { min-height: 380px; }
	.hero-excerpt { display: none; }
	.hero-side, .grid-4, .grid-3 { grid-template-columns: 1fr; }
	.grid-4 .card { padding: 0; border-left: 0; }
	.breaking-label span { display: none; }
	.nav-live span { display: none; }
	.admin-bar .main-nav { top: 0; }
}
