/* =====================================================================
   Guy Lannaud — Acupuncture, Allonnes
   Concept : une page calme et lisible, rythmée par un fil « méridien »
   ponctué de points. Aucune police ni ressource externe : le site ne
   contacte aucun tiers (pas de cookies, pas de bandeau à afficher).
   ===================================================================== */

:root {
  /* Couleurs (thème clair) */
  --bg: #f3f6f4;          /* fond : blanc minéral, légèrement vert */
  --surface: #ffffff;     /* cartes et bandeaux */
  --ink: #142924;         /* texte principal */
  --muted: #52655e;       /* texte secondaire */
  --line: #d2ded9;        /* filets, bordures */
  --jade: #1c6957;        /* couleur d'accent : boutons, liens */
  --jade-ink: #ffffff;    /* texte sur fond jade */
  --mist: #e2eee9;        /* aplats doux */
  --seal: #a4442d;        /* accent rare : urgences */

  /* Typographie : polices installées sur l'appareil, aucun téléchargement */
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "URW Palladio L", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 3.2vw, 3.6rem);

  --radius: 14px;
  --wrap: 1120px;
  --measure: 66ch;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1815; --surface: #14211d; --ink: #e3ede9; --muted: #9db2aa;
    --line: #263a34; --jade: #6cc2a9; --jade-ink: #07201a; --mist: #19302a; --seal: #e3937a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1815; --surface: #14211d; --ink: #e3ede9; --muted: #9db2aa;
  --line: #263a34; --jade: #6cc2a9; --jade-ink: #07201a; --mist: #19302a; --seal: #e3937a;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--jade); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); letter-spacing: -0.01em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0; }
.prose > * + * { margin-top: 1em; }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; font-size: var(--step-2); }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin-block: 0.6em; }
.prose li + li { margin-top: 0.35em; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--jade);
}
.muted { color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.75em 1.2em;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--jade);
  transition: background-color .15s, color .15s;
}
.btn-primary { background: var(--jade); color: var(--jade-ink); }
.btn-primary:hover { background: transparent; color: var(--jade); }
.nav a.btn-primary { color: var(--jade-ink); }
.nav a.btn-primary:hover { background: transparent; color: var(--jade); }
.btn-ghost { background: transparent; color: var(--jade); }
.btn-ghost:hover { background: var(--mist); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- En-tête ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand svg { flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; display: block; }
.brand-sub { font-size: var(--step--1); color: var(--muted); display: block; }
.nav { display: flex; align-items: center; gap: 4px 6px; flex-wrap: wrap; }
.nav a {
  color: var(--ink); text-decoration: none; font-size: 0.97rem;
  padding: 0.45em 0.75em; border-radius: 999px;
}
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--mist); color: var(--jade); font-weight: 600; }
.nav .btn { margin-left: 6px; padding: 0.55em 1em; }

@media (max-width: 760px) {
  /* Téléphone : tous les liens visibles sur deux lignes, bouton RDV pleine largeur */
  .nav { width: 100%; flex-wrap: wrap; gap: 4px; padding-bottom: 6px; }
  .nav a { white-space: nowrap; font-size: 0.93rem; padding: 0.4em 0.65em; }
  .nav .btn { order: 99; flex: 1 0 100%; margin: 6px 0 0; text-align: center; justify-content: center; padding: 0.7em 1em; min-height: 44px; }
}

/* ---------- Héros (accueil) ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding-block: 64px 56px;
}
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero .lead { font-size: var(--step-1); color: var(--muted); max-width: 34ch; }
.meridian { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; color: var(--line); }
.hero > .wrap { position: relative; }

.photo {
  border-radius: var(--radius);
  background-color: var(--mist);
  background-size: cover; background-position: center;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  position: relative;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(10, 40, 32, .45);
}
/* Si une photo manque, un dégradé jade prend le relais */
.photo-cabinet-1 { background-image: url("images/guylannaud_cabinet-1.jpg"), linear-gradient(160deg, var(--mist), var(--jade)); }
.photo-cabinet-3 { background-image: url("images/guylannaud_cabinet-3.jpg"), linear-gradient(200deg, var(--mist), var(--jade)); }
.photo-acu-1 { background-image: url("images/acupuncture1.jpg"), linear-gradient(140deg, var(--jade), var(--mist)); }
.photo-acu-4 { background-image: url("images/acupuncture4.jpg"), linear-gradient(160deg, var(--mist) 10%, var(--jade)); }
.photo-wide { aspect-ratio: 3 / 2; }

/* ---------- Bandeau « l'essentiel » ---------- */
.facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.fact { padding: 20px 22px; display: grid; gap: 4px; align-content: start; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact dt { font-size: var(--step--1); color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.fact dd { margin: 0; font-family: var(--serif); font-size: var(--step-1); font-weight: 600; line-height: 1.25; }
.fact small { color: var(--muted); font-size: var(--step--1); }

/* ---------- Sections ---------- */
.section { padding-block: 72px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: var(--measure); }
.band { background: var(--surface); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split > * { min-width: 0; }

.address { font-style: normal; font-family: var(--serif); font-size: var(--step-2); line-height: 1.25; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: baseline; }
.checklist li::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  border: 2px solid var(--jade); transform: translateY(-1px);
}

/* Tarifs */
.price {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap;
  padding: 22px 0; border-block: 1px solid var(--line);
}
.price-label { font-size: var(--step-1); }
.price-value { font-family: var(--serif); font-size: var(--step-3); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notes { display: grid; gap: 10px; margin-top: 18px; color: var(--muted); font-size: 0.97rem; }

/* Parcours (chronologie réelle) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li {
  display: grid; grid-template-columns: 9.5rem 1fr; gap: 20px;
  padding-block: 14px; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline time, .timeline .when { font-variant-numeric: tabular-nums; color: var(--jade); font-weight: 600; }
.aside .timeline li { grid-template-columns: 6.8rem 1fr; gap: 12px; font-size: 0.95rem; padding-block: 10px; }
.timeline-group + .timeline-group { margin-top: 28px; }
.timeline-group h3 { font-family: var(--sans); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; font-weight: 600; }

/* Horaires */
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; }
.hours td { text-align: right; }
.phone-big {
  font-family: var(--serif); font-size: var(--step-3); font-weight: 600;
  font-variant-numeric: tabular-nums; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.phone-big:hover { color: var(--jade); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: grid; gap: 14px; align-content: start;
}
.urgent { border-color: var(--seal); }
.urgent .eyebrow { color: var(--seal); }
.urgent-numbers { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.urgent-numbers strong { font-family: var(--serif); font-size: var(--step-2); color: var(--seal); font-variant-numeric: tabular-nums; }

/* FAQ (sans JavaScript : éléments <details>) */
.faq { display: grid; gap: 0; max-width: var(--measure); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--jade); line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); }

/* Cartes de stages */
.stage-groups { display: grid; gap: 40px; }
.stage-group h3 { margin-bottom: 4px; }
.stage-group > p { color: var(--muted); margin-bottom: 18px; max-width: var(--measure); }
.stage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.stage-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-card {
  display: grid; gap: 10px; align-content: start;
  padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s;
}
.stage-card:hover { border-color: var(--jade); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .stage-card:hover { transform: none; } }
.stage-card h4 { margin: 0; font-family: var(--serif); font-size: var(--step-1); font-weight: 600; line-height: 1.2; }
.stage-card p { color: var(--muted); font-size: 0.97rem; }
.stage-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.25em 0.7em; border-radius: 999px; background: var(--mist); color: var(--jade);
}
.more { font-weight: 600; color: var(--jade); font-size: 0.95rem; }

/* ---------- Pages intérieures ---------- */
.page-head { padding-block: 56px 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.page-head .wrap { display: grid; gap: 14px; }
.page-head .lead { font-size: var(--step-1); color: var(--muted); max-width: 52ch; }
.crumbs { font-size: var(--step--1); color: var(--muted); }
.crumbs a { color: var(--muted); }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; padding-block: 56px 80px; }
.aside { position: sticky; top: 24px; display: grid; gap: 16px; }
.infos { margin: 0; display: grid; gap: 14px; }
.infos div { display: grid; gap: 2px; }
.infos dt { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.infos dd { margin: 0; font-weight: 500; }

.program { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 1em; max-width: none; }
.program .card h3 { font-size: var(--step-1); }
.program ul { margin: 0; padding-left: 1.1em; }
.program li + li { margin-top: 0.4em; }

/* Les cinq portes (roue de médecine) */
.doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 1.2em; max-width: none; }
.door { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: grid; gap: 6px; align-content: start; background: var(--surface); min-width: 0; }
.door .dir { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.door .el { font-family: var(--serif); font-size: var(--step-1); font-weight: 600; color: var(--jade); }
.door p { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }

.quote {
  font-family: var(--serif); font-size: var(--step-1); line-height: 1.45;
  border-left: 3px solid var(--jade); padding-left: 18px; color: var(--ink);
}

.legal h2 { font-size: var(--step-1); margin-top: 2em; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 0; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.site-footer h2 { font-family: var(--sans); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-bottom a { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article { grid-template-columns: 1fr; gap: 32px; }
  .aside { position: static; }
  .doors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .hero .photo { aspect-ratio: 3 / 2; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .section { padding-block: 52px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
  .program { grid-template-columns: 1fr; }
  .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--line); }
  .stage-grid, .stage-grid.two { grid-template-columns: 1fr; }
  .card { padding: 20px; }
}

/* Encadré d'information (remplace l'ancien popup, sans JavaScript) */
.notice { padding-block: 40px 8px; }
.notice + .section { border-top: 0; }
.notice-card {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--jade);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); display: grid; gap: 26px;
}
.notice-card h2 { font-size: var(--step-2); max-width: 42ch; }
.notice-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.notice-cols > * { min-width: 0; display: grid; gap: 12px; align-content: start; }
.notice-cols h3 { font-family: var(--sans); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.fact small a { color: var(--jade); }
@media (max-width: 760px) { .notice-cols { grid-template-columns: 1fr; gap: 24px; } }
