:root {
    --bg: #f8f8f8;
    --paper: #ffffff;
    --ink: #111111;
    --muted: #5e5e5e;
    --line: #dddddd;
    --red: #e30b13;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Georgia, "Times New Roman", serif;
}

.container {
    width: min(1180px, 94%);
    margin: 0 auto;
}

.site-main { min-height: calc(100vh - 120px); }

.topbar {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 38px;
    font-size: 0.95rem;
}

.topbar-left,
.topbar-right {
    display: flex;
    gap: 22px;
    align-items: center;
}

.topbar a {
    color: var(--ink);
    text-decoration: none;
}

.masthead {
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 18px 0 12px;
}

.masthead-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.logo-symbol {
    position: relative;
    width: 92px;
    height: 86px;
}

.logo-symbol .v-left,
.logo-symbol .v-right {
    position: absolute;
    width: 3px;
    height: 76px;
    background: var(--red);
    top: 0;
    transform-origin: top;
}

.logo-symbol .v-left {
    left: 26px;
    transform: rotate(-21deg);
}

.logo-symbol .v-right {
    right: 26px;
    transform: rotate(21deg);
}

.logo-symbol .v-arc {
    position: absolute;
    left: 35px;
    top: 47px;
    width: 22px;
    height: 12px;
    border: 3px solid var(--red);
    border-bottom: 0;
    border-radius: 20px 20px 0 0;
}

.brand-title {
    margin: 0;
    font-size: clamp(2.2rem, 4.8vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 600;
}

.brand-subtitle {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.77rem;
    color: var(--muted);
}

.main-nav {
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.main-nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 38px;
    min-height: 52px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--ink);
    text-transform: uppercase;
    font-size: 0.95rem;
}

.hero-magazine {
    padding: 20px 0 0;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 1.7fr;
    gap: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.hero-copy .kicker {
    color: var(--red) !important;
    font-weight: 700;
}

.editorial-kicker {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.editorial-signature {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
}

.kicker {
    margin: 8px 0 12px;
    color: var(--red);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
}

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(2.35rem, 5vw, 4.2rem);
    line-height: 1.02;
}

.hero-copy p {
    margin: 0 0 16px;
    font-size: 1.35rem;
    color: #2a2a2a;
}

.read-link {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--ink);
    border-bottom: 2px solid var(--red);
    padding-bottom: 4px;
    font-size: 0.95rem;
}

.hero-map {
    min-height: 430px;
    border: 1px solid var(--line);
    background-image: url('/static/img/hero-geopolitique.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-map-image {
    background-image: none;
}

.hero-map-image img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    display: block;
    object-fit: cover;
}

.edition-strip {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}

.edition-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr auto;
    gap: 22px;
    align-items: center;
}

.edition-strip h3 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    line-height: 1.15;
}

.edition-strip p {
    margin: 0;
    color: var(--muted);
}

.edition-strip-list {
    display: grid;
    gap: 6px;
}

.edition-strip-list a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid #eadfca;
    padding-bottom: 5px;
    font-size: 0.95rem;
}

.today-africa-row {
    background: #fff;
    padding: 10px 0 20px;
    border-bottom: 1px solid var(--line);
}

.today-carousel-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.today-africa-row h3 {
    margin: 8px 0 4px;
    text-transform: uppercase;
    font-size: 1.05rem;
}

.today-carousel-controls {
    display: flex;
    gap: 8px;
}

.today-carousel-button {
    align-items: center;
    background: var(--ink);
    border: 1px solid var(--ink);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 1.2rem;
    height: 34px;
    justify-content: center;
    line-height: 1;
    width: 34px;
}

.today-carousel {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.today-carousel-slide {
    flex: 0 0 min(360px, 82vw);
    scroll-snap-align: start;
}

.today-item {
    border: 1px solid #e1d9ca;
    background: #fffdf8;
    min-height: 150px;
    padding: 12px 14px;
}

.today-item h4 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.headline-row {
    background: #fff;
    padding: 8px 0 20px;
}

.headline-row h3 {
    margin: 10px 0;
    text-transform: uppercase;
    font-size: 1.05rem;
}

.headline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.headline-card {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.thumb {
    position: relative;
    height: 120px;
    border: 1px solid #c7c7c7;
    background: #e8e1d2;
    margin-bottom: 10px;
    overflow: hidden;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.country-flag {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 1.35rem;
    line-height: 1;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    padding: 4px 6px;
}

.headline-card h4 {
    margin: 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.newsletter-strip {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 18px 0;
}

.newsletter-inner {
    display: flex;
    gap: 22px;
    justify-content: space-between;
    align-items: center;
}

.newsletter-inner strong {
    font-size: 2rem;
    font-weight: 600;
}

.newsletter-inner p {
    margin: 4px 0 0;
    color: var(--muted);
}

.newsletter-cta {
    display: flex;
    gap: 10px;
}

.newsletter-cta input {
    width: 300px;
    padding: 12px;
    border: 1px solid #c7c7c7;
    font-family: inherit;
}

.newsletter-cta button {
    border: 0;
    background: var(--red);
    color: #fff;
    text-transform: uppercase;
    padding: 12px 20px;
    cursor: pointer;
}

.site-motto-bar {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 14px 0;
}

.site-motto-bar p {
    margin: 0;
    font-size: 1rem;
}

.site-motto-bar span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.88rem;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 18px 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .hero-grid,
    .edition-strip-inner,
    .edition-article-grid,
    .headline-grid,
    .newsletter-inner {
        grid-template-columns: 1fr;
        display: grid;
    }

    .newsletter-cta {
        display: grid;
        width: 100%;
    }

    .newsletter-cta input {
        width: 100%;
    }
}
.brand-logo {
    width: min(720px, 92%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.mandela-quote {
    margin: 8px auto 4px;
    max-width: 900px;
    text-align: center;
    font-size: 1.08rem;
    color: #1c1c1c;
}

.mandela-quote cite {
    display: block;
    margin-top: 6px;
    font-size: 0.88rem;
    color: #5e5e5e;
    font-style: normal;
}

.lead {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.55;
}

.edition-list {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.edition-card {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 18px 0 20px;
}

.edition-card h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
    line-height: 1.15;
}

.edition-card p {
    max-width: 780px;
}

.edition-hero {
    background: #fffdf8;
    border-bottom: 1px solid #e4dece;
}

.edition-hero h1 {
    max-width: 980px;
    margin: 0 0 12px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
}

.edition-theme {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
}

.edition-editorial {
    max-width: 860px;
    border-top: 1px solid #ddd4c3;
    margin-top: 18px;
    padding-top: 16px;
}

.edition-editorial h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.edition-editorial p {
    font-size: 1.18rem;
    line-height: 1.7;
}

.edition-article-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.edition-article-card {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.edition-article-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 1px solid var(--line);
    margin-bottom: 10px;
}

.edition-article-card h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    line-height: 1.2;
}

.edition-context {
    margin: 0 0 14px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.edition-context a {
    color: var(--red);
    text-decoration: none;
    font-weight: 700;
}

.rubrique-label {
    margin: 0 0 8px;
    color: var(--red);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.meta {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
    border: 1px solid var(--line);
    padding: 8px;
    text-align: left;
}

.article-list-item {
    border-top: 1px solid var(--line);
    padding: 16px 0;
}

.form textarea {
    padding: 10px 12px;
    border: 1px solid #c7c7c7;
    font-family: inherit;
}

.method-fieldset {
    border: 1px solid var(--line);
    padding: 14px;
    margin: 14px 0;
}

.method-fieldset legend {
    font-weight: 700;
    padding: 0 8px;
}
.flash-box {
    margin-top: 12px;
    background: #fff5f5;
    border: 1px solid #f1bcbc;
    padding: 10px 12px;
}

.headline-link {
    color: inherit;
    text-decoration: none;
}

.headline-link:hover {
    text-decoration: underline;
}

.article-full {
    width: min(980px, 92%);
    background: #fffdf8;
    border: 1px solid #e4dece;
    padding: 22px 24px 28px;
}

.article-full h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.05;
    margin: 0 0 14px;
    letter-spacing: -0.01em;
}

.article-full p {
    font-size: 1.24rem;
    line-height: 1.84;
}

.article-full p.meta {
    border-top: 1px solid #ddd4c3;
    border-bottom: 1px solid #ddd4c3;
    padding: 10px 0;
    margin: 12px 0 16px;
}

.article-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.article-taxonomy span {
    border: 1px solid #d8cfbd;
    background: #fff;
    padding: 5px 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.country-motto-line {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 600;
}

.subtitle-credit {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.image-credit {
    margin: -14px 0 22px;
    color: var(--muted);
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
}

.article-full p:last-of-type::first-letter {
    float: left;
    font-size: 3.1rem;
    line-height: 0.9;
    padding-right: 8px;
    font-family: Georgia, "Times New Roman", serif;
    color: #1c1c1c;
}

.article-brief-box,
.article-method {
    border: 1px solid #d8cfbd;
    background: #fff9ed;
    padding: 16px;
    margin: 20px 0;
}

.article-brief-box h2,
.article-method h2 {
    margin: 0 0 8px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-brief-box ul,
.article-method ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.article-brief-box li,
.article-method li {
    margin-bottom: 6px;
    line-height: 1.55;
}

.article-method dl {
    display: grid;
    grid-template-columns: minmax(150px, 0.35fr) 1fr;
    gap: 8px 16px;
    margin: 0 0 16px;
}

.article-method dt {
    font-weight: 700;
}

.article-method dd {
    margin: 0;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
}

.kpi-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px;
}

.kpi-card strong {
    display: block;
    font-size: 1.5rem;
}

.kpi-card span {
    color: var(--muted);
    font-size: 0.86rem;
}

.article-hero-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: zoom-in;
    margin: 10px auto 24px;
}

.article-hero-img {
    display: block;
    width: 100%;
    height: min(460px, 62vw);
    object-fit: cover;
    object-position: center;
    background: #f6f0e3;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.hero-zoom-hint {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
}

.article-hero-button:hover .hero-zoom-hint {
    background: rgba(0, 0, 0, 0.72);
}

.article-hero-button:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(18, 18, 18, 0.88);
}

.image-lightbox.is-open {
    display: flex;
}

.lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: zoom-in;
}

.image-lightbox.zoomed .lightbox-stage {
    overflow: auto;
    cursor: grab;
    justify-content: flex-start;
    align-items: flex-start;
}

.image-lightbox-img {
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #f6f0e3;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
    transform-origin: center center;
    transition: transform 0.15s ease;
}

.image-lightbox.zoomed .image-lightbox-img {
    max-width: none;
    max-height: none;
}

.lightbox-tools {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1010;
}

.lightbox-tool {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-tool:hover {
    background: rgba(255, 255, 255, 0.15);
}

.image-lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
    z-index: 1010;
}

.lightbox-open {
    overflow: hidden;
}
.article-sources {
    margin-top: 22px;
    border-top: 1px solid #ddd4c3;
    padding-top: 14px;
}

.article-sources h2 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-sources ul {
    margin: 0;
    padding-left: 20px;
}

.article-sources ol {
    margin: 0;
    padding-left: 24px;
}

.article-sources li {
    margin-bottom: 6px;
    font-size: 1rem;
    line-height: 1.6;
}

.article-footnotes li::marker {
    font-weight: 700;
}

.article-viz {
    margin-top: 24px;
    border-top: 1px solid #ddd4c3;
    padding-top: 14px;
}

.article-viz h2 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 12px 0 10px;
}

.viz-diagram {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
}

.viz-diagram .node {
    border: 1px solid #cfc4ae;
    background: #fff;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.95rem;
}

.viz-diagram .arrow {
    color: var(--red);
    font-weight: 700;
    text-align: center;
}

.viz-chart {
    width: 100%;
    height: auto;
    border: 1px solid #d4cab5;
    background: #fff;
}

.viz-chart .axis {
    stroke: #8c7f67;
    stroke-width: 1.2;
}

.viz-chart .curve {
    fill: none;
    stroke: var(--red);
    stroke-width: 3;
}

.viz-chart circle {
    fill: #b30a11;
}

.viz-chart text {
    font-size: 13px;
    fill: #3f3a32;
}


.taxonomy-stack {
    display: grid;
    gap: 28px;
}

.taxonomy-level {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.taxonomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.taxonomy-grid.compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-bottom: 22px;
}

.taxonomy-card {
    border-top: 1px solid var(--line);
    padding-top: 12px;
    background: #fff;
}

.taxonomy-card h2,
.taxonomy-card h3 {
    margin: 0 0 10px;
    line-height: 1.2;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row a {
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.82rem;
    padding: 5px 8px;
    text-decoration: none;
}

.small-tags a {
    font-size: 0.75rem;
}

.section-tags {
    margin: 12px 0 24px;
}

.archive-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 18px 0 28px;
}

.archive-filters select,
.archive-filters input,
.archive-filters button {
    border: 1px solid var(--line);
    font: inherit;
    min-height: 40px;
    padding: 8px 10px;
}

.archive-filters button {
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
}

.archive-item {
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
}

.archive-item h2,
.archive-item h3 {
    margin: 0 0 0.4rem;
}

.archive-thumb {
    flex-shrink: 0;
}

.archive-thumb img {
    border-radius: 6px;
    height: 100px;
    object-fit: cover;
    width: 140px;
}


.slot-title {
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
}
