:root {
  --sage: #7c9885;
  --sage-dark: #5f7a68;
  --cream: #f6f2ea;
  --cream-dark: #ece4d4;
  --terracotta: #c97c5d;
  --terracotta-dark: #a95f42;
  --ink: #2f2b26;
  --ink-soft: #5b564e;
  --white: #fffdf9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(47, 43, 38, 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", system-ui, sans-serif;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--sage-dark);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 0.5em; }
h2 { font-size: 1.5rem; margin: 1.6em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 0 0 0.5em; }

a { color: var(--terracotta-dark); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-decoration: none;
}
.brand-mark { height: 34px; width: auto; border-radius: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--sage-dark); }
.site-nav .cta {
  background: var(--terracotta);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 999px;
}
.site-nav .cta:hover { background: var(--terracotta-dark); color: var(--white); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--cream-dark);
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a {
    padding: 14px 20px;
    border-top: 1px solid var(--cream-dark);
  }
  .site-nav .cta { border-radius: 0; text-align: center; }
}

.identity-address {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Hero */
.hero { padding: 60px 0 20px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--terracotta-dark);
  font-weight: 600;
  margin: 0 0 10px;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; }

.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 280px; margin: 0 auto; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
}
.btn-primary { background: var(--sage-dark); color: var(--white); }
.btn-primary:hover { background: var(--sage); }
.btn-primary:disabled { background: #b8bdb8; cursor: not-allowed; }
.btn-ghost { background: transparent; border-color: var(--sage-dark); color: var(--sage-dark); }
.btn-ghost:hover { background: var(--sage-dark); color: var(--white); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }

/* Sections */
.section { padding: 40px 0; }
.section.narrow { max-width: 720px; }
.center { text-align: center; }

.quote-section { padding: 20px 0 0; text-align: center; }
.quote-section blockquote {
  margin: 0 auto;
  max-width: 640px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--sage-dark);
}

.audience-grid { align-items: stretch; }
.audience-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.audience-card h2 { margin-top: 0; }
.reiki-audience { background: #f3e3e1; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.grid-services {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}
.service-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-decoration: none;
  color: var(--ink);
  min-width: 160px;
  box-shadow: var(--shadow);
}
.service-chip-name { font-weight: 600; color: var(--sage-dark); }
.service-chip-price { color: var(--terracotta-dark); font-weight: 600; }

.grid-services-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.service-card .price { color: var(--terracotta-dark); font-weight: 700; white-space: nowrap; }
.service-card .duration { color: var(--ink-soft); font-size: 0.9rem; margin: -6px 0 0; }
.service-card .btn { align-self: flex-start; margin-top: auto; }

/* Forms */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}
.form-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  color: var(--ink-soft);
}
.form-card input, .form-card select, .form-card textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  background: var(--cream);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: 2px solid var(--sage);
}

.contact-info { margin-top: 24px; color: var(--ink-soft); }

/* Reservation calendar */
.slots-fieldset { border: none; padding: 0; margin: 0; }
.slots-fieldset legend { font-weight: 600; color: var(--sage-dark); padding: 0 0 8px; }
.slot-day { margin-bottom: 14px; }
.slot-day-label { font-weight: 600; margin: 0 0 6px; }
.slot-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.slot-btn {
  background: var(--cream);
  border: 1px solid var(--cream-dark);
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: inherit;
}
.slot-btn:hover { border-color: var(--sage); }
.slot-btn[aria-pressed="true"] {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: var(--white);
}
.selected-slot-label {
  background: var(--cream-dark);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
}

.calendar {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 16px;
  max-width: 360px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.calendar-month-label {
  font-weight: 600;
  color: var(--sage-dark);
  text-transform: capitalize;
  margin: 0;
}
.calendar-weekdays, .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.calendar-weekdays span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 600;
  padding-bottom: 4px;
}
.cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
.cal-day.disabled {
  color: var(--cream-dark);
  cursor: default;
}
.cal-day.has-slots {
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
}
.cal-day.has-slots:hover { background: var(--sage); color: var(--white); }
.cal-day.selected {
  background: var(--sage-dark) !important;
  color: var(--white) !important;
}

.day-slots { margin-top: 18px; }

.empty-state { color: var(--ink-soft); font-style: italic; }

/* Flash messages */
.flash-wrap { padding-top: 16px; }
.flash { padding: 12px 16px; border-radius: 8px; font-weight: 500; }
.flash-success { background: #e4efe6; color: var(--sage-dark); }
.flash-error { background: #f6e3dd; color: var(--terracotta-dark); }

/* Admin */
.admin-table { width: 100%; border-collapse: collapse; margin: 16px 0 32px; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--cream-dark); font-size: 0.92rem; }
.admin-actions { display: flex; gap: 8px; }
.admin-slot-list { list-style: none; padding: 0; }
.admin-slot-list li { display: flex; justify-content: space-between; align-items: center; background: var(--white); padding: 10px 16px; border-radius: 8px; margin-bottom: 8px; box-shadow: var(--shadow); }
.form-inline { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.form-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--ink-soft); }
.form-inline input, .form-inline select { padding: 8px; border-radius: 6px; border: 1px solid var(--cream-dark); }
.admin-message-list { list-style: none; padding: 0; }
.admin-message-list li { background: var(--white); padding: 14px 18px; border-radius: 8px; margin-bottom: 10px; box-shadow: var(--shadow); }
.admin-message-list li.unread { border-left: 4px solid var(--terracotta); }

/* Stats */
.muted { color: var(--ink-soft); font-size: 0.9rem; }
.period-links { display: flex; gap: 8px; margin: 14px 0 20px; }
.stats-summary .stat-number { font-size: 2.2rem; font-weight: 700; color: var(--terracotta-dark); margin: 0; }
.chart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 160px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 12px 8px;
  margin: 16px 0 32px;
  overflow-x: auto;
}
.chart-bar-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  flex: 1 0 18px;
  height: 100%;
  min-width: 18px;
}
.chart-bar {
  width: 100%;
  min-height: 2px;
  background: var(--sage);
  border-radius: 3px 3px 0 0;
}
.chart-label {
  font-size: 0.65rem;
  color: var(--ink-soft);
  margin-top: 4px;
  writing-mode: vertical-rl;
  white-space: nowrap;
}

/* Footer */
.site-footer { background: var(--sage-dark); color: var(--white); margin-top: 60px; padding: 36px 0; }
main:has(> .membership-banner:last-child) + .site-footer { margin-top: 0; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer-nav, .footer-social { display: flex; flex-direction: column; gap: 8px; }

/* Bandeau Chambre Syndicale */
.membership-banner { background: var(--sage-dark); color: var(--white); padding: 40px 0; }
.membership-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  text-align: center;
}
.membership-banner p {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.3rem;
  max-width: 360px;
  margin: 0;
}
.membership-banner img { width: 140px; height: auto; border-radius: 6px; }
.membership-banner a { display: inline-block; }

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.blog-card:hover { box-shadow: 0 14px 34px rgba(47, 43, 38, 0.14); }
.blog-card-cover { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.blog-card-cover-placeholder { background: linear-gradient(135deg, var(--sage) 0%, var(--cream-dark) 100%); }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.blog-card-body h2 { margin: 0; font-size: 1.15rem; }
.blog-card-date { font-size: 0.8rem; color: var(--ink-soft); margin: 0; }
.blog-card-link { color: var(--terracotta-dark); font-weight: 600; margin-top: auto; padding-top: 8px; }

.article { max-width: 720px; }
.article-back a { color: var(--sage-dark); font-weight: 600; }
.article-cover { width: 100%; border-radius: var(--radius); margin: 16px 0; }
.article-body { line-height: 1.75; }
.article-body h2 { margin-top: 1.6em; }
.article-body img { border-radius: var(--radius); }
.article-body blockquote {
  border-left: 4px solid var(--sage);
  margin: 20px 0;
  padding: 4px 20px;
  color: var(--ink-soft);
  font-style: italic;
}
.article-body pre {
  background: var(--cream-dark);
  padding: 14px;
  border-radius: 8px;
  overflow-x: auto;
}

.status-badge { padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.status-badge.status-published { background: #e4efe6; color: var(--sage-dark); }
.status-badge.status-draft { background: var(--cream-dark); color: var(--ink-soft); }
