/* =========================================================
   ncaase.com — Feuille de style principale
   ========================================================= */

/* ─── Variables ─────────────────────────────────────────── */
:root {
    --primary:    #1e3a5f;   /* bleu marine — autorité */
    --accent:     #f0a500;   /* or/ambre — Afrique, trophée */
    --secondary:  #2d6a4f;   /* vert — pelouse, Afrique */
    --bg:         #f8f9fa;
    --card-bg:    #ffffff;
    --text:       #212529;
    --text-light: #6c757d;
    --border:     #dee2e6;
    --radius:     8px;
    --shadow:     0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg:  0 4px 24px rgba(0,0,0,0.12);
    --max-width:  1200px;
    --sidebar-w:  300px;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
ul { list-style: none; }

/* ─── Utilitaires ────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); border: 0;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { color: var(--accent); text-decoration: none; }
.logo-icon { font-size: 1.6rem; }
.logo-dot { color: var(--accent); }

/* ─── Navigation ─────────────────────────────────────────── */
.main-nav { margin-left: auto; }
.main-nav > ul {
    display: flex;
    gap: 4px;
    align-items: center;
}
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block;
    padding: 8px 14px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li:hover > a {
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-decoration: none;
}
.nav-cta {
    background: var(--accent) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
}
.nav-cta:hover { opacity: 0.9; }

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    padding: 6px 0;
    z-index: 200;
}
.main-nav > ul > li:hover .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 8px 16px;
    color: var(--text);
    font-size: 0.875rem;
    transition: background 0.15s;
}
.dropdown li a:hover { background: var(--bg); text-decoration: none; color: var(--primary); }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ─── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb-bar {
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 8px 0;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    align-items: center;
    font-size: 0.8rem;
}
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 8px;
    color: rgba(255,255,255,0.4);
}
.breadcrumb li a { color: rgba(255,255,255,0.7); }
.breadcrumb li a:hover { color: var(--accent); text-decoration: none; }
.breadcrumb li[aria-current] { color: var(--accent); font-weight: 600; }

/* ─── Main & Layout ──────────────────────────────────────── */
.site-main { padding: 32px 0 64px; }

/* Layout avec sidebar */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-w);
    gap: 32px;
    align-items: start;
}
.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* Layout pleine largeur */
.layout-full { max-width: 860px; }

/* ─── Page hero ──────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #2a5298 100%);
    color: #fff;
    padding: 48px 0 40px;
    margin-bottom: 40px;
}
.page-hero .container { position: relative; }
.page-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.page-hero .hero-subtitle {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 640px;
}
.page-hero .hero-flag {
    font-size: 4rem;
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0.3;
}

/* ─── Article content ────────────────────────────────────── */
.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}
.article-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 28px 0 12px;
}
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
    list-style: disc;
}
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 6px; }
.article-body strong { color: var(--primary); }

/* ─── Cards ──────────────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 24px 0;
}
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-header {
    background: var(--primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.card-flag { font-size: 1.8rem; }
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 16px 20px; }
.card-body p { font-size: 0.875rem; color: var(--text-light); margin-bottom: 12px; }
.card-link {
    display: inline-block;
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}
.card-link:hover { color: var(--accent); }

/* ─── Stats table ────────────────────────────────────────── */
.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.9rem;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.stats-table th {
    background: var(--primary);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}
.stats-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
}
.stats-table tr:last-child td { border-bottom: none; }
.stats-table tr:nth-child(even) td { background: #f6f8fa; }
.stats-table .highlight td { font-weight: 700; color: var(--primary); }

/* ─── Kamabet box ────────────────────────────────────────── */
.kamabet-box {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 28px 32px;
    margin: 48px 0;
    text-align: center;
    color: #fff;
}
.kamabet-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--accent);
}
.kamabet-box p {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-bottom: 20px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.kamabet-btn {
    display: inline-block;
    background: var(--accent);
    color: #1a1a2e;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(240,165,0,0.4);
}
.kamabet-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240,165,0,0.5);
    color: #1a1a2e;
    text-decoration: none;
}
.kamabet-disclaimer {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 12px;
    margin-bottom: 0;
}

/* ─── Sidebar widgets ────────────────────────────────────── */
.widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 24px;
}
.widget h3 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
}
.widget ul li { border-bottom: 1px solid var(--border); }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a {
    display: block;
    padding: 8px 0;
    font-size: 0.875rem;
    color: var(--text);
    transition: color 0.2s, padding-left 0.2s;
}
.widget ul li a:hover { color: var(--primary); padding-left: 4px; text-decoration: none; }
.widget-flag { margin-right: 6px; }

/* ─── Info boxes ─────────────────────────────────────────── */
.info-box {
    background: #e8f4fd;
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 16px 20px;
    margin: 24px 0;
}
.info-box p { margin: 0; font-size: 0.9rem; }
.highlight-stat {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0;
}
.stat-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 20px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}
.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ─── Hub page (grille de pays/articles) ─────────────────── */
.hub-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 700px;
    margin-bottom: 40px;
}
.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: var(--accent);
    opacity: 0.4;
}

/* ─── Related articles ───────────────────────────────────── */
.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--border);
}
.related-articles h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.related-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px;
    box-shadow: var(--shadow);
    font-size: 0.875rem;
}
.related-card a { font-weight: 600; color: var(--primary); }
.related-card a:hover { color: var(--accent); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}
.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-bottom: 12px;
}
.footer-col p { font-size: 0.875rem; line-height: 1.6; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 16px 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.footer-disclaimer { font-size: 0.75rem !important; }

/* ─── Home page ──────────────────────────────────────────── */
.home-hero {
    background: linear-gradient(135deg, var(--primary) 0%, #0d2137 100%);
    color: #fff;
    padding: 64px 0 0;
    overflow: hidden;
}
.hero-content { max-width: 640px; padding-bottom: 40px; }
.home-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.hero-accent { color: var(--accent); }
.hero-subtitle { font-size: 1.1rem; opacity: 0.85; margin-bottom: 32px; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary { background: var(--accent); color: #1a1a2e; padding: 14px 28px; border-radius: 50px; font-weight: 700; text-decoration: none; transition: 0.2s; display: inline-block; }
.btn-primary:hover { opacity: 0.9; text-decoration: none; color: #1a1a2e; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; padding: 14px 28px; border-radius: 50px; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,0.3); transition: 0.2s; display: inline-block; }
.btn-secondary:hover { background: rgba(255,255,255,0.2); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--primary); padding: 12px 24px; border-radius: 50px; font-weight: 600; text-decoration: none; border: 2px solid var(--primary); transition: 0.2s; display: inline-block; }
.btn-outline:hover { background: var(--primary); color: #fff; text-decoration: none; }
.hero-stats-strip { display: flex; background: rgba(0,0,0,0.3); padding: 20px 0; margin: 0 -20px; padding-left: 20px; gap: 0; }
.hero-stat { flex: 1; text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.15); }
.hero-stat:last-child { border-right: none; }
.hs-val { display: block; font-size: 2rem; font-weight: 900; color: var(--accent); }
.hs-lab { font-size: 0.75rem; opacity: 0.7; text-transform: uppercase; }
.home-intro { max-width: 800px; margin: 48px 0; }
.home-intro h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 16px; }
.home-section { margin-bottom: 56px; }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        padding: 16px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    .main-nav.is-open { display: block; }
    .main-nav > ul { flex-direction: column; gap: 0; }
    .main-nav > ul > li > a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.1); border-radius: 0; }
    .dropdown { display: none !important; }
    .site-header { position: relative; }

    .layout-with-sidebar { grid-template-columns: 1fr; }
    .sidebar { order: -1; }

    .page-hero { padding: 32px 0; }
    .page-hero .hero-flag { display: none; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .highlight-stat { flex-direction: column; }
    .cards-grid { grid-template-columns: 1fr; }

    .hero-stats-strip { flex-wrap: wrap; }
    .hero-stat { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
}
