/* ==========================================================================
   Virginie Socrate — Chiropracteur Bourg-la-Reine
   Palette : sage #c4d7cf (origine WP) + neutres + crème #faf9f7
   ========================================================================== */

:root {
  --c-bg: #faf9f7;
  --c-bg-alt: #f1efe8;
  --c-surface: #ffffff;

  --c-ink: #222222;
  --c-ink-soft: #555555;
  --c-muted: #8b8b8b;

  --c-line: #e4dfd2;
  --c-line-2: #d4cfc1;

  --c-sage: #c4d7cf;
  --c-sage-soft: #e3ece7;
  --c-sage-strong: #b6cbc2;

  --radius: 3px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow: 0 10px 24px rgba(0, 0, 0, .08);

  --container: 1180px;
  --space: clamp(1rem, 2vw, 1.5rem);

  --font-sans: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; }

a { color: var(--c-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-muted); }

h1, h2, h3, h4 {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -.005em;
  line-height: 1.25;
  margin: 0 0 .55em;
  color: var(--c-ink);
}
h1 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 300; }
h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 300; }
h3 { font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 500; }
p  { margin: 0 0 1em; }
ul { padding-left: 1.15em; }
li { margin-bottom: .3em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space); }
.section { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--sage-soft { background: var(--c-sage-soft); }

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--c-ink); color: #fff; padding: 8px 14px;
  z-index: 1000; border-radius: 0 0 var(--radius) 0;
  font-size: .85rem;
}
.skip-link:focus { top: 0; }

/* ============== Header / menu ============== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 247, .96);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .65rem 0;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img {
  height: 48px; width: auto; display: block;
  mix-blend-mode: multiply;
}
@media (max-width: 800px) { .brand img { height: 40px; } }

.nav { display: flex; align-items: center; gap: 0; }
.nav a {
  position: relative;
  color: var(--c-ink-soft); text-decoration: none;
  padding: .65rem 1rem;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.nav a:hover { color: var(--c-ink); }
.nav a[aria-current="page"] { color: var(--c-ink); }
.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute; left: 1rem; right: 1rem; bottom: .35rem;
  height: 1px; background: var(--c-ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:not(.nav-cta):hover::after,
.nav a[aria-current="page"]:not(.nav-cta)::after {
  transform: scaleX(1);
}
.nav-cta {
  background: var(--c-ink); color: #fff !important;
  padding: .55rem 1rem !important; margin-left: .75rem;
  font-size: .78rem !important;
  border-radius: var(--radius);
  letter-spacing: .04em !important;
  text-transform: none !important;
}
.nav-cta:hover { background: #000 !important; color: #fff !important; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--c-line-2);
  border-radius: var(--radius); padding: .55rem; cursor: pointer;
  color: var(--c-ink); align-items: center; justify-content: center;
  width: 40px; height: 40px;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { padding: .55rem 0; }
  .nav {
    position: absolute; top: 100%; right: 0; left: 0;
    flex-direction: column; align-items: stretch;
    background: var(--c-surface); border-bottom: 1px solid var(--c-line);
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    padding: .65rem var(--space) 1rem;
    gap: .1rem;
    display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a {
    padding: .85rem .25rem;
    font-size: .85rem;
    border-bottom: 1px solid var(--c-line);
  }
  .nav a:last-of-type { border-bottom: none; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta {
    margin: .75rem 0 0 !important;
    padding: .8rem 1rem !important;
    text-align: center;
    font-size: .85rem !important;
    border: none !important;
  }
}

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 480px;
  display: grid; align-items: center;
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5rem);
  background-color: var(--c-sage);
  background-image:
    linear-gradient(to right, rgba(196, 215, 207, .85) 0%, rgba(196, 215, 207, .55) 60%, rgba(196, 215, 207, .25) 100%),
    url("/assets/img/hero-bandeau.jpg");
  background-size: cover;
  background-position: center;
  color: var(--c-ink);
}
.hero-content { max-width: 620px; }
.hero h1 {
  font-weight: 300;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin-bottom: .9rem;
  line-height: 1.22;
}
.hero-lead {
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
  color: var(--c-ink-soft);
  font-weight: 400;
  max-width: 56ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.hero-meta {
  margin-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: 1rem 1.75rem;
  font-size: .82rem; color: var(--c-ink-soft);
}
.hero-meta strong { color: var(--c-ink); font-weight: 500; }

/* ============== Eyebrow ============== */
.eyebrow {
  display: inline-block;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-ink-soft); font-weight: 500;
  margin-bottom: .9rem;
}

/* ============== Buttons ============== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.3rem;
  border-radius: var(--radius);
  font-weight: 500; font-size: .88rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  letter-spacing: .01em;
  cursor: pointer;
}
.btn-primary { background: var(--c-ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; }
.btn-ghost {
  background: transparent; color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost:hover { background: var(--c-ink); color: #fff; }
.btn-light {
  background: #fff; color: var(--c-ink);
  border-color: var(--c-line-2);
}
.btn-light:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ============== Cards trio (home) ============== */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: var(--c-ink);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--c-sage-strong);
}
.card-img {
  width: 100%; aspect-ratio: 462/520;
  object-fit: cover; object-position: center top;
  display: block;
}
.card-body { padding: 1.25rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 500; color: var(--c-ink); }
.card p  { color: var(--c-ink-soft); margin: 0; font-size: .9rem; line-height: 1.55; }
.card-link {
  margin-top: auto; padding-top: .9rem;
  font-size: .75rem; font-weight: 500; color: var(--c-ink);
  letter-spacing: .14em; text-transform: uppercase;
}

/* ============== Profil praticien ============== */
.profile {
  display: grid; gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 800px) { .profile { grid-template-columns: 5fr 7fr; } }
.profile-img {
  width: 100%; max-width: 420px;
  aspect-ratio: 534/700;
  object-fit: cover; object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* ============== Page hero (intérieures) ============== */
.page-hero {
  background-color: var(--c-sage);
  background-size: cover; background-position: center;
  background-blend-mode: multiply;
  background-image: linear-gradient(rgba(196, 215, 207, .55), rgba(196, 215, 207, .55));
  padding: clamp(2.75rem, 5.5vw, 4.25rem) 0 clamp(2rem, 4vw, 3rem);
  color: var(--c-ink);
}
.page-hero h1 { margin: .5rem 0 .6rem; max-width: 24ch; font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.page-hero p  { font-size: 1rem; color: var(--c-ink-soft); max-width: 60ch; margin: 0; }

/* ============== Prose ============== */
.prose {
  max-width: 68ch; margin: 0 auto;
  font-size: .96rem;
  line-height: 1.7;
}
.prose h2 { margin-top: 2.2em; font-size: 1.3rem; font-weight: 400; color: var(--c-ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8em; font-size: 1.02rem; font-weight: 500; }
.prose blockquote {
  border-left: 2px solid var(--c-sage-strong);
  padding: .15rem 0 .15rem 1.1rem;
  margin: 1.4em 0; color: var(--c-ink-soft);
  font-size: 1.05em; font-style: italic;
}
.prose ul li::marker { color: var(--c-sage-strong); }

/* ============== Infos pratiques ============== */
.info-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.info-tile {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.4rem;
}
.info-tile h3 {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: .55rem; color: var(--c-muted); font-weight: 500;
}
.info-tile p, .info-tile address { margin: 0; font-style: normal; color: var(--c-ink); font-size: .94rem; }
.info-tile strong { color: var(--c-ink); font-weight: 500; }
.info-tile a { color: var(--c-ink); }

/* ============== Tarifs ============== */
.fees {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 1.25rem 0;
}
.fee {
  background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--radius-lg); padding: 1.2rem 1.4rem;
}
.fee-amount { font-size: 1.7rem; font-weight: 300; color: var(--c-ink); line-height: 1.1; }
.fee-label  { color: var(--c-muted); font-size: .82rem; margin-top: .25rem; }

/* ============== CTA strip ============== */
.cta-strip {
  background: var(--c-ink);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.25rem);
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
  align-items: center;
  text-align: left;
}
@media (min-width: 800px) { .cta-strip { grid-template-columns: 2fr auto; } }
.cta-strip h2 { color: #ffffff; margin: 0; font-size: 1.3rem; font-weight: 400; }
.cta-strip p  { color: #b8b8b8; margin: .35rem 0 0; font-size: .92rem; }
.cta-strip .btn { background: #ffffff; color: var(--c-ink); justify-self: start; }
.cta-strip .btn:hover { background: var(--c-sage); color: var(--c-ink); }
@media (min-width: 800px) { .cta-strip .btn { justify-self: end; } }

/* ============== Breadcrumb ============== */
.breadcrumb { font-size: .8rem; color: var(--c-muted); }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-ink); }
.breadcrumb [aria-current="page"] { color: var(--c-ink); }

/* ============== Footer ============== */
.site-footer {
  background: #222222;
  color: #b8b8b8;
  padding: 3rem 0 1.75rem;
}
.site-footer a { color: #d8d8d8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 1.75rem;
}
.site-footer h4 {
  color: #fff; font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.site-footer li { margin-bottom: .3rem; }
.site-footer address { font-style: normal; line-height: 1.65; font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid #333333; padding-top: 1.2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .76rem; color: #888888;
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============== Responsive — tablette / phone ============== */

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    padding: 2.75rem 0 2.5rem;
    background-image:
      linear-gradient(to bottom, rgba(196, 215, 207, .92) 0%, rgba(196, 215, 207, .78) 100%),
      url("/assets/img/hero-bandeau.jpg");
  }
  .hero h1 { font-size: 1.55rem; line-height: 1.25; }
  .hero-lead { font-size: .95rem; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: .55rem; }
  .hero-cta .btn { justify-content: center; width: 100%; }
  .hero-meta {
    flex-direction: column;
    gap: .35rem;
    font-size: .78rem;
    margin-top: 1.4rem;
  }

  .card-img { aspect-ratio: 4 / 3; }
  .card-body { padding: 1.05rem 1.1rem 1.25rem; }

  .profile-img { margin-left: auto; margin-right: auto; max-width: 320px; }

  .page-hero { padding: 2rem 0 1.5rem; }
  .page-hero h1 { font-size: 1.45rem; }
  .page-hero p { font-size: .92rem; }

  .prose { font-size: .94rem; }
  .prose h2 { font-size: 1.15rem; }
  .prose blockquote { padding-left: .9rem; margin: 1.2em 0; font-size: 1em; }

  .info-grid { gap: .85rem; }
  .info-tile { padding: 1.1rem 1.15rem; }

  .fees { grid-template-columns: 1fr 1fr; gap: .65rem; }
  .fee { padding: .95rem .85rem; }
  .fee-amount { font-size: 1.4rem; }
  .fee-label { font-size: .76rem; }

  .cta-strip { padding: 1.4rem 1.25rem; }
  .cta-strip h2 { font-size: 1.1rem; }
  .cta-strip p { font-size: .85rem; }
  .cta-strip .btn { width: 100%; justify-content: center; }

  .footer-grid { gap: 1.5rem; margin-bottom: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: .35rem; align-items: flex-start; }

  .btn { padding: .7rem 1.1rem; font-size: .86rem; }
}

@media (max-width: 400px) {
  :root { --space: .9rem; }
  .hero h1 { font-size: 1.4rem; }
  .page-hero h1 { font-size: 1.3rem; }
  .fees { grid-template-columns: 1fr; }
  .brand img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header, .nav-toggle, .cta-strip, .site-footer { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; text-decoration: underline; }
}
