/* =====================================================================
   Cabinet d'ostéopathie Florian Bozzetti — feuille de styles
   Palette apaisante : vert sauge, sable, accent terre cuite.
   ===================================================================== */

:root {
  --sage:       #3f6b5c;   /* couleur principale */
  --sage-dark:  #2c5045;   /* survol */
  --forest:     #1d332c;   /* titres / sections sombres */
  --sage-soft:  #e6eee9;   /* fonds teintés */
  --sage-line:  #d3e0d8;   /* bordures */
  --sand:       #f6f1e9;   /* fond chaud */
  --clay:       #c9825b;   /* accent */

  --ink:   #1f2b27;
  --muted: #5b6863;
  --bg:    #fbfaf7;
  --white: #ffffff;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(29, 51, 44, 0.09);
  --shadow-sm: 0 6px 18px rgba(29, 51, 44, 0.07);
  --maxw: 1160px;
  --edge: 22px;

  --ff-head: "Fraunces", Georgia, serif;
  --ff-body: "Manrope", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--ff-head); font-weight: 500; line-height: 1.15; color: var(--forest); margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--edge); }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1rem;
}
.eyebrow--light { color: #a9cbbd; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1.25rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1em; height: 1em; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--sage); color: var(--white); }
.btn--primary:hover { background: var(--sage-dark); }
.btn--ghost { border-color: var(--sage-line); color: var(--forest); background: transparent; }
.btn--ghost:hover { border-color: var(--sage); }
.btn--light { background: var(--white); color: var(--forest); }
.btn--light:hover { background: var(--sand); }
.btn:focus-visible, .nav__link:focus-visible, .tabs__list button:focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .85);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--sage-line), var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__logo { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem; color: var(--forest); }
.brand__text span { font-size: .78rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__link { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
  background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(60% 70% at 100% 0%, var(--sage-soft) 0%, transparent 70%),
    radial-gradient(50% 60% at 0% 100%, var(--sand) 0%, transparent 70%);
}
.hero__inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 em { font-style: italic; color: var(--sage); }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.hero__lead strong { color: var(--ink); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 2.2rem; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts strong { font-family: var(--ff-head); font-size: 1.5rem; font-weight: 500; color: var(--forest); }
.hero__facts span { font-size: .88rem; color: var(--muted); }

.hero__card {
  position: relative; overflow: hidden;
  background: var(--forest); color: #e5eee9;
  border-radius: 32px; padding: 2.2rem;
  box-shadow: var(--shadow);
}
.hero__card > *:not(.hero__shape) { position: relative; z-index: 1; }
.hero__shape { position: absolute; width: 340px; right: -120px; top: -110px; fill: var(--sage); opacity: .55; }
.hero__card-title { color: var(--white); font-size: 1.6rem; margin-bottom: 1.4rem; }
.hero__list { margin: 0 0 1.8rem; display: grid; gap: 1.2rem; }
.hero__list dt { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #a9cbbd; margin-bottom: .2rem; }
.hero__list dd { margin: 0; line-height: 1.55; }
.hero__list small { color: #a9cbbd; font-size: .85rem; }

.status {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 600;
  background: rgba(255,255,255,.1); border-radius: 999px; padding: .35rem .8rem; margin-bottom: 1.2rem;
}
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #e0a37e; }
.status.is-open .status__dot { background: #7fd3a6; box-shadow: 0 0 0 4px rgba(127,211,166,.2); }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--tinted { background: var(--sand); }
.section--dark { background: var(--forest); color: #d8e4de; }
.section--dark h2 { color: var(--white); }
.section__head { max-width: 46rem; margin-bottom: 3rem; }
.section__head p:last-child { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--sage-line);
  border-radius: var(--radius); padding: 2rem;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.card__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--sage-soft); display: grid; place-items: center; margin-bottom: 1.3rem;
}
.card__icon svg { width: 22px; height: 22px; fill: var(--sage); }
.card--info p + p { margin-top: .8rem; }
.price { font-family: var(--ff-head); font-size: 3rem; color: var(--sage) !important; line-height: 1; margin-bottom: 1rem !important; }
.link { display: inline-block; margin-top: 1rem; font-weight: 600; color: var(--sage); text-decoration: none; }
.link:hover { text-decoration: underline; }

.symptoms { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.symptoms li {
  padding: .45rem 1rem; border-radius: 999px;
  background: var(--sage-soft); color: var(--sage-dark); font-size: .9rem; font-weight: 500;
}

/* ---------- Onglets ---------- */
.tabs__list {
  display: inline-flex; flex-wrap: wrap; gap: .35rem;
  background: var(--white); border: 1px solid var(--sage-line);
  border-radius: 999px; padding: .35rem; margin-bottom: 2rem;
}
.tabs__list button {
  font: inherit; font-size: .95rem; font-weight: 600;
  border: 0; background: transparent; color: var(--muted);
  padding: .6rem 1.2rem; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.tabs__list button:hover { color: var(--forest); }
.tabs__list button[aria-selected="true"] { background: var(--sage); color: var(--white); }
.tabs__panel {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
  background: var(--white); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  animation: fade .35s ease;
}
.tabs__panel[hidden] { display: none; }
.panel__text p { color: var(--muted); }
.note {
  font-size: .9rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  background: var(--sand); border-left: 3px solid var(--clay);
}
.checklist { display: grid; gap: .85rem; align-content: start; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; font-weight: 500; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233f6b5c' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--sage-line); }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--clay);
}
.step__num { font-family: var(--ff-head); font-size: 2.4rem; color: var(--sage); line-height: 1; display: block; margin-bottom: .8rem; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Praticien ---------- */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__portrait {
  aspect-ratio: 4 / 5; border-radius: 200px 200px 32px 32px;
  background: linear-gradient(160deg, var(--sage) 0%, #2a4a40 100%);
  display: grid; place-items: center;
}
.about__portrait span { font-family: var(--ff-head); font-size: 5rem; color: rgba(255,255,255,.35); }
.about__content p { font-size: 1.1rem; }
.timeline { margin-top: 2rem; display: grid; gap: 1rem; }
.timeline li {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.timeline strong { color: var(--white); font-weight: 600; }
.timeline span { color: #a9cbbd; }

/* ---------- Horaires ---------- */
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .42rem 0; text-align: left; border-bottom: 1px dashed var(--sage-line); }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { text-align: right; font-weight: 600; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--sage); }
.hours tr.is-today th::after { content: " · aujourd'hui"; font-size: .8rem; font-weight: 600; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact__text p { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.8rem; }
.contact__map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sage-soft); }
.contact__map iframe { width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest); color: #a9cbbd; padding: 2.5rem 0; font-size: .92rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer__brand { display: flex; align-items: center; gap: .8rem; }
.footer__brand div { display: flex; flex-direction: column; line-height: 1.3; }
.footer__brand strong { color: var(--white); font-family: var(--ff-head); font-weight: 500; font-size: 1.05rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--white); }
.footer__copy { margin: 0; width: 100%; font-size: .85rem; opacity: .8; }

/* ---------- Bouton d'appel mobile ---------- */
.call-fab {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--clay); box-shadow: 0 10px 25px rgba(201,130,91,.45);
  place-items: center;
}
.call-fab svg { width: 24px; height: 24px; fill: var(--white); }

/* ---------- Page simple (mentions légales) ---------- */
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal p { color: var(--muted); }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); padding: .5rem var(--edge) 1.5rem;
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .25s, opacity .25s, visibility .25s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: .9rem 0; border-bottom: 1px solid var(--sage-line); }
  .nav__link::after { display: none; }
  .nav__phone { margin-top: 1rem; }

  .hero__inner, .about, .contact, .tabs__panel { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; }
  .about__portrait { max-width: 280px; }
  .tabs__panel { gap: 2rem; }
}
@media (max-width: 640px) {
  :root { --edge: 16px; }
  .grid--3, .steps { grid-template-columns: 1fr; }
  .tabs__list { display: flex; border-radius: var(--radius-sm); }
  .tabs__list button { flex: 1 1 45%; border-radius: 9px; padding: .6rem .5rem; font-size: .88rem; }
  .hero__facts { gap: 1.4rem; }
  .hero__card { padding: 1.7rem; border-radius: 24px; }
  .call-fab { display: grid; }
  .contact__map iframe { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
