/* ── Variables ──────────────────────────────────────────────── */
:root {
  --ivory:      #FAF8F4;
  --ivory-mid:  #F3F0EA;
  --dark:       #1A1815;
  --dark-hero:  #181612;
  --gold:       #B8933F;
  --gold-light: #D4AA5A;
  --muted:      #6b6860;
  --border:     #E5E0D6;
  --serif:      'Cormorant Garamond', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background-color: var(--ivory);
  color: var(--dark);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ─────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.75rem;
  background-color: rgba(250, 248, 244, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  gap: 1rem;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--dark);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--gold); }

/* ── Hero ───────────────────────────────────────────────────── */
#accueil {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  /* Fallback dark background — replaced by image when available */
  background-color: var(--dark-hero);
  background-image: url('images/villas-castan-hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Dark overlay over the hero image */
#accueil::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 9, 7, 0.50);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
}

#accueil h1 {
  font-family: var(--serif);
  font-size: clamp(3.75rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 1.05;
  color: #FAF8F4;
  margin-bottom: 1.5rem;
}

#accueil h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(250, 248, 244, 0.72);
  margin-bottom: 1rem;
}

.hero-address {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(250, 248, 244, 0.42);
  margin-bottom: 2.75rem;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory);
  background-color: var(--dark);
  padding: 0.95rem 2.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s;
}

.btn:hover {
  background-color: var(--gold);
}

.btn-light {
  background-color: transparent;
  border-color: rgba(250, 248, 244, 0.4);
  color: var(--ivory);
}

.btn-light:hover {
  background-color: var(--gold);
  border-color: var(--gold);
}

/* ── Container ──────────────────────────────────────────────── */
.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2.75rem;
}

/* ── Section spacing ────────────────────────────────────────── */
section {
  padding: 7.5rem 0;
}

/* ── Typography ─────────────────────────────────────────────── */
.section-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--dark);
  margin-bottom: 2rem;
}

.body-text {
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: 0.94rem;
  font-weight: 300;
  line-height: 1.95;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 3rem;
}

/* ── Two-column grid (Projet & Architecture) ─────────────────── */
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.two-col-grid.reverse {
  direction: rtl;
}

.two-col-grid.reverse > * {
  direction: ltr;
}

/* Image columns — elegant placeholder when image is missing */
.col-image {
  background-color: var(--ivory-mid);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Projet section ─────────────────────────────────────────── */
#projet {
  border-bottom: 1px solid var(--border);
}

/* ── Architecture section ───────────────────────────────────── */
#architecture {
  background-color: var(--ivory-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.archi-list {
  list-style: none;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}

.archi-list li {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--muted);
  padding: 0.8rem 0 0.8rem 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.archi-list li::before {
  content: '—';
  color: var(--gold);
  position: absolute;
  left: 0;
}

/* ── Prestations / Cards ────────────────────────────────────── */
#prestations {
  border-bottom: 1px solid var(--border);
}

#prestations h2 {
  margin-bottom: 3.5rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  background-color: #fff;
}

.card-number {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.85rem;
}

.card p {
  font-size: 0.84rem;
  font-weight: 300;
  line-height: 1.82;
  color: var(--muted);
}

/* ── Situation section ──────────────────────────────────────── */
#situation {
  border-bottom: 1px solid var(--border);
}

.situation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
  align-items: start;
}

.situation-address {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--dark);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.situation-list {
  list-style: none;
  border-top: 1px solid var(--border);
}

.situation-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.list-label {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--dark);
}

.list-value {
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  text-align: right;
  flex-shrink: 0;
}

/* ── Map ────────────────────────────────────────────────────── */
.map-wrap {
  width: 100%;
  background-color: var(--ivory-mid);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.07);
  aspect-ratio: 2 / 1;
}

.map-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Contact section ────────────────────────────────────────── */
.contact-form {
  max-width: 640px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-row .form-group {
  margin-bottom: 0;
}

label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
}

input,
textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--dark);
  background-color: #fff;
  border: 1px solid var(--border);
  padding: 0.9rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}

input::placeholder,
textarea::placeholder {
  color: #c4bdb4;
}

input:focus,
textarea:focus {
  border-color: var(--gold);
}

textarea {
  resize: vertical;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 2rem;
  text-align: center;
  background-color: var(--ivory);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.footer-address {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.footer-tagline {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.4rem;
}

.footer-copy {
  font-size: 0.68rem;
  font-weight: 300;
  color: #b0aa9f;
  margin-top: 0.5rem;
}

/* ── Responsive — tablet ────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col-grid,
  .two-col-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    direction: ltr;
  }

  .two-col-grid.reverse > * {
    direction: ltr;
  }

  .situation-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 2.75rem;
  }
}

/* ── Responsive — mobile ────────────────────────────────────── */
@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }

  .nav-links {
    gap: 1.1rem;
  }

  .nav-links a {
    font-size: 0.6rem;
  }

  section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .situation-list li {
    flex-direction: column;
    gap: 0.15rem;
  }

  .list-value {
    text-align: left;
    color: var(--gold);
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: none;
  }
}
