/* ==========================================================
   Grand Piquey – Cap Ferret · Site de vente
   Palette bord de mer : sable, blanc, bleu bassin
   ========================================================== */
:root {
  --navy: #16324f;
  --navy-dark: #0e2233;
  --blue: #3d6e8f;
  --sand: #f6f1e7;
  --sand-dark: #ece3d0;
  --white: #ffffff;
  --text: #2b333b;
  --muted: #6b7480;
  --accent: #b3552e; /* rouge cabane */
  --radius: 10px;
  --shadow: 0 6px 24px rgba(22, 50, 79, .10);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-dark);
}
header.site .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--navy); font-size: .92rem; font-weight: 500; }
.lang-switch {
  border: 1px solid var(--navy); border-radius: 999px; padding: 4px 14px;
  font-size: .82rem; font-weight: 600; color: var(--navy);
}
.lang-switch:hover { background: var(--navy); color: #fff; text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 62vh; display: flex; align-items: center;
  background: linear-gradient(rgba(14,34,51,.45), rgba(14,34,51,.55)), var(--navy);
  background-size: cover; background-position: center;
  color: #fff; text-align: center;
}
.hero .inner { width: 100%; padding: 90px 20px; }
.hero h1 { font-family: var(--font-display); font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 600; line-height: 1.15; }
.hero p.sub { margin-top: 16px; font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; max-width: 640px; margin-left: auto; margin-right: auto; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: all .2s ease; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9c4726; }
.btn-outline { border: 1.5px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.alt { background: var(--sand); }
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3.5vw, 2.4rem); color: var(--navy); font-weight: 600; text-align: center; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 12px auto 0; }

/* ---------- Property cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 44px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card .thumb { aspect-ratio: 16/10; background: var(--sand-dark); overflow: hidden; position: relative; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .thumb .price-tag {
  position: absolute; bottom: 12px; left: 12px; background: var(--navy);
  color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem;
}
.card .body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); font-weight: 600; }
.card p.desc { margin: 10px 0 18px; color: var(--muted); font-size: .94rem; flex: 1; }
.card .specs { display: flex; gap: 18px; flex-wrap: wrap; font-size: .88rem; color: var(--navy); font-weight: 600; margin-bottom: 20px; }
.card .specs span { display: flex; align-items: center; gap: 6px; }

/* ---------- Property detail page ---------- */
.prop-hero { padding: 56px 0 30px; }
.prop-hero h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); color: var(--navy); font-weight: 600; line-height: 1.2; }
.prop-hero .loc { color: var(--muted); margin-top: 8px; font-size: 1.02rem; }
.prop-hero .price { font-size: 1.7rem; font-weight: 700; color: var(--accent); margin-top: 14px; }
.prop-hero .price small { font-size: .85rem; color: var(--muted); font-weight: 400; }

.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 34px 0; }
.keyfacts .fact { background: var(--sand); border-radius: var(--radius); padding: 18px 14px; text-align: center; }
.keyfacts .fact .num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy); }
.keyfacts .fact .lbl { font-size: .8rem; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 30px; }
.gallery a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--sand-dark); }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,20,30,.93); z-index: 100;
  display: none; align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 6px; }
.lightbox button {
  position: absolute; background: none; border: none; color: #fff; font-size: 2.4rem;
  cursor: pointer; padding: 10px 18px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lightbox .lb-close { top: 12px; right: 16px; }
.lightbox .lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 8px; top: 50%; transform: translateY(-50%); }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 36px; margin-top: 24px; }
.features li { list-style: none; padding-left: 26px; position: relative; }
.features li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.prose { max-width: 760px; }
.prose p { margin-bottom: 16px; }
.prose h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.7rem; margin: 34px 0 14px; font-weight: 600; }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
@media (max-width: 800px) { .loc-grid { grid-template-columns: 1fr; } }
.loc-grid iframe { width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Contact ---------- */
.contact-box {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 54px 40px; text-align: center; margin-top: 10px;
}
.contact-box h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.contact-box p { opacity: .85; max-width: 520px; margin: 12px auto 26px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--navy-dark); color: rgba(255,255,255,.75);
  padding: 36px 0; font-size: .85rem; text-align: center;
}
footer.site a { color: rgba(255,255,255,.9); }
footer.site .legal { margin-top: 10px; font-size: .75rem; opacity: .6; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: .85rem; color: var(--muted); padding-top: 22px; }

@media (max-width: 640px) {
  nav.main a.hide-mobile { display: none; }
  .contact-box { padding: 40px 22px; }
}
