@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #26322e;
  --ink-soft: #4a564f;
  --bg: #fffefa;
  --bg-panel: #e9d3cc;
  --sage: #7c9683;
  --sage-dark: #5c7565;
  --rose: #d97706;
  --rose-dark: #b45309;
  --plum: #5c1a2b;
  --line: rgba(38, 50, 46, 0.16);
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; max-width: 62ch; }

a { color: var(--rose-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.45);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}

.wordmark img {
  height: 44px;
  width: 44px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
}

.wordmark-text span {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.98rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--sage-dark);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.6rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--rose-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--rose); color: #fff; }

.btn-secondary {
  border-color: rgba(38, 50, 46, 0.25);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}
.btn-secondary:hover { background: rgba(38, 50, 46, 0.08); border-color: var(--ink); }

.btn-row { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* Hero */
.hero {
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-text { max-width: 34rem; }
.hero-text-wide { max-width: none; }
.hero-text-wide h1 { white-space: nowrap; }
@media (max-width: 700px) {
  .hero-text-wide h1 { white-space: normal; }
}

.access-note { max-width: none; }
.bus-line { white-space: nowrap; }
@media (max-width: 700px) {
  .bus-line { white-space: normal; }
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-photo {
  flex-shrink: 0;
  width: 160px;
  max-width: 32vw;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 12px 30px rgba(38, 50, 46, 0.18);
}

.hero-photo-room {
  width: 320px;
  max-width: 42vw;
}
.hero-photo-room img { aspect-ratio: 4 / 3; }

@media (max-width: 700px) {
  .hero-flex { flex-direction: column-reverse; align-items: flex-start; }
  .hero-photo { width: 130px; max-width: 40vw; }
  .hero-photo-room { width: 100%; max-width: 100%; }
}

/* Sections */
section { padding: 3.4rem 0; }

.panel { background: var(--bg-panel); }

.section-head { max-width: 42rem; margin-bottom: 2.2rem; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
}

/* Onglets Adulte / Enfant & adolescent (page Prestations, mobile) */
.price-tab-switch { display: none; }

.price-tab-btn {
  flex: 1;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
}
.price-tab-btn.active {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  color: #fff;
}

@media (max-width: 800px) {
  .price-tab-switch { display: flex; gap: 0.6rem; margin-bottom: 1.8rem; }
  .price-tabs [data-tab-panel] { display: none; }
  .price-tabs [data-tab-panel].active-panel { display: block; }
}

.item {
  border-top: 2px solid var(--sage-dark);
  padding-top: 1rem;
}

.item h3 { margin-bottom: 0.5em; }

.price-subhead {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sage-dark);
  margin: 1.8rem 0 0.6rem;
}
.price-subhead:first-of-type { margin-top: 0.4rem; }

.stack > .item + .item { margin-top: 2.8rem; }

/* Pricing */
.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.price-row:first-child { border-top: 1px solid var(--line); }

.price-row h3 { margin: 0 0 0.3em; }
.price-row p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* Tarifs dépliables (accordéon) */
.price-details {
  border-bottom: 1px solid var(--line);
}
.price-details:first-of-type { border-top: 1px solid var(--line); }

.price-summary-btn {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  padding: 1.1rem 0;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

.price-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.price-summary-text { min-width: 0; }
.price-summary-text h3 { margin: 0; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ordinal-num { font-size: 1.5em; font-weight: 400; }

.price-toggle {
  align-self: flex-start;
}
.price-toggle::before {
  content: '+';
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--sage-dark);
  line-height: 1;
}
.price-details.open .price-toggle::before { content: '×'; }

.price-details-content {
  padding: 0 0 1.2rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.price-details-content p { margin: 0 0 0.8em; max-width: 56ch; }
.price-details-content p:last-child { margin-bottom: 0; }
.price-details-content ul {
  margin: 0 0 0.8em;
  padding-left: 1.2em;
  max-width: 56ch;
}
.price-details-content li { margin-bottom: 0.3em; }
.price-details-content .bilan-note {
  font-style: italic;
  font-size: 0.9rem;
}
.price-details-content .bilan-contact {
  margin-top: 1em;
  padding-top: 0.8em;
  border-top: 1px dashed var(--line);
  font-weight: 500;
  color: var(--ink);
}

.price-amount {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  white-space: nowrap;
  color: var(--rose-dark);
  flex-shrink: 0;
}

.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
}
.note-wide { max-width: none; }

.attention-note {
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg-panel);
  border-left: 3px solid var(--rose-dark);
  padding: 0.9rem 1.1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.attention-note strong { color: var(--rose-dark); }

/* Steps (legitimate sequence) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-top: 1rem;
  border-top: 2px solid var(--sage-dark);
  position: relative;
}

.steps li::before {
  content: counter(step);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--sage-dark);
  display: block;
  margin-bottom: 0.4rem;
}

/* Callout */
.callout {
  background: var(--plum);
  color: var(--bg);
  border-radius: 6px;
  padding: 2.2rem;
}

.callout h2, .callout p { color: var(--bg); }
.callout a.btn-primary { background: var(--rose); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

form.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 32rem; }

label { font-size: 0.92rem; color: var(--ink-soft); }

input, textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

input:focus, textarea:focus, a:focus, button:focus {
  outline: 3px solid var(--sage-dark);
  outline-offset: 2px;
}

textarea { resize: vertical; min-height: 140px; }

.info-block { border-top: 2px solid var(--sage-dark); padding-top: 1rem; margin-bottom: 1.8rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner a {
  color: var(--ink-soft);
  text-decoration: underline;
}
.footer-inner a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 800px) {
  .grid-3, .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .grid-2, .contact-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 254, 250, 0.96);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 8px 24px rgba(38, 50, 46, 0.18);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.9rem 1.5rem; border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
  .price-summary-text h3 {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-size: 0.98rem;
  }
}

/* Bandeau cookies */
.cookie-banner {
  background: var(--plum);
  color: var(--bg);
  font-size: 0.85rem;
  text-align: center;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1.5rem;
  position: relative;
}

.cookie-banner-close {
  background: none;
  border: none;
  color: var(--bg);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 0.3rem;
}

.cookie-banner.hidden { display: none; }

/* Carte */
.map-embed {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }
