/* NaturoConnect — vitrine publique (HTML statique, générée par vitrine/build.py)
   Charte commune avec l'application (lib/core/theme/app_theme.dart) :
   mêmes polices (Montserrat titres, Varta texte), mêmes verts, mêmes fonds. */

@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Variable-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Varta";
  src: url("fonts/Varta-Variable-latin.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

:root {
  --green: #47966A;
  --green-dark: #2F7651;
  --green-deep: #1F4F37;
  --green-soft: #E3F0E8;
  --gold: #C7A66C;
  --gold-soft: #F6EEDD;
  --cream: #FAF7F0;
  --paper: #FFFFFF;
  --ink: #243127;        /* AppTheme.textPrimary */
  --ink-soft: #4C5D50;   /* AppTheme.textSecondary */
  --ink-mute: #7D887E;   /* AppTheme.textMuted */
  --line: #E4E0D5;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(30, 43, 36, .06), 0 8px 24px rgba(30, 43, 36, .06);
  --serif: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; /* titres */
  --sans: "Varta", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green-deep); }
h1, h2, h3 { font-family: var(--serif); color: var(--green-deep); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-mute); }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: .6rem;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }

/* ── Boutons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; font-weight: 650; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-deep); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-sm { padding: .5em 1em; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.center .actions { justify-content: center; }

/* ── En-tête ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, .92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-deep); font-weight: 700; font-size: 1.15rem; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav > a { text-decoration: none; color: var(--ink-soft); font-weight: 550; font-size: .97rem; }
.nav > a:hover, .nav > a[aria-current="page"] { color: var(--green-dark); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.nav .btn-ghost { color: var(--green-dark); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-deep); }
[data-when="auth"] { display: none !important; }
.is-auth [data-when="auth"] { display: inline-flex !important; }
.is-auth [data-when="guest"] { display: none !important; }

@media (max-width: 900px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -8px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  /* Menu plein écran sous l'en-tête : opaque, défilable, rien de la page ne transparaît */
  .nav {
    display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
    height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); padding: 8px 20px calc(24px + env(safe-area-inset-bottom));
  }
  .nav.open { display: flex; }
  .nav > a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .nav-cta { padding-top: 24px; flex-direction: column; align-items: stretch; gap: 12px; }
  .nav-cta .btn { width: 100%; padding: .85em 1.2em; font-size: 1rem; }
  /* l'en-tête devient opaque quand le menu est ouvert (pas de flou sur la page) */
  .menu-open .site-header { background: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open, .menu-open body { overflow: hidden; }
}

/* ── Sections ────────────────────────────────────────── */
section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.bg-paper { background: var(--paper); }
.bg-green { background: var(--green-deep); color: #EAF4EE; }
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-green .lead, .bg-green .muted { color: #C9E0D2; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.center.section-head, .section-head.center { margin-left: auto; margin-right: auto; }

/* ── Hero ────────────────────────────────────────────── */
.hero { padding: 72px 0 84px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--green); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 1.4rem; color: var(--ink-mute); font-size: .92rem; }
.trust { gap: 6px 22px; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .mock { margin-left: auto; margin-right: auto; width: 100%; }
}
/* Mobile : boutons empilés de même largeur, pied de page lisible */
@media (max-width: 600px) {
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
  .hero { padding: 40px 0 56px; }
  section { padding: 60px 0; }
  section.tight { padding: 44px 0; }
  .site-footer .cols > div:first-child { grid-column: 1 / -1; }
  .site-footer .legal { flex-direction: column; gap: 6px; }
}

/* Maquette de réservation (illustration) */
.mock {
  background: var(--paper); border-radius: 18px;
  padding: 22px; border: 1px solid var(--line); position: relative; max-width: 430px; margin-left: auto; box-shadow: 0 24px 48px rgba(31, 79, 55, .10);
}
.mock-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.mock-name { font-weight: 700; color: var(--green-deep); }
.mock-sub { font-size: .88rem; color: var(--ink-mute); }
.mock-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin: 14px 0 8px; }
.mock-service { display: flex; justify-content: space-between; padding: 10px 12px; border: 1.5px solid var(--green); border-radius: 10px; background: var(--green-soft); font-size: .93rem; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { text-align: center; padding: 8px 0; border-radius: 8px; border: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); }
.slot.on { background: var(--green); border-color: var(--green); color: #fff; font-weight: 700; }
.slot.off { color: #C2C8C4; text-decoration: line-through; }
.mock-btn { margin-top: 16px; width: 100%; }
.mock-note { margin-top: 10px; font-size: .78rem; color: var(--ink-mute); text-align: center; }

/* ── Grilles & cartes ────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { border-top: 1px solid var(--line); padding: 22px 0 0; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.boxed {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .15s ease; }
a.card h3 { color: var(--green-deep); }
a.card:hover { border-top-color: var(--green); color: inherit; }
a.card:hover h3 { color: var(--green-dark); text-decoration: underline; text-underline-offset: 4px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 1.1em; margin: .4em 0; color: var(--ink-soft); }
.checks li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 2px; border-radius: 1px; background: var(--green); }
.bg-green .checks li { color: #D8EADF; }
.bg-green .checks li::before { color: var(--gold); }

/* Étapes */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--serif); font-size: .95rem; font-weight: 700;
  letter-spacing: .06em; color: var(--green); margin-bottom: 10px;
}

/* Bloc confidentialité */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .privacy { grid-template-columns: 1fr; } }
.compare { display: grid; gap: 12px; }
.compare { gap: 0; }
.compare div { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.compare div:last-child { border-bottom: 0; }
.compare strong { color: #fff; }
.compare .no { color: #B9CFC2; }

/* ── Tarifs ──────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--green); position: relative; }
.plan .badge { position: absolute; top: -13px; left: 24px; }
.price { font-family: var(--serif); font-size: 2.6rem; color: var(--green-deep); font-weight: 700; line-height: 1; margin: .3em 0 .1em; }
.price small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink-mute); }
.plan > .muted { margin: 0; }
.plan .checks { margin: 16px 0 24px; padding-top: 16px; border-top: 1px solid var(--line); flex: 1; }
.badge {
  display: inline-block; padding: .25em .75em; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: var(--gold); color: #fff; letter-spacing: .02em;
}
.badge.soft { background: var(--green-soft); color: var(--green-dark); }

/* ── FAQ ─────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 650; color: var(--green-deep); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; }

/* ── CTA final ───────────────────────────────────────── */
.cta-band { background: var(--green-deep); color: #fff; border-radius: 18px; padding: 56px 32px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D3E8DB; }

/* ── Annuaire & fiches praticien ─────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.filters input, .filters select {
  font: inherit; padding: .75em 1em; border-radius: 10px; border: 1px solid var(--line); background-color: #fff; min-width: 220px; flex: 1; color: var(--ink);
}
.filters select {
  -webkit-appearance: none; appearance: none; padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232F7651' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1em center;
}
.pro-card, a.pro-card { display: flex; gap: 16px; align-items: flex-start; }
.pro-card .avatar { width: 60px; height: 60px; flex: 0 0 auto; }
@media (max-width: 600px) {
  .pro-card .avatar { width: 48px; height: 48px; font-size: 1.1rem; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jobs span { white-space: nowrap; }
.jobs { max-width: 760px; margin: 22px auto 0; font-family: var(--serif); font-weight: 600; font-size: 1.02rem; line-height: 1.9; color: var(--green-dark); }
.chip { display: inline-block; white-space: nowrap; font-size: .8rem; padding: .25em .7em; border-radius: 999px; background: var(--green-soft); color: var(--green-dark); }
.chip.gold { background: var(--gold-soft); color: #8A6A2F; }
.meta { font-size: .92rem; color: var(--ink-mute); }
.empty { text-align: center; padding: 48px 20px; color: var(--ink-mute); }

.pro-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.pro-hero .avatar { width: 112px; height: 112px; font-size: 2.4rem; }
@media (max-width: 760px) { .pro-hero { grid-template-columns: 1fr; text-align: left; } }
.pro-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 900px) { .pro-layout { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 92px; }
table.services { width: 100%; border-collapse: collapse; }
table.services td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.services tr:last-child td { border-bottom: 0; }
table.services td.price-cell { text-align: right; font-weight: 700; color: var(--green-deep); white-space: nowrap; padding-left: 16px; }

/* ── Naturothèque ────────────────────────────────────── */
.crumbs { font-size: .9rem; color: var(--ink-mute); margin-bottom: 18px; }
.crumbs a { color: var(--ink-mute); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 26px 0; }
.fact { border-top: 1px solid var(--line); padding: 12px 0 0; }
.fact b { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-mute); margin-bottom: 4px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose { max-width: 760px; }
.notice { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; color: var(--ink-soft); font-size: .95rem; margin: 26px 0; }
.alpha { columns: 3 220px; column-gap: 28px; }
.alpha a { display: block; padding: 6px 0; break-inside: avoid; text-decoration: none; }
.alpha a:hover { text-decoration: underline; }
.alpha small { color: var(--ink-mute); font-style: italic; }

/* ── Pied de page ────────────────────────────────────── */
.site-footer { background: #17251D; color: #A9BBB0; padding: 56px 0 28px; margin-top: 0; font-size: .94rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; }
.site-footer a { color: #C9D7CF; text-decoration: none; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .legal { border-top: 1px solid #2B3D33; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* Fiche praticien sur mobile : avatar plus compact */
@media (max-width: 600px) { .pro-hero .avatar { width: 84px; height: 84px; font-size: 1.9rem; } }
