/*
Theme Name: NazaliTech
Theme URI:  https://nazalitech.com
Author:     NazaliTech
Description: Thème officiel NazaliTech — Média Tech & Business Afrique. Design bleu foncé et orange.
Version:    1.0.0
Text Domain: nazalitech
*/

/* ===== VARIABLES ===== */
:root {
    --bleu-fonce:  #0A1628;
    --bleu-moyen:  #1B3A6B;
    --orange:      #FF6B00;
    --orange-clair:#FF8C33;
    --blanc:       #FFFFFF;
    --gris-clair:  #F4F6FA;
    --gris-texte:  #6B7280;
    --gris-bord:   #E5E7EB;
    --noir-texte:  #111827;
    --radius:      8px;
    --shadow:      0 2px 12px rgba(0,0,0,.10);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gris-clair);
    color: var(--noir-texte);
    line-height: 1.65;
}
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-clair); }
img { max-width: 100%; height: auto; display: block; }

/* ===== LAYOUT ===== */
.site-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-sidebar { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }

/* ===== HEADER ===== */
.site-header {
    background: var(--bleu-fonce);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.site-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blanc);
    letter-spacing: -.5px;
}
.site-logo span { color: var(--orange); }

/* Nav */
.main-nav ul { display: flex; gap: 8px; list-style: none; }
.main-nav a {
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius);
    transition: background .2s, color .2s;
}
.main-nav a:hover,
.main-nav .current-menu-item a {
    background: var(--orange);
    color: var(--blanc);
}

/* Hamburger mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--blanc);
    border-radius: 2px;
    transition: transform .3s;
}

/* ===== BREAKING BAR ===== */
.breaking-bar {
    background: var(--orange);
    color: var(--blanc);
    font-size: .78rem;
    font-weight: 600;
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
}
.breaking-bar__label {
    background: var(--bleu-fonce);
    padding: 0 14px;
    margin-right: 16px;
    letter-spacing: .5px;
}
.breaking-bar marquee { display: inline; }

/* ===== HERO (article vedette) ===== */
.hero {
    position: relative;
    background: var(--bleu-fonce);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 24px 0;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}
.hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .55;
}
.hero__body {
    position: relative;
    padding: 32px;
    max-width: 680px;
}
.hero__cat {
    display: inline-block;
    background: var(--orange);
    color: var(--blanc);
    font-size: .75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.hero__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: var(--blanc);
    line-height: 1.25;
    margin-bottom: 12px;
}
.hero__meta {
    color: rgba(255,255,255,.7);
    font-size: .82rem;
}

/* ===== GRILLE D'ARTICLES ===== */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: var(--bleu-fonce);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--orange);
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before { content: ''; display: block; width: 4px; height: 22px; background: var(--orange); border-radius: 2px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Card */
.post-card {
    background: var(--blanc);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.14); }

.post-card__thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bleu-moyen);
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }

.post-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }

.post-card__cat {
    display: inline-block;
    background: var(--orange);
    color: var(--blanc);
    font-size: .7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 10px;
    align-self: flex-start;
}
.post-card__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--bleu-fonce);
    margin-bottom: 10px;
    flex: 1;
}
.post-card__title a { color: inherit; }
.post-card__title a:hover { color: var(--orange); }

.post-card__meta {
    font-size: .75rem;
    color: var(--gris-texte);
    display: flex;
    align-items: center;
    gap: 12px;
}
.post-card__meta svg { width: 13px; height: 13px; opacity: .6; }

/* ===== ARTICLE SINGLE ===== */
.single-header { background: var(--bleu-fonce); color: var(--blanc); padding: 40px 0; margin-bottom: 32px; }
.single-header .hero__cat { margin-bottom: 14px; }
.single-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 800px;
}
.single-header .post-meta { color: rgba(255,255,255,.65); font-size: .85rem; }

.single-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.single-thumb img { width: 100%; max-height: 480px; object-fit: cover; }

.single-content {
    background: var(--blanc);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    font-size: 1.05rem;
    line-height: 1.8;
}
.single-content h2, .single-content h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--bleu-fonce);
    margin: 28px 0 12px;
}
.single-content p { margin-bottom: 18px; }
.single-content a { border-bottom: 1px solid var(--orange); }
.single-content blockquote {
    border-left: 4px solid var(--orange);
    padding: 12px 20px;
    background: var(--gris-clair);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    margin: 20px 0;
}
.single-source {
    background: var(--gris-clair);
    border: 1px solid var(--gris-bord);
    border-radius: var(--radius);
    padding: 12px 16px;
    margin-top: 24px;
    font-size: .85rem;
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
    background: var(--blanc);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}
.widget-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    color: var(--bleu-fonce);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--orange);
}

/* Widget articles récents */
.recent-posts-list { list-style: none; }
.recent-posts-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--gris-bord);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.recent-posts-list li:last-child { border-bottom: none; }
.recent-posts-list img { width: 60px; height: 45px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.recent-posts-list a { font-size: .85rem; color: var(--bleu-fonce); font-weight: 500; line-height: 1.3; }
.recent-posts-list a:hover { color: var(--orange); }
.recent-posts-list .date { font-size: .72rem; color: var(--gris-texte); margin-top: 3px; }

/* Widget catégories */
.cat-list { list-style: none; }
.cat-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--gris-bord);
    font-size: .9rem;
}
.cat-list li:last-child { border-bottom: none; }
.cat-list a { color: var(--bleu-fonce); font-weight: 500; }
.cat-list a:hover { color: var(--orange); }
.cat-list .count {
    background: var(--bleu-fonce);
    color: var(--blanc);
    font-size: .7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    border: 1px solid var(--gris-bord);
    background: var(--blanc);
    color: var(--bleu-fonce);
    transition: background .2s, color .2s;
}
.pagination a:hover, .pagination .current {
    background: var(--orange);
    color: var(--blanc);
    border-color: var(--orange);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bleu-fonce);
    color: rgba(255,255,255,.65);
    margin-top: 60px;
    padding: 48px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}
.footer-brand .site-logo { font-size: 1.4rem; margin-bottom: 10px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; }
.footer-col h4 {
    color: var(--blanc);
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,.65); font-size: .85rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--orange); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    text-align: center;
    font-size: .8rem;
}

/* ===== SECTION COUPE DU MONDE 2026 ===== */
.cdm-section {
    margin: 40px 0;
    background: linear-gradient(135deg, #0d2b12 0%, var(--bleu-fonce) 100%);
    border: 2px solid #2e7d3a;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}

.cdm-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.cdm-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cdm-section__title h2 {
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    color: #fff;
    margin: 0;
}

.cdm-section__icon { font-size: 1.5rem; }

.cdm-section__badge {
    background: #2e7d3a;
    color: #d4edda;
    font-size: .7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 8px;
    border-radius: 20px;
}

.cdm-section__link {
    color: #6fcf7e;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.cdm-section__link:hover { color: #fff; }

.posts-grid--cdm {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.post-card--cdm {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
}
.post-card--cdm .post-card__title a { color: #fff; }
.post-card--cdm .post-card__title a:hover { color: #6fcf7e; }
.post-card--cdm .post-card__meta { color: rgba(255,255,255,.5); }

.post-card__cat--cdm {
    background: #2e7d3a;
    color: #d4edda;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .content-sidebar { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .posts-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
    .hero__title { font-size: 1.5rem; }
}

@media (max-width: 600px) {
    .main-nav { display: none; }
    .main-nav.open { display: block; position: absolute; top: 64px; left: 0; right: 0; background: var(--bleu-fonce); padding: 16px; }
    .main-nav.open ul { flex-direction: column; gap: 4px; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { min-height: 280px; }
    .hero__title { font-size: 1.25rem; }
    .single-header h1 { font-size: 1.5rem; }
    .single-content { padding: 20px; }
}
