/* Hub national — styles carte / layout (DA = monelec.css landing) */

.de-hub-page .de-hub-hero {
  padding-bottom: 28px;
}

.de-hub-page .de-hub-hero .de-page-lead {
  max-width: 38em;
}

.de-hub-map-sec {
  padding: 8px 0 48px;
}

.de-hub-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.de-hub-map-panel {
  background: #fff;
  border: 1px solid rgba(15, 20, 25, 0.08);
  border-radius: 24px;
  padding: clamp(12px, 2vw, 22px);
  box-shadow: 0 18px 50px rgba(15, 20, 25, 0.06);
}

.de-hub-map {
  width: 100%;
  position: relative;
}

.de-hub-map .hub-map__svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(62vh, 560px);
}

.hub-map__region {
  stroke: #fff;
  stroke-width: 2;
  stroke-linejoin: round;
  transition: fill 140ms ease, filter 140ms ease;
  outline: none;
  cursor: pointer;
}

.hub-map__region--tone0 { fill: #7dd3fc; }
.hub-map__region--tone1 { fill: #38bdf8; }
.hub-map__region--tone2 { fill: #93c5fd; }

.hub-map__region.is-active {
  fill: #1d4ed8;
}

.hub-map__region.is-soon {
  opacity: 0.88;
}

.hub-map__region.is-hover,
.hub-map__region:focus-visible {
  filter: brightness(1.08);
  stroke-width: 2.6;
}

.hub-map__region.is-active.is-hover,
.hub-map__region.is-active:focus-visible {
  fill: #1e40af;
}

.hub-map__label {
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: #0f1419;
  pointer-events: none;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.5px;
}

.hub-map__label--sm {
  font-size: 9px;
}

/* Liste complète : accessibilité (carte = UI principale) */
.hub-map__list {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.de-hub-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 96px;
}

.de-hub-side__card {
  background: #0f1419;
  color: #fff;
  border-radius: 22px;
  padding: 22px 22px 20px;
}

.de-hub-side__label {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.de-hub-side__cta:empty::before {
  content: "Centre-Val de Loire";
  display: block;
  font-family: "Sora", sans-serif;
  font-weight: 650;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.de-hub-side__cta .hub__cta-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: #0f1419;
  background: #45d0bd;
  font-family: "Sora", sans-serif;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 14px 16px;
  border-radius: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.de-hub-side__cta .hub__cta-link:hover,
.de-hub-side__cta .hub__cta-link:focus-visible {
  background: #3bb8a8;
  transform: translateY(-1px);
  outline: none;
}

.de-hub-side__cta .hub__cta-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: #0f1419;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}

.de-hub-side__hint {
  margin: 14px 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.de-hub-steps {
  margin: 0;
  padding: 18px 20px 18px 2.2rem;
  background: #f4f6f8;
  border-radius: 18px;
  border: 1px solid rgba(15, 20, 25, 0.06);
  font-family: "Manrope", sans-serif;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #4b5563;
}

.de-hub-steps li + li {
  margin-top: 10px;
}

.de-hub-steps strong {
  color: #0f1419;
  font-weight: 700;
}

.hub-toast {
  position: fixed;
  left: 50%;
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(10px);
  background: #0f1419;
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-family: "Manrope", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(15, 20, 25, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
  max-width: min(90vw, 400px);
  text-align: center;
}

.hub-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 991px) {
  .de-hub-map-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .de-hub-side {
    position: static;
  }

  .de-hub-map .hub-map__svg {
    max-height: min(52vh, 420px);
  }
}

@media (max-width: 575px) {
  .de-hub-map-panel {
    border-radius: 18px;
    padding: 10px;
  }

  .hub-map__label {
    font-size: 10px;
  }

  .hub-map__label--sm {
    font-size: 8px;
  }

  .de-hub-side__card {
    border-radius: 18px;
    padding: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-map__region,
  .de-hub-side__cta .hub__cta-link,
  .hub-toast {
    transition: none;
  }
}
