/*
Theme Name: Horizons 237
Theme URI: https://www.horizons237.info
Author: Horizons 237
Author URI: https://www.horizons237.info
Description: Thème WordPress pour Horizons 237, magazine numérique camerounais. Devise : Observer · Analyser · Alerter.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: horizons237
*/

:root {
    --h237-blue: #1A3A5C;
    --h237-orange: #E8782A;
    --h237-green: #007A33;
    --h237-red: #CE1126;
    --h237-yellow: #FCD116;
    --h237-bg: #F7F7F5;
    --h237-text: #1D1D1D;
    --h237-muted: #6B7280;
    --h237-white: #FFFFFF;
    --h237-radius: 10px;
    --h237-max-width: 1180px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    color: var(--h237-text);
    background: var(--h237-bg);
    line-height: 1.6;
}

a { color: var(--h237-blue); text-decoration: none; }
a:hover { color: var(--h237-orange); }

img { max-width: 100%; height: auto; display: block; }

.h237-container {
    max-width: var(--h237-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.h237-site-header {
    background: var(--h237-blue);
    color: var(--h237-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--h237-orange);
}

.h237-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.h237-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--h237-white);
}

.h237-logo .h237-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--h237-orange), var(--h237-red));
    font-weight: 900;
    color: var(--h237-white);
}

.h237-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--h237-yellow);
    display: block;
    margin-top: 2px;
}

.h237-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.h237-nav a {
    color: var(--h237-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.h237-nav a:hover { color: var(--h237-yellow); }

.h237-flag-strip {
    height: 4px;
    display: flex;
}
.h237-flag-strip span { flex: 1; }
.h237-flag-strip .green { background: var(--h237-green); }
.h237-flag-strip .red { background: var(--h237-red); }
.h237-flag-strip .yellow { background: var(--h237-yellow); }

/* Content layout */
.h237-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
    padding: 32px 0 60px;
}

@media (max-width: 860px) {
    .h237-layout { grid-template-columns: 1fr; }
    .h237-nav { display: none; }
}

/* Article cards */
.h237-card {
    background: var(--h237-white);
    border-radius: var(--h237-radius);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.h237-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.h237-card-body { padding: 18px 20px; }

.h237-eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--h237-orange);
}

.h237-card h2, .h237-card h3 {
    margin: 8px 0;
    line-height: 1.3;
}

.h237-meta {
    font-size: 0.82rem;
    color: var(--h237-muted);
}

.h237-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--h237-yellow);
    color: #402c00;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Paywall */
.h237-paywall {
    background: var(--h237-blue);
    color: var(--h237-white);
    border-radius: var(--h237-radius);
    padding: 28px 24px;
    text-align: center;
    margin-top: 20px;
}

.h237-paywall .h237-btn {
    display: inline-block;
    margin-top: 14px;
    background: var(--h237-orange);
    color: var(--h237-white);
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 700;
}

/* Sidebar */
.h237-widget {
    background: var(--h237-white);
    border-radius: var(--h237-radius);
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.h237-widget h3 {
    margin-top: 0;
    font-size: 1rem;
    border-bottom: 2px solid var(--h237-orange);
    padding-bottom: 8px;
}

/* Footer */
.h237-site-footer {
    background: var(--h237-blue);
    color: var(--h237-white);
    padding: 40px 0 20px;
    margin-top: 40px;
}

.h237-site-footer a { color: var(--h237-white); opacity: 0.85; }
.h237-footer-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
@media (max-width: 700px) { .h237-footer-cols { grid-template-columns: 1fr 1fr; } }

.h237-footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 28px;
}

/* Single article */
.h237-single-title { font-size: 2rem; margin-bottom: 6px; }
.h237-single-meta { color: var(--h237-muted); margin-bottom: 20px; }
.h237-single-content { font-size: 1.08rem; }
.h237-single-content p { margin: 1.1em 0; }

.h237-search-form { display: flex; gap: 8px; }
.h237-search-form input[type="search"] {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.h237-search-form button {
    background: var(--h237-orange);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
}
