:root{
  --basalt:      #1B1815;   /* fond principal, noir chaud "roche" */
  --soil:        #2B2420;   /* panneau secondaire, brun terre */
  --parchment:   #EFE8DA;   /* texte clair, papier de terrain */
  --ochre:       #e46605;   /* accent minéral — particules / poussière */
  --sage:        #0bedf9;   /* accent végétal — qualité de l'air */
  --slate:       #2104c4;   /* accent acoustique — bruit */
  --parchment-dim: rgba(239,232,218,0.55);
}

#splash-screen{
  position:fixed; inset:0;
  background:var(--basalt);
  z-index:9999;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  transition:opacity .10s ease, visibility .10s ease;
}
#splash-screen.hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

/* --- Fond : lignes topographiques animées --- */
#splash-screen .contours{
  position:absolute; inset:0;
  width:100%; height:100%;
}
#splash-screen .contours svg{
  position:absolute;
  top:0; left:0;
  height:100%;
  width:200%;
  animation:driftContours 48s linear infinite;
}
@media (prefers-reduced-motion:reduce){
  #splash-screen .contours svg{ animation:none; }
}
@keyframes driftContours{
  from{ transform:translateX(0); }
  to{ transform:translateX(-1200px); }
}
#splash-screen .contours::after{
  /* voile de lisibilité en bas de l'écran, où se trouve le texte */
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(to top, var(--basalt) 5%, rgba(27,24,21,0.55) 40%, transparent 75%);
}

/* --- Bloc de contenu --- */
#splash-screen .splash-content{
  position:relative;
  z-index:2;
  padding:0 6vw 9vh;
  max-width:560px;
}

.splash-brand{
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}
.splash-badge{
  flex:none;
  width:52px; height:52px;
  border-radius:50%;
  border:1.5px solid var(--parchment-dim);
  display:flex; align-items:center; justify-content:center;
}
.splash-badge svg{ width:26px; height:26px; }

.splash-brand h1{
  font-family:'Fraunces', serif;
  font-weight:500;
  font-size:clamp(28px, 3.4vw, 40px);
  letter-spacing:0.3px;
  color:var(--parchment);
  margin:0;
  line-height:1;
}

.splash-slogan{
  font-family:'IBM Plex Sans', sans-serif;
  font-size:14.5px;
  color:var(--parchment-dim);
  margin:0 0 30px;
  line-height:1.5;
  max-width:420px;
}

.splash-doc-type{
  font-family:'IBM Plex Sans', sans-serif;
  font-size:13px;
  font-weight:500;
  color:var(--parchment);
  margin:0 0 14px;
}

/* --- Barre de progression thématique (3 segments) --- */
.splash-progress-track{
  position:relative;
  height:6px;
  border-radius:3px;
  background:rgba(239,232,218,0.12);
  overflow:hidden;
  margin-bottom:12px;
}
.splash-progress-seg{
  position:absolute;
  top:0; bottom:0;
  width:33.333%;
  transform:scaleX(0);
  transform-origin:left;
}
.splash-progress-seg.air{  left:0%;      background:var(--sage);  animation:fillSeg 1.4s ease forwards; }
.splash-progress-seg.dust{ left:33.333%; background:var(--ochre); animation:fillSeg 1.4s ease forwards 1.4s; }
.splash-progress-seg.noise{left:66.666%; background:var(--slate); animation:fillSeg 1.4s ease forwards 2.8s; }
@keyframes fillSeg{ to{ transform:scaleX(1); } }
@media (prefers-reduced-motion:reduce){
  .splash-progress-seg{ animation:none; transform:scaleX(1); }
}

.splash-legend{
  display:flex;
  gap:22px;
  font-family:'IBM Plex Sans', sans-serif;
  font-size:12px;
  color:var(--parchment-dim);
}
.splash-legend span{ display:flex; align-items:center; gap:6px; }
.splash-legend i{ width:7px; height:7px; border-radius:50%; display:inline-block; }
.splash-legend .air i{ background:var(--sage); }
.splash-legend .dust i{ background:var(--ochre); }
.splash-legend .noise i{ background:var(--slate); }

.splash-readout{
  font-family:'IBM Plex Mono', monospace;
  font-size:12px;
  color:var(--parchment-dim);
  margin-left:auto;
}

/* --- Header optionnel avec logo flottant sur la carte (non utilisé actuellement, inoffensif) --- */
#map-header {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  padding: 8px 14px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Segoe UI', Arial, sans-serif;
}
.header-logo { height: 32px; }
.header-title { font-weight: 600; font-size: 14px; color: #0b2e4f; }