/* Services page — hero, formules filtrées, FAQ, CTA */

.page-services {
  --svc-gap: clamp(0.55rem, 1vw, 0.85rem);
}

.svc-kicker {
  margin: 0 0 0.7rem;
  font-size: clamp(0.72rem, 1.05vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.svc-kicker-dark {
  color: var(--faint);
}

/* Hero plein écran */
.svc-hero {
  height: 100svh;
  height: 100dvh;
  padding: calc(var(--header-h) + var(--hero-inset)) var(--hero-inset) var(--hero-inset);
  box-sizing: border-box;
}

.svc-hero-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: clamp(0.85rem, 1.8vw, 1.5rem);
  background: var(--ink);
}

.svc-hero-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.svc-hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  color: var(--white);
  background: radial-gradient(ellipse 55% 35% at 50% 48%, rgba(18, 12, 8, 0.36), transparent 72%);
}

.svc-hero-copy .svc-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.svc-hero-copy h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--title);
  line-height: 1.15;
  white-space: nowrap;
}

/* Formules */
.svc-formulas {
  padding: var(--section-space) var(--hero-inset) calc(var(--section-space) / 2);
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.svc-formulas-intro {
  text-align: center;
  margin: 0 0 1rem;
}

.svc-formulas-intro h2 {
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--title);
  line-height: 1.2;
  color: var(--terracotta);
  white-space: nowrap;
  text-align: center;
}

.svc-formula-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 calc(var(--section-space) / 2);
}

.svc-filter-btn {
  margin-top: 0;
  align-self: center;
  background: var(--bg-card);
  color: var(--ink);
  cursor: pointer;
}

.svc-filter-btn:hover {
  background: var(--accent-20);
}

.svc-filter-btn.is-active {
  background: var(--ink);
  color: var(--on-accent);
}

.svc-filter-btn.is-active:hover {
  background: var(--accent-deep);
  color: var(--on-accent);
}

.svc-included {
  width: min(760px, 100%);
  margin: calc(var(--section-space) / 1.25) auto 0;
  text-align: center;
}

.svc-included h2 {
  margin: 0 0 0.85rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  letter-spacing: var(--title-tracking);
  color: var(--terracotta);
}

.svc-included p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1rem;
}

.svc-included p + p {
  margin-top: 0.45rem;
}

.svc-formulas-panels {
  display: flex;
  justify-content: center;
  width: 100%;
}

.svc-formula {
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  background: var(--bg-card);
  border-radius: 0.5rem;
  padding: clamp(1.75rem, 3.2vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.svc-formula[hidden] {
  display: none !important;
}

.svc-formula h3 {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--subtitle);
  color: var(--terracotta);
}

.svc-formula ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
  width: min(36rem, 100%);
  justify-items: center;
}

.svc-formula li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}

/* FAQ */
.svc-faq {
  padding: calc(var(--section-space) / 2) var(--hero-inset);
}

.svc-faq-frame {
  position: relative;
  overflow: hidden;
  border-radius: clamp(0.85rem, 1.8vw, 1.5rem);
  min-height: min(72svh, 38rem);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background:
    linear-gradient(rgba(18, 14, 10, 0.42), rgba(18, 14, 10, 0.42)),
    var(--svc-faq-bg) center / cover no-repeat;
}

.svc-faq-frame .svc-kicker {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 1.5rem;
}

.svc-faq-list {
  width: min(36rem, 100%);
  display: grid;
  gap: 0.35rem;
}

.svc-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.svc-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 0;
  font-size: var(--text);
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.svc-faq-item summary::-webkit-details-marker {
  display: none;
}

.svc-faq-item summary::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.svc-faq-item[open] summary::before {
  transform: rotate(-135deg);
  margin-top: 0.55rem;
}

.svc-faq-item p {
  margin: 0 0 1rem 1.3rem;
  font-size: var(--text);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.86);
  max-width: 42ch;
}

/* CTA final — sans image de fond */
.svc-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--section-space) / 2) var(--hero-inset) var(--section-space);
  background: var(--white);
}

.svc-cta .svc-kicker,
.svc-cta .svc-kicker-dark {
  color: var(--faint);
}

.svc-cta h2 {
  margin: 0 auto 0.85rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: var(--title);
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: var(--title-tracking);
  white-space: nowrap;
  text-align: center;
}

.svc-cta .header-cta {
  margin-top: 0;
}

.page-services .site-footer {
  margin-top: 0;
}

@media (max-width: 900px) {
  .svc-hero-copy h1,
  .svc-formulas-intro h2,
  .svc-included h2,
  .svc-cta h2 {
    white-space: normal;
    max-width: 18ch;
    margin-inline: auto;
    font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  }
}

@media (max-width: 640px) {
  .page-services {
    --header-h: 4rem;
  }

  .svc-hero {
    height: 100svh;
    height: 100dvh;
  }

  .svc-hero-copy h1,
  .svc-formulas-intro h2,
  .svc-cta h2 {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
    max-width: 14ch;
  }

  .svc-filter-btn {
    padding-inline: 0.95rem;
    font-size: 0.58rem;
  }
}
