/* ========================= */
/* MAP SCREEN */
/* ========================= */

.map-screen {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  overflow: hidden;

  display: flex;
  justify-content: center;
  align-items: center;

  background: #020817;
}

/* ========================= */
/* CONTENEUR MAP */
/* ========================= */

.map-container {
  position: relative;

  z-index: 1;

  width: 100%;
  height: 100%;

  overflow: hidden;
}

/* ========================= */
/* IMAGE MAP */
/* ========================= */

.map-image {
  position: absolute;
  inset: 0;

  z-index: 1;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: fill;
}

/* ========================= */
/* SVG LAYER */
/* ========================= */

.svg-layer {
  position: absolute;
  inset: 0;

  z-index: 2;

  width: 100%;
  height: 100%;

  pointer-events: none;
}

/* ========================= */
/* TEXTES MAP */
/* ========================= */

.map-text-layer {
  position: absolute;
  inset: 0;

  z-index: 3;

  width: 100%;
  height: 100%;

  pointer-events: none;
}

/* ========================= */
/* SVG */
/* ========================= */

.svg-layer svg {
  display: block;

  width: 100%;
  height: 100%;
}

/* ========================= */
/* ZONES SVG INTERACTIVES */
/* ========================= */

.svg-layer [data-type] {
  pointer-events: auto;

  cursor: pointer;

  fill: transparent;

  transition:
    filter 0.2s ease;
}

/* ========================= */
/* HOVER ZONES MAP DESKTOP */
/* ========================= */

@media (hover: hover) and (pointer: fine) {
  .svg-layer [data-type]:hover {
    fill: rgba(255, 220, 120, 0.12);

    filter:
      drop-shadow(0 0 4px rgba(255, 245, 210, 0.95))
      drop-shadow(0 0 10px rgba(255, 210, 90, 0.9))
      drop-shadow(0 0 18px rgba(255, 170, 40, 0.65));

    opacity: 1;
  }
}

/* ========================= */
/* SURBRILLANCE GUIDÉE */
/* ========================= */

.svg-layer [data-type].is-guided-target {
  fill: rgba(255, 220, 90, 0.35);

  stroke: #ffd84d;
  stroke-width: 6px;

  filter:
    drop-shadow(0 0 6px rgba(255, 245, 210, 0.95))
    drop-shadow(0 0 14px rgba(255, 216, 77, 0.9))
    drop-shadow(0 0 24px rgba(255, 170, 40, 0.75));

  opacity: 1;
}

/* ========================= */
/* MAP TEXTES */
/* ========================= */

.map-text {
  position: absolute;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0.35% 0.8%;

  overflow: hidden;

  text-align: center;
  white-space: pre-line;

  line-height: 1.22;

  pointer-events: none;
  user-select: none;

  box-sizing: border-box;

  font-family:
    Georgia,
    "Times New Roman",
    serif;
}

/* ========================= */
/* TITRE VILLE */
/* ========================= */

.map-text-ville-title {
  color: #16324f;

  font-size: clamp(26px, 2vw, 40px);
  font-weight: 700;

  letter-spacing: 0.04em;

  transform:
    translateY(-8%)
    rotate(-1.5deg);
}

/* ========================= */
/* TITRES SÉQUENCES */
/* ========================= */

.map-text-sequence-title {
  color: #17375e;

  font-size: clamp(13px, 0.95vw, 20px);
  font-weight: 700;

  letter-spacing: 0.01em;
}

/* ========================= */
/* TITRE QUARTIER */
/* ========================= */

.map-text-quartier-title {
  color: #16324f;

  font-size: clamp(17px, 1.55vw, 32px);
  font-weight: 700;

  letter-spacing: 0.02em;

  transform:
    translateY(-14%)
    rotate(-1.5deg);
}

/* ========================= */
/* DEBUG OPTIONNEL */
/* ========================= */

/*
.svg-layer [data-type] {
  fill: rgba(255, 255, 255, 0.12);
}
*/