/* =========================================================
   Peisey Vallandry Realty — style.css
   Palette : blanc + pourpre (rouge vif) + noir
   ========================================================= */

:root {
  --c-bg: #ffffff;
  --c-soft: #f7f7f7;
  --c-text: #0a0a0a;
  --c-muted: #707070;
  --c-line: #e8e8e8;
  --c-accent: #E10600;
  --c-accent-2: #B30500;
  --c-gold: #E10600;
  --c-gold-light: #ff5757;
  --c-dark: #0a0a0a;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 24px 48px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.06);

  --container: 1200px;
}

/* ---------- Reset léger ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-accent);
  margin-bottom: 14px;
}

.lead { font-size: 1.1rem; color: var(--c-muted); }
.prose { color: #333; }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
}
.btn--primary:hover { background: var(--c-accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--gold {
  background: var(--c-gold);
  color: #fff;
}
.btn--gold:hover { background: #a48355; transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent;
  color: var(--c-accent);
  border: 1.5px solid var(--c-accent);
}
.btn--ghost:hover { background: var(--c-accent); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 247, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.nav__logo img { height: 36px; width: auto; }
.nav__menu {
  display: flex;
  gap: 32px;
  margin: 0 auto;
}
.nav__menu a {
  font-size: .95rem;
  color: var(--c-text);
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav__menu a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.nav__menu a:hover::after,
.nav__menu a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 10px 20px; font-size: .9rem; }
.nav__toggle { display: none; }
.nav__mobile { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero > .container {
  padding-top: 120px;
  padding-bottom: 120px;
  position: relative;
  z-index: 2;
}
.hero__content { max-width: 720px; }
.hero__content h1 { color: #fff; margin-bottom: .4em; }
.hero__content .lead {
  color: rgba(255,255,255,.92);
  font-size: 1.2rem;
  max-width: 580px;
  margin-bottom: 32px;
}
.hero__content .eyebrow { color: var(--c-gold-light); }
.hero__cta {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.hero__cta .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.hero__cta .btn--ghost:hover { background: #fff; color: var(--c-accent); }

/* Searchbar */
.searchbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 0;
  background: #fff;
  padding: 8px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  max-width: 720px;
}
.searchbar select,
.searchbar input {
  border: none;
  padding: 14px 18px;
  font: inherit;
  background: transparent;
  color: var(--c-text);
  border-right: 1px solid var(--c-line);
  outline: none;
}
.searchbar select:last-of-type,
.searchbar input { border-right: 1px solid var(--c-line); }
.searchbar input { border-right: none; }
.searchbar .btn { padding: 14px 24px; }

/* ---------- Sections ---------- */
.section {
  padding: 90px 0;
}
.section--soft { background: var(--c-soft); }
.section--dark {
  background: var(--c-dark);
  color: #f0f0f0;
}
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--c-gold-light); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head__text { max-width: 640px; }
.section-head h2 { margin-bottom: .4em; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.stat {
  text-align: center;
  padding: 8px 12px;
}
.stat__value {
  font-family: 'Playfair Display', serif;
  font-size: 2.6rem;
  font-weight: 500;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label {
  font-size: .9rem;
  color: var(--c-muted);
}

/* ---------- Split (À propos) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-gold);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.service-card h3 { margin-bottom: .4em; font-size: 1.2rem; }
.service-card p { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* ---------- Biens (cartes) ---------- */
.biens-grid {
  display: grid;
  /* cartes plafonnées à 400px + grille centrée : évite qu'une seule annonce
     s'étire sur toute la largeur (image plein écran), et garde des cartes
     de taille homogène quel que soit le nombre de biens */
  grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
  justify-content: center;
  gap: 28px;
}
.bien-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.bien-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.bien-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.bien-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.bien-card:hover .bien-card__media img { transform: scale(1.06); }
.bien-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--c-accent);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bien-card__body { padding: 22px; }
.bien-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--c-accent);
  margin-bottom: 4px;
}
.bien-card__title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.bien-card__location { color: var(--c-muted); font-size: .9rem; margin-bottom: 14px; }
.bien-card__meta {
  display: flex;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--c-line);
  font-size: .85rem;
  color: var(--c-muted);
}

/* ---------- Témoignages ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.testimonial {
  background: rgba(255,255,255,.05);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.1);
}
.testimonial__quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 24px;
  color: #f5f1e8;
}
.testimonial__author {
  font-weight: 600;
  font-size: .95rem;
}
.testimonial__role {
  font-size: .85rem;
  color: var(--c-gold-light);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-dark);
  color: #cdc6b8;
  padding: 70px 0 30px;
}
.site-footer h4 { color: #fff; margin-bottom: 18px; }
.site-footer a { color: #cdc6b8; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand img { height: 64px; margin-bottom: 16px; }
.footer-brand p { font-size: .92rem; max-width: 280px; }
.footer-grid ul li { margin-bottom: 10px; font-size: .92rem; }
.social { display: flex; gap: 12px; margin-top: 18px; }
.social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.social a:hover { background: var(--c-gold); color: #fff; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
  }
  .nav__toggle span {
    width: 22px; height: 2px;
    background: var(--c-text);
    transition: transform .3s;
  }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split img { height: 320px; }
  .searchbar { grid-template-columns: 1fr; border-radius: var(--radius); }
  .searchbar select, .searchbar input { border-right: none; border-bottom: 1px solid var(--c-line); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { margin-top: -30px; padding: 28px; }
  .section { padding: 60px 0; }
  .hero { min-height: 80vh; }
  .hero > .container { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat__value { font-size: 2rem; }
}
