/* =========================================================
   Cécile Alzina — Ostéopathe D.O.
   Design system : Nature & montagne
   ========================================================= */

:root {
  --beige-sable:   #EDE5D8;
  --vert-sauge:    #9CAF94;
  --vert-sauge-dk: #7A8E73;
  --blanc-casse:   #FAF7F2;
  --bleu-glacier:  #B8D4DE;
  --terre:         #6B5B47;
  --pierre:        #A89A85;
  --noir:          #2A2520;
  --whatsapp:      #25D366;
  --whatsapp-dk:   #128C7E;

  --serif: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(42, 37, 32, 0.06);
  --shadow:    0 4px 16px rgba(42, 37, 32, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 37, 32, 0.12);

  --header-h: 72px;

  --t-fast: 180ms ease;
  --t-med:  320ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--terre);
  background: var(--blanc-casse);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--noir);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 400; }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert-sauge-dk);
  margin-bottom: 1rem;
}

.lede { font-size: 1.12rem; color: var(--pierre); }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: clamp(4rem, 8vw, 7rem) 0; }
section + section { border-top: 1px solid rgba(168, 154, 133, 0.15); }

.section-head { max-width: 720px; margin-bottom: 3.5rem; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }

.btn--whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn--whatsapp:hover { background: var(--whatsapp-dk); box-shadow: var(--shadow); }

.btn--primary { background: var(--noir); color: var(--blanc-casse); }
.btn--primary:hover { background: var(--terre); }

.btn--outline { border: 1px solid var(--terre); color: var(--terre); }
.btn--outline:hover { background: var(--terre); color: var(--blanc-casse); }

.btn--ghost { color: var(--terre); padding: 0.6rem 0.9rem; }
.btn--ghost:hover { color: var(--noir); }

.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(168, 154, 133, 0.12);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-size: 1.25rem; color: var(--noir); letter-spacing: 0.01em; }
.brand__title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--pierre); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 1.8rem; }
.nav__list { display: flex; gap: 1.8rem; }
.nav__link {
  font-size: 0.95rem;
  color: var(--terre);
  padding: 0.4rem 0;
  position: relative;
  transition: color var(--t-fast);
}
.nav__link:hover { color: var(--noir); }
.nav__link::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--vert-sauge);
  transition: width var(--t-fast);
}
.nav__link:hover::after { width: 100%; }

.lang-switch { display: flex; gap: 0.4rem; align-items: center; font-size: 0.82rem; letter-spacing: 0.06em; }
.lang-switch a {
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--pierre);
  text-transform: uppercase;
  transition: color var(--t-fast);
}
.lang-switch a:hover { color: var(--noir); }
.lang-switch a.is-active { color: var(--noir); font-weight: 500; }
.lang-switch span { color: var(--pierre); opacity: 0.4; }

.header__cta { display: flex; align-items: center; gap: 1rem; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--noir);
  position: relative;
  transition: background var(--t-fast);
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1.5px;
  background: var(--noir);
  transition: transform var(--t-fast);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after  { top: 7px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--blanc-casse) 0%, var(--beige-sable) 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero__title em { font-style: italic; color: var(--vert-sauge-dk); }
.hero__lede { max-width: 32rem; margin-bottom: 2rem; font-size: 1.18rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero__image img,
.hero__image svg { width: 100%; height: 100%; object-fit: cover; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about__images figure {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about__images img,
.about__images svg { width: 100%; height: 100%; object-fit: cover; }

.about p + p { margin-top: 1rem; }
.about__values {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.about__values li {
  font-size: 0.85rem;
  padding: 0.45rem 0.95rem;
  background: var(--blanc-casse);
  border: 1px solid rgba(156, 175, 148, 0.4);
  color: var(--vert-sauge-dk);
  border-radius: 999px;
}

/* ---------- Osteopathy / Indications ---------- */
.osteo { background: var(--beige-sable); }
.indications {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.indication {
  background: var(--blanc-casse);
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius);
  transition: transform var(--t-med), box-shadow var(--t-med);
  border: 1px solid rgba(168, 154, 133, 0.12);
}
.indication:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.indication__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bleu-glacier);
  color: var(--noir);
  border-radius: 50%;
  margin-bottom: 1.1rem;
}
.indication__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.indication h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.indication p { font-size: 0.95rem; color: var(--pierre); }

/* ---------- Cabinets ---------- */
.cabinets__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.cabinet {
  background: var(--blanc-casse);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(168, 154, 133, 0.15);
  display: flex;
  flex-direction: column;
}
.cabinet__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--beige-sable);
}
.cabinet__image img,
.cabinet__image svg { width: 100%; height: 100%; object-fit: cover; }
.cabinet__body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.cabinet__city {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert-sauge-dk);
  margin-bottom: 0.4rem;
}
.cabinet h3 { margin-bottom: 0.8rem; }
.cabinet__address {
  font-style: normal;
  color: var(--terre);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}
.cabinet__hours {
  font-size: 0.92rem;
  color: var(--pierre);
  margin-bottom: 1.5rem;
}
.cabinet__map {
  border: 0;
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  filter: grayscale(0.15) contrast(0.98);
}
.cabinet__ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: auto; }

/* ---------- Contact ---------- */
.contact { background: var(--beige-sable); text-align: center; }
.contact__box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--blanc-casse);
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.contact__phone {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--noir);
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.02em;
}
.contact__note { color: var(--pierre); margin-top: 1.5rem; font-size: 0.95rem; }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin: 1.5rem 0 0.5rem; }
.contact__addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(168, 154, 133, 0.2);
  text-align: left;
}
.contact__addresses h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--vert-sauge-dk);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.contact__addresses address {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- WhatsApp FAB ---------- */
.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.fab:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5); }
.fab svg { width: 28px; height: 28px; color: #fff; }

/* ---------- Footer ---------- */
.footer {
  background: var(--noir);
  color: var(--beige-sable);
  padding: 2.5rem 0;
  font-size: 0.88rem;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer__links { display: flex; gap: 1.5rem; }
.footer a { color: var(--beige-sable); opacity: 0.8; transition: opacity var(--t-fast); }
.footer a:hover { opacity: 1; text-decoration: underline; }

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Legal page ---------- */
.legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal h1 { margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: 0.8rem; }
.legal p { margin-bottom: 1rem; max-width: 720px; }
.legal a { color: var(--vert-sauge-dk); text-decoration: underline; }
.legal .placeholder-mark {
  background: rgba(184, 212, 222, 0.4);
  padding: 0 0.3rem;
  border-radius: 3px;
  font-style: italic;
}

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--vert-sauge);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__image { max-width: 480px; margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; }
  .cabinets__grid { grid-template-columns: 1fr; }
  .contact__addresses { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .menu-toggle { display: flex; }

  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    bottom: 0;
    background: var(--blanc-casse);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    border-top: 1px solid rgba(168, 154, 133, 0.15);
  }
  .nav.is-open .nav__list {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }
  .nav.is-open .nav__link { font-size: 1.2rem; }

  .header__cta .btn--whatsapp { display: none; }
  .footer__inner { flex-direction: column; text-align: center; }
}
