/* Cabinet Alma (DÉMO publique du modèle « Santé · Praticien & bien-être ») :
   écru très clair, encre vert-de-gris foncé, accent vert sauge, titres serif
   légers, lignes fines, beaucoup de blanc. Cabinet, ville et coordonnées
   100 % fictifs. Mobile-first, cibles ≥ 44px. */
:root {
  --accent: #5f7f6e;
  --accent-dark: #4a6557;
  --soft: #eef4f0;
  --paper: #f7f8f5;
  --line: #e3e9e2;
  --ink: #2c3a33;
  --muted: #68756c;
  --ok: #0da152;
  --err: #b42318;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.7 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.18; letter-spacing: .01em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.05rem); margin: 0 0 .45em; }
h2 { font-size: clamp(1.4rem, 3.2vw, 2rem); margin: 0 0 .5em; }
.wrap { width: min(1080px, 100% - 40px); margin: 0 auto; }
.eyebrow {
  display: inline-block; font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.lead { font-size: 1.06rem; color: var(--muted); max-width: 62ch; }

/* ── Topbar ── */
.topbar {
  position: sticky; top: 0; z-index: 30; background: rgba(247, 248, 245, .93);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 18px; min-height: 62px; }
.brand { font-family: var(--serif); font-size: 1.24rem; font-weight: 400; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
.brand em { color: var(--accent); font-style: normal; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .93rem;
  padding: 10px 12px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--soft); }
.nav a.is-active { color: var(--accent-dark); }
.nav .cta {
  background: var(--accent); color: #fff; padding: 10px 20px; margin-left: 6px;
}
.nav .cta:hover { background: var(--accent-dark); }
/* Sur la page de demande, le CTA porte aussi is-active : sans cette règle
   (plus spécifique), la couleur d'is-active le rendrait illisible sur son
   propre fond accent. */
.nav a.cta.is-active { color: #fff; }

.burger {
  display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; position: relative;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.burger span { top: 21px; }
.burger span::before { content: ""; top: -7px; left: 0; right: 0; }
.burger span::after { content: ""; top: 7px; left: 0; right: 0; }
body.nav-open .burger span { transform: rotate(45deg); }
body.nav-open .burger span::before { transform: rotate(-90deg) translateX(7px); }
body.nav-open .burger span::after { opacity: 0; }

/* ── Hero ── */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1.5px solid transparent; font-size: .98rem;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.hero-note { margin-top: 14px; font-size: .9rem; color: var(--muted); }

/* Visuel du hero : composition CSS douce — cercles concentriques + feuille
   stylisée (aucune image binaire dans le template — les photos du vrai
   praticien remplaceront ces formes). */
.hero-art { position: relative; aspect-ratio: 4/4.3; }
.hero-art .rings {
  position: absolute; inset: 5% 7% 20% 7%; border-radius: 50%;
  background: radial-gradient(circle at 50% 46%, #fff 0 34%, var(--soft) 34% 100%);
  border: 1px solid var(--line);
  box-shadow: 0 26px 60px rgba(44, 58, 51, .10);
}
.hero-art .rings::before {
  content: ""; position: absolute; inset: 11%; border-radius: 50%;
  border: 1px solid rgba(95, 127, 110, .30);
}
.hero-art .rings::after {
  content: ""; position: absolute; inset: 23%; border-radius: 50%;
  border: 1px solid rgba(95, 127, 110, .45);
}
.hero-art .leaf {
  position: absolute; left: 50%; top: 38%; width: 26%; aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(-45deg);
  background: linear-gradient(135deg, #8aa697, var(--accent) 60%, var(--accent-dark));
  border-radius: 0 100% 0 100%;
  box-shadow: 0 14px 30px rgba(74, 101, 87, .28);
}
.hero-art .leaf::after {
  content: ""; position: absolute; left: 0; top: 0; width: 141%; height: 1px;
  background: rgba(255, 255, 255, .55); transform-origin: 0 0; transform: rotate(45deg);
}
.hero-art .card-tag {
  position: absolute; right: 0; bottom: 5%; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px; box-shadow: 0 16px 40px rgba(44, 58, 51, .10);
  font-family: var(--serif);
}
.hero-art .card-tag b { display: block; font-size: 1.02rem; font-weight: 400; }
.hero-art .card-tag span { color: var(--muted); font-size: .85rem; }

/* ── Sections ── */
section { padding: 56px 0; }
section.alt { background: #fff; border-block: 1px solid var(--line); }
.grid-3 { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin-top: 30px; }
.grid-auto { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); margin-top: 30px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 24px;
}
section.alt .card { background: var(--paper); }
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Étapes d'une séance */
.step-num {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--accent);
  color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.05rem; margin-bottom: 12px;
}

/* Listes de motifs (consultations) */
.motifs { list-style: none; margin: 12px 0 0; padding: 0; }
.motifs li {
  position: relative; padding: 6px 0 6px 18px; color: var(--muted); font-size: .94rem;
}
.motifs li::before {
  content: ""; position: absolute; left: 2px; top: .95em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); opacity: .55;
}

/* Encart déontologie / mutuelles : panneau discret, ligne fine côté accent */
.deonto {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0; padding: 22px 26px; max-width: 780px; margin-top: 34px;
}
section.alt .deonto { background: var(--paper); }
.deonto h3 { margin: 0 0 8px; font-size: 1.08rem; }
.deonto p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ── Tarifs (liste fine, pointillés discrets) ── */
.tarif-block { margin-top: 34px; }
.tarif-block h2 { border-bottom: 1px solid var(--accent); display: inline-block; padding-bottom: 6px; }
.tarif-list { list-style: none; margin: 18px 0 0; padding: 0; max-width: 680px; }
.tarif-list li {
  display: flex; align-items: baseline; gap: 10px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.tarif-list .item b { display: block; font-size: 1.02rem; }
.tarif-list .item span { color: var(--muted); font-size: .9rem; }
.tarif-list .dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.tarif-list .price { font-family: var(--serif); font-size: 1.08rem; color: var(--accent-dark); white-space: nowrap; }
.tarif-note { margin-top: 22px; color: var(--muted); font-size: .9rem; }

/* ── Infos pratiques ── */
.info-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
.hours { list-style: none; margin: 10px 0 0; padding: 0; font-size: .95rem; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.hours .closed { color: var(--muted); }

/* ── Bandeau CTA ── */
.band { background: var(--accent); color: #fff; text-align: center; }
.band h2 { color: #fff; }
.band .btn--primary { background: #fff; color: var(--accent-dark); }
.band p { color: rgba(255, 255, 255, .88); }

/* ── Formulaire de rendez-vous (ids st-*, créneaux dessinés par resa.js) ── */
.rdv-layout { display: grid; gap: 34px; grid-template-columns: 1.05fr .95fr; align-items: start; }
form#st-form label { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 5px; }
form#st-form input, form#st-form select, form#st-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  font: inherit; background: #fff; color: var(--ink); min-height: 46px;
}
form#st-form textarea { min-height: 120px; resize: vertical; }
form#st-form input:focus, form#st-form select:focus, form#st-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(95, 127, 110, .15);
}
.form-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }
/* Une règle d'auteur posant un display bat le [hidden] du navigateur : sans
   celle-ci, la saisie libre de date (data-free-date, masquée par resa.js quand
   le calendrier de créneaux s'affiche) resterait visible sous le calendrier. */
.form-row[hidden] { display: none; }
.st-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.st-status { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.st-status--ok { background: #e9f5ee; color: #0b7a3e; border: 1px solid #cfe8d9; }
.st-status--err { background: #fdefee; color: var(--err); border: 1px solid #f3d2d2; }
.st-status[hidden] { display: none; }

/* Calendrier de créneaux FICTIFS (rempli par resa.js, démonstration) */
#st-slots { margin: 16px 0 4px; }
#st-slots[hidden] { display: none; }
.st-slot-days { display: flex; gap: 8px; flex-wrap: wrap; }
.st-slot-day {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 9px 15px; font-weight: 600; font-size: .9rem; cursor: pointer; min-height: 44px;
  color: var(--ink);
}
.st-slot-day.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.st-slot-day.is-full { opacity: .45; }
.st-slot-times { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.st-slot-time {
  border: 1px solid var(--accent); background: #fff; color: var(--accent-dark);
  border-radius: 10px; padding: 10px 14px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.st-slot-time.is-on { background: var(--accent); color: #fff; }
.st-slot-time.is-full, .st-slot-time:disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.st-slot-hint { color: var(--muted); font-size: .9rem; margin: 10px 0 0; }

/* ── Footer ── */
footer { background: var(--ink); color: #cfd8d1; padding: 44px 0 30px; margin-top: 40px; }
footer .wrap { display: grid; gap: 26px; grid-template-columns: 1.2fr 1fr 1fr; }
footer h4 { color: #fff; font-family: var(--serif); font-weight: 400; margin: 0 0 10px; }
footer a { color: #cfd8d1; }
footer ul { list-style: none; margin: 0; padding: 0; font-size: .93rem; }
footer li { padding: 3px 0; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid #44514a; padding-top: 16px; font-size: .82rem; color: #98a59c; }

/* ── Apparition au scroll (progressive enhancement, cf. main.js) ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 880px) {
  .hero .wrap, .rdv-layout { grid-template-columns: 1fr; }
  .grid-3, .info-grid { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr 1fr; }
  footer .wrap { grid-template-columns: 1fr; }
  .burger { display: block; }
  .nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px 16px 16px; gap: 2px;
  }
  body.nav-open .nav { display: flex; }
  .nav a { min-height: 48px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .grid-auto { grid-template-columns: 1fr; }
}

/* ── Ajouts propres à la DÉMO publique (demosites/sante-bienetre) ────────── */

/* Bandeau + toasts de la couche mutualisée (_shared/demo.css) accordés à la
   charte sauge via ses variables --ds-*. */
:root {
  --ds-bg: #2c3a33;
  --ds-fg: #eef4f0;
  --ds-accent: #8aa697;
  --ds-accent-fg: #1f2a24;
}

/* Numéro de téléphone fictif : un bouton qui déclenche le toast démo
   (data-demo-action="tel" / "maps"), habillé comme un lien du texte. */
.btn-tel {
  background: none; border: 0; padding: 0; margin: 0;
  font: inherit; color: var(--accent-dark); text-decoration: underline;
  cursor: pointer;
}
.btn-tel:hover { color: var(--accent); }

/* Témoignages (contenus fictifs, assumés comme tels sous la grille) */
.quote-card blockquote {
  margin: 0; font-family: var(--serif); font-style: italic;
  font-size: 1.04rem; color: var(--ink); line-height: 1.55;
}
.quote-card .who {
  margin-top: 12px; color: var(--muted); font-size: .88rem; font-weight: 600;
}

/* Petite mention honnête sous un bloc simulé */
.demo-note { margin-top: 14px; color: var(--muted); font-size: .86rem; }
