.included-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 32px);
  font-family: 'Barlow', sans-serif;
}

.included-modal[hidden] {
  display: none;
}

.included-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 18, 49, .55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .22s ease;
}

.included-modal--open .included-modal__backdrop {
  opacity: 1;
}

.included-modal__panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100dvh - clamp(24px, 6vw, 48px));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(22px, 4.5vw, 36px);
  border: 1px solid #E5E6E9;
  border-radius: clamp(18px, 3vw, 28px);
  background: #FFFFFF;
  color: #001231;
  box-shadow: 0 28px 70px rgba(0, 18, 49, .24);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .24s ease, transform .24s ease;
}

.included-modal--open .included-modal__panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* pop-up « Équipements » : panneau plus large pour laisser le plan 3D
   respirer, la liste de puces étant déjà retirée pour cette catégorie. */
.included-modal__panel--plan {
  width: min(920px, 100%);
}

/* pop-up « Pose » : photo à droite du texte, en grand. */
.included-modal__panel--side {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.included-modal__panel--side .hs-plan {
  margin-top: 0;
}

@media (max-width: 720px) {
  .included-modal__panel--side {
    grid-template-columns: 1fr;
  }
}

.included-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #E5E6E9;
  border-radius: 50%;
  background: #FFFFFF;
  color: #001231;
  font: inherit;
  font-size: 29px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.included-modal__close:hover {
  border-color: #01549D;
  background: #01549D;
  color: #FFFFFF;
}

.included-modal__close:focus-visible {
  outline: 3px solid rgba(1, 84, 157, .3);
  outline-offset: 3px;
}

.included-modal__plateau {
  margin: 0 56px 6px 0;
  color: #01549D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.included-modal__title {
  margin: 0 52px 10px 0;
  color: #001231;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
}

.included-modal__intro {
  margin: 0;
  color: #4c586d;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
}

.included-modal__intro[hidden] {
  display: none;
}

.included-modal__details-label {
  margin: 18px 0 0;
  color: #01549D;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.included-modal__details-label[hidden] {
  display: none;
}

.included-modal__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
  padding: 18px 20px;
  border: 1px solid rgba(1, 84, 157, .12);
  border-radius: 16px;
  background: #f4f6f9;
}

.included-modal__specs > div {
  min-width: 0;
  padding-right: 14px;
  border-right: 1px solid rgba(1, 84, 157, .14);
}

.included-modal__specs > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.included-modal__specs dt {
  margin-bottom: 5px;
  color: #01549D;
  font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.included-modal__specs dd {
  margin: 0;
  color: #001231;
  font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.included-modal__details {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 16px 20px;
  border-radius: 18px;
  background: #f4f6f9;
  list-style: none;
  counter-reset: detail;
}

.included-modal__details[hidden] {
  display: none;
}

.included-modal__detail {
  position: relative;
  padding-left: 28px;
  color: #001231;
  line-height: 1.5;
  counter-increment: detail;
}

/* numéro (au lieu d'un simple point) : reprend le même numéro que sur le
   plan juste en dessous, pour rattacher chaque nom à son repère. */
.included-modal__detail::before {
  position: absolute;
  top: .12em;
  left: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  border-radius: 50%;
  background: #01549D;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  content: counter(detail);
}

@media (max-width: 560px) {
  .included-modal {
    align-items: center;
    padding: 14px;
  }

  .included-modal__panel {
    width: 100%;
    max-height: calc(100dvh - 28px);
    padding: 28px 22px;
    border-radius: 20px;
  }

  .included-modal__close {
    top: 14px;
    right: 14px;
  }

  .included-modal__plateau {
    margin-right: 48px;
  }

  .included-modal__title {
    margin-right: 44px;
  }

  .included-modal__details {
    padding: 18px;
  }

  .included-modal__specs {
    gap: 10px;
    padding: 15px;
  }

  .included-modal__specs > div {
    padding-right: 10px;
  }

  .included-modal__specs dd {
    font-size: 11.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .included-modal__backdrop,
  .included-modal__panel {
    transition: none;
  }
}
