/* ═══════════════════════════════════════════════════════════
   SARAYA VILLAS — CSS
   ═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Miller Text';
    src: url('../font/Miller Text Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PMN Caecilia Sans';
    src: url('../font/PMNCaeciliaSansTextRg.TTF') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PMN Caecilia Sans';
    src: url('../font/PMNCaeciliaSansTextRgIt.TTF') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'PMN Caecilia Sans';
    src: url('../font/PMNCaeciliaSansTextLight.TTF') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PMN Caecilia Sans';
    src: url('../font/PMNCaeciliaSansTextLightIt.TTF') format('truetype');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

:root {
  --sand:        #F5F0E8;
  --sand-dark:   #EDE6D8;
  --green:       #1C3028;
  --green-mid:   #243D32;
  --green-deep:  #162420;
  --terracotta:  #C77A64;
  --terra-light: #D4795A;
  --dark:        #1A1510;
  --text-dark:   #2A2218;
  --text-mid:    #5A4E42;
  --text-light:  #8A7E72;
  --white:       #FFFFFF;
  --font-serif: 'Miller Text', Georgia, serif;
  --font-sans: 'PMN Caecilia Sans', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--sand);
  color: var(--text-dark);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--sand); }
::-webkit-scrollbar-thumb { background: var(--terracotta); border-radius: 3px; }

/* ════════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #0F161E;
  margin-bottom: -1px;
}
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: -20%; /* Pousse l'ombre bien à gauche */
  width: 50%; /* Plus fin, pour ne pas aller jusqu'au centre de l'image */
  height: 80%;
  
  /* L'AJUSTEMENT CLÉ : 0.50 au lieu de 0.95 pour une transparence élégante */
  background: rgba(28, 48, 40, 0.70); 
  
  filter: blur(150px); /* Un flou encore plus étalé pour une transition invisible */
  border-radius: 50%; 
  z-index: 1; 
  pointer-events: none; 
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: 100% auto;
  object-position: center center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 22, 30, 0.72) 0%,
    rgba(15, 22, 30, 0.55) 40%,
    rgba(28, 48, 40, 0.80) 75%,
    rgba(28, 48, 40, 1.00) 100%
  );
}

/* ── NAV ── */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  gap: 2rem;
  margin: 0 auto;
  width: 100%;
  max-width: 95%;
}

.nav-logo-img {
  width: 180px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.99rem;
  letter-spacing: 0.30em;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
  text-transform: capitalize;
}
.nav-link:hover,
.nav-link.active {
  color: var(--terracotta);
}

.btn-nav-cta {
  font-family: var(--font-sans);
  font-size: 0.60rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.50);
  padding: 9px 20px;
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-nav-cta:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.80);
}

/* ── HERO CONTENT ── */
.hero-content {
  position: relative;
  z-index: 10;
  max-width: 95%;
  width: 100%;
  margin: auto auto 0;
  padding: 0 2rem 6rem;
  animation: fadeUp 1.2s ease 0.2s both;
  
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 4.5vw, 4rem);
  font-weight: 300;
  font-style: normal;
  line-height: 1.10;
  color: var(--terracotta);
  margin-bottom: 1.4rem;
  max-width: 100%;;
}

.hero-desc {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.80;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
  background:#C77A64;
  border: 1px solid rgba(196,98,58,0.50);
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.3s;
  backdrop-filter: blur(4px);
  border-radius: 4px;
}
.btn-hero-cta:hover { background: var(--terracotta); }


/* ════════════════════════════════════════════
   MARRAKECH REIMAGINED
════════════════════════════════════════════ */
.marrakech-section {
  background-color: var(--green); 
  
  /* Le dégradé reste totalement opaque (#1C3028) sur les premiers 5rem, puis s'efface progressivement jusqu'à 12rem */
  background-image: 
    linear-gradient(to bottom, #1C3028 0%, #1C3028 5rem, rgba(28, 48, 40, 0) 12rem),
    url('../images/Background.webp');
    
  background-size: 100% 100%, cover;
  background-position: top center, center 5rem; 
  background-repeat: no-repeat;
  
  padding: 5rem 2rem 7rem;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.marrakech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 95%;
  margin: 0 auto;
}

.btn-mobile-discover {
  display: none !important;
}

.marrakech-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--terracotta);
  margin-bottom: 2rem;
  line-height: 1.15;
}

.marrakech-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.80;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.2rem;
}

.btn-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  text-decoration: none;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(196, 98, 58, 0.40);
  transition: gap 0.2s;
}
.btn-text-link:hover { gap: 11px; }

.marrakech-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.marrakech-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.marrakech-img-wrap.img-placeholder {
  background: rgba(255,255,255,0.05);
  min-height: 360px;
}


/* ════════════════════════════════════════════
   BENTLEY HOME SIGNATURE — MOSAIC LAYOUT
════════════════════════════════════════════ */
.bentley-section{
  background:#F4EFEB;
  padding:80px 2rem;
}

.bentley-inner{
  margin:auto;
  max-width: 95%;
}

.bentley-mosaic{
  display:grid;
  grid-template-columns:repeat(12,1fr);

  grid-template-rows:repeat(12,50px);

  gap:24px;
}

.bentley-header-text{
  grid-column:1 / 5;
  margin-bottom:30px;
}

.bentley-tag{
  display:block;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:#C77A5A;
  margin-bottom:20px;
}

.bentley-title{
  font-family:var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height:1.05;
  color:#8E3D2F;
  font-weight:300;
}

.bm-img{
  overflow:hidden;
  border-radius:24px;

}

.bm-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition: transform 0.6s ease;

}
.bm-img:hover img{
  transform: scale(1.08);
}

.bm-img1{
  grid-column:1 / 4;
  grid-row:3;
  height:380px;
  margin-top: 50px; 

}

.bm-img2{
  grid-column:4 / 7;
  grid-row:3;
  height:349px;

}

.bm-img3{
  grid-column:7 / 10;
  grid-row:2 / 7;
  height:423px;

  
}

.bm-img4{
  grid-column:10 / 13;
  grid-row:3;
  height:349px;
 

}

.bm-img5{
  grid-column:4 / 8;
  grid-row:8;
  height:290px;

   
}

.bm-img6{
  grid-column:8 / 11;
  grid-row:8;
  height:250px;

  
}

.bentley-desc-block{
  grid-column:1 / 4;
  grid-row:9;
  max-width:100%;
}

.bentley-desc{
  font-family:var(--font-sans);
  font-size:16px;
  font-weight: 300;
  font-style: italic;
  line-height:1.9;
  color:#6D6D6D;
  margin-bottom:28px;
}

.bentley-desc-sub{
  font-family:var(--font-sans);
  font-size:16px;
  font-weight: 300;
  font-style: italic;
  line-height:1.9;
  color:#6D6D6D;
}


/* ════════════════════════════════════════════
   VILLAS COLLECTION
════════════════════════════════════════════ */
.villas-section {
  background: var(--sand);
  padding: 5rem 2rem 6rem;
  border-top: 1px solid rgba(90,78,66,0.10);
}

.villas-header {
  max-width: 95%;
  margin: 0 auto 3.5rem;
  display: flex; 
  justify-content: space-between; /* Pousse le titre à gauche et le texte à droite */
  align-items: flex-end; /* Aligne le texte vers le bas pour qu'il soit au même niveau que le titre */
  gap: 2rem; /* Garde un espace de sécurité entre les deux si l'écran rétrécit */
}

.villas-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color: #8E3D2F;
  margin-bottom: 0;
  line-height: 1.15;
}

.villas-sub {
  font-size: 0.80rem;
  font-style: italic;
  font-weight: 320;
  color: var(--text-mid);
  line-height: 1.70;
  text-align: right;
}

.villas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 95%;
  margin: 0 auto;
}

.villa-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(90,78,66,0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.villa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28,48,40,0.12);
}

.villa-card-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand-dark);
}
.villa-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.villa-card:hover .villa-card-img { transform: scale(1.04); }
.villa-card-img-wrap.img-ph { min-height: 220px; }

.villa-card-body {
  padding: 1.5rem 1.5rem 1.8rem;
}

.villa-card-tag {
  display: block;
  font-size: 0.60rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.villa-card-name {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  color:#8E3D2F;
  margin-bottom: 1.2rem;
}

.btn-villa-details {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--terracotta);
  text-decoration: none;
  border: 1px solid rgba(196,98,58,0.40);
  padding: 11px 0;
  border-radius: 3px;
  transition: all 0.25s;
}
.btn-villa-details:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}


/* ════════════════════════════════════════════
   AMENITIES
════════════════════════════════════════════ */
.amenities {
  background: var(--sand);
  padding: 4rem 2rem;
  border-top: 1px solid rgba(90,78,66,0.12);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 95%;
  margin: 0 auto;
}

.amenity-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-right: 1px solid rgba(90,78,66,0.12);
}
.amenity-item:last-child { border-right: none; }

.amenity-icon {
  width: 88px; height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}

.amenity-text {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.70;
  color: var(--text-mid);
  font-weight: 300;
}

.amenity-icon img { width: 80px; }
.amenity-icon img.icon-sm { width: 70px; }


/* ════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--green);
  padding: 3rem 2rem;
}

.footer-inner {
  max-width: 95%;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2.5rem;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-icon {
  display: flex;
  align-items: center;
  opacity: 0.60;
  transition: opacity 0.2s;
}

.footer-icon img { width: 20px; display: block; }

.footer-icon:hover { opacity: 1; }

.footer-logo-center {
  text-align: center;
  margin-bottom: 2.5rem;
}
.footer-logo-img {
  width: 200px;
  height: auto;
  display: inline-block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
}

.footer-bottom-left {
  display: flex;
  gap: 2rem;
}

.footer-link {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(255,255,255,0.80); }

.footer-bottom-right {
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.30);
  white-space: nowrap;
}


/* ════════════════════════════════════════════
   MODAL
════════════════════════════════════════════ */

/* Ajustement pour le champ de texte libre du modal Contact */
.form-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-sans);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20,14,8,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  backdrop-filter: blur(4px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--sand);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--terracotta) var(--sand-dark);
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  background: none; border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1;
  transition: color 0.2s;
  z-index: 2;
}
.modal-close:hover { color: var(--text-dark); }

.modal-header {
  background: var(--green);
  padding: 2.5rem 2.5rem 2rem;
}
.modal-tag {
  font-size: 0.55rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.7rem;
  font-weight: 400;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.10;
  margin-bottom: 0.8rem;
}
.modal-title em { font-style: italic; color: var(--terra-light); }
.modal-desc {
  font-size: 0.68rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.60);
  font-weight: 300;
}

.modal-body { padding: 2rem 2.5rem 2.5rem; }
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-mid);
  font-weight: 400;
  margin-bottom: 6px;
}

.phone-wrap { display: flex; gap: 8px; }
.phone-code-wrap { flex: 0 0 110px; }
.phone-code-select { padding-right: 28px; font-size: 0.78rem; }
.phone-number-input { flex: 1; }

.form-input,
.form-select {
  width: 100%;
  background: var(--white);
  border: 1px solid rgba(90,78,66,0.20);
  border-bottom: 1px solid rgba(90,78,66,0.40);
  color: var(--text-dark);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 300;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.25s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: rgba(90,78,66,0.35); font-size: 0.78rem; }
.form-input:focus,
.form-select:focus { border-color: var(--terracotta); }

.select-wrap { position: relative; }
.select-arrow {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%) rotate(90deg);
  color: var(--terracotta);
  pointer-events: none;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.form-error {
  font-size: 0.65rem;
  color: #b94040;
  min-height: 1rem;
  margin-top: 0.5rem;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
  background: var(--terracotta);
  border: none;
  padding: 14px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-submit:hover { background: var(--terra-light); }
.btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-arrow { font-size: 1rem; font-weight: 300; }

.form-select:disabled { opacity: 0.45; cursor: not-allowed; }

/* Success state */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: stretch;
  opacity: 0;
  min-height: 46px;
}
.success-header-band {
  background: var(--green);
  padding: 2rem 2.5rem 2.2rem;
}
.success-pretitle {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.success-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.10;
  white-space: nowrap;
}
.success-title em { color: var(--terra-light); }
.success-body {
  padding: 2.2rem 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.success-message {
  font-size: 0.74rem;
  line-height: 1.80;
  color: var(--text-mid);
  font-weight: 300;
}
.btn-access-catalogue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--green);
  border: none;
  padding: 1.2rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-access-catalogue::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
  z-index: 0;
}
.btn-access-catalogue:hover::before { transform: translateX(0); }
.btn-access-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  z-index: 1;
}
.btn-access-label {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--white);
}
.btn-access-sub {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
}
.btn-access-arrow {
  font-size: 1.6rem;
  color: var(--terracotta);
  font-weight: 300;
  line-height: 1;
  position: relative;
  z-index: 1;
  transition: color 0.3s, transform 0.3s;
}
.btn-access-catalogue:hover .btn-access-arrow {
  color: var(--white);
  transform: translateX(4px);
}


/* ════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════
   RESPONSIVE — TABLET
════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .bentley-header {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .bentley-header-left {
    max-width: 600px;
  }
    .hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
}

.marrakech-section {
  padding: 4rem 1.5rem; 
    background-color: var(--green); 
    
    /* On utilise un dégradé qui fond l'image dans le vert en HAUT et en BAS */
    background-image: 
      linear-gradient(to bottom, #1C3028 0%, rgba(28, 48, 40, 0) 15%, rgba(28, 48, 40, 0) 85%, #1C3028 100%),
      url('../images/Background.webp'); 
    
    
    background-size: 100% 100%, cover; 
    
    /* 2. On interdit la répétition (pas de traits horizontaux) */
    background-repeat: no-repeat, repeat;  
    
    /* 3. On centre parfaitement l'image au milieu de la section */
    background-position: center, center;
  }
}

@media (max-width: 900px) {
  .nav {
    padding: 1.2rem 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  .nav-links { display: none; }
  .nav-logo-img { width: 150px; }
  .hero-content { padding: 0 1.5rem 4rem; }
  .marrakech-section {
  padding: 4rem 1.5rem; 
    background-color: var(--green); 
    
    /* On utilise un dégradé qui fond l'image dans le vert en HAUT et en BAS */
    background-image: 
      linear-gradient(to bottom, #1C3028 0%, rgba(28, 48, 40, 0) 15%, rgba(28, 48, 40, 0) 85%, #1C3028 100%),
      url('../images/Background.webp'); 
    
    
    background-size: 100% 100%, cover; 
    
    /* 2. On interdit la répétition (pas de traits horizontaux) */
    background-repeat: no-repeat, repeat;  
    
    /* 3. On centre parfaitement l'image au milieu de la section */
    background-position: center, center;
  }
  


  
  .marrakech-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .bentley-section { padding: 4rem 2rem; }

  /* ── Mosaïque mobile : 2 colonnes, placement manuel ──
     row1 : header pleine largeur
     row2 : img3 grande pleine largeur
     row3 : img1 | img4
     row4 : img2 | img6
     row5 : img5 pleine largeur
     row6 : texte pleine largeur
  */
  .bentley-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 12px;
  }
  .bentley-header-text { grid-column: 1 / 3; grid-row: 1; margin-bottom: 4px; }
  .bm-img3  { grid-column: 1 / 3; grid-row: 2; height: 260px; }
  .bm-img1  { grid-column: 1;     grid-row: 3; height: 200px; margin-top: 0; }
  .bm-img4  { grid-column: 2;     grid-row: 3; height: 200px; }
  .bm-img2  { grid-column: 1;     grid-row: 4; height: 180px; }
  .bm-img6  { grid-column: 2;     grid-row: 4; height: 180px; }
  .bm-img5  { grid-column: 1 / 3; grid-row: 5; height: 220px; }
  .bentley-desc-block { grid-column: 1 / 3; grid-row: 6; max-width: 100%; padding-top: 0.5rem; }

  .villas-section { padding: 4rem 2rem; }
  .villas-grid { grid-template-columns: 1fr; gap: 2rem; }

  .amenities { padding: 3rem 1.5rem; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-item:nth-child(2) { border-right: none; }
  .amenity-item:nth-child(3) { border-top: 1px solid rgba(90,78,66,0.12); }
  .amenity-item:nth-child(4) { border-top: 1px solid rgba(90,78,66,0.12); border-right: none; }

  .footer { padding: 2rem 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-bottom-left { justify-content: center; }
}

@media (max-width: 600px) {
  .marrakech-text .btn-text-link {
    display: none !important;
  }

  .btn-mobile-discover {
    display: inline-flex !important;
    margin-top: 1.5rem;
    align-self: flex-start;
    width: fit-content;
  }
  .marrakech-title {font-size: 1.94rem;}
  .hero-headline { font-size: 1.94rem; }
  .villas-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .amenity-item { border-right: none; border-top: 1px solid rgba(90,78,66,0.12); }
  .amenity-item:first-child { border-top: none; }
  .form-row { grid-template-columns: 1fr; }
  .modal-header { padding: 2rem 1.5rem 1.5rem; }
  .modal-body { padding: 1.5rem; }
  .modal-title { font-size: 1.7rem; }
  .phone-wrap { flex-direction: row; }
  .phone-code-wrap { flex: 0 0 95px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--tall { grid-row: auto; }
  .success-title { white-space: normal; }
  .marrakech-section { padding: 4rem 1.5rem; }
  .bentley-section { padding: 4rem 1.5rem; }
  .villas-section { padding: 3rem 1.5rem; }
  .villas-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .villas-sub {
    order: 1;
    text-align: left;
  }
}
/* ════════════════════════════════════════════
   HAMBURGER + MOBILE MENU
════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 20;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(10, 16, 22, 0.97);
  backdrop-filter: blur(12px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.nav-mobile-link {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-mobile-link:hover,
.nav-mobile-link.active { color: var(--terracotta); }

.nav-mobile-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}
.nav-mobile-close:hover {
  color: var(--terracotta);
}

.btn-nav-cta-mobile {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.50);
  padding: 12px 28px;
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.3s;
}
.btn-nav-cta-mobile:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.80);
}

@media (max-width: 900px) {
  .btn-nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile-menu { display: flex; }
  .nav { flex-wrap: nowrap; justify-content: space-between; }
}