/* ================================================================
   CURATED SOVEREIGNTY — ESSAY TEMPLATE
   Charte graphique unique pour tous les essais
   ================================================================ */

/* Empêche tout débordement horizontal */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0F1115;
    --text-primary: #F2F2F2;
    --text-secondary: #A7AFBF;
    --text-tertiary: #6B7280;
    --text-body: #cfcfd4;
    --font-headline: 'Cormorant Garamond', 'EB Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-text: Georgia, "Times New Roman", serif;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
}

/* ---------- NAVIGATION ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15,17,21,0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(167,175,191,0.08);
    height: 46px;
    display: flex; align-items: center;
    padding: 0 2.5rem;
}

.nav-inner {
    max-width: 1200px; width: 100%; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-headline);
    font-size: 1.2rem; font-weight: 500;
    letter-spacing: 0.06em; color: var(--text-primary);
    text-decoration: none; white-space: nowrap;
}

.nav-links {
    display: flex; list-style: none; gap: 2rem;
}

.nav-links a {
    font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-secondary);
    text-decoration: none; transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

/* ---------- ESSAY HEADER ---------- */
.essay-header {
    padding-top: 72px;
    margin-bottom: 44px;
    text-align: center;
}

.essay-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #A5A5A5;
    margin-bottom: 26px;
}

.essay-title {
    font-family: var(--font-headline);
    font-size: clamp(46px, 4.3vw, 62px);
    font-weight: 600;
    color: #F2F2F2;
    margin: 0 0 18px;
    line-height: 1.06;
}

.essay-subtitle {
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 300;
    color: #D0D0D5;
    max-width: 540px;
    margin: 0 auto 18px;
    line-height: 1.38;
}

.essay-meta {
    font-size: 0.78rem;
    color: #A8A8AE;
    margin-bottom: 0;
}

/* ---------- ESSAY CONTENT ---------- */
.essay-content {
    width: min(820px, calc(100% - 64px));
    margin-inline: auto;
}

.essay-text {
    width: min(700px, 100%);
    margin-inline: auto;
}

/* ---------- BODY TEXT ---------- */
.essay-text p {
    font-family: var(--font-text);
    font-weight: 320;
    color: var(--text-body);
    font-size: 17px;
    line-height: 1.72;
    margin: 0 0 1.5em;
}

/* ---------- FIGURES ---------- */
.essay-figure {
    width: 100%;
    margin: 68px auto 72px;
}

.essay-figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.essay-figure figcaption {
    margin-top: 10px;
    text-align: left;
}

.figure-title {
    display: block;
    margin-bottom: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #b8b8bd;
}

.figure-caption {
    display: block;
    max-width: 640px;
    font-family: var(--font-text);
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.4;
    color: #9c9da3;
}

.figure-credit {
    display: block;
    margin-top: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #6a6b72;
}

/* ---------- EXCEPTION POUR IMAGE 3 DE THE CORRIDORS ---------- */
.essay-figure--operational-geography img {
    object-position: center 45%;
}

/* ---------- INTERNAL SECTION HEADINGS ---------- */
.essay-text h3 {
    font-family: var(--font-body);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #8A8F98;
    font-weight: 400;
    margin-top: 3.5rem;
    margin-bottom: 0.7rem;
}

/* ---------- SELECTED SOURCES ---------- */
.essay-text .sources-intro {
    font-size: 0.85rem;
    color: #9599A0;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.essay-text .source-block {
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(167,175,191,0.06);
}

.essay-text .source-title {
    font-size: 0.8rem;
    font-weight: 500;
    color: #C5C9CF;
    line-height: 1.4;
    margin-bottom: 0.04rem;
}

.essay-text .source-desc {
    font-size: 0.76rem;
    font-weight: 300;
    color: #9599A0;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ---------- AUTHOR'S NOTE ---------- */
.essay-text .author-note-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #a8aaaf;
    font-weight: 300;
}

/* ---------- QUESTIONS FOR FUTURE RESEARCH ---------- */
.essay-text .research-question {
    font-size: 0.9rem;
    line-height: 1.58;
    color: #aeb0b5;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 0.55em;
}

/* ---------- SIGNATURE ---------- */
.essay-text .essay-signature {
    font-style: italic;
    color: #ADB0B6;
    margin-top: 2rem;
}

/* ---------- FINAL SENTENCE ---------- */
.essay-text .essay-final-sentence {
    margin-top: 1.2rem;
    font-style: italic;
    font-weight: 300;
    color: #ADB0B6;
    font-size: 0.9rem;
}

/* ---------- RELATED CONCEPTS ---------- */
.essay-text .concept-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #b0b3b8;
}

.concept-item strong {
    color: #d0d0d5;
    font-weight: 500;
}

/* ---------- FOOTER ---------- */
.essay-footer {
    border-top: 1px solid rgba(167,175,191,0.1);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ================================================================
   RESPONSIVE — DESKTOP LARGE (≥1181px)
   ================================================================ */
@media (min-width: 1181px) {
    .essay-text p { font-size: 17px; line-height: 1.72; }
    .essay-figure { margin: 68px auto 72px; }
}

/* ================================================================
   RESPONSIVE — TABLETTE (769px–1180px)
   ================================================================ */
@media (min-width: 769px) and (max-width: 1180px) {
    .essay-title { font-size: 46px; }
    .essay-text p { font-size: 16.5px; line-height: 1.7; }
    .essay-figure { margin: 60px auto 64px; }
}

/* ================================================================
   RESPONSIVE — MOBILE (≤768px)
   ================================================================ */
@media (max-width: 768px) {
    .nav { padding: 0 0.5rem; }
    .nav-links { display: none; }

    .essay-content,
    .essay-text {
        width: auto;
        max-width: none;
        margin-inline: 0;
        padding: 0 0.5rem;
    }

    .essay-header {
        padding-top: 58px;
        margin-bottom: 36px;
    }

    .essay-title { font-size: 40px; }
    .essay-subtitle { font-size: 17px; }

    .essay-text p {
        font-size: 15.5px;
        line-height: 1.68;
        font-weight: 320;
        margin-bottom: 1.35em;
    }

    .essay-figure {
        width: 100%;
        margin: 52px auto 56px;
    }

    .figure-title { font-size: 9px; margin-bottom: 3px; }
    .figure-caption { font-size: 11px; line-height: 1.35; }
    .figure-credit { font-size: 8px; margin-top: 4px; }

    .essay-text h3 { margin-top: 2.8rem; }
    .essay-text .author-note-text { font-size: 0.82rem; }
    .essay-text .research-question { font-size: 0.84rem; }

    .essay-figure figcaption {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}