/* Mise en page : colonne centrée, bandes pleine largeur alternées, motif de boucles graphomotrices en signature */
:root {
  --bg: #f4f7f5;
  --surface: #ffffff;
  --band: #e8f0ec;
  --ink: #16262c;
  --muted: #4b5d63;
  --line: #d3dfda;
  --accent: #1d6a58;
  --accent-ink: #ffffff;
  --sun: #e8a92c;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Verdana", "Segoe UI", system-ui, sans-serif;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.1rem);
  --radius: 14px;
  --c-pco: #2360a5; --c-cocon: #b23a6a; --c-mdph: #6a46a8; --c-mutuelle: #a85a12; --c-cpam: #2d7a49;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1719; --surface: #162226; --band: #13201f; --ink: #e4ece9; --muted: #a2b4b0;
    --line: #29393c; --accent: #6cc3ab; --accent-ink: #0b1a16; --sun: #e8b04a; --c-pco: #7fb2ec; --c-cocon: #ef8db3; --c-mdph: #b9a0ec; --c-mutuelle: #f0aa66; --c-cpam: #7fcf9b; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1719; --surface: #162226; --band: #13201f; --ink: #e4ece9; --muted: #a2b4b0;
  --line: #29393c; --accent: #6cc3ab; --accent-ink: #0b1a16; --sun: #e8b04a; --c-pco: #7fb2ec; --c-cocon: #ef8db3; --c-mdph: #b9a0ec; --c-mutuelle: #f0aa66; --c-cpam: #7fcf9b; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h1, h2, .brand-name, .foot-title, .spec-name { font-family: var(--display); line-height: 1.15; text-wrap: balance; }
h1 { font-size: var(--step-3); font-weight: 700; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: var(--step-2); font-weight: 700; margin: 1.4em 0 .5em; }
.prose > h2:first-child, .section-head h2 { margin-top: 0; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.prose { max-width: 68ch; min-width: 0; }

/* En-tête */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px 4px; }
.brand { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 1.35rem; font-weight: 700; }
.brand-role { font-size: .85rem; color: var(--muted); }
.nav { list-style: none; margin: 0; padding: 4px 0 8px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { display: block; white-space: nowrap; padding: 6px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); background: var(--band); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* Boutons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; border: 2px solid var(--accent); text-align: center; }
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { padding: 8px 14px; font-size: .9rem; flex-shrink: 0; }

/* Héros */
.hero { position: relative; overflow: hidden; padding-block: clamp(36px, 6vw, 72px) 0; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.loops { display: block; width: 100%; max-width: 100%; height: 56px; color: var(--sun); margin-top: 28px; opacity: .9; }
@media (prefers-reduced-motion: no-preference) {
  .loops path { stroke-dasharray: 4000; stroke-dashoffset: 0; animation: trace 2.4s ease-out both; }
  @keyframes trace { from { stroke-dashoffset: 4000; } to { stroke-dashoffset: 0; } }
}
.creds { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; max-width: 900px; }
.creds li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; }
.creds strong { font-family: var(--display); font-size: 1.1rem; }
.creds span { color: var(--muted); font-size: .95rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Blocs */
.block { padding-block: clamp(36px, 5vw, 64px); }
.block.alt { background: var(--band); }
.section-head { margin-bottom: 24px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: start; }
.two-col > * { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-direction: column; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--sun); }
.note { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--sun); padding-left: 12px; }
.more { margin-top: 20px; color: var(--muted); }
.related { color: var(--muted); }

/* Cartes spécialités */
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.spec { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.spec:hover { border-color: var(--accent); transform: translateY(-2px); }
.spec-name { font-size: 1.2rem; font-weight: 700; }
.spec-sub { color: var(--muted); font-size: .95rem; }
.spec-arrow { position: absolute; left: 18px; bottom: 12px; color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .spec, .spec:hover { transition: none; transform: none; } }

/* Étapes */
.steps-card, .price-card, .contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-label { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 16px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; }
.steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-family: var(--display); }
.steps strong { font-family: var(--display); }
.steps span { color: var(--muted); font-size: .97rem; }

/* Tarifs */
.prices { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.prices th, .prices td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prices th { text-align: left; font-weight: 400; }
.prices th span { display: block; font-size: .88rem; color: var(--muted); }
.prices td { text-align: right; font-family: var(--display); font-weight: 700; font-size: 1.25rem; white-space: nowrap; padding-left: 12px; }
.pay { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }

/* Contact */
.contact-line { display: flex; flex-direction: column; margin-bottom: 14px; }
.contact-line span { font-size: .85rem; color: var(--muted); }
.contact-line a { font-size: 1.2rem; font-weight: 700; overflow-wrap: anywhere; }
.small { font-size: .92rem; color: var(--muted); margin: 0; }
mark { background: var(--sun); color: #1b1404; padding: 0 4px; border-radius: 3px; }

/* Bandeau rendez-vous */
.cta-band { background: var(--accent); color: var(--accent-ink); padding-block: 40px; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-band .btn { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.cta-band .btn-ghost { background: transparent; color: var(--accent-ink); }

/* Pied de page */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 40px 20px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.foot-grid > * { min-width: 0; }
.foot-grid a { overflow-wrap: anywhere; }
.foot-title { font-weight: 700; font-size: 1.05rem; margin-bottom: .4em; }
.foot-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot-bottom p { margin: 0; }

@media (max-width: 520px) {
  .brand-role { display: none; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
}

/* Photos */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.photo { margin: 0; min-width: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--band); }
.photo figcaption { margin-top: 8px; font-size: .92rem; color: var(--muted); }
.photo.narrow { max-width: 460px; margin-bottom: 24px; }
.photos-block { padding-top: 0; }

/* Portrait */
.hero-inner.has-portrait { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 48px); align-items: start; }
.hero-text { min-width: 0; }
.portrait { width: clamp(150px, 20vw, 240px); height: auto; aspect-ratio: 1; max-width: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--sun); }
@media (max-width: 720px) {
  .hero-inner.has-portrait { grid-template-columns: 1fr; }
  .portrait { order: -1; width: 120px; }
}

/* Tableau comparatif */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--band); }
.compare tbody th { font-family: var(--display); font-size: 1.05rem; color: var(--accent); white-space: nowrap; }
.compare tbody tr:last-child > * { border-bottom: 0; }

h3 { font-family: var(--display); font-size: var(--step-1); font-weight: 700; line-height: 1.2; margin: 0 0 .4em; text-wrap: balance; }
.sub-head { margin-top: clamp(32px, 4vw, 48px); }

section[id] { scroll-margin-top: 120px; }

/* Liste des syndromes */
.syn { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.syn li { display: flex; flex-direction: column; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.syn li:last-child { border-bottom: 0; padding-bottom: 0; }
.syn strong { font-family: var(--display); font-size: 1.1rem; }
.syn span { color: var(--muted); font-size: .97rem; }

.badge { display: inline-block; margin: 8px 0 24px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; color: var(--accent); }

/* Couleurs par mode de financement */
.fin-pco { --c: var(--c-pco); } .fin-cocon { --c: var(--c-cocon); } .fin-mdph { --c: var(--c-mdph); }
.fin-mutuelle { --c: var(--c-mutuelle); } .fin-cpam { --c: var(--c-cpam); }
.row-pco { --c: var(--c-pco); } .row-cocon { --c: var(--c-cocon); } .row-mdph { --c: var(--c-mdph); }
.row-mutuelle { --c: var(--c-mutuelle); } .row-cpam { --c: var(--c-cpam); }
.fin-tag { display: inline-block; padding: 3px 12px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: .9rem; letter-spacing: .02em; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); white-space: nowrap; }
.prose > .fin-tag { margin-bottom: 10px; }
.ticks li .fin-tag { font-size: .8rem; padding: 1px 9px; margin-right: 4px; }
.compare tbody tr[class^="row-"] > th { box-shadow: inset 4px 0 0 var(--c); }
#pco .steps li::before { background: var(--c-pco); color: var(--surface); }
#pco .spec:hover { border-color: var(--c-pco); }
#pco .spec-arrow { color: var(--c-pco); }

/* Fonds colorés par mode de financement */
.band { background: color-mix(in srgb, var(--c) 11%, var(--bg)); }
.band .fin-tag { background: var(--surface); }
.compare tbody tr[class^="row-"] > * { background: color-mix(in srgb, var(--c) 10%, var(--surface)); }

.foot-area p { margin: 24px 0 0; font-size: .88rem; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq-item summary { cursor: pointer; list-style: none; padding: 14px 48px 14px 18px; position: relative; font-family: var(--display); font-weight: 700; font-size: 1.08rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: var(--radius); }
.faq-a { padding: 0 18px 4px; }
.faq-a p { margin: 0 0 .8em; }

/* Horaires */
.hours-block { margin: 18px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.hours tr:last-child > * { border-bottom: 0; }
.hours th { font-weight: 400; }
.hours th span { display: block; font-size: .85rem; color: var(--muted); }
.hours td { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }

/* Formations */
.cv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cv li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cv li:last-child { border-bottom: 0; padding-bottom: 0; }
.cv-year { font-family: var(--display); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.cv-text { min-width: 0; }
.cv-gap { margin-top: 22px; }
.pubs { margin-top: clamp(24px, 4vw, 40px); }
.cv-text strong { font-weight: 700; }
#publications { scroll-margin-top: 120px; }

/* Photos : format homogène dans les grilles */
.photos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.photos .photo img { aspect-ratio: 16 / 9; object-fit: cover; }
.photo.tall { max-width: 360px; justify-self: center; }
.photo.tall img { aspect-ratio: 3 / 4; object-fit: cover; }
