/* Baptiste Marcotte – Ostéopathe à Meulan-en-Yvelines */

:root {
  --paper: #f6f3ec;
  --paper-2: #ede8dc;
  --surface: #ffffff;
  --ink: #1c2623;
  --ink-2: #3a4743;
  --muted: #5b6863;
  --green: #2e6a58;
  --green-ink: #1f4d40;
  --green-soft: #dbe8e1;
  --green-tint: #eff5f2;
  --gold: #b9822a;
  --clay: #b0603a;
  --line: #e1dacd;
  --focus: #e0a43a;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(28, 38, 35, 0.05), 0 10px 30px rgba(28, 38, 35, 0.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.35rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

.ico {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.eyebrow {
  font: 600 0.78rem/1.3 var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.9rem;
}
.lead { font-size: clamp(1.08rem, 1rem + 0.4vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font: 600 1rem/1.2 var(--sans);
  padding: 0.85em 1.3em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none; text-align: center;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-ink); color: #fff; }
.btn-secondary { border-color: var(--green); color: var(--green); background: transparent; }
.btn-secondary:hover { background: var(--green-tint); color: var(--green-ink); }
.btn-lg { padding: 1em 1.5em; font-size: 1.04rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* En-tête */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 243, 236, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font: 500 1.02rem/1 var(--serif); letter-spacing: 0.03em;
}
img.brand-mark { display: block; object-fit: cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--green-soft); }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; white-space: nowrap; }
.brand-text strong { font: 600 1.08rem/1.2 var(--serif); }
.brand-text span { font-size: 0.8rem; color: var(--muted); }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: 0.5em 0.8em; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; white-space: nowrap;
}
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--green-soft); color: var(--green-ink); }
.header-cta { padding: 0.7em 1.15em; font-size: 0.95rem; white-space: nowrap; }

@media (max-width: 1180px) {
  .header-inner { flex-wrap: wrap; row-gap: 0; padding-top: 12px; }
  .nav {
    order: 3; width: calc(100% + 8px); margin-inline: -4px;
    overflow-x: auto; padding: 8px 0 10px;
    scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
}
@media (max-width: 720px) {
  .header-cta { display: none; }
  .header-inner { min-height: 0; }
}

/* Courbe décorative */
.spine {
  position: absolute; z-index: 0; pointer-events: none;
  top: -30px; right: max(-60px, calc((100vw - 1160px) / 2 - 140px));
  height: calc(100% + 60px); width: auto;
  color: #d3e2da;
}
@media (max-width: 880px) { .spine { right: -110px; opacity: 0.55; } }

/* Accueil : bandeau */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(52px, 7vw, 96px); }
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.trust {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  color: var(--muted); font-size: 0.95rem;
}
.trust li, .trust a { display: inline-flex; align-items: center; gap: 8px; }
.trust a { color: inherit; text-decoration: none; }
.trust a:hover { color: var(--ink); text-decoration: underline; }
.trust strong { color: var(--ink); }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars svg { width: 1em; height: 1em; fill: currentColor; stroke: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.practical { padding: clamp(22px, 3vw, 30px); }
.card-title { font-size: 1.35rem; margin-bottom: 18px; }
.facts { margin: 0 0 22px; display: grid; gap: 0; }
.facts > div { padding: 14px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt {
  display: flex; align-items: center; gap: 8px;
  font: 600 0.76rem/1.3 var(--sans); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.facts dt .ico { color: var(--green); width: 1.25em; height: 1.25em; }
.facts dd { margin: 6px 0 0; padding-left: calc(1.25em + 8px); font-size: 1rem; color: var(--ink); }
.facts dd a { font-weight: 600; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.tinted { background: var(--paper-2); }
.section-head { max-width: 42em; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p:last-child { color: var(--ink-2); margin-bottom: 0; }

.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards-4 { grid-template-columns: 1fr; } }
.audience {
  display: flex; flex-direction: column;
  padding: 26px 24px 24px; text-decoration: none; color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.audience:hover { transform: translateY(-3px); border-color: #c5d9cf; color: var(--ink); box-shadow: 0 2px 4px rgba(28,38,35,.05), 0 16px 36px rgba(28,38,35,.1); }
.audience h3 { margin-bottom: 0.45em; }
.audience p { color: var(--ink-2); font-size: 0.98rem; flex: 1; }
.tag {
  align-self: flex-start;
  font-size: 0.78rem; font-weight: 600; color: var(--green-ink);
  background: var(--green-soft); padding: 0.35em 0.8em; border-radius: 999px; margin-bottom: 18px;
}
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--green); font-size: 0.95rem; }

.two-col {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.3fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
@media (max-width: 880px) { .two-col { grid-template-columns: 1fr; } }
.motifs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .motifs { grid-template-columns: 1fr; } }
.motif { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.motif h3 { font-size: 1.08rem; margin-bottom: 0.35em; }
.motif p { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  counter-reset: step;
}
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; gap: 8px; } }
.steps li { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 12px;
  font: 500 2rem/1 var(--serif); color: var(--green);
}
.steps p { color: var(--ink-2); font-size: 0.98rem; }

.bio { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.bio-photo { display: block; }
.bio-photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
  background: var(--paper);
}
@media (max-width: 720px) {
  .bio-photo { width: 180px; }
}
@media (max-width: 720px) {
  .bio { grid-template-columns: 1fr; }
}
.chips { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-size: 0.88rem; padding: 0.38em 0.85em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2);
}

.reviews { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 760px) { .reviews { grid-template-columns: 1fr; } }
.rating-card { padding: 32px 28px; text-align: center; }
.rating-score { font: 500 3.6rem/1 var(--serif); margin: 0 0 8px; }
.rating-score span { font-size: 1.4rem; color: var(--muted); }
.rating-card .stars { justify-content: center; font-size: 1.3rem; margin-bottom: 10px; }
.rating-card p { color: var(--ink-2); }
.rating-card .small { margin-bottom: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq details[open] { border-color: #c5d9cf; }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 36px 18px 0; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Bandeau final */
.cta-band { background: var(--green); color: #dbe9e3; padding: clamp(48px, 7vw, 80px) 0; }
.cta-band h2 { color: #fff; margin-bottom: 0.35em; }
.cta-band p { margin: 0; color: #d3e5dd; max-width: 34em; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta-band .actions { margin-top: 0; }
.cta-band .btn-primary { background: #fff; color: var(--green-ink); }
.cta-band .btn-primary:hover { background: var(--green-soft); }
.cta-band .btn-secondary { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.cta-band .area { max-width: none; }
.area { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.93rem; color: #c3d9cf; }

/* Pages intérieures */
.page-hero { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 44px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { max-width: 17em; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: var(--muted); margin-bottom: clamp(24px, 4vw, 40px); }
.breadcrumb a { color: var(--muted); }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .content-grid { grid-template-columns: 1fr; } }
.aside-sticky { position: sticky; top: 100px; }
@media (max-width: 960px) { .aside-sticky { position: static; } }

.prose { max-width: 44em; }
.prose > h2 { margin-top: 1.7em; }
.prose > h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--green); }
.prose h3 { margin-top: 1.3em; }

.note {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--green);
  border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0;
}
.note.warn { border-left-color: var(--clay); }
.note h3 { font: 600 1rem/1.4 var(--sans); margin: 0 0 0.4em; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

.see-also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .see-also { grid-template-columns: 1fr; } }
.see-also a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.see-also a:hover { border-color: #c5d9cf; color: var(--green-ink); }
.see-also .ico { color: var(--green); }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; }
.table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.table th, .table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table th { font-weight: 600; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.table .closed { color: var(--muted); }

.todo { background: #fff0c2; padding: 0.05em 0.3em; border-radius: 4px; }

/* Pied de page */
.site-footer { background: #18211e; color: #c9d4cf; padding: 56px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h2 { font: 600 0.78rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #92a89f; margin-bottom: 14px; }
.site-footer p { margin: 0 0 0.6em; }
.site-footer a { color: #e6eeea; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-brand { font: 600 1.15rem/1.3 var(--serif); color: #fff; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid #2c3833; margin-top: 40px; padding-top: 20px;
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  color: #92a89f; font-size: 0.85rem;
}
.footer-bottom a { color: #b9c9c2; }

/* Barre d'action mobile */
.mobile-bar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: 80px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(246, 243, 236, 0.96);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 0.8em 1em; }
  .hero .actions .btn, .page-hero .actions .btn { width: 100%; }
}

@media print {
  .site-header, .mobile-bar, .spine, .cta-band .actions { display: none !important; }
  body { background: #fff; padding: 0; }
}
