/* Freequences — feuille de style partagée */
:root {
  --bg: #EFF2EC;
  --paper: #FBFBF8;
  --ink: #1E2B27;
  --sage: #5F7A6C;
  --amber: #B8823D;
  --line: rgba(30, 43, 39, 0.14);
  --veil: 0.30;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16211D;
    --paper: #1C2924;
    --ink: #EDEDE4;
    --sage: #9AB3A4;
    --amber: #D6A75E;
    --line: rgba(237, 237, 228, 0.16);
    --veil: 0.22;
  }
}
:root[data-theme="dark"] {
  --bg: #16211D;
  --paper: #1C2924;
  --ink: #EDEDE4;
  --sage: #9AB3A4;
  --amber: #D6A75E;
  --line: rgba(237, 237, 228, 0.16);
  --veil: 0.22;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
em, .voice { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 400; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 50; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* ---------- navigation ---------- */
header.site {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand img { display: block; height: 46px; width: auto; }
.brand .brand-text { font-family: 'Newsreader', serif; font-size: 1.25rem; font-weight: 500; }
.brand .brand-text span { color: var(--amber); }
.brand img + .brand-text { display: none; }

.navlinks { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.navlinks > li { position: relative; display: flex; align-items: center; height: 78px; }
.navlinks a { text-decoration: none; font-size: 0.94rem; color: var(--sage); transition: color .2s; white-space: nowrap; }
.navlinks a:hover, .navlinks a:focus-visible, .navlinks a[aria-current="page"] { color: var(--ink); }
.navlinks a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 8px; text-decoration-thickness: 1.5px; }
.has-sub > a::after { content: '▾'; font-size: 0.7em; margin-left: 6px; opacity: .6; }
.sub {
  display: none; position: absolute; top: 100%; left: -16px; min-width: 270px;
  list-style: none; margin: 0; padding: 8px 0;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 20px; }
.sub a:hover { background: color-mix(in srgb, var(--amber) 10%, transparent); }

/* ---------- bandeau de page ---------- */
.has-bg { position: relative; isolation: isolate; }
.has-bg::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--img) center / cover no-repeat; opacity: var(--veil);
}
.has-bg::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
}
.page-head { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 0.85rem; color: var(--sage); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--amber); }
.crumbs span.sep { margin: 0 8px; opacity: .5; }
.kicker { font-size: 0.85rem; color: var(--amber); margin-bottom: 14px; display: block; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; max-width: 20ch; }
.page-head .lead { margin-top: 20px; font-size: 1.15rem; color: var(--sage); max-width: 52ch; }
.page-head .lead.voice { font-size: 1.3rem; }

/* sous-navigation de la rubrique Soulagement */
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.subnav a {
  text-decoration: none; font-size: 0.88rem; padding: 8px 16px; border: 1px solid var(--line);
  color: var(--sage); border-radius: 99px; background: color-mix(in srgb, var(--bg) 70%, transparent);
  transition: border-color .2s, color .2s;
}
.subnav a:hover { border-color: var(--amber); color: var(--ink); }
.subnav a[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- contenu ---------- */
main section.block { padding: 72px 0; }
main section.block + section.block { border-top: 1px solid var(--line); }
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 18px; }
.prose h3 { font-size: 1.35rem; margin: 36px 0 12px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose a { text-underline-offset: 3px; text-decoration-color: var(--amber); }
.prose a:hover { color: var(--amber); }
.two-col { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.illu { display: block; width: 100%; max-width: 340px; height: auto; }
.illu-wrap { display: flex; justify-content: center; }

.note {
  margin: 36px 0 0; padding: 20px 24px; border-left: 2px solid var(--amber); max-width: 66ch;
  font-size: 0.93rem; color: var(--sage); background: color-mix(in srgb, var(--paper) 80%, transparent);
}
.note strong { color: var(--ink); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 14px 26px; border-radius: 2px; font-size: 0.95rem;
  background: var(--ink); color: var(--bg); transition: transform .15s ease, background .2s;
}
.btn:hover { background: var(--amber); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; transform: none; }
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* cartes de rubriques */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.card { padding: 32px 28px; border-right: 1px solid var(--line); text-decoration: none; display: block; transition: background .2s; }
.card:first-child { padding-left: 0; }
.card:last-child { border-right: none; padding-right: 0; }
.card:hover { background: color-mix(in srgb, var(--amber) 6%, transparent); }
.card .illu-card { display: block; height: 120px; width: 100%; object-fit: contain; object-position: left center; margin-bottom: 20px; }
.card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--sage); margin: 0 0 14px; }
.card .more { font-size: 0.88rem; color: var(--amber); }

/* listes thématiques (douleurs) */
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin-top: 8px; }
.topic { border-top: 1px solid var(--line); padding: 28px 0 24px; }
.topic h3 { font-size: 1.15rem; margin: 0 0 12px; color: var(--amber); font-weight: 500; }
.topic ul { margin: 0; padding: 0; list-style: none; }
.topic li { padding: 4px 0; font-size: 0.97rem; }
.checks { list-style: none; padding: 0; margin: 12px 0 0; max-width: 52ch; }
.checks li { padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.05rem; }
.checks li:last-child { border-bottom: 1px solid var(--line); }

/* méthode */
.method-head { font-size: clamp(1.5rem, 2.8vw, 2rem); color: var(--sage); margin: -4px 0 28px; }

/* témoignages */
.quotes { display: flex; flex-direction: column; gap: 56px; }
.quote { border-left: 1px solid var(--line); padding-left: 28px; max-width: 70ch; }
.quote p { font-family: 'Newsreader', serif; font-style: italic; font-size: 1.22rem; line-height: 1.55; margin: 0 0 1em; }
.quote.long p { font-size: 1.08rem; }
.quote .attr { margin-top: 18px; font-size: 0.86rem; color: var(--sage); font-family: 'Work Sans', sans-serif; font-style: normal; }

/* pour aller plus loin */
.loin-quote { font-family: 'Newsreader', serif; font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; max-width: 28ch; margin: 0 0 8px; }
.loin-author { font-size: 0.88rem; color: var(--sage); margin-bottom: 8px; }
.linklist { list-style: none; margin: 0 0 48px; padding: 0; border-top: 1px solid var(--line); max-width: 680px; }
.linklist li { border-bottom: 1px solid var(--line); }
.linklist a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 15px 0; text-decoration: none; transition: color .2s; }
.linklist a:hover { color: var(--amber); }
.linklist .host { font-size: 0.8rem; color: var(--sage); white-space: nowrap; }
.group-title { font-size: 1.3rem; margin: 48px 0 16px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list a, .contact-list .row { text-decoration: none; font-size: 1.12rem; display: flex; align-items: baseline; gap: 14px; }
.contact-list .label { font-size: 0.78rem; color: var(--sage); min-width: 84px; }
.contact-list a:hover { color: var(--amber); }
.tarifs { border-top: 1px solid var(--line); margin-top: 32px; }
.tarifs div { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tarifs .price { font-family: 'Newsreader', serif; font-size: 1.4rem; }
.tarifs .what { color: var(--sage); font-size: 0.95rem; }

/* accueil */
.hero { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.03; }
.hero h1 em { color: var(--amber); }
.hero .sub-h { font-family: 'Newsreader', serif; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--sage); margin: 18px 0 0; }
.hero .tag { margin: 28px 0 8px; color: var(--amber); font-size: 1.05rem; }
.hero .body { margin-top: 18px; font-size: 1.08rem; max-width: 54ch; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual img { width: 100%; max-width: 374px; display: block; }
.social { margin-top: 22px; font-size: 0.9rem; }
.social a { color: var(--sage); text-underline-offset: 4px; }
.social a:hover { color: var(--amber); }

/* ---------- pied de page ---------- */
footer.site { border-top: 1px solid var(--line); margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: auto 1fr; gap: 56px; padding: 56px 0 40px; align-items: start; }
.julie { display: flex; gap: 22px; align-items: flex-start; }
.julie img { width: 150px; height: auto; display: block; }
.julie .who strong { font-family: 'Newsreader', serif; font-size: 1.25rem; font-weight: 500; display: block; }
.julie .who span { display: block; font-size: 0.9rem; color: var(--sage); }
.julie .who a { text-decoration: none; }
.julie .who a:hover { color: var(--amber); }
.julie .who .tagline { margin-top: 10px; font-family: 'Newsreader', serif; font-style: italic; color: var(--amber); }
.disclaimer { font-size: 0.85rem; color: var(--sage); max-width: 62ch; }
.disclaimer p { margin: 0 0 0.9em; }
.footbar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 20px 0 calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--sage); }
.footbar a { text-underline-offset: 3px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .two-col, .contact-grid, .foot-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual, .illu-wrap { justify-content: flex-start; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 0; }
  .topics { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 130px; }
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 12px; padding-bottom: 10px; min-height: 0; }
  .brand img { height: 38px; }
  .navlinks { gap: 20px; overflow-x: auto; width: 100%; padding-bottom: 4px; }
  .navlinks > li { height: auto; }
  .sub { display: none !important; }
  .has-sub > a::after { display: none; }
  .page-head { padding: 40px 0 48px; }
  main section.block { padding: 52px 0; }
  .julie { flex-direction: column; }
  .linklist a { flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .navlinks a { transition: none; }
}
@media print {
  header.site, .subnav, .cta-row { display: none; }
  .has-bg::before, .has-bg::after { display: none; }
}
