/* ==========================================================
   ÉCRAN FINAL MONTMELARD WOW
   ========================================================== */

#app:has(#vue-montmelard:not([hidden])) {
  padding-top: 0;
  padding-right: 0;
  padding-left: 0;
}

#app:has(#vue-montmelard:not([hidden])) .app-entete {
  display: none;
}

#vue-montmelard {
  position: relative;
  min-height: calc(100dvh - 74px);
  overflow: hidden;
  color: #f1eadb;
  background:
    linear-gradient(
      180deg,
      rgba(3, 13, 15, 0.28) 0%,
      rgba(3, 13, 15, 0.02) 39%,
      rgba(3, 12, 14, 0.34) 60%,
      rgba(2, 9, 11, 0.94) 100%
    ),
    url("assets/img/montmelard/mont-final.jpg")
    center 40% / cover no-repeat;
  isolation: isolate;
}

#vue-montmelard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      80% 42% at 50% 12%,
      rgba(255, 218, 146, 0.14),
      transparent 72%
    ),
    radial-gradient(
      120% 90% at 50% 50%,
      transparent 55%,
      rgba(1, 7, 9, 0.25) 100%
    );
}

#vue-montmelard.verrouille {
  background:
    linear-gradient(
      180deg,
      rgba(3, 13, 15, 0.64),
      rgba(2, 9, 11, 0.88)
    ),
    url("assets/img/montmelard/mont-final.jpg")
    center 40% / cover no-repeat;
}

#vue-montmelard .montmelard-contenu {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 74px);
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #f1eadb;
  background: transparent;
  box-shadow: none;
}

.mw-hero {
  min-height: 385px;
  padding:
    calc(env(safe-area-inset-top, 0px) + 52px)
    24px
    42px;
  text-align: center;
}

.mw-surtitre {
  margin: 0 0 17px;
  color: #f2db9d;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.58);
}

.mw-titre {
  max-width: 10em;
  margin: 0 auto 18px;
  color: #f1eadb;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(32px, 8.5vw, 43px);
  font-weight: 500;
  line-height: 1.03;
  text-shadow:
    0 3px 18px rgba(0, 0, 0, 0.78),
    0 1px 2px rgba(0, 0, 0, 0.72);
}

.mw-titre strong {
  display: block;
  color: #f2db9d;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.mw-titre em {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

.mw-localisation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin: 0;
  color: #d9b76e;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.mw-localisation span {
  width: 28px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 183, 110, 0.82)
  );
}

.mw-localisation span:last-child {
  transform: scaleX(-1);
}

.mw-codex {
  position: relative;
  margin-top: auto;
  padding:
    25px
    22px
    calc(env(safe-area-inset-bottom, 0px) + 24px);
  border-top: 1px solid rgba(217, 183, 110, 0.48);
  border-radius: 28px 28px 0 0;
  background:
    radial-gradient(
      100% 62% at 50% 0%,
      rgba(43, 77, 70, 0.38),
      transparent 66%
    ),
    linear-gradient(
      180deg,
      rgba(15, 38, 37, 0.96),
      rgba(7, 22, 23, 0.98) 34%,
      rgba(4, 14, 16, 0.995)
    );
  box-shadow:
    0 -18px 55px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(244, 220, 164, 0.09);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mw-ornement {
  position: absolute;
  top: -7px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}

.mw-ornement span {
  width: 38px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 183, 110, 0.86)
  );
}

.mw-ornement span:last-child {
  transform: scaleX(-1);
}

.mw-ornement i {
  width: 9px;
  height: 9px;
  border: 1px solid #d9b76e;
  background: #061315;
  box-shadow: 0 0 12px rgba(217, 183, 110, 0.36);
  transform: rotate(45deg);
}

.mw-statut {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 17px;
}

.mw-cachet {
  display: inline-block;
  margin: 0;
  padding: 8px 11px 7px;
  border: 1.5px solid #a74235;
  border-radius: 5px;
  color: #dc6656;
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 2px rgba(167, 66, 53, 0.12),
    0 5px 16px rgba(0, 0, 0, 0.18);
  transform: rotate(-3deg);
}

.mw-compteur {
  margin: 0;
  color: rgba(241, 234, 219, 0.72);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.mw-reliques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 18px;
}

.mw-relique {
  min-width: 0;
  overflow: visible;
  text-align: center;
}

.mw-relique img {
  display: block;
  margin-right: auto;
  margin-left: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 9px rgba(0, 0, 0, 0.42));
}

.mw-relique p {
  margin: 5px 0 0;
  color: rgba(241, 234, 219, 0.72);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mw-relique-cuivre img {
  width: 82px;
  height: 82px;
  margin-top: -17px;
  margin-bottom: -14px;
}

.mw-relique-parchemin img {
  width: 82px;
  height: 82px;
  margin-top: -17px;
  margin-bottom: -14px;
  transform: scale(1.45);
}

.mw-relique-pierre img {
  width: 74px;
  height: 74px;
  margin-top: -13px;
  margin-bottom: -10px;
}

.mw-relique-sceau img {
  width: 78px;
  height: 78px;
  margin-top: -15px;
  margin-bottom: -12px;
}

.mw-message {
  padding: 16px 0 15px;
  border-top: 1px solid rgba(217, 183, 110, 0.18);
  text-align: left;
}

.mw-message p {
  margin: 0;
  color: rgba(241, 234, 219, 0.78);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 15px;
  line-height: 1.38;
}

.mw-message .mw-bascule {
  margin-top: 8px;
  color: #f1eadb;
  font-weight: 600;
}

.mw-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 163, 0.72);
  border-radius: 12px;
  color: #14201c;
  background:
    linear-gradient(
      110deg,
      #a77c35 0%,
      #e4c37c 32%,
      #f4dfa9 52%,
      #c99d4e 100%
    );
  box-shadow:
    0 13px 26px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.mw-cta i {
  font-size: 22px;
  font-style: normal;
}

.mw-office {
  margin: 10px 0 0;
  color: rgba(241, 234, 219, 0.68);
  font-family: "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

.mw-presentation {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid rgba(217, 183, 110, 0.26);
  border-radius: 12px;
  color: rgba(241, 234, 219, 0.78);
  background: rgba(3, 12, 14, 0.66);
  text-align: left;
}

.mw-presentation h3 {
  margin: 0 0 8px;
  color: #f2db9d;
  font-size: 17px;
  font-weight: 600;
}

.mw-presentation p,
.mw-presentation li {
  color: rgba(241, 234, 219, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.mw-presentation p {
  margin: 0 0 8px;
}

.mw-presentation ul {
  margin: 0;
  padding-left: 18px;
}

.mw-signature {
  margin-top: 16px;
  color: rgba(241, 234, 219, 0.52);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 12px;
  line-height: 1.42;
  text-align: center;
}

.mw-signature strong {
  color: #d9b76e;
  font-weight: 600;
}

.mw-codex-verrouille {
  min-height: 245px;
  padding-top: 44px;
  text-align: center;
}

.mw-codex-verrouille .mw-cachet {
  margin-bottom: 25px;
}

.mw-verrou {
  max-width: 31ch;
  margin: 0 auto;
  color: rgba(241, 234, 219, 0.77);
  font-size: 16px;
  line-height: 1.55;
}

@media (max-width: 380px) {
  .mw-codex {
    padding-right: 15px;
    padding-left: 15px;
  }

  .mw-reliques {
    gap: 1px;
  }

  .mw-relique-cuivre img,
  .mw-relique-parchemin img {
    width: 76px;
    height: 76px;
  }

  .mw-relique-pierre img {
    width: 69px;
    height: 69px;
  }

  .mw-relique-sceau img {
    width: 73px;
    height: 73px;
  }
}
