/*
Theme Name: TheraBoost Theme
Theme URI: https://theraboost.local/
Author: TheraBoost
Author URI: https://theraboost.local/
Description: Thème moderne, élégant et fonctionnel pour la plateforme TheraBoost : espace thérapeute, pages publiques, futures fiches et mini-sites de thérapeutes.
Version: 0.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theraboost-theme
Tags: custom-logo, custom-menu, featured-images, one-column, two-columns, accessibility-ready, responsive-layout
*/

:root {
  --tb-green-950: #073f3b;
  --tb-green-900: #0b4f49;
  --tb-green-800: #176b5f;
  --tb-green-700: #247c6f;
  --tb-green-600: #2f927f;
  --tb-green-100: #e8f6f1;
  --tb-green-50: #f3fbf8;
  --tb-ink: #10231f;
  --tb-muted: #5f6f6a;
  --tb-line: #d8e7e1;
  --tb-bg: #f4f8f5;
  --tb-card: #ffffff;
  --tb-orange: #ff8a3d;
  --tb-shadow: 0 20px 50px rgba(7, 63, 59, .12);
  --tb-radius-lg: 28px;
  --tb-radius: 18px;
  --tb-radius-sm: 12px;
  --tb-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tb-ink);
  background: var(--tb-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--tb-green-800); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--tb-green-950); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0,0,0,.18);
  clip: auto !important;
  clip-path: none;
  color: var(--tb-ink);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 10px 14px;
  top: 8px;
  width: auto;
  z-index: 100000;
}

.tb-shell { min-height: 100vh; display: flex; flex-direction: column; }
.tb-container { width: min(var(--tb-max), calc(100% - 40px)); margin-inline: auto; }

.tb-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 248, 245, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(216, 231, 225, .9);
}
.admin-bar .tb-site-header { top: 32px; }
.tb-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tb-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--tb-ink); text-decoration: none; font-weight: 800; letter-spacing: -.03em; }
.tb-brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--tb-green-800), var(--tb-green-600));
  color: #fff;
  box-shadow: 0 12px 28px rgba(36, 124, 111, .24);
}
.tb-brand-text { display: grid; line-height: 1.04; }
.tb-brand-name { font-size: 1.15rem; }
.tb-brand-subtitle { color: var(--tb-muted); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }

.tb-nav-toggle { display: none; border: 1px solid var(--tb-line); background: #fff; border-radius: 999px; padding: 9px 12px; color: var(--tb-ink); cursor: pointer; }
.tb-primary-nav { display: flex; align-items: center; gap: 10px; }
.tb-primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.tb-primary-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 13px; border-radius: 999px; text-decoration: none; color: var(--tb-ink); font-weight: 650; font-size: .94rem; }
.tb-primary-nav a:hover, .tb-primary-nav .current-menu-item > a { background: var(--tb-green-100); color: var(--tb-green-950); }
.tb-header-actions { display: flex; align-items: center; gap: 10px; }

.tb-btn, .wp-block-button__link, input[type="submit"], button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--tb-green-800);
  color: #fff;
  text-decoration: none;
  font-weight: 760;
  line-height: 1.1;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tb-btn:hover, .wp-block-button__link:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--tb-green-950); color: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(7, 63, 59, .2); }
.tb-btn--ghost { background: #fff; color: var(--tb-green-900); border-color: var(--tb-line); box-shadow: none; }
.tb-btn--ghost:hover { background: var(--tb-green-100); color: var(--tb-green-950); box-shadow: none; }
.tb-btn--soft { background: var(--tb-green-100); color: var(--tb-green-950); }
.tb-btn--soft:hover { background: #dcefe9; color: var(--tb-green-950); box-shadow: none; }

.tb-main { flex: 1; }
.tb-hero {
  padding: 72px 0 44px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 138, 61, .18), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(47, 146, 127, .25), transparent 34%);
}
.tb-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 34px;
  align-items: center;
  padding: clamp(28px, 5vw, 60px);
  border-radius: var(--tb-radius-lg);
  background: linear-gradient(135deg, var(--tb-green-900), var(--tb-green-700));
  color: #fff;
  box-shadow: var(--tb-shadow);
  overflow: hidden;
  position: relative;
}
.tb-hero-card:after {
  content: "";
  position: absolute;
  right: -140px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}
.tb-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.92); font-weight: 780; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.tb-hero h1, .tb-page-title { margin: 0; font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: .98; letter-spacing: -.07em; }
.tb-hero p { max-width: 680px; margin: 22px 0 0; color: rgba(255,255,255,.86); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.tb-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.tb-hero-actions .tb-btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); }
.tb-hero-actions .tb-btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff; }
.tb-hero-panel { position: relative; z-index: 1; padding: 24px; border-radius: 24px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); }
.tb-hero-panel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tb-hero-panel-list li { display: flex; gap: 10px; align-items: flex-start; color: rgba(255,255,255,.92); font-weight: 650; }
.tb-check { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(255,255,255,.18); font-size: 13px; }

.tb-section { padding: 54px 0; }
.tb-section-title { margin: 0 0 14px; font-size: clamp(1.7rem, 3vw, 2.65rem); line-height: 1.06; letter-spacing: -.05em; color: var(--tb-ink); }
.tb-section-lead { margin: 0 0 26px; max-width: 780px; color: var(--tb-muted); font-size: 1.08rem; }
.tb-grid { display: grid; gap: 18px; }
.tb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tb-card { background: var(--tb-card); border: 1px solid var(--tb-line); border-radius: var(--tb-radius); padding: 24px; box-shadow: 0 14px 36px rgba(7, 63, 59, .06); }
.tb-card h2, .tb-card h3 { margin-top: 0; letter-spacing: -.035em; line-height: 1.14; }
.tb-card p:last-child { margin-bottom: 0; }
.tb-kicker { color: var(--tb-green-800); font-weight: 800; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.tb-muted { color: var(--tb-muted); }

.tb-content-wrap { padding: 46px 0 70px; }
.tb-content-card { background: #fff; border: 1px solid var(--tb-line); border-radius: var(--tb-radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--tb-shadow); }
.tb-content-card > *:first-child { margin-top: 0; }
.tb-content-card h1, .tb-content-card h2, .tb-content-card h3 { letter-spacing: -.04em; line-height: 1.1; }
.tb-entry-header { margin-bottom: 26px; }
.tb-entry-meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--tb-muted); font-size: .92rem; }
.tb-post-list { display: grid; gap: 20px; }
.tb-post-card { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: stretch; }
.tb-post-thumb { border-radius: var(--tb-radius); overflow: hidden; min-height: 170px; background: var(--tb-green-100); }
.tb-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-post-title { margin: 0 0 8px; font-size: 1.45rem; }
.tb-post-title a { color: var(--tb-ink); text-decoration: none; }
.tb-post-title a:hover { color: var(--tb-green-800); }

.tb-minisite-shell { padding: 42px 0 70px; }
.tb-practitioner-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.tb-practitioner-photo { width: 220px; aspect-ratio: 1; border-radius: 34px; overflow: hidden; background: var(--tb-green-100); border: 1px solid var(--tb-line); }
.tb-practitioner-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-practitioner-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tb-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 6px 10px; border-radius: 999px; background: var(--tb-green-100); color: var(--tb-green-950); font-weight: 720; font-size: .85rem; }

.tb-form input[type="text"], .tb-form input[type="email"], .tb-form input[type="url"], .tb-form input[type="password"], .tb-form input[type="tel"], .tb-form input[type="number"], .tb-form select, .tb-form textarea,
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea,
.wp-block-search__input {
  width: 100%;
  border: 1px solid var(--tb-line);
  border-radius: 14px;
  background: #fff;
  color: var(--tb-ink);
  min-height: 44px;
  padding: 10px 13px;
  outline: none;
}
.tb-form textarea, .comment-form textarea { min-height: 140px; }
.tb-form input:focus, .tb-form select:focus, .tb-form textarea:focus,
.comment-form input:focus, .comment-form textarea:focus, .wp-block-search__input:focus { border-color: var(--tb-green-700); box-shadow: 0 0 0 3px rgba(36, 124, 111, .14); }

.tb-site-footer { padding: 46px 0; background: var(--tb-green-950); color: rgba(255,255,255,.82); margin-top: auto; }
.tb-footer-inner { display: grid; grid-template-columns: 1.2fr repeat(2, minmax(180px, .5fr)); gap: 30px; }
.tb-footer-title { color: #fff; font-weight: 830; font-size: 1.15rem; letter-spacing: -.03em; margin: 0 0 10px; }
.tb-site-footer a { color: #fff; text-decoration: none; }
.tb-site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tb-footer-bottom { margin-top: 32px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.66); font-size: .92rem; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }

@media (max-width: 920px) {
  .admin-bar .tb-site-header { top: 46px; }
  .tb-nav-toggle { display: inline-flex; }
  .tb-primary-nav { position: absolute; left: 20px; right: 20px; top: calc(100% + 8px); display: none; padding: 12px; background: #fff; border: 1px solid var(--tb-line); border-radius: 20px; box-shadow: var(--tb-shadow); }
  .tb-primary-nav.is-open { display: block; }
  .tb-primary-nav ul { display: grid; gap: 2px; }
  .tb-primary-nav a { width: 100%; }
  .tb-hero-card, .tb-practitioner-hero { grid-template-columns: 1fr; }
  .tb-grid--3, .tb-grid--2 { grid-template-columns: 1fr; }
  .tb-post-card { grid-template-columns: 1fr; }
  .tb-footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .tb-container { width: min(100% - 24px, var(--tb-max)); }
  .tb-header-inner { min-height: 68px; }
  .tb-brand-subtitle { display: none; }
  .tb-header-actions .tb-btn { display: none; }
  .tb-hero { padding-top: 38px; }
  .tb-hero-card { border-radius: 22px; padding: 24px; }
  .tb-content-card { border-radius: 22px; }
  .tb-section { padding: 38px 0; }
}

/* v0.1.1 — Typographie plus sobre et plus légère.
   Le thème doit rester élégant sans imposer des titres massifs ni du gras partout. */
body {
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.tb-site-header {
  background: rgba(244, 248, 245, .94);
}

.tb-header-inner {
  min-height: 64px;
  gap: 18px;
}

.tb-brand {
  font-weight: 650;
  letter-spacing: -0.015em;
}

.tb-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(36, 124, 111, .18);
}

.tb-brand-name {
  font-size: .98rem;
  font-weight: 650;
}

.tb-brand-subtitle {
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .045em;
}

.tb-primary-nav a {
  min-height: 34px;
  padding: 7px 11px;
  font-weight: 500;
  font-size: .86rem;
}

.tb-btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  min-height: 38px;
  padding: 9px 15px;
  font-weight: 600;
  font-size: .88rem;
  box-shadow: none;
}

.tb-btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  transform: none;
  box-shadow: 0 10px 24px rgba(7, 63, 59, .14);
}

.tb-hero {
  padding: 52px 0 34px;
}

.tb-hero-card {
  grid-template-columns: minmax(0, 1.08fr) minmax(260px, .92fr);
  gap: 28px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 22px;
}

.tb-hero-card:after {
  right: -170px;
  top: -150px;
  width: 300px;
  height: 300px;
}

.tb-eyebrow {
  margin-bottom: 14px;
  padding: 6px 10px;
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .07em;
}

.tb-hero h1,
.tb-page-title {
  font-size: clamp(2rem, 4.3vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 650;
  max-width: 720px;
}

.tb-hero p {
  max-width: 640px;
  margin-top: 18px;
  font-size: clamp(.95rem, 1.35vw, 1.08rem);
  line-height: 1.55;
  font-weight: 400;
}

.tb-hero-actions {
  margin-top: 24px;
}

.tb-hero-panel {
  padding: 20px;
  border-radius: 18px;
}

.tb-hero-panel-list {
  gap: 10px;
}

.tb-hero-panel-list li {
  font-weight: 500;
  font-size: .91rem;
}

.tb-check {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
  font-size: 11px;
}

.tb-section {
  padding: 42px 0;
}

.tb-kicker {
  font-weight: 600;
  font-size: .66rem;
  letter-spacing: .07em;
}

.tb-section-title {
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 650;
  max-width: 880px;
}

.tb-section-lead {
  font-size: .96rem;
  line-height: 1.55;
}

.tb-card {
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(7, 63, 59, .045);
}

.tb-card h2,
.tb-card h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.tb-card h3 {
  font-size: 1.02rem;
}

.tb-card p {
  font-size: .92rem;
  line-height: 1.55;
}

.tb-content-wrap {
  padding: 38px 0 58px;
}

.tb-content-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(7, 63, 59, .08);
}

.tb-content-card h1,
.tb-content-card h2,
.tb-content-card h3 {
  font-weight: 650;
  letter-spacing: -0.03em;
}

.tb-post-title {
  font-size: 1.22rem;
  font-weight: 620;
}

.tb-badge {
  min-height: 26px;
  padding: 5px 9px;
  font-weight: 560;
  font-size: .78rem;
}

.tb-site-footer {
  padding: 36px 0;
}

.tb-footer-title {
  font-weight: 600;
  font-size: 1rem;
}

.tb-footer-bottom {
  font-size: .85rem;
}

@media (max-width: 920px) {
  .tb-hero-card,
  .tb-practitioner-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .tb-header-inner {
    min-height: 58px;
  }

  .tb-hero {
    padding-top: 30px;
  }

  .tb-hero-card {
    padding: 22px;
    border-radius: 18px;
  }

  .tb-hero h1,
  .tb-page-title {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .tb-section {
    padding: 32px 0;
  }
}
