/* ═══════════════════════════════════════════════
   GEOPOLO HEADER — Design tokens + topbar + site-header + site-nav
   Partagé entre tous les articles de l'encyclopédie
═══════════════════════════════════════════════ */
:root {
  --f-display: "Fraunces", "Playfair Display", Georgia, serif;
  --f-body:    "Source Serif 4", Georgia, serif;
  --f-sans:    "Inter Tight", system-ui, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, monospace;

  --paper:      #f7f3ec;
  --paper-2:    #efe8d8;
  --paper-3:    #e6dccb;
  --paper-line: #d8cdb6;

  --ink:        #0a1628;
  --ink-2:      #15243d;
  --ink-3:      #1f3354;
  --ink-text:   #1a2436;
  --mid:        #4b5871;
  --muted:      #8a8f9b;

  --brass:      #b08d5b;
  --brass-2:    #d4a86a;
  --brass-3:    #8a6f44;

  --cobalt:     #1e3a8a;
  --cobalt-2:   #2c4ea8;
  --cobalt-3:   #4a6fa5;

  --crimson:    #a8201a;
  --crimson-2:  #c83228;

  --r-afrique:  #b08d5b;
  --r-amerique: #a8201a;
  --r-europe:   #1e3a8a;
  --r-asie:     #1d6b5b;
  --r-orient:   #6e3a8a;
  --r-mo:       #0e6a86;
  --r-eco:      #0d6a5d;
  --r-cul:      #983865;
  --r-san:      #2d7d3f;
  --r-voy:      #1b5a8a;
  --r-opi:      #5b3a8a;
  --r-mag:      #8a5a16;

  --r-r:   4px;
  --r-md:  8px;
  --r-lg:  12px;
  --tr:    .25s cubic-bezier(.2,.8,.2,1);
  --max:   1280px;
}

/* ═══ TOPBAR ═══ */
.gph-topbar {
  background: var(--ink);
  padding: .55rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  position: relative;
  z-index: 100;
}
.gph-topbar::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass-2), transparent);
  opacity: .4;
}
.gph-topbar a { color: rgba(255,255,255,.7); transition: color var(--tr); text-decoration: none; }
.gph-topbar a:hover { color: var(--brass-2); }
.gph-topbar__left  { display: flex; gap: 1.5rem; align-items: center; }
.gph-topbar__left .issn { color: var(--brass-2); font-weight: 500; }
.gph-topbar__right { display: flex; gap: 1.5rem; align-items: center; }
.gph-lang-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--brass);
  color: var(--ink) !important;
  padding: .25rem .7rem;
  border-radius: 2px;
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: .12em;
  transition: background var(--tr);
}
.gph-lang-btn:hover { background: var(--brass-2); }

/* ═══ SITE HEADER ═══ */
.gph-header {
  background: var(--paper);
  border-bottom: 1px solid var(--paper-line);
  padding: 2rem 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
}
.gph-header::before {
  content: ""; position: absolute; left: 2rem; right: 2rem; top: 0; height: 1px;
  background: var(--ink);
}
.gph-header::after {
  content: ""; position: absolute; left: 2rem; right: 2rem; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--ink), var(--ink) 70%, var(--brass) 70%, var(--brass));
}
.gph-header-left {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--mid);
  display: flex; flex-direction: column; gap: .4rem;
}
.gph-header-left .vol   { color: var(--brass-3); font-weight: 600; }
.gph-header-left .issue { color: var(--ink);     font-weight: 500; }
.gph-logo-wrap {
  display: flex; flex-direction: column; gap: .3rem;
  align-items: center; text-align: center;
  text-decoration: none;
}
.gph-logo-wordmark {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--ink);
  line-height: .9;
}
.gph-logo-wordmark em { font-style: italic; color: var(--brass); }
.gph-logo-sub {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--mid);
  padding-top: .4rem;
  border-top: 1px solid var(--paper-line);
  width: 100%;
}
.gph-header-date {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--mid);
  text-align: right;
  line-height: 1.6;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gph-header-date strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -.005em;
  text-transform: none;
  margin-bottom: .3rem;
}

/* ═══ SITE NAV ═══ */
.gph-nav {
  background: var(--ink);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 300;
  border-bottom: 1px solid rgba(176,141,91,.25);
  overflow-x: auto;
  scrollbar-width: none;
  box-shadow: 0 2px 30px rgba(10,22,40,.15);
}
.gph-nav::-webkit-scrollbar { display: none; }
.gph-nav a {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .85rem 1.15rem;
  font-family: var(--f-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(247,243,236,.62);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--tr);
  position: relative;
}
.gph-nav a:hover { color: var(--paper); }
.gph-nav a.active { color: var(--brass-2); }
.gph-nav a.active::after {
  content: "";
  position: absolute; left: 1.15rem; right: 1.15rem; bottom: 0;
  height: 2px; background: var(--brass-2);
}
.gph-nav .nd {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(247,243,236,.15);
}
.gph-nav [data-r="afrique"]      .nd { background: var(--r-afrique); }
.gph-nav [data-r="amerique"]     .nd { background: var(--r-amerique); }
.gph-nav [data-r="europe"]       .nd { background: var(--r-europe); }
.gph-nav [data-r="asie"]         .nd { background: var(--r-asie); }
.gph-nav [data-r="orient"]       .nd { background: var(--r-orient); }
.gph-nav [data-r="moyen-orient"] .nd { background: var(--r-mo); }
.gph-nav [data-r="economie"]     .nd { background: var(--r-eco); }
.gph-nav [data-r="culture"]      .nd { background: var(--r-cul); }
.gph-nav [data-r="sante"]        .nd { background: var(--r-san); }
.gph-nav [data-r="voyage"]       .nd { background: var(--r-voy); }
.gph-nav [data-r="opinions"]     .nd { background: var(--r-opi); }
.gph-nav [data-r="magazine"]     .nd { background: var(--r-mag); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 700px) {
  .gph-header { grid-template-columns: 1fr; text-align: center; gap: 1rem; padding: 1.2rem 1rem; }
  .gph-header-left, .gph-header-date { display: none; }
  .gph-topbar { display: none; }
}
