* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --serif: 'the-seasons', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1410;
  -webkit-font-smoothing: antialiased;
}

/* ── PAGE INTRO ── */
.page-intro {
  position:fixed;top:0;left:0;right:0;
  height:100vh;height:100lvh;
  z-index:850;
  background:#242220;
  animation:introFadeOut 0.4s 0.9s ease forwards;
  pointer-events:none;
}
.intro-logo {
  position:absolute;
  top:50%;top:50dvh;
  left:50%;
  height:96px;width:auto;
  opacity:0;
  transform:translate(-50%,-50%) scale(0.88);
  animation:introLogoIn 0.5s 0.1s cubic-bezier(0.25,0.46,0.45,0.94) forwards;
}
@keyframes introLogoIn { to { opacity:1; transform:translate(-50%,-50%) scale(1); } }
@keyframes introFadeOut { to { opacity:0; } }

/* ── BACKGROUND ── */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  /* ⬇ Remplacer par le chemin de votre image */
  background-image: url('../assets/images/interiors/threebedroom/3bed-dining.png');
  /* background-image: url('../assets/images/facade/villa-main.jpg'); */
  background-size: cover;
  background-position: center 35%;
  animation: kenBurns 22s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0%   { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.10) translate(-1.2%, -0.8%); }
}

/* Overlay pour lisibilité du texte */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 6, 0.62);
}

/* ── TOPBAR ── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 64px;
  background: rgba(36, 34, 32, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(255, 252, 248, 0.82);
  text-decoration: none;
}

.menu-btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2A2420;
  background: rgba(232, 226, 216, 0.92);
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
}
.menu-btn:hover {
  background: rgba(245, 240, 232, 1);
  color: #1A1210;
}

/* ── HERO ── */
.hero {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3.8rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 252, 248, 0.96);
  line-height: 1.08;
  white-space: nowrap;
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 1s 0.2s ease forwards;
}

/* ── CTA BUTTON ── */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 252, 248, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 18px 64px;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: fadeIn 0.9s 0.7s ease forwards, breathe 1.8s 1.8s ease-in-out infinite;
  transition: border-color 0.18s, color 0.18s, box-shadow 0.18s;
}

/* Breathing glow animation */
@keyframes breathe {
  0%,  100% { box-shadow: 0 0 0 0 rgba(255,252,248,0.0); border-color: rgba(255,255,255,0.28); }
  50%        { box-shadow: 0 0 18px 3px rgba(255,252,248,0.10); border-color: rgba(255,255,255,0.55); }
}

/* Hover fill sweep */
.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.2s ease;
}
.hero-cta:hover::before { transform: translateY(0); }
.hero-cta:hover {
  border-color: rgba(255, 255, 255, 0.65);
  color: white;
  animation-play-state: paused;
}

/* ── OVERLAY ── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(6, 4, 2, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s;
}
.overlay.show { opacity: 1; pointer-events: all; }

/* ── DRAWER ── */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(340px, 72vw);
  z-index: 30;
  background: rgba(232, 226, 216, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(80, 60, 40, 0.10);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
}
.drawer.open { transform: translateX(0); }

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.drawer-title {
  font-family: var(--serif);
  
  font-size: 1.4rem;
  font-weight: 300;
  color: rgba(52, 48, 44, 0.85);
}
.drawer-close {
  width: 36px; height: 36px;
  background: rgba(80, 60, 40, 0.08);
  border: 1px solid rgba(80, 60, 40, 0.18);
  border-radius: 50%;
  color: rgba(52, 48, 44, 0.75);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.drawer-close:hover { background: rgba(80, 60, 40, 0.15); }

.drawer-nav { display: flex; flex-direction: column; flex: 1; }

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 0;
  border-bottom: 1px solid rgba(80, 60, 40, 0.10);
  text-decoration: none;
  color: rgba(52, 48, 44, 0.75);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.22s, padding-left 0.22s;
}
.drawer-link:hover { color: rgba(52, 48, 44, 0.98); padding-left: 6px; }

.dl-arrow {
  opacity: 0.25;
  font-size: 0.85rem;
  transition: opacity 0.22s, transform 0.22s;
}
.drawer-link:hover .dl-arrow { opacity: 0.75; transform: translateX(4px); }

.drawer-footer {
  padding-top: 20px;
  font-family: var(--sans);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(94, 89, 82, 0.5);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}

/* ── RESPONSIVE — index.html ── */

/* Nav offset update */
.hero { padding-top:76px; }

/* Tablet portrait */
@media (max-width:1023px) and (min-width:768px) {
  .hero-title { font-size:clamp(1.6rem,4vw,3rem);letter-spacing:0.16em; }
  .hero-cta { padding:16px 48px;font-size:0.78rem; }
}

/* Mobile landscape */
@media (max-width:767px) and (orientation:landscape) {
  .hero-title { font-size:clamp(1.4rem,4vw,2.2rem);margin-bottom:20px; }
  .hero-cta { padding:14px 36px;font-size:0.72rem; }
}

/* Mobile portrait */
@media (max-width:600px) {
  .hero-title {
    font-size:clamp(1.4rem,8vw,2.4rem);
    white-space:normal;
    letter-spacing:0.14em;
    padding:0 16px;
  }
  .hero-cta { padding:14px 32px;font-size:0.72rem;letter-spacing:0.22em; }
  .bg { background-position:center center; }
}

/* Large desktop */
@media (min-width:1920px) {
  .hero-title { font-size:clamp(3rem,3.5vw,5rem); }
  .hero-cta { padding:22px 80px;font-size:0.9rem; }
}
