@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #15364a;
  --ink-2: #234a5e;
  --sage: #6d948a;
  --sage-soft: #e6f0ec;
  --sand: #f7f3ec;
  --paper: #fffdf9;
  --copper: #c98c65;
  --copper-dark: #a96748;
  --text: #27343c;
  --muted: #66747d;
  --line: #dce3df;
  --shadow: 0 24px 70px rgba(21, 54, 74, .12);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed; left: 12px; top: 12px; z-index: 9999;
  background: var(--ink); color: white; padding: 10px 14px; border-radius: 10px;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, .92);
  border-bottom: 1px solid rgba(220, 227, 223, .85);
  backdrop-filter: blur(16px);
}
.header-inner {
  max-width: var(--max); margin: auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand img { width: 265px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.nav a { position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px;
  background: var(--copper); transition: right .25s ease;
}
.nav a:hover::after, .nav a[aria-current='page']::after { right: 0; }
.nav-toggle { display: none; border: 0; background: transparent; width: 44px; height: 44px; border-radius: 12px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px auto;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px; font-weight: 800;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--ink); color: white; box-shadow: 0 12px 30px rgba(21, 54, 74, .22); }
.btn-primary:hover { background: var(--ink-2); }
.btn-accent { background: var(--copper); color: #1e2d35; box-shadow: 0 12px 28px rgba(201, 140, 101, .24); }
.btn-accent:hover { background: #d59a73; }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.6); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 13px; }

.container { max-width: var(--max); margin: auto; padding-left: 24px; padding-right: 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 58px 0; }
.section-sand { background: var(--sand); }
.section-ink { background: var(--ink); color: white; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase;
  font-size: 12px; letter-spacing: .16em; font-weight: 800; color: var(--copper-dark);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { color: var(--ink); line-height: 1.08; margin-top: 0; }
h1, h2 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
h1 { font-size: clamp(44px, 6vw, 78px); letter-spacing: -.035em; margin-bottom: 24px; }
h2 { font-size: clamp(36px, 4.5vw, 56px); letter-spacing: -.025em; margin-bottom: 20px; }
h3 { font-size: 21px; margin-bottom: 12px; }
.lead { font-size: clamp(18px, 2vw, 22px); color: var(--muted); max-width: 730px; }
.section-ink h2, .section-ink h3 { color: white; }
.section-ink .lead, .section-ink p { color: rgba(255,255,255,.76); }

.hero { padding: 74px 0 66px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 72px; }
.hero-copy p { max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--muted); font-size: 13px; font-weight: 700; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 28px 55px rgba(21,54,74,.13)); }
.floating-card {
  position: absolute; background: white; border: 1px solid rgba(220,227,223,.9); border-radius: 18px;
  padding: 16px 18px; box-shadow: var(--shadow); font-size: 13px; font-weight: 800; color: var(--ink);
}
.floating-card strong { display: block; font-size: 22px; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
.card-a { left: -10px; bottom: 38px; }
.card-b { right: -8px; top: 54px; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.trust-item { padding: 25px 18px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; color: var(--ink); font-size: 15px; }
.trust-item span { font-size: 12px; color: var(--muted); }

.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.heading-row p { max-width: 550px; margin: 0; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card-number { font-family: 'DM Serif Display', Georgia, serif; font-size: 44px; color: var(--copper); line-height: 1; margin-bottom: 20px; }
.card p { color: var(--muted); margin-bottom: 18px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 14px; }
.text-link::after { content: '→'; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(5px); }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.panel {
  background: white; border: 1px solid var(--line); border-radius: 32px; padding: 38px; box-shadow: var(--shadow);
}
.mono-panel {
  min-height: 490px; position: relative; overflow: hidden; background: var(--ink); color: white;
  display: grid; place-items: center;
}
.mono-panel::before, .mono-panel::after { content: ''; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); }
.mono-panel::before { width: 420px; height: 420px; right: -160px; top: -110px; }
.mono-panel::after { width: 300px; height: 300px; left: -120px; bottom: -130px; }
.mono-panel img { width: 180px; position: relative; z-index: 2; }
.mono-panel small { position: absolute; left: 34px; bottom: 28px; max-width: 260px; color: rgba(255,255,255,.68); }
.check-list { list-style: none; padding: 0; margin: 25px 0 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--copper-dark); font-weight: 900; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 24px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; }
.step::before { counter-increment: step; content: '0' counter(step); font-family: 'DM Serif Display', Georgia, serif; color: var(--copper); font-size: 34px; }
.step h3 { margin-top: 34px; }

.quote-card {
  border-radius: 32px; padding: 44px; background: linear-gradient(135deg, #eef5f2, #fbf8f2);
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.quote-card::after { content: 'YB'; position: absolute; right: 24px; bottom: -48px; font-family: 'DM Serif Display', Georgia, serif; font-size: 180px; color: rgba(21,54,74,.04); }

.page-hero { padding: 72px 0 58px; background: linear-gradient(180deg, var(--sand), var(--paper)); border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.breadcrumbs a { font-weight: 700; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; align-items: start; }
.prose h2 { margin-top: 58px; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: #4f5e67; }
.prose ul { padding-left: 20px; }
.sidebar { position: sticky; top: 110px; }
.sidebar-card { background: var(--sand); border: 1px solid var(--line); border-radius: 24px; padding: 26px; margin-bottom: 18px; }
.sidebar-card h3 { font-size: 18px; }
.sidebar-card .btn { width: 100%; margin-top: 10px; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-box { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: white; }
.info-box strong { display: block; color: var(--ink); margin-bottom: 6px; }

.cta-band { padding: 58px 0; }
.cta-box {
  border-radius: 32px; background: var(--ink); color: white; padding: 46px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; position: relative;
}
.cta-box::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 55px solid rgba(255,255,255,.05); right: -70px; top: -90px; }
.cta-box h2 { color: white; font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.cta-box p { margin: 0; color: rgba(255,255,255,.72); }
.cta-box .hero-actions { margin: 0; position: relative; z-index: 2; }

.site-footer { background: #102c3d; color: white; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .75fr .9fr; gap: 42px; }
.footer-logo { width: 240px; filter: brightness(0) invert(1); opacity: .96; }
.footer-about { color: rgba(255,255,255,.66); max-width: 390px; font-size: 14px; }
.site-footer h3 { color: white; font-size: 15px; text-transform: uppercase; letter-spacing: .1em; }
.footer-links { display: grid; gap: 10px; font-size: 14px; color: rgba(255,255,255,.72); }
.footer-links a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.55); font-size: 12px; }

.notice { padding: 18px 20px; border-radius: 16px; background: #fff5eb; border: 1px solid #ecd2be; color: #6b4a35; font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); }
th { color: var(--ink); background: var(--sand); }
tr:last-child td { border-bottom: 0; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; left: 16px; right: 16px; top: 78px; background: var(--paper); border: 1px solid var(--line);
    box-shadow: var(--shadow); border-radius: 22px; padding: 18px; flex-direction: column; align-items: stretch;
    opacity: 0; pointer-events: none; transform: translateY(-10px); transition: .2s ease;
  }
  .nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav a { padding: 9px 4px; }
  .nav .btn { margin-top: 4px; }
  .hero-grid, .split, .content-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 42px; }
  .hero-art { max-width: 660px; margin: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(3) { border-right: 0; }
  .trust-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .header-inner, .container { padding-left: 18px; padding-right: 18px; }
  .brand img { width: 215px; }
  .section { padding: 72px 0; }
  .hero { padding-top: 52px; }
  .hero-actions .btn { width: 100%; }
  .floating-card { position: static; display: inline-block; margin: 8px 5px 0; }
  .hero-art { text-align: center; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { border-top: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-item:nth-child(even) { border-right: 0; }
  .heading-row { display: block; }
  .cards, .steps, .info-grid { grid-template-columns: 1fr; }
  .panel, .quote-card, .cta-box { padding: 28px; }
  .cta-box { display: block; }
  .cta-box .hero-actions { margin-top: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { display: block; }
}

/* Prise de rendez-vous Doctolib toujours accessible */
.doctolib-floating-cta {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 11px 20px 11px 13px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 18px 46px rgba(16, 44, 61, .32);
  font-weight: 800;
  line-height: 1.1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.doctolib-floating-cta:hover {
  transform: translateY(-3px);
  background: var(--ink-2);
  box-shadow: 0 22px 54px rgba(16, 44, 61, .38);
}
.doctolib-floating-cta:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
}
.doctolib-floating-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
}
.doctolib-floating-icon svg { width: 21px; height: 21px; }
.doctolib-floating-copy { display: grid; gap: 2px; }
.doctolib-floating-copy small {
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.doctolib-floating-copy strong { font-size: 14px; }

@media (max-width: 640px) {
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .doctolib-floating-cta {
    right: 10px;
    left: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 58px;
    justify-content: center;
    padding: 9px 16px;
    border-radius: 18px;
  }
  .doctolib-floating-copy {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .doctolib-floating-copy small { font-size: 9px; }
  .doctolib-floating-copy strong { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .doctolib-floating-cta { transition: none; }
}
