/* Page Thérapie brève — styles scopés */

.page-therapie .footer-cta {
  display: none;
}

.page-therapie .site-footer {
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

.tb-page {
  --tb-cream: #fbf8f4;
  --tb-white: #fffdfa;
  --tb-sage-bg: #eef2e8;
  --tb-terracotta: #c67b63;
  --tb-terracotta-deep: #a8614d;
  --tb-ink: #3f342c;
  --tb-ink-soft: #5c4f45;
  --tb-muted: #7a6b60;
  --tb-shadow: 0 14px 40px rgba(63, 52, 44, 0.06);
  --tb-shadow-soft: 0 10px 28px rgba(63, 52, 44, 0.05);
  --tb-scroll-offset: calc(var(--header-h) + 0.75rem);
}

.page-therapie .tb-page [id] {
  scroll-margin-top: var(--tb-scroll-offset);
}

.tb-section {
  padding: clamp(2rem, 4vw, 3.2rem) 0;
}

.tb-section-sage {
  background: linear-gradient(180deg, var(--tb-sage-bg) 0%, rgba(238, 242, 232, 0.45) 100%);
}

/* Hero — desktop photo de fond + voile ; mobile grammaire accueil */
.tb-hero-photo {
  position: relative;
  overflow: hidden;
  min-height: clamp(24rem, 44vw, 32rem);
  padding: clamp(1.7rem, 3.4vw, 2.6rem) 0 clamp(2rem, 4vw, 3rem);
  background: var(--tb-cream);
}

.tb-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.tb-hero-bg picture,
.tb-hero-bg .tb-hero-bg-img,
.tb-hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% 42%;
}

.tb-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(251, 248, 244, 0.96) 0%,
    rgba(251, 248, 244, 0.9) 26%,
    rgba(251, 248, 244, 0.58) 46%,
    rgba(251, 248, 244, 0.18) 62%,
    rgba(251, 248, 244, 0) 78%
  );
}

.tb-hero-photo > .shell,
.tb-hero-grid {
  position: relative;
  z-index: 2;
}

.tb-hero-inner {
  max-width: 40.5rem;
  margin: 0;
  text-align: left;
}

.tb-hero-photo .breadcrumb {
  margin-bottom: 0.7rem;
}

.tb-hero-photo h1 {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.4;
  color: var(--tb-muted);
  margin: 0 0 0.95rem;
  max-width: 34rem;
  text-align: left;
}

.tb-hook {
  font-family: var(--font-display);
  font-size: clamp(1.95rem, 3.15vw, 2.55rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--tb-ink);
  margin: 0 0 1.05rem;
}

.tb-hero-lede {
  max-width: 36rem;
  margin: 0 0 1.05rem;
  color: var(--tb-ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.7;
}

.tb-hero-signature {
  margin: 0 0 1.25rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tb-terracotta);
}

.tb-signature-dot {
  color: var(--tb-terracotta-deep);
  opacity: 0.75;
  padding-inline: 0.15rem;
  letter-spacing: 0;
}

.tb-hero-actions {
  margin: 0 0 0.15rem;
}

.tb-hero-photo .hero-meta {
  justify-content: flex-start;
  margin-top: 1rem;
}

.tb-hero-mobile-photo {
  display: none;
}

/* Offres */
.tb-section-orient {
  padding-top: clamp(1.5rem, 2.8vw, 2rem);
  padding-bottom: clamp(1.4rem, 2.6vw, 1.9rem);
  background: var(--tb-cream);
}

.tb-orient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  align-items: stretch;
}

.tb-orient-card {
  background: var(--tb-white);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.15rem, 2.2vw, 1.45rem);
  box-shadow: var(--tb-shadow-soft);
  border: 1px solid rgba(125, 132, 108, 0.14);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tb-orient-card h2 {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  margin: 0;
  line-height: 1.25;
}

.tb-orient-strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--tb-terracotta-deep);
  margin: 0;
}

.tb-orient-card > p {
  margin: 0;
  color: var(--tb-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tb-orient-price {
  margin: 0.15rem 0 0 !important;
  color: var(--tb-terracotta-deep) !important;
  font-weight: 500;
  font-size: 1rem !important;
}

.tb-orient-formats {
  display: grid;
  gap: 0.55rem;
  margin: 0.1rem 0 0.2rem;
}

.tb-orient-format {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  color: var(--tb-ink-soft);
  font-size: 0.9rem;
  line-height: 1.4;
}

.tb-orient-format .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  color: var(--tb-terracotta);
}

.tb-orient-format span {
  min-width: 0;
}

.tb-orient-format strong {
  display: block;
  color: var(--tb-ink);
  font-weight: 600;
  font-size: 0.9rem;
}

.tb-orient-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.tb-reassure {
  margin: 1.15rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--tb-ink-soft);
  font-style: italic;
}

.tb-img-frame {
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--tb-shadow-soft);
}

.tb-img-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Comment ça se passe */
.tb-section-steps {
  background: linear-gradient(180deg, #f3e4da 0%, #ead6cc 100%);
  padding-top: clamp(2rem, 3.8vw, 2.9rem);
  padding-bottom: clamp(2rem, 3.8vw, 2.9rem);
}

.tb-section-steps .section-head {
  margin-bottom: 1.2rem;
}

.tb-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.tb-step {
  background: var(--tb-white);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.2rem, 2.2vw, 1.45rem);
  box-shadow: var(--tb-shadow-soft);
  border: 1px solid rgba(198, 123, 99, 0.12);
}

.tb-step-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--tb-terracotta);
  margin-bottom: 0.5rem;
}

.tb-step-num {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tb-terracotta-deep);
  font-weight: 600;
  margin: 0 0 0.45rem;
}

.tb-step p {
  margin: 0;
  color: var(--tb-ink-soft);
  font-size: 0.98rem;
  line-height: 1.62;
}

/* Parcours */
.tb-section-path {
  background: var(--tb-cream);
  padding-top: clamp(2rem, 3.8vw, 2.9rem);
  padding-bottom: clamp(2rem, 3.8vw, 2.9rem);
}

.tb-path-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: clamp(1.6rem, 3.5vw, 2.6rem);
  align-items: center;
}

.tb-path-copy h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin: 0 0 0.85rem;
  line-height: 1.22;
}

.tb-path-copy p {
  margin: 0 0 1rem;
  max-width: 38rem;
  color: var(--tb-ink-soft);
  font-size: 1.04rem;
  line-height: 1.72;
}

.tb-path-copy .text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--tb-terracotta-deep);
}

.tb-path-visual {
  min-height: clamp(14rem, 24vw, 18rem);
  margin: 0;
}

.tb-path-visual img,
.tb-path-visual .tb-path-img {
  width: 100%;
  height: 100%;
  min-height: clamp(14rem, 24vw, 18rem);
  object-fit: cover;
  object-position: center 45%;
}

/* Concrètement */
.tb-brief {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.tb-brief h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin: 0 0 1rem;
}

.tb-brief-copy p {
  color: var(--tb-ink-soft);
  font-size: 1.04rem;
  line-height: 1.74;
  margin: 0 0 1.15rem;
  text-wrap: pretty;
}

.tb-brief-copy p:last-child,
.tb-brief-note {
  margin-bottom: 0;
  margin-top: 0.25rem;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--tb-ink);
  font-size: 1.12rem;
}

/* CTA final */
.tb-final-cta {
  text-align: center;
  background: linear-gradient(180deg, var(--tb-white) 0%, var(--tb-cream) 100%);
  padding-top: clamp(2.3rem, 4vw, 3.4rem);
  padding-bottom: clamp(2.8rem, 5.2vw, 4rem);
}

.tb-final-cta h2 {
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  max-width: 24ch;
  margin: 0 auto 1rem;
}

.tb-final-cta p {
  max-width: 36rem;
  margin: 0 auto 1rem;
  color: var(--tb-ink-soft);
}

.tb-final-cta .btn-row {
  justify-content: center;
  margin-top: 1.5rem;
}

/* FAQ */
.page-therapie .section-faq {
  background: var(--tb-white);
  padding-top: clamp(2.3rem, 4vw, 3.4rem);
  padding-bottom: clamp(2.3rem, 4vw, 3.4rem);
}

.page-therapie .section-faq .faq {
  max-width: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.2rem;
}

.page-therapie .section-faq .section-head {
  text-align: center;
  margin-inline: auto;
}

/* Sticky (réutilise cf-sticky) */
.page-therapie .cf-sticky {
  position: fixed;
  z-index: 40;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.page-therapie .cf-sticky.is-away {
  transform: translateY(calc(120% + env(safe-area-inset-bottom, 0px)));
  opacity: 0;
  pointer-events: none;
}

.page-therapie .cf-sticky-btn {
  box-shadow: 0 12px 36px rgba(63, 52, 44, 0.18);
  min-height: 48px;
  padding-inline: 1.25rem;
}

@media (max-width: 1100px) {
  .tb-path-split {
    grid-template-columns: 1fr;
  }

  .tb-path-visual {
    max-width: 32rem;
    margin-inline: auto;
  }

  .tb-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .tb-orient-grid {
    grid-template-columns: 1fr;
  }

  .tb-orient-card .btn {
    width: 100%;
    justify-content: center;
  }

  .page-therapie .section-faq .faq {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .tb-hero-photo {
    min-height: 0;
    padding: 0.75rem 0 1.15rem;
    overflow: visible;
    background: linear-gradient(180deg, #fbf8f4 0%, var(--tb-cream) 100%);
  }

  .tb-hero-bg,
  .tb-hero-veil {
    display: none;
  }

  .tb-hero-photo > .shell,
  .tb-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
    column-gap: 0.7rem;
    row-gap: 0;
    align-items: start;
    padding: 0;
  }

  .tb-hero-inner {
    display: contents;
    max-width: none;
  }

  .tb-hero-photo .breadcrumb {
    grid-column: 1 / -1;
    grid-row: 1;
    margin: 0 0 0.28rem;
  }

  .tb-hero-photo h1 {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 0 0.42rem;
    font-size: 0.82rem;
    line-height: 1.38;
    max-width: none;
  }

  .tb-hook {
    grid-column: 1;
    grid-row: 3;
    align-self: center;
    position: relative;
    z-index: 3;
    font-size: clamp(1.32rem, 5.5vw, 1.52rem);
    line-height: 1.16;
    margin: 0;
  }

  .tb-hero-mobile-photo {
    display: block;
    grid-column: 2;
    grid-row: 3;
    position: relative;
    overflow: hidden;
    width: calc(100% + 3.2rem);
    height: 11rem;
    min-height: 11rem;
    max-height: 11rem;
    align-self: start;
    margin: 0 0 0 -3.2rem;
    border-radius: 0 20px 20px 0;
    box-shadow: none;
    background: transparent;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 6%, rgba(0, 0, 0, 0.55) 12%, rgba(0, 0, 0, 0.88) 18%, #000 24%, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.2) 6%, rgba(0, 0, 0, 0.55) 12%, rgba(0, 0, 0, 0.88) 18%, #000 24%, #000 100%);
  }

  .tb-hero-mobile-photo::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5.2rem;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
      90deg,
      #fbf8f4 0%,
      rgba(251, 248, 244, 0.78) 14%,
      rgba(251, 248, 244, 0.42) 40%,
      rgba(251, 248, 244, 0.16) 68%,
      rgba(251, 248, 244, 0) 100%
    );
  }

  .tb-hero-mobile-photo picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .tb-hero-mobile-photo img,
  .tb-hero-mobile-photo .tb-hero-mobile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: 62% 36%;
    filter: saturate(0.96) contrast(1.02);
  }

  .tb-hero-lede {
    grid-column: 1 / -1;
    grid-row: 4;
    max-width: none;
    margin: 1.5rem 0 0;
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .tb-hero-signature {
    grid-column: 1 / -1;
    grid-row: 5;
    margin: 1.5rem 0 0;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    font-style: normal;
  }

  .tb-hero-photo .hero-meta {
    grid-column: 1 / -1;
    grid-row: 7;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin: 1rem 0 0;
    padding: 0;
    gap: 0.95rem;
    color: var(--tb-muted);
    font-size: 0.78rem;
    line-height: 1.3;
  }

  .tb-hero-photo .hero-meta li {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .tb-hero-photo .hero-meta .icon {
    width: 0.92rem;
    height: 0.92rem;
    color: var(--tb-terracotta);
    opacity: 0.82;
  }

  .tb-hero-actions {
    grid-column: 1 / -1;
    grid-row: 6;
    margin: 0.7rem 0 0;
  }

  .tb-hero-actions .btn {
    min-height: 2.7rem;
  }

  .page-therapie .cf-sticky {
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 253, 250, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(198, 123, 99, 0.15);
  }

  .page-therapie .cf-sticky-btn {
    width: 100%;
    justify-content: center;
  }

  .page-therapie .site-footer {
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 390px) {
  .tb-hero-photo h1 {
    font-size: 0.8rem;
  }

  .tb-hook {
    font-size: clamp(1.26rem, 5.4vw, 1.42rem);
  }
}

@media (max-width: 360px) {
  .tb-hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    column-gap: 0.5rem;
  }

  .tb-hero-photo h1 {
    font-size: 0.78rem;
  }

  .tb-hook {
    font-size: clamp(1.2rem, 5.3vw, 1.34rem);
  }

  .tb-hero-mobile-photo {
    height: 10.25rem;
    min-height: 10.25rem;
    max-height: 10.25rem;
  }

  .tb-hero-photo .hero-meta {
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
  }
}
