/* Polices Maroc Villas Luxury — hébergées localement (Latin, WOFF2) */

html {
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-300-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-400-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-300-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

.nav-logo,
.f-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-width: 0;
}
.nav-logo-name {
  white-space: nowrap;
}
.mvl-logo-mark {
  width: 2.35em;
  height: 2.35em;
  flex: 0 0 2.35em;
  display: block;
  color: currentColor;
}
.f-logo .mvl-logo-mark {
  width: max(1.28em, 20px);
  height: max(1.28em, 20px);
  flex: 0 0 max(1.28em, 20px);
}
@media (max-width: 780px) {
  html body nav,
  html body .site-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    height: auto;
    padding-top: max(10px, env(safe-area-inset-top, 0px));
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 10px;
  }
  .nav-logo {
    align-items: flex-start;
    letter-spacing: 0.12em;
    flex: 0 1 auto;
  }
  .nav-logo-name {
    display: flex;
    flex-direction: column;
    white-space: normal;
    line-height: 1.2;
  }
  .nav-logo-name span {
    white-space: nowrap;
  }
  .nav-right {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }
  .nav-right .nav-cta {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    color: #f2e9da;
    background: #a8451f;
    border: 0.5px solid #a8451f;
  }
  .nav-right .nav-cta:hover {
    color: #f2e9da;
    background: #c97a4a;
    border-color: #c97a4a;
  }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  position: relative;
}
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-burger {
  display: none;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0.5px solid rgba(168, 69, 31, 0.45);
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  color: #f2e9da;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-right.is-open .nav-burger span:nth-child(1),
.nav-right:has(.nav-toggle:checked) .nav-burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-right.is-open .nav-burger span:nth-child(2),
.nav-right:has(.nav-toggle:checked) .nav-burger span:nth-child(2) {
  opacity: 0;
}
.nav-right.is-open .nav-burger span:nth-child(3),
.nav-right:has(.nav-toggle:checked) .nav-burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-cta {
  white-space: nowrap;
}

@media (max-width: 780px) {
  .nav-right {
    width: auto;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
  }
  .nav-right .nav-cta {
    order: 1;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 14px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1;
    color: #f2e9da;
    background: #a8451f;
    border: 0.5px solid #a8451f;
  }
  .nav-right .nav-cta:hover {
    color: #f2e9da;
    background: #c97a4a;
    border-color: #c97a4a;
  }
  .nav-burger {
    display: flex;
    order: 2;
  }
  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 230px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: #241b14;
    border: 0.5px solid rgba(168, 69, 31, 0.45);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
    z-index: 230;
  }
  .nav-right.is-open .nav-panel,
  .nav-toggle:checked ~ .nav-panel {
    display: flex;
  }
  .nav-panel .nav-link {
    display: block;
    padding: 14px 20px;
  }
}
