/* ============================================================
   Zuri Massage Lausanne Wellness — style.css
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --green-900: #1f3329;
  --green-800: #2f4f3e;
  --green-700: #3c6451;
  --green-500: #5b8a72;
  --terracotta: #c97b5a;
  --terracotta-soft: #e0a989;
  --cream: #f7f2ea;
  --sand: #efe6d8;
  --ink: #25201b;
  --muted: #6f675d;

  --bg: var(--cream);
  --bg-alt: var(--sand);
  --surface: #ffffff;
  --text: var(--ink);
  --text-muted: var(--muted);
  --brand: var(--green-800);
  --brand-strong: var(--green-900);
  --accent: var(--terracotta);
  --border: rgba(37, 32, 27, 0.12);
  --shadow: 0 18px 40px -18px rgba(31, 51, 41, 0.35);
  --radius: 18px;

  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --maxw: 1160px;
}

[data-theme="dark"] {
  --bg: #14110e;
  --bg-alt: #1c1814;
  --surface: #221d18;
  --text: #f1ebe2;
  --text-muted: #b3a99c;
  --brand: #6fa388;
  --brand-strong: #8bbfa3;
  --accent: #e0a989;
  --border: rgba(241, 235, 226, 0.14);
  --shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.65);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  transition: background-color .4s ease, color .4s ease;
  overflow-x: hidden;
}
img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; letter-spacing: .2px; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.eyebrow { font-family: var(--font-body); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .6rem; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--text-muted); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand); color: #fff; padding: .7rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .98rem; padding: .85rem 1.6rem; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; margin-top: .5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-logo { border-radius: 50%; }
.brand-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--text); }
.brand-text em { font-style: italic; color: var(--accent); font-weight: 600; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-list a { font-size: .95rem; font-weight: 500; color: var(--text-muted); transition: color .2s ease; }
.nav-list a:hover { color: var(--brand); }
.nav-cta { background: var(--brand); color: #fff !important; padding: .55rem 1.1rem; border-radius: 999px; }
.nav-cta:hover { background: var(--brand-strong); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.lang-toggle, .theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .2s, transform .2s;
}
.lang-toggle { width: auto; padding-inline: .85rem; font-weight: 600; font-size: .85rem; }
.lang-toggle:hover, .theme-toggle:hover { border-color: var(--brand); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }

/* ---------- Slopes (séparations inclinées) ---------- */
.slope { position: absolute; left: 0; width: 100%; height: 70px; pointer-events: none; }
.slope-top { top: -1px; background: var(--bg); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 35%); }
.slope-bottom { bottom: -1px; background: var(--bg); clip-path: polygon(0 65%, 100% 100%, 100% 100%, 0 100%); }
.section-alt .slope-top { background: var(--bg); }
.section-alt .slope-bottom { background: var(--bg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(20,40,30,.78), rgba(31,51,41,.55)),
    url("assets/img/hero.jpg") center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(130deg, rgba(91,138,114,.45), rgba(201,123,90,.35), rgba(31,51,41,.55));
  background-size: 300% 300%;
  animation: gradientShift 14s ease infinite;
  mix-blend-mode: overlay;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.hero-inner { position: relative; max-width: 760px; padding-block: 6rem; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; font-weight: 600; color: var(--terracotta-soft); margin-bottom: 1rem; }
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero-lead { font-size: 1.2rem; max-width: 580px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.8rem 0 1.5rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 1.2rem; list-style: none; margin: 0; padding: 0; }
.hero-badges li { display: flex; align-items: center; gap: .5rem; font-size: .92rem; color: rgba(255,255,255,.9); }
.hero-badges li::before { content: "✦"; color: var(--terracotta-soft); }

/* ---------- Présentation ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1/1; }
.about-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.about-list li { position: relative; padding-left: 1.8rem; color: var(--text-muted); }
.about-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }

/* ---------- Cards / services ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.3rem 1.4rem 1.6rem; }
.card-body h3 { margin-bottom: .4rem; }
.card-body p { color: var(--text-muted); font-size: .96rem; }
.price { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--brand); margin: .6rem 0 0; }

.pricing { margin-top: 3rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow); }
.pricing h3 { margin-bottom: 1.2rem; }
.pricing-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; list-style: none; padding: 0; margin: 0; }
.pricing-list li { display: flex; flex-direction: column; gap: .2rem; }
.pricing-list .dur { font-size: .9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }
.pricing-list .amt { font-family: var(--font-head); font-size: 1.7rem; font-weight: 700; color: var(--brand); }

/* ---------- Reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; margin: 0; }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .8rem; }
.review blockquote { margin: 0 0 1rem; font-size: 1.02rem; font-style: italic; }
.review figcaption { color: var(--text-muted); font-weight: 600; font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--brand); transition: transform .25s ease; line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }

/* ---------- Location ---------- */
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.location-address { font-style: normal; line-height: 1.8; margin: 1rem 0; }
.location-address a { color: var(--brand); font-weight: 600; }
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.location-map iframe { width: 100%; height: 360px; border: 0; }
.map-link { display: block; text-align: center; padding: .7rem; background: var(--surface); color: var(--brand); font-weight: 600; font-size: .9rem; }

/* ---------- Contact form ---------- */
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; margin-bottom: 1.2rem; }
.field label { font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: .8rem .9rem; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); outline: none; }
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0492f; }
.error { color: #c0492f; font-size: .82rem; margin-top: .35rem; min-height: 1em; }

/* Honeypot — invisible */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

.form-status { text-align: center; font-weight: 600; margin-top: 1rem; min-height: 1.4em; }
.form-status.success { color: var(--brand); }
.form-status.error { color: #c0492f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #e7e0d4; padding-top: 3rem; }
[data-theme="dark"] .site-footer { background: #0f0d0b; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.5rem; }
.footer-brand .brand-text { color: #fff; font-size: 1.6rem; }
.footer-brand .brand-text em { color: var(--terracotta-soft); }
.footer-brand p { color: rgba(231,224,212,.75); margin-top: .5rem; }
.footer-nav { display: flex; flex-direction: column; gap: .6rem; }
.footer-nav a { color: rgba(231,224,212,.85); transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-contact { font-style: normal; line-height: 1.8; color: rgba(231,224,212,.85); }
.footer-contact a { color: var(--terracotta-soft); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.3rem 0; text-align: center; font-size: .88rem; color: rgba(231,224,212,.7); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .location-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-list {
    position: absolute; top: 100%; right: 1rem; left: 1rem;
    flex-direction: column; align-items: stretch; gap: .4rem;
    background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 1rem; box-shadow: var(--shadow);
    transform-origin: top; transform: scaleY(0); opacity: 0; pointer-events: none; transition: transform .25s ease, opacity .25s ease;
  }
  .nav-list.open { transform: scaleY(1); opacity: 1; pointer-events: auto; }
  .nav-list a { padding: .6rem .4rem; }
  .nav-cta { text-align: center; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg::after { animation: none; }
  html { scroll-behavior: auto; }
}
