/* ===== Résidence U Perone – feuille de style ===== */

:root {
  --cream: #f4eee0;
  --cream-dark: #ebe0c8;
  --stone: #7c7362;
  --charcoal: #383126;
  --terracotta: #d17609;
  --terracotta-dark: #b35f03;
  --green: #383126;
  --white: #ffffff;
  --border: #e2d6b8;
  --shadow: 0 10px 30px rgba(56, 49, 38, 0.1);
  --radius: 14px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-accent { color: var(--terracotta); }

.logo-mark { flex-shrink: 0; }

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-main { color: var(--terracotta); }

.logo-sub {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--stone);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.nav-cta {
  background: var(--terracotta);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--terracotta-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--charcoal);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(46,43,39,0.15) 0%, rgba(46,43,39,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px 56px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f0d9c8;
  margin-bottom: 14px;
  display: inline-block;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 780px;
  margin-bottom: 18px;
}

.hero p {
  max-width: 560px;
  font-size: 1.08rem;
  color: #f2ece2;
  margin-bottom: 28px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}

.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); }

.btn-outline {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  border-color: var(--charcoal);
  color: var(--charcoal);
}

.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }

/* ---------- Sections ---------- */

section { padding: 80px 0; }

.hero-photo-band {
  padding: 0;
  margin-top: -64px;
  position: relative;
  z-index: 3;
}

.hero-photo-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(56, 49, 38, 0.22);
  border: 6px solid var(--white);
}

.hero-photo-card img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.hero-photo-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--stone);
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta-dark);
  margin-bottom: 12px;
  display: block;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.bg-alt { background: var(--cream-dark); }

/* ---------- Features grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.features-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 900px) {
  .features-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .features-5 { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

.feature-card p { font-size: 0.92rem; color: var(--stone); margin: 0; }

/* ---------- Two-column intro ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split img, .split video {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  background: var(--charcoal);
}

.split ul { padding-left: 20px; margin: 18px 0 0; }
.split li { margin-bottom: 8px; }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery a:hover img { transform: scale(1.06); }

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery-preview a { border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow); }
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-preview a:hover img { transform: scale(1.08); }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- Pricing ---------- */

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px;
  max-width: 640px;
  margin: 0 auto;
}

.price-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.price-amount { font-family: "Fraunces", serif; font-size: 3rem; font-weight: 600; }
.price-period { color: var(--stone); font-size: 1rem; }

.price-note { color: var(--stone); font-size: 0.92rem; margin-bottom: 28px; }

.price-list { list-style: none; margin: 0 0 32px; padding: 0; }

.price-list li {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}

.price-list li:last-child { border-bottom: none; }

.price-list .label { color: var(--stone); }
.price-list .value { font-weight: 600; }

.tag {
  display: inline-block;
  background: var(--cream-dark);
  color: var(--terracotta-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.option-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}

.option-card h3 { color: var(--terracotta-dark); margin-bottom: 10px; }

.notice {
  background: var(--cream-dark);
  border-left: 4px solid var(--terracotta);
  border-radius: 8px;
  padding: 18px 22px;
  font-size: 0.92rem;
  color: var(--stone);
  margin-top: 32px;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-info-list { list-style: none; padding: 0; margin: 24px 0; }

.contact-info-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info-list .ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-list strong { display: block; margin-bottom: 2px; }
.contact-info-list span.muted { color: var(--stone); font-size: 0.92rem; }

form.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 18px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}

.form-row textarea { resize: vertical; min-height: 110px; }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-top: 28px;
}

.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

.map-placeholder {
  width: 100%;
  height: 320px;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.map-placeholder p { margin: 0; color: var(--stone); font-size: 0.88rem; max-width: 340px; }

/* ---------- Consent checkbox ---------- */

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--stone);
  margin: 4px 0 20px;
}

.consent-row input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

.consent-row a { color: var(--terracotta-dark); text-decoration: underline; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: var(--charcoal);
  color: #e7dfd0;
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner p {
  margin: 0;
  font-size: 0.88rem;
  max-width: 560px;
}

.cookie-banner a { color: #f0d9c8; text-decoration: underline; }

.cookie-banner .btn { padding: 10px 22px; font-size: 0.88rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  text-align: center;
}

.cta-band h2 { color: var(--white); }
.cta-band p { color: #dbe3d8; max-width: 480px; margin: 0 auto 26px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--charcoal);
  color: #cfc9c0;
  padding: 56px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 14px; }

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #a19b91;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-hero .section-label { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); max-width: 700px; }
.page-hero p { max-width: 620px; color: var(--stone); font-size: 1.05rem; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
  .options-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }
  .nav.open .nav-cta {
    display: inline-block;
    margin: 0 24px 20px;
  }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .price-card { padding: 28px; }
  .cta-band { padding: 36px 22px; }
}
