/* WKAD — présentation de la carte, v0.1.5.
 * Reprend la hiérarchie de la planche 03 : maison à gauche, titre et phrase
 * sur deux lignes, puis cadre cartographique et deux actions dans un même cadre.
 * Aucun changement au contenu, à l'iframe ou au dialog de carte v0.1.2.
 */

.wkad-home .wkad-home-map .wkad-home-map-lead {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: .3rem;
  margin: 0 0 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .85rem;
  background: #e7f4f2;
}

.wkad-home .wkad-home-map .wkad-home-map-lead::before {
  content: "";
  display: block;
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
  width: 3rem;
  height: 3rem;
  background: url('../images/wkad-icon-house.svg') center / contain no-repeat;
}

@supports (mask-image: url('../images/wkad-icon-house.svg')) {
  .wkad-home .wkad-home-map .wkad-home-map-lead::before {
    background: #237c83;
    mask: url('../images/wkad-icon-house.svg') center / contain no-repeat;
  }
}

.wkad-home .wkad-home-map .wkad-home-map-lead > strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
  color: #5a267e;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  font-weight: 750;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.wkad-home .wkad-home-map .wkad-home-map-lead > p {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  max-width: none;
  margin: 0;
  color: #163844;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wkad-home .wkad-home-map .wkad-home-map-frame {
  min-width: 0;
  margin: 0;
  border: 1px solid #b7cdd0;
  border-radius: .85rem;
  background: #edf4f1;
}

.wkad-home .wkad-home-map .wkad-home-map-frame > iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(25rem, 40vw, 36rem);
  margin: 0;
  border: 0;
  border-radius: calc(.85rem - 1px);
}

/* The two existing siblings form one visual frame, without DOM rewriting. */
.wkad-home .wkad-home-map .wkad-home-map-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.25rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.25rem .85rem;
  border: 1px solid #b7cdd0;
  border-bottom: 0;
  border-radius: .85rem .85rem 0 0;
  background: #fff;
}

.wkad-home .wkad-home-map .wkad-home-map-actions > .wkad-home-button {
  width: 100%;
  min-width: 0;
  min-height: 3.25rem;
  margin: 0;
  padding: .85rem 1.1rem;
  font-size: 1rem;
  line-height: 1.4;
}

.wkad-home .wkad-home-map .wkad-home-map-actions + .wkad-home-map-note {
  margin: 0;
  padding: 0 1.25rem 1rem;
  border: 1px solid #b7cdd0;
  border-top: 0;
  border-radius: 0 0 .85rem .85rem;
  background: #fff;
  color: #405d66;
  font-size: .925rem;
  line-height: 1.5;
}

@media (max-width: 43.99rem) {
  .wkad-home .wkad-home-map .wkad-home-map-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
    padding-inline: 1rem;
  }

  .wkad-home .wkad-home-map .wkad-home-map-actions + .wkad-home-map-note {
    padding-inline: 1rem;
  }
}

@media (max-width: 29.99rem) {
  .wkad-home .wkad-home-map .wkad-home-map-lead {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    column-gap: .75rem;
    padding: 1rem;
  }

  .wkad-home .wkad-home-map .wkad-home-map-lead::before {
    width: 2.5rem;
    height: 2.5rem;
  }
}

@media (forced-colors: active) {
  .wkad-home .wkad-home-map .wkad-home-map-lead {
    border-color: CanvasText;
  }

  .wkad-home .wkad-home-map .wkad-home-map-lead::before {
    background-color: CanvasText;
  }
}
