/*
Theme Name: ZennBalance
Theme URI: https://www.zennbalance.online
Author: ZennBalance
Author URI: https://www.zennbalance.online
Description: Thème WordPress yoga en français pour Aix-en-Provence. Accueil, À propos, Prestations, Contact. Images Unsplash.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zennbalance
Tags: one-page, custom-menu, featured-images, translation-ready, health
*/

:root {
  --ink: #18241c;
  --olive: #2c4634;
  --olive-deep: #132018;
  --leaf: #4d7a5c;
  --lavender: #7a6b98;
  --clay: #c45a32;
  --gold: #c9a45c;
  --limestone: #f4eee4;
  --cream: #fbf7f0;
  --paper: #fffdf8;
  --muted: #6d756e;
  --line: rgba(24, 36, 28, 0.12);
  --header-h: 72px;
  --topbar-h: 36px;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.kicker-light {
  color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: none;
  background: var(--clay);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover {
  background: #a84a28;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--olive);
  border: 1px solid var(--olive);
}

.btn-ghost:hover {
  background: var(--olive);
  color: #fff;
}

.btn-dark {
  background: var(--olive);
}

.btn-dark:hover {
  background: var(--olive-deep);
}

.btn-full {
  width: 100%;
}

/* Top bar + header — full width, not a pill */
.topbar {
  position: relative;
  z-index: 60;
  display: flex;
  justify-content: center;
  gap: 28px;
  align-items: center;
  min-height: var(--topbar-h);
  padding: 0 20px;
  background: var(--olive-deep);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.topbar a:hover {
  color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--olive-deep);
  border-bottom-color: transparent;
  box-shadow: 0 12px 32px rgba(19, 32, 24, 0.28);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  font-style: italic;
  color: var(--olive);
  letter-spacing: -0.03em;
}

.logo span {
  font-style: normal;
  font-weight: 500;
  color: var(--clay);
  margin-left: 1px;
}

.site-header.is-scrolled .logo {
  color: var(--cream);
}

.site-header.is-scrolled .logo span {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle::before {
  top: 14px;
}

.nav-toggle::after {
  bottom: 14px;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-scrolled .nav-toggle span,
.site-header.is-scrolled .nav-toggle::before,
.site-header.is-scrolled .nav-toggle::after {
  border-color: rgba(255, 255, 255, 0.2);
  background: #fff;
}

.site-header.is-scrolled .nav-toggle {
  background: transparent;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  display: block;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--olive);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .primary-nav a {
  color: rgba(255, 255, 255, 0.72);
}

.site-header.is-scrolled .primary-nav a:hover,
.site-header.is-scrolled .primary-nav a.is-active {
  color: #fff;
}

.site-header.is-scrolled .primary-nav a::after {
  background: var(--gold);
}

.header-cta {
  min-height: 42px;
  padding: 0 20px;
  font-size: 13px;
}

/* Hero — split editorial collage, not a dark full-bleed overlay */
.hero,
.about,
.services,
.contact {
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 72px;
  min-height: calc(100vh - var(--header-h) - var(--topbar-h));
}

.hero-copy h1 {
  font-size: clamp(44px, 6.4vw, 78px);
  margin: 18px 0 22px;
  color: var(--olive-deep);
}

.hero-copy h1 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 500;
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-facts strong {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--olive);
  line-height: 1;
}

.hero-facts span {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-collage {
  position: relative;
  min-height: 560px;
}

.hero-vertical {
  position: absolute;
  left: -8px;
  top: 40%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 11px;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--lavender);
  z-index: 4;
}

.hero-photo {
  margin: 0;
  overflow: hidden;
  position: absolute;
  box-shadow: 0 24px 50px rgba(24, 36, 28, 0.18);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo-a {
  width: 58%;
  height: 420px;
  top: 0;
  right: 0;
  border-radius: 200px 18px 18px 18px;
}

.hero-photo-b {
  width: 46%;
  height: 260px;
  left: 0;
  bottom: 48px;
  border-radius: 18px 140px 18px 18px;
  z-index: 2;
  border: 6px solid var(--cream);
}

.hero-photo-c {
  width: 160px;
  height: 160px;
  right: 12%;
  bottom: 20px;
  border-radius: 50%;
  z-index: 3;
  border: 6px solid var(--cream);
}

.hero-chip {
  position: absolute;
  left: 8%;
  top: 36px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(24, 36, 28, 0.12);
}

.hero-chip img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.hero-chip strong {
  display: block;
  font-size: 13px;
}

.hero-chip span {
  font-size: 11px;
  color: var(--muted);
}

/* Marquee */
.marquee {
  background: var(--olive);
  color: var(--gold);
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid rgba(201, 164, 92, 0.25);
  border-bottom: 1px solid rgba(201, 164, 92, 0.25);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: drift 28s linear infinite;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  letter-spacing: 0.12em;
}

.marquee-track span::after {
  content: " · ";
  color: var(--clay);
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Practice rail — horizontal cards, not a bento */
.practices {
  padding: 96px 0 40px;
  background: var(--paper);
}

.section-intro {
  max-width: 560px;
  margin-bottom: 40px;
}

.section-intro h2 {
  font-size: clamp(34px, 5vw, 56px);
  margin: 10px 0 14px;
  color: var(--olive-deep);
}

.section-intro p {
  margin: 0;
  color: var(--muted);
}

.section-intro--light h2 {
  color: var(--cream);
}

.section-intro--light p {
  color: rgba(255, 255, 255, 0.72);
}

.practice-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 28px;
  scroll-snap-type: x mandatory;
}

.practice-card {
  scroll-snap-align: start;
  background: var(--limestone);
  min-width: 280px;
}

.practice-media {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.practice-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.practice-card:hover .practice-media img {
  transform: scale(1.08);
}

.practice-level {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 12px;
  background: var(--paper);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}

.practice-body {
  padding: 22px;
}

.practice-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.practice-meta h3 {
  margin: 0;
  font-size: 26px;
  color: var(--olive);
}

.practice-meta span {
  font-size: 12px;
  color: var(--clay);
  white-space: nowrap;
}

.practice-body p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* About — magazine gallery */
.about {
  padding: 100px 0;
  background:
    linear-gradient(180deg, transparent 0, transparent 40%, rgba(122, 107, 152, 0.08) 100%),
    var(--cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: start;
}

.about-story h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  margin: 12px 0 20px;
  color: var(--olive-deep);
}

.about-story p {
  color: var(--muted);
  margin: 0 0 16px;
}

.about-points {
  list-style: none;
  margin: 32px 0 36px;
  padding: 0;
  display: grid;
  gap: 18px;
}

.about-points li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.about-points span {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--lavender);
  line-height: 1.2;
}

.about-points strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.about-points p {
  margin: 0;
  font-size: 14px;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 280px 200px;
  gap: 16px;
  position: relative;
}

.about-gallery figure {
  margin: 0;
  overflow: hidden;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-main {
  grid-row: 1 / 2;
  border-radius: 0 80px 0 0;
}

.about-side {
  grid-row: 1 / 2;
  border-radius: 80px 0 80px 0;
}

.about-wide {
  grid-column: 1 / -1;
  border-radius: 0 0 0 80px;
}

.about-badge {
  position: absolute;
  left: 24px;
  bottom: 36px;
  background: var(--olive);
  color: #fff;
  padding: 18px 22px;
}

.about-badge strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  display: block;
  line-height: 1.15;
}

.about-badge span {
  font-size: 12px;
  color: var(--gold);
}

/* Services — numbered editorial rows on olive */
.services {
  padding: 90px 0 100px;
  background: var(--olive-deep);
  color: #fff;
}

.service-stack {
  display: grid;
  gap: 28px;
  margin-bottom: 56px;
}

.service-row {
  display: grid;
  grid-template-columns: 90px 1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.service-row--flip {
  direction: rtl;
}

.service-row--flip > * {
  direction: ltr;
}

.service-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-style: italic;
  color: var(--gold);
  line-height: 1;
}

.service-copy h3 {
  margin: 0 0 10px;
  font-size: 32px;
}

.service-copy p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
}

.service-copy ul {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-copy li {
  padding: 4px 12px;
  border: 1px solid rgba(201, 164, 92, 0.4);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.service-copy a {
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
  border-bottom: 1px solid currentColor;
}

.service-shot {
  margin: 0;
  height: 220px;
  overflow: hidden;
  border-radius: 120px 12px 12px 12px;
}

.service-row--flip .service-shot {
  border-radius: 12px 12px 120px 12px;
}

.service-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service-row:hover .service-shot img {
  transform: scale(1.06);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.mosaic-lg {
  margin: 0;
  position: relative;
  min-height: 360px;
  overflow: hidden;
}

.mosaic-lg img,
.mosaic-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-lg figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--olive);
  font-size: 13px;
  font-weight: 600;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.mosaic-grid img {
  height: 172px;
}

/* Contact */
.contact {
  padding: 90px 0;
  background: var(--limestone);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.contact-panel {
  background: var(--olive);
  color: #fff;
  padding: 48px 44px;
}

.contact-panel h2 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 12px 0 14px;
}

.contact-panel > p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 28px;
}

.contact-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-list span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.contact-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.contact-list em {
  display: block;
  font-style: normal;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.contact-map {
  height: 220px;
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.contact-form-card {
  background: var(--paper);
  padding: 40px 36px;
  border-top: 6px solid var(--clay);
}

.contact-form-card h3 {
  margin: 0 0 8px;
  font-size: 32px;
  color: var(--olive);
}

.contact-form-card > p {
  margin: 0 0 24px;
  color: var(--muted);
}

.contact-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 6px;
  color: var(--olive);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-bottom: 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom-color: var(--clay);
}

.form-note {
  min-height: 1.4em;
  font-size: 14px;
  color: var(--leaf);
}

/* Footer */
.site-footer {
  background: var(--olive-deep);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.site-footer .logo {
  color: #fff;
  display: inline-block;
  margin-bottom: 12px;
}

.site-footer .logo span {
  color: var(--gold);
}

.footer-col h4 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a:hover,
.footer-bar a:hover {
  color: #fff;
}

.footer-col p {
  margin: 0 0 12px;
  font-size: 14px;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  padding: 14px 20px;
  background: var(--olive);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.inner-page {
  padding: 80px 0 100px;
}

.entry-content h1 {
  font-size: 48px;
  margin-top: 0;
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .contact-grid,
  .mosaic,
  .service-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
    padding-top: 32px;
  }

  .hero-collage {
    min-height: 460px;
  }

  .service-row--flip {
    direction: ltr;
  }

  .about-gallery {
    grid-template-rows: 240px 180px;
  }

  .mosaic-lg {
    min-height: 280px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .site-header.is-scrolled .primary-nav {
    background: var(--olive-deep);
  }

  .header-cta {
    display: none;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hero-collage {
    min-height: 400px;
  }

  .hero-photo-a {
    height: 300px;
  }

  .hero-photo-b {
    height: 180px;
  }

  .hero-photo-c {
    width: 110px;
    height: 110px;
  }

  .hero-vertical {
    display: none;
  }

  .practice-rail {
    grid-auto-columns: minmax(240px, 78vw);
  }

  .about-gallery {
    grid-template-columns: 1fr 1fr;
  }
}
