/* ============================================================
   MAPPEMONDE JURIDIQUE — Shared Styles
   Dark space palette + gold/amber + cyan accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --c-darkest:   #050813;
  --c-navy:      #0a0e27;
  --c-deep:      #0d1b3e;
  --c-mid:       #1a3a6b;
  --c-gold:      #f4a825;
  --c-gold-lt:   #ffc947;
  --c-gold-dk:   #e8890c;
  --c-cyan:      #00d4ff;
  --c-cyan-dim:  #00a8cc;
  --c-purple:    #a855f7;
  --c-red:       #ff6b6b;
  --c-green:     #22c55e;
  --c-white:     #e8eaf6;
  --c-muted:     #8892b0;
  --font-title:  'Cinzel', serif;
  --font-body:   'Inter', sans-serif;
  --radius:      12px;
  --radius-lg:   20px;
  --blur:        20px;
  --transition:  0.3s cubic-bezier(0.4,0,0.2,1);
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--c-darkest);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--c-darkest); }
::-webkit-scrollbar-thumb { background: var(--c-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-gold-dk); }

/* ---- Jaguar banner strip ---- */
.jaguar-strip {
  width: 100%;
  height:110px;
  background-image: linear-gradient(to bottom, transparent 80%, rgba(5,8,19,1) 100%), url('../images/jaguar.WEBP');
  background-size: cover;
  background-position: center 30%;
  position: relative;
  flex-shrink: 0;
}
.jaguar-strip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,8,19,0.25) 0%,
    rgba(5,8,19,0.5) 100%
  );
}

.jaguar-strip-footer {
  width: 100%;
  height: 20px;
 /*  background-image: linear-gradient(to bottom, rgba(5,8,19,1) 0%, transparent 20%), url('images/jaguar.webp');
  background-size: cover;
  background-position: center 30%;
  position: relative; */
}
.jaguar-strip-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,8,19,0.2) 0%,
    rgba(5,8,19,0.5) 100%
  );
}

/* ---- Header (style Lex Angeli Terrae adapté globe) ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  background: rgba(5,8,19,0.96);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

/* Fondu bas du header — div séparé pour éviter le clipping */
.header-fade {
  position: fixed;
  top: var(--header-h, 160px);
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(5,8,19,0.96) 0%, rgba(5,8,19,0) 100%);
  pointer-events: none;
  z-index: 99;
}

/* header-top : logo + tagline + nav sur la même ligne */
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: all;
  padding: 10px 16px 0;
}
.header-top .site-nav {
  margin-left: auto;
}
.header-top .site-nav ul {
  display: flex;
  flex-direction: row;
  gap: 0;
  margin: 0;
  padding: 0;
}


.logo-text {
  font-family: 'Playfair Display', 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding-left:10px;
}

.logo-text a {
  color: var(--c-gold);
  text-decoration: none;
  text-shadow: 0 0 28px rgba(244,168,37,0.45);
  transition: color var(--transition);
}
.logo-text a:hover { color: var(--c-gold-lt); }

.tagline {
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--c-muted);
  letter-spacing: 0.04em;
  padding-left:10px;
}

/* sous-titre mappemonde */
.site-subtitle-globe {
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-cyan);
  opacity: 0.65;
  margin: 3px 0 5px;
  pointer-events: none;
}

/* ---- Nav principale (style Lex Angeli Terrae) ---- */
.site-nav {
  pointer-events: all;
  padding-left:10px
}

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

.site-nav > ul > li > a {
  display: block;
  padding: 6px 14px;
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(232,234,246,0.82);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li.active > a {
  color: var(--c-gold);
}

/* Dropdown */
.site-nav .dropdown {
  position: relative;
}

.site-nav .dropdown .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(5,8,19,0.97);
  border: 1px solid rgba(244,168,37,0.15);
  border-top: 2px solid var(--c-gold);
  border-radius: 0 0 8px 8px;
  padding: 6px 0;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.site-nav .dropdown:hover .submenu {
  display: block;
}

.site-nav .submenu li a {
  display: block;
  padding: 8px 18px;
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(232,234,246,0.75);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.site-nav .submenu li a:hover {
  color: var(--c-gold);
  background: rgba(244,168,37,0.07);
}

.nav-icon {
  font-size: 0.9em;
  margin-right: 3px;
}

/* ---- Hamburger button ---- */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  pointer-events: all;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 201;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }

  .site-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5,8,19,0.97);
    z-index: 200;
    padding-top: 80px;
    pointer-events: all;
  }
  .site-nav.nav-open { display: block; }

  .site-nav ul,
  .header-top .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0 24px;
  }

  .site-nav > ul > li > a {
    font-size: 1.1rem;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .site-nav .dropdown .submenu {
    position: static;
    display: block;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    text-align: center;
  }

  .site-nav .submenu li a {
    font-size: 0.9rem;
    color: var(--c-muted);
    padding: 8px 20px;
  }
}

.nav-conventions {
  color: #22c55e !important;
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 50px;
  padding: 4px 14px !important;
  margin-left: 4px;
}
.nav-conventions:hover {
  color: #22c55e !important;
  background: rgba(34,197,94,0.1) !important;
  border-color: #22c55e;
}

/* ---- Footer globe (barre fixe en bas) ---- */
.site-footer-globe {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 8px 24px;
  background: rgba(5,8,19,0.88);
  border-top: 1px solid rgba(244,168,37,0.1);
  pointer-events: all;
}

.footer-globe-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 4px;
  font-family: 'Source Sans 3', 'Inter', sans-serif;
  font-size: 0.7rem;
}

.footer-globe-inner a {
  color: rgba(136,146,176,0.7);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-globe-inner a:hover { color: var(--c-gold); }

.footer-sep {
  color: rgba(136,146,176,0.3);
}

.footer-copy {
  color: rgba(136,146,176,0.45);
  font-style: italic;
}

/* ---- Legend ---- */
.legend {
  position: fixed;
  bottom: calc(var(--footer-h, 36px) + 16px);
  left: 16px;
  z-index: 100;
  background: rgba(10,14,39,0.80);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 0;
  min-width: 180px;
  overflow: hidden;
}

.legend-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 14px;
  color: var(--c-muted);
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color var(--transition);
}
.legend-toggle:hover { color: var(--c-white); }
.legend-toggle-icon { font-size: 0.6rem; flex-shrink: 0; }

.legend-body {
  padding: 0 16px 14px;
}

.legend-title {
  font-family: var(--font-title);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: var(--c-white);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

/* ---- Tooltip ---- */
#tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-card {
  background: rgba(10,14,39,0.9);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 12px 16px;
  min-width: 180px;
  max-width: 240px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(244,168,37,0.1);
}

.tooltip-country {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-gold-lt);
  margin-bottom: 6px;
}

.tooltip-system {
  font-size: 0.72rem;
  color: var(--c-muted);
  letter-spacing: 0.05em;
}

.tooltip-system-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.tooltip-hint {
  margin-top: 8px;
  font-size: 0.65rem;
  color: rgba(244,168,37,0.6);
  letter-spacing: 0.05em;
  animation: pulse-hint 1.5s ease-in-out infinite;
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ---- Smoke / tunnel canvas overlay ---- */
#smoke-canvas {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  display: none;
}

/* ---- Glassmorphism card (shared) ---- */
.glass-card {
  background: rgba(13,27,62,0.55);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: rgba(244,168,37,0.2);
  box-shadow: 0 0 40px rgba(244,168,37,0.06), 0 20px 40px rgba(0,0,0,0.3);
}

/* ---- USA Page ---- */
.usa-page {
  min-height: 100vh;
  background: radial-gradient(ellipse 90% 70% at 50% -10%, #0d1b3e 0%, var(--c-darkest) 65%);
  overflow-x: hidden;
  animation: page-fadein 1.2s ease both;
}

@keyframes page-fadein {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Stars background for usa page */
.stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ---- USA Hero ---- */
.usa-hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 80px;
  min-height: 60vh;
}

.usa-flag-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(244,168,37,0.4));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.usa-hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--c-white);
  text-shadow: 0 0 60px rgba(244,168,37,0.3);
  margin-bottom: 16px;
  animation: slide-up 0.8s 0.3s ease both;
}

.usa-hero-subtitle {
  font-family: var(--font-title);
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--c-cyan);
  text-shadow: 0 0 30px rgba(0,212,255,0.6);
  text-transform: uppercase;
  animation: slide-up 0.8s 0.5s ease both, glow-pulse 3s ease-in-out 1.3s infinite;
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-pulse {
  0%, 100% { text-shadow: 0 0 30px rgba(0,212,255,0.6); }
  50%       { text-shadow: 0 0 50px rgba(0,212,255,0.9), 0 0 80px rgba(0,212,255,0.3); }
}

.usa-hero-divider {
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold), transparent);
  margin: 24px auto;
  animation: slide-up 0.8s 0.7s ease both;
}

.usa-hero-intro {
  max-width: 640px;
  font-size: 1rem;
  color: var(--c-muted);
  line-height: 1.8;
  animation: slide-up 0.8s 0.9s ease both;
  text-align:justify;
}

/* ---- Content grid ---- */
.usa-content {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 80px;
}

.section-title {
  font-family: var(--font-title);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(244,168,37,0.4) 0%, transparent 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.info-card {
  animation: card-appear 0.6s ease both;
}

.info-card:nth-child(1) { animation-delay: 0.2s; }
.info-card:nth-child(2) { animation-delay: 0.35s; }
.info-card:nth-child(3) { animation-delay: 0.5s; }
.info-card:nth-child(4) { animation-delay: 0.65s; }
.info-card:nth-child(5) { animation-delay: 0.8s; }
.info-card:nth-child(6) { animation-delay: 0.95s; }

@keyframes card-appear {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
  display: block;
}

.card-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-gold-lt);
  margin-bottom: 12px;
}

.card-body {
  font-size: 0.85rem;
  color: var(--c-muted);
  line-height: 1.8;
  text-align:justify;
}

.card-body strong {
  color: var(--c-white);
  font-weight: 500;
}

/* ---- Court hierarchy ---- */
.court-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 64px;
}

.court-level {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(13,27,62,0.4);
  border-left: 3px solid var(--c-gold-dk);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition), border-color var(--transition);
  animation: slide-left 0.5s ease both;
}

.court-level:hover {
  background: rgba(26,58,107,0.4);
  border-color: var(--c-gold);
}

.court-level:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
  border-color: var(--c-cyan);
  background: rgba(0,212,255,0.05);
}

.court-level:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.court-level:nth-child(1) { animation-delay: 0.1s; }
.court-level:nth-child(2) { animation-delay: 0.2s; }
.court-level:nth-child(3) { animation-delay: 0.3s; }
.court-level:nth-child(4) { animation-delay: 0.4s; }
.court-level:nth-child(5) { animation-delay: 0.5s; }

@keyframes slide-left {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.court-rank {
  font-family: var(--font-title);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--c-muted);
  min-width: 80px;
}

.court-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--c-white);
  flex: 1;
}

.court-desc {
  font-size: 0.75rem;
  color: var(--c-muted);
}

/* ---- Sources of law ---- */
.sources-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 64px;
}

.source-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(13,27,62,0.5);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius);
  animation: card-appear 0.5s ease both;
}

.source-item:nth-child(1) { animation-delay: 0.1s; }
.source-item:nth-child(2) { animation-delay: 0.25s; }
.source-item:nth-child(3) { animation-delay: 0.4s; }
.source-item:nth-child(4) { animation-delay: 0.55s; }

.source-num {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--c-gold);
  opacity: 0.5;
  line-height: 1;
  min-width: 30px;
}

.source-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 4px;
}

.source-desc {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.6;
  text-align:justify;
}

/* ---- Back button ---- */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: rgba(244,168,37,0.1);
  border: 1px solid rgba(244,168,37,0.3);
  border-radius: 50px;
  color: var(--c-gold);
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-bottom: 40px;
}

.back-btn:hover {
  background: rgba(244,168,37,0.2);
  border-color: var(--c-gold);
  box-shadow: 0 0 30px rgba(244,168,37,0.2);
  transform: translateX(-4px);
}

.back-arrow {
  font-size: 1rem;
}

/* ---- Principles ---- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 80px;
}

.principle-item {
  padding: 20px 24px;
  border-left: 2px solid var(--c-cyan);
  background: rgba(0,212,255,0.04);
  border-radius: 0 var(--radius) var(--radius) 0;
  animation: slide-left 0.5s ease both;
}

.principle-item:nth-child(odd) {
  border-color: var(--c-gold-dk);
  background: rgba(244,168,37,0.04);
}

.principle-item:nth-child(1) { animation-delay: 0.1s; }
.principle-item:nth-child(2) { animation-delay: 0.2s; }
.principle-item:nth-child(3) { animation-delay: 0.3s; }
.principle-item:nth-child(4) { animation-delay: 0.4s; }
.principle-item:nth-child(5) { animation-delay: 0.5s; }
.principle-item:nth-child(6) { animation-delay: 0.6s; }

.principle-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.principle-desc {
  font-size: 0.75rem;
  color: var(--c-muted);
  line-height: 1.7;
  text-align:justify;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 32px;
  margin-bottom: 64px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--c-gold-dk), transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 28px 24px;
  animation: slide-up 0.5s ease both;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-gold);
  box-shadow: 0 0 10px var(--c-gold);
}

.timeline-year {
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--c-gold);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 6px;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--c-muted);
  line-height: 1.7;
  text-align:justify;
}

/* ---- Nature & Animaux section ---- */
.nature-section {
  margin-bottom: 64px;
}

.nature-level {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-title);
}
.nature-level-pionnier {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.35);
  color: #22c55e;
}
.nature-level-fort {
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.3);
  color: #00d4ff;
}
.nature-level-modéré {
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  color: #a855f7;
}
.nature-level-faible,
.nature-level-absent {
  background: rgba(136,146,176,0.08);
  border: 1px solid rgba(136,146,176,0.22);
  color: var(--c-muted);
}

.nature-intro {
  color: var(--c-muted);
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 0.9rem;
  text-align:justify;
}

.nature-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nature-item {
  background: rgba(13,27,62,0.45);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid rgba(34,197,94,0.45);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-align:justify;
  transition: background var(--transition), border-left-color var(--transition);
}
.nature-item:hover {
  background: rgba(26,58,107,0.4);
  border-left-color: #22c55e;
}

.nature-ref {
  font-family: var(--font-title);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: #22c55e;
  margin-bottom: 7px;
}

.nature-text {
  color: var(--c-text);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 6px;
}

.nature-note {
  font-size: 0.71rem;
  color: var(--c-muted);
  font-style: italic;
  letter-spacing: 0.04em;
}

/* ---- Footer ---- */
.page-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--c-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ---- Animations for globe hints ---- */
.globe-hint {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  font-size: 0.72rem;
  color: var(--c-muted);
  letter-spacing: 0.1em;
  text-align: right;
  animation: pulse-hint 2s ease-in-out infinite;
  pointer-events: none;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }
  .header-title { font-size: 1rem; }
  .header-nav { display: none; }
  .legend { bottom: 16px; left: 16px; padding: 12px 14px; }
  .usa-hero { padding: 100px 20px 60px; }
  .usa-content { padding: 0 20px 60px; }
  .cards-grid { grid-template-columns: 1fr; }
}
