/* La Criée — section « en relief ».
   Rien qui ne soit déjà dans la charte : papier, encre, filets, un vermillon.
   Aucune ombre portée, aucun coin arrondi de tableau de bord. */

.relief {
  margin-top: 8px;
}

.relief-scene {
  margin: 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding-top: 18px;
}

.relief-vue {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  overflow: hidden;
}

@media (max-width: 720px) {
  .relief-vue { aspect-ratio: 4 / 3; }
  .relief-chiffres dd { font-size: 22px; }
}

/* L'aperçu et la scène occupent la MÊME place, superposés : l'un s'efface,
   l'autre paraît. Et `display` posé sur une classe l'emporte sur la règle du
   navigateur pour `hidden` — sans le rappel ci-dessous, rien ne se cache. */
.relief-vue > img,
.relief-vue > canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.relief [hidden] { display: none !important; }

.relief-apercu { cursor: zoom-in; }

.relief-vue > canvas {
  touch-action: none;
  cursor: grab;
  outline-offset: -3px;
}
.relief-vue > canvas.saisi { cursor: grabbing; }
.relief-vue > canvas:focus-visible { outline: 2px solid var(--wax); }

/* le bouton se pose sur l'aperçu, à l'ancienne : un filet, des capitales */
.relief-lancer {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  background: var(--paper-hi);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}
.relief-lancer:hover { background: var(--ink); color: var(--paper-hi); }
.relief-lancer:focus-visible { outline: 2px solid var(--wax); outline-offset: 3px; }
.relief-lancer::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--wax);
  transform: rotate(45deg);
}

.relief-etat {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 16px;
  background: var(--paper-hi);
  border-top: 1px solid var(--line);
  font-family: var(--ui);
  font-size: 13px;
  color: var(--ink-soft);
}

/* ── les repères ────────────────────────────────────────────────────────────*/
.relief-etiquettes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.relief-etiquette {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 7px 3px;
  margin: -13px 0 0 -6px;
  background: color-mix(in srgb, var(--paper-hi) 88%, transparent);
  border-left: 2px solid var(--ink);
  font-family: var(--ui);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 140ms linear;
}
.relief-etiquette b { font-weight: 600; letter-spacing: 0.02em; color: var(--ink); }
.relief-etiquette em { font-style: normal; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.relief-etiquette i {
  position: absolute;
  left: -4px;
  bottom: -4px;
  width: 5px;
  height: 5px;
  background: var(--ink);
  border-radius: 50%;
}
.relief-etiquette--mairie { border-left-color: var(--wax); }
.relief-etiquette--mairie i { background: var(--wax); }

/* ── les commandes ──────────────────────────────────────────────────────────*/
.relief-commandes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.relief-commandes button,
.relief-commandes select {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  padding: 7px 11px;
  cursor: pointer;
}
.relief-commandes button:hover,
.relief-commandes select:hover { border-color: var(--ink); }
.relief-commandes button:focus-visible,
.relief-commandes select:focus-visible { outline: 2px solid var(--wax); outline-offset: 2px; }
.relief-commandes .relief-espace { flex: 1 1 12px; }
.relief-commandes label {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.relief-mode-emploi {
  margin: 0;
  font-family: var(--ui);
  font-size: 12px;
  color: var(--muted);
}

.relief-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--ui);
  font-size: 12px;
  color: var(--ink-soft);
}
.relief-legende span { display: inline-flex; align-items: center; gap: 7px; }
.relief-legende span::before {
  content: "";
  width: 14px;
  height: 2px;
  background: currentColor;
}
.relief-legende .l-limite::before { background: var(--wax); height: 2px; }
.relief-legende .l-bati::before { background: var(--ink); height: 9px; width: 9px; }
.relief-legende .l-courbe::before { background: var(--ink-soft); opacity: 0.45; }
.relief-legende .l-repere::before { background: var(--wax); height: 7px; width: 7px; border-radius: 50%; }
.relief-legende .l-mer::before { background: var(--navy); opacity: 0.3; height: 9px; width: 14px; }

.relief-scene figcaption {
  margin-top: 14px;
  font-family: var(--text);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── ce que la vue dit, en toutes lettres ───────────────────────────────────*/
.relief-chiffres {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 1px;
  margin-top: 28px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}

.relief-chiffres > div {
  background: var(--paper-hi);
  padding: 16px 18px 18px;
}

.relief-chiffres dt {
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.relief-chiffres dd {
  margin: 6px 0 0;
  font-family: var(--data);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.relief-chiffres dd .nb { white-space: nowrap; }
.relief-chiffres dd .u {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.relief-chiffres dd small {
  display: block;
  margin-top: 5px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

.relief-sommets {
  margin-top: 26px;
  border-top: 1px solid var(--line);
}
.relief-sommets h3 {
  margin: 16px 0 10px;
  font-family: var(--ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.relief-sommets ul { list-style: none; margin: 0; padding: 0; }
.relief-sommets li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--text);
  font-size: 15px;
}
.relief-sommets li:last-child { border-bottom: 0; }
.relief-sommets .r-type {
  flex: 0 0 auto;
  font-family: var(--ui);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 62px;
}
.relief-sommets .r-nom { flex: 1 1 auto; }
.relief-sommets .r-alt {
  flex: 0 0 auto;
  font-family: var(--data);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.relief-sommets .r-alt .u { font-family: var(--ui); font-size: 12px; font-weight: 400; color: var(--ink-soft); }

.relief-source {
  margin: 18px 0 0;
  font-family: var(--ui);
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .relief-etiquette { transition: none; }
}
