/* Villa Hubert — feuille de style
   Palette inspirée de la villa : façade crème, volets vert foncé,
   toiture ardoise, jardins, filets or Belle Époque. */

:root {
  --cream: #f7f2e8;
  --cream-2: #fbf8f2;
  --ink: #21261f;
  --ink-soft: #4a4f45;
  --green-deep: #33473a;
  --green-mid: #4f6a57;
  --gold: #b3945c;
  --gold-soft: #d9c79a;
  --line: rgba(33, 38, 31, 0.12);
  --white: #ffffff;
  --shadow: 0 20px 50px -20px rgba(33, 38, 31, 0.35);
  --radius: 2px;
  --container: 1240px;
  --speed: 0.6s;
}

* { box-sizing: border-box; }
figure, blockquote, fieldset { margin: 0; padding: 0; border: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  color: var(--green-deep);
  margin: 0;
  letter-spacing: 0.01em;
}
h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.35s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-deep);
  color: var(--cream-2);
  border-color: var(--green-deep);
}
.btn-primary:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.btn-outline:hover { background: var(--ink); color: var(--cream-2); border-color: var(--ink); transform: translateY(-2px); }
.btn-outline.on-dark { color: var(--white); }
.btn-outline.on-dark:hover { background: var(--white); color: var(--green-deep); }

/* ---------- Header ---------- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 26px 0;
  transition: all var(--speed) cubic-bezier(.2,.7,.2,1);
  background: transparent;
}
header.site.scrolled {
  padding: 14px 0;
  background: rgba(247, 242, 232, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; }
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color var(--speed) ease;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.logo em { font-style: italic; font-weight: 400; }
header.site.scrolled .logo { color: var(--green-deep); }

nav.main-nav { display: flex; align-items: center; gap: 40px; }
nav.main-nav ul { list-style: none; display: flex; gap: 34px; margin: 0; padding: 0; }
nav.main-nav a.nav-link {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--white);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--speed) ease;
}
header.site.scrolled nav.main-nav a.nav-link { color: var(--ink); }
nav.main-nav a.nav-link::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--gold);
  transition: right 0.35s ease;
}
nav.main-nav a.nav-link:hover::after { right: 0; }

.burger {
  display: none;
  width: 30px; height: 22px;
  position: relative;
  border: none; background: none; cursor: pointer;
  z-index: 210;
}
.burger span {
  position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--white); transition: all 0.35s ease;
}
header.site.scrolled .burger span, .nav-open .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 20px; }
.nav-open .burger span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.hero .bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: 70% 58%;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero .veil {
  position: absolute; inset: 0;
  /* scrim gauche (sous le texte, toujours lisible quelle que soit la photo)
     + assombrissement du bas (boutons/cue) - double calque volontaire */
  background:
    linear-gradient(100deg, rgba(14,17,12,0.78) 0%, rgba(14,17,12,0.58) 38%, rgba(14,17,12,0.18) 62%, rgba(14,17,12,0.05) 82%),
    linear-gradient(180deg, rgba(18,22,16,0.12) 0%, rgba(18,22,16,0.1) 40%, rgba(16,20,14,0.75) 100%);
}
.hero .content {
  position: relative;
  z-index: 2;
  padding-bottom: 120px;
  max-width: 700px;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero .eyebrow::before { background: var(--gold-soft); }
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.2;
  margin-bottom: 28px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.hero p.lead {
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  max-width: 480px;
  margin-bottom: 40px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.2);
}
.hero .actions { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute;
  right: 40px; bottom: 40px;
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 46px; background: rgba(255,255,255,0.5); overflow: hidden; position: relative; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: var(--gold-soft);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop { 0% { top: -100%; } 60% { top: 100%; } 100% { top: 100%; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in { transition-delay: 0.12s; }
.reveal-delay-2.in { transition-delay: 0.24s; }
.reveal-delay-3.in { transition-delay: 0.36s; }

/* ---------- Section shell ---------- */
section { position: relative; padding: 130px 0; }
section.tight { padding: 90px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.2; }
.section-head p { color: var(--ink-soft); font-size: 16.5px; margin-top: 18px; }

.divider-mark {
  width: 46px; height: 1px; background: var(--gold);
  margin: 26px auto;
}

/* ---------- Split feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 90px;
  align-items: center;
}
.feature-row.reverse .media { order: 2; }
.feature-row.reverse .copy { order: 1; }
.feature-row .media { position: relative; }
.feature-row .media img {
  width: 100%; height: 560px; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-row .media .frame {
  position: absolute; z-index: -1;
  border: 1px solid var(--gold);
  top: 26px; left: -26px; right: -26px; bottom: -26px;
}
.feature-row.reverse .media .frame { left: -26px; right: -26px; top: -26px; bottom: 26px; }
.feature-row .copy h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 22px; }
.feature-row .copy p { color: var(--ink-soft); font-size: 16.5px; margin-bottom: 16px; }
.feature-row .tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 34px; }
.feature-row .tags span {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 8px 16px; border: 1px solid var(--line); color: var(--green-mid); font-weight: 700;
  border-radius: 20px;
}

/* ---------- Intro band ---------- */
.intro {
  background: var(--cream-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.intro .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; align-items: center; }
.intro figure { position: relative; margin: 0; }
.intro figure img { width: 100%; height: 480px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.intro .lead-text { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--green-deep); line-height: 1.5; margin-bottom: 22px; }
.intro p { color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--cream);
  padding: 52px 40px;
  transition: background var(--speed) ease;
}
.service-card:hover { background: var(--cream-2); }
.service-card .icon {
  width: 46px; height: 46px; margin-bottom: 26px;
  color: var(--gold);
}
.service-card .icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 20px; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 14px;
}
.gallery-grid a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}
.gallery-grid a img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.gallery-grid a:hover img { transform: scale(1.08); }
.gallery-grid a::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,24,18,0) 55%, rgba(20,24,18,0.55) 100%);
  opacity: 0; transition: opacity 0.4s ease;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-grid a .cap {
  position: absolute; left: 18px; bottom: 14px; z-index: 2;
  color: var(--white); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: all 0.4s ease;
}
.gallery-grid a:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-grid a.big { grid-column: span 2; grid-row: span 2; }

/* ---------- Access ---------- */
.access { background: var(--green-deep); color: var(--cream-2); }
.access h2, .access .eyebrow { color: var(--white); }
.access .eyebrow { color: var(--gold-soft); }
.access .eyebrow::before { background: var(--gold-soft); }
.access .container { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: start; }
.access-list { list-style: none; margin: 34px 0 0; padding: 0; }
.access-list li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.14);
  font-size: 15.5px;
}
.access-list li .dist { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--gold-soft); min-width: 78px; }
.access address { font-style: normal; margin-top: 26px; font-size: 15.5px; color: rgba(255,255,255,0.85); line-height: 1.9; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,0.18); }
.map-frame iframe { width: 100%; height: 420px; border: 0; filter: grayscale(0.25) contrast(1.05); }

/* ---------- Contact ---------- */
.contact .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 90px; }
.contact-info h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 20px; }
.contact-info p { color: var(--ink-soft); margin-bottom: 30px; }
.contact-info .line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.contact-info .line:last-child { border-bottom: 1px solid var(--line); }
.contact-info .line .ic { color: var(--gold); width: 18px; }

form.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
form.contact-form .full { grid-column: 1 / -1; }
.field { position: relative; }
.field label {
  display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 8px; font-weight: 700;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 4px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: 'Lato', sans-serif;
  font-size: 15.5px;
  color: var(--ink);
  transition: border-color 0.3s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 110px; }
form.contact-form .submit-row { display: flex; align-items: center; gap: 20px; }
.form-note { font-size: 13px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--ink);
  color: rgba(247,242,232,0.7);
  padding: 70px 0 32px;
}
footer.site .top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; padding-bottom: 46px; border-bottom: 1px solid rgba(247,242,232,0.14); }
footer.site .logo { color: var(--cream); }
footer.site .cols { display: flex; gap: 70px; flex-wrap: wrap; }
footer.site .col h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 16px; font-weight: 700; }
footer.site .col a, footer.site .col p { display: block; font-size: 14.5px; margin-bottom: 10px; color: rgba(247,242,232,0.75); }
footer.site .col a:hover { color: var(--white); }
footer.site .social { display: flex; gap: 16px; margin-top: 16px; }
footer.site .social a { width: 36px; height: 36px; border: 1px solid rgba(247,242,232,0.25); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
footer.site .social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
footer.site .bottom { display: flex; justify-content: space-between; padding-top: 26px; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature-row, .intro .container, .access .container, .contact .container { grid-template-columns: 1fr; gap: 48px; }
  .feature-row .media img, .intro figure img { height: 380px; }
  .feature-row.reverse .media { order: 1; }
  .feature-row.reverse .copy { order: 2; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery-grid a.big { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 760px) {
  nav.main-nav ul, nav.main-nav .btn { display: none; }
  .burger { display: block; }
  nav.main-nav.mobile-open {
    display: flex; position: fixed; inset: 0; background: var(--cream);
    flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  }
  nav.main-nav.mobile-open ul { display: flex; flex-direction: column; align-items: center; gap: 26px; }
  nav.main-nav.mobile-open a.nav-link { color: var(--ink); font-size: 18px; }
  nav.main-nav.mobile-open .btn { display: inline-flex; }
  section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  form.contact-form { grid-template-columns: 1fr; }
  .hero .content { padding-bottom: 70px; }
  .scroll-cue { display: none; }
}
