:root {
  --lime: #ff1a1a;
  --lime-deep: #ff2d2d;
  --ink: #121212;
  --black: #000004;
  --text: #141414;
  --muted: #ededed;
  --gray: #a1a1a1;
  --soft: #f3f3f3;
  --card: #171717;
  --faq: #2a2a2a;
  --line: rgba(255, 255, 255, 0.16);
  --radius: 22px;
  --header: 86px;
  --max: 1280px;
  --font-d: "Bai Jamjuree", sans-serif;
  --font-b: "Geist", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
}
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100%;
  overscroll-behavior-x: none;
}
body.is-loading { overflow: hidden; }
.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-title {
  margin: 0;
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 68px);
  letter-spacing: -0.03em;
  line-height: 1.12;
  text-align: center;
  text-transform: uppercase;
  max-width: min(92vw, 720px);
}
#preloader .blur-write {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 0.28em;
  row-gap: 0.06em;
}
#preloader .blur-word {
  white-space: nowrap;
}
#preloader .blur-write:not([data-blur-ready="1"]) {
  visibility: hidden;
}
@media (min-width: 981px) {
  .preloader-title {
    max-width: none;
    font-size: clamp(40px, 4.2vw, 68px);
  }
  #preloader .blur-write {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; animation: none; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.wrap {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header);
  display: flex;
  align-items: center;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1340px, calc(100% - 80px));
}
.logo {
  color: #fff;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  color: #fff;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 10px;
}
.nav a:hover { opacity: 0.72; }
.nav-eleve {
  margin-left: 4px;
  background: var(--lime) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 10px 16px !important;
  opacity: 1 !important;
}
.nav-eleve:hover {
  opacity: 0.92 !important;
  filter: brightness(1.06);
  color: #fff !important;
}
.site-header-solid .nav-eleve {
  color: #fff !important;
}
.nav-cta {
  margin-left: 8px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px !important;
  padding: 10px 16px !important;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  margin: -1px 0 0 -11px;
  background: #fff;
  transition: background 0.2s ease;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: #fff;
  transform-origin: 50% 50%;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-btn span::before {
  top: -8px;
}
.menu-btn span::after {
  top: 8px;
}
.menu-btn.is-open span {
  background: transparent;
}
.menu-btn.is-open span::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-btn.is-open span::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 51px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: var(--lime);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.btn-dark {
  background: #0d0d0d;
  color: #fff;
  box-shadow: none;
  width: 100%;
}
.btn-block { width: 100%; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: #ededed;
  color: var(--ink);
  font-size: 14px;
}
.pill i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--ink);
  transform: rotate(45deg);
}
.pill-dark { background: #1c1c1c; color: #fff; }
.pill-dark i { background: var(--lime); }
.pill-light { background: #f2f2f2; }

h1, h2, .display {
  font-family: var(--font-d);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  background-color: var(--black);
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.28) 58%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 4, 0.75) 88%, var(--black) 100%),
    url("../images/hero-coaching.jpg");
  background-position: center, center, center 35%;
  background-size: cover, cover, cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(16vh, 140px);
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 4, 0.35) 55%, var(--black) 100%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1340px, calc(100% - 80px));
  margin: 0 auto 92px;
}
.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.avatars { display: flex; }
.avatars img,
.avatars .hero-social-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid #111;
  margin-left: -10px;
  flex-shrink: 0;
  background: #222;
}
.avatars img:first-child { margin-left: 0; }
.proof-copy { display: flex; flex-direction: column; gap: 2px; }
.stars { color: #fff; letter-spacing: 3px; font-size: 14px; line-height: 1; }
.proof-copy span {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.hero h1.hero-title {
  font-size: clamp(32px, 3.65vw, 56px);
  max-width: 15em;
  line-height: 1.12;
  text-transform: uppercase;
}
.hero h1.hero-title .blur-write {
  display: inline-block;
  max-width: 100%;
}
.hero h1.hero-title .blur-word {
  white-space: normal;
}
.hero .hero-h1-tagline {
  margin: 0.65em 0 0;
  max-width: 22em;
  font-family: var(--font-d);
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}
.hero p.hero-lead {
  max-width: 640px;
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
  text-transform: none;
}
.hero .btn.hero-cta {
  padding: 0 22px;
  max-width: min(100%, 22rem);
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

.intro {
  position: relative;
  z-index: 1;
  margin-top: -1px;
  background: var(--black);
  color: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.intro-inner {
  width: min(1400px, calc(100% - 80px));
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
}
.intro .logo { font-size: 20px; }
.intro h2 {
  font-size: clamp(36px, 4vw, 56px);
  max-width: 820px;
}
.blur-write .blur-word {
  display: inline-block;
  white-space: nowrap;
}
.blur-write .blur-char {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(0.12em);
  animation: blur-write 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-play-state: paused;
}
.blur-write.is-in .blur-char {
  animation-play-state: running;
}
@keyframes blur-write {
  0% {
    opacity: 0;
    filter: blur(14px);
    transform: translateY(0.12em);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .blur-write .blur-char {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }
}

.reveal,
.reveal-scale,
.reveal-photo {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal {
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal-scale {
  transform: scale(0.94);
  transition:
    opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}
.reveal-scale.is-visible {
  opacity: 1;
  transform: scale(1);
}
.reveal-photo {
  transform: scale(0.96);
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}
.reveal-photo.is-visible {
  opacity: 1;
  transform: scale(1);
}
.reveal-stagger > .service-card,
.reveal-stagger > .why-card,
.reveal-stagger > .zone-point,
.reveal-stagger > .offer-zig-row,
.reveal-stagger > .faq-item {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-i, 0) * 85ms);
}
.reveal-stagger > .is-visible {
  opacity: 1;
  transform: none;
}
@media (max-width: 959px) {
  .reveal-stagger.offer-zig > .offer-zig-row {
    transform: translateY(44px);
    transition:
      opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0ms;
  }
  .reveal-stagger.offer-zig > .offer-zig-row.is-visible {
    transform: none;
  }
}
.hero .reveal-hero {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 70ms);
}
.hero.is-entered .reveal-hero {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-scale,
  .reveal-photo,
  .reveal-stagger > *,
  .hero .reveal-hero {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: min(100%, 920px);
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  color: var(--lime-deep);
  font-family: var(--font-d);
  font-weight: 800;
  font-size: clamp(40px, 4.2vw, 52px);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
}

.ticker {
  background: var(--lime);
  color: #fff;
  overflow: hidden;
  height: 64px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  white-space: nowrap;
}
.dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 2px;
  transform: rotate(45deg);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.services { padding: 120px 0 80px; background: #fff; }
.services-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 620px);
  gap: 48px;
  align-items: start;
}
.services-copy {
  position: sticky;
  top: 80px;
  padding-top: 40px;
}
.services-copy h2 {
  font-size: clamp(36px, 3.6vw, 52px);
  max-width: 560px;
  margin: 22px 0 28px;
}
.service-card {
  position: relative;
  min-height: 500px;
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background-size: cover;
  background-position: center;
  margin-bottom: 72px;
  display: flex;
  align-items: flex-end;
}
.service-card:last-child { margin-bottom: 0; }
.service-card-1 { background-image: url("../images/service-1.jpg"); }
.service-card-2 { background-image: url("../images/service-2.jpg"); }
.service-card-3 { background-image: url("../images/service-3.jpg"); }
.service-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 10%, rgba(0, 0, 0, 0.78) 100%);
}
.service-card-body { position: relative; padding: 36px; }
.service-card-body h3 {
  margin: 0 0 14px;
}
.service-card ul.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-card .service-tags li {
  display: inline-flex;
  width: auto;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}
.service-card h3 {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0 0 18px;
  max-width: 460px;
}
.service-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.service-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lime);
  color: #fff;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.check svg { width: 10px; height: 10px; }

.why { padding: 40px 0 20px; }
.why-panel {
  background: #050505;
  color: #fff;
  border-radius: 36px;
  padding: 70px 40px 40px;
}
.why-head { text-align: center; margin-bottom: 48px; padding-inline: 8px; }
.why-head h2 {
  font-size: clamp(36px, 4vw, 52px);
  margin-top: 18px;
  max-width: 18ch;
  margin-inline: auto;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}
.why-col { display: grid; gap: 24px; }
.why-card {
  background: #141414;
  border-radius: 24px;
  min-height: 250px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
}
.why-card.why-card-pillar {
  min-height: 280px;
  padding: 32px 28px;
  gap: 22px;
}
.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--lime);
  color: #fff;
  display: grid;
  place-items: center;
}
.why-card-pillar .why-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}
.why-card h3 {
  margin: 0;
  font-family: var(--font-b);
  font-weight: 500;
  font-size: 22px;
  text-transform: none;
  letter-spacing: 0;
}
.why-card-pillar h3 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(22px, 1.6vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.why-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.why-card-pillar p {
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.55;
  color: #b8b8bc;
}
.why-photo {
  border-radius: 24px;
  overflow: hidden;
  min-height: 524px;
  background: #111 url("../images/why.jpg") center 35% / cover no-repeat;
}

.about { padding: 90px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}
.founder {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 760px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: flex-start;
}
.founder video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  cursor: pointer;
}
.founder:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, transparent 32%);
}
.founder-copy { position: relative; z-index: 3; padding: 32px; pointer-events: none; }
.founder-copy strong {
  display: block;
  font-family: var(--font-d);
  font-size: 28px;
  letter-spacing: 0.04em;
}
.founder-copy span { color: #ddd; }
.video-expand {
  position: absolute;
  z-index: 4;
  right: 16px;
  bottom: 62px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--lime);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.video-expand:hover { filter: brightness(1.05); }
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 4, 0.84);
}
.video-modal[hidden] { display: none; }
.video-modal-card {
  width: min(460px, 100%);
  background: #0d0d0d;
  color: #fff;
  border-radius: 28px;
  padding: 18px 18px 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.video-modal-head strong {
  font-family: var(--font-d);
  font-size: 22px;
  letter-spacing: -0.02em;
}
.video-modal-close {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 14px;
  background: var(--lime);
  color: #fff;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.video-modal video {
  position: relative;
  inset: auto;
  z-index: auto;
  width: 100%;
  height: auto;
  max-height: min(74vh, 820px);
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
  background: #000;
  display: block;
}
.about-copy {
  background: #f6f6f6;
  border-radius: 28px;
  padding: 36px 36px 28px;
}
.about-copy h2 {
  font-size: clamp(32px, 3vw, 46px);
  margin: 16px 0 18px;
}
.about-copy p { color: #4a4a4a; margin: 0 0 18px; line-height: 1.6; }
.about-copy p + p { margin-top: 0; }
.about-method {
  margin: 4px 0 24px;
  padding: 22px 22px 8px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
.about-method-kicker {
  margin: 0 0 18px;
  font-family: var(--font-d);
  font-size: clamp(20px, 1.75vw, 26px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  line-height: 1.15;
}
.about-method-kicker::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 12px;
  border-radius: 2px;
  background: var(--lime);
  transform: rotate(45deg);
  vertical-align: 2px;
}
.about-method-steps {
  display: flex;
  flex-direction: column;
}
.about-method-step {
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.about-method-step:first-child {
  border-top: 0;
  padding-top: 0;
}
.about-method-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.about-method-mark {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.25);
}
.about-method-step-title {
  margin: 0;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(17px, 1.25vw, 19px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111;
  text-transform: none;
}
.about-method-step-text {
  margin: 0;
  padding-left: 22px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}
.about-method-pillars {
  margin: 0 0 8px;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  font-weight: 500;
}
.about-method-pillars span {
  color: #111;
  font-weight: 700;
  padding: 0 0.15em;
}
.about-copy .certs { margin-top: 4px; }
.about-copy .btn { margin-top: 20px; }

.certs { display: flex; flex-wrap: wrap; gap: 10px; }
.cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-size: 14px;
  font-weight: 500;
}

.training {
  padding: 20px max(20px, env(safe-area-inset-right)) 80px max(20px, env(safe-area-inset-left));
  text-align: center;
}
.training h2 { font-size: clamp(36px, 4vw, 56px); margin: 18px 0 36px; }
.carousel {
  position: relative;
  height: 620px;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}
.carousel-stage { position: relative; height: 100%; }
.review-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 440px;
  border-radius: 28px;
  overflow: hidden;
  background: #d7d7d7;
  color: #fff;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.9);
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    width 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.review-card.is-active {
  width: 380px;
  height: 560px;
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}
.review-card.is-prev,
.review-card.is-next {
  width: 300px;
  height: 470px;
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
}
.review-card.is-prev { transform: translate(calc(-50% - 360px), -50%); }
.review-card.is-next { transform: translate(calc(-50% + 360px), -50%); }
.review-card.is-prev::before,
.review-card.is-next::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.46);
  z-index: 2;
  pointer-events: none;
}
.review-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  background: #111;
}
.review-play {
  position: absolute;
  top: 46%;
  left: 50%;
  z-index: 4;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}
.review-card.is-active .review-play { width: 78px; height: 78px; }
.review-play svg { width: 28px; height: 28px; fill: currentColor; margin-left: 3px; }
.review-card.is-active .review-play svg { width: 34px; height: 34px; }
.review-card.is-playing .review-play { display: none; }
.review-card.is-playing .review-meta {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.review-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 42px 18px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
}
.review-meta strong {
  font-family: var(--font-d);
  font-size: 20px;
  letter-spacing: -0.02em;
}
.review-meta .stars {
  color: var(--lime);
  letter-spacing: 2px;
  font-size: 16px;
  line-height: 1;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.carousel-arrow:hover { background: #2a2a2a; }
.carousel-arrow-prev { left: calc(50% - 190px); }
.carousel-arrow-next { left: calc(50% + 190px); }
@media (prefers-reduced-motion: reduce) {
  .review-card { transition: none; }
}

.quotes { padding: 10px 0 90px; overflow-x: clip; }
.quotes .wrap { overflow-x: clip; max-width: 100%; }
.quotes-head {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
  z-index: 2;
}
.quotes-head h2 { font-size: clamp(36px, 4vw, 56px); margin-top: 16px; }
.ba-stage {
  position: relative;
  height: 560px;
  max-width: min(1120px, 100%);
  overflow-x: clip;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  box-sizing: border-box;
  perspective: 1200px;
  perspective-origin: 50% 42%;
}
.ba-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(860px, 78vw);
  display: grid;
  grid-template-columns: 340px 1fr;
  align-items: stretch;
  gap: 28px;
  background: #111;
  color: #fff;
  border-radius: 32px;
  padding: 16px;
  min-height: 520px;
  box-sizing: border-box;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  backface-visibility: hidden;
  transform: translate3d(-50%, -50%, -80px) scale(0.86) rotateY(0deg);
  transform-origin: center center;
  transform-style: preserve-3d;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    filter 0.45s ease;
  will-change: transform, opacity;
}
.ba-slide.is-active {
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
  transform: translate3d(-50%, -50%, 0) scale(1) rotateY(0deg);
  filter: none;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.22);
}
.ba-slide.is-prev,
.ba-slide.is-next {
  opacity: 0.82;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  filter: saturate(0.9) brightness(0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
.ba-slide.is-prev {
  transform: translate3d(calc(-50% - 56%), -50%, -150px) scale(0.76) rotateY(-36deg);
}
.ba-slide.is-next {
  transform: translate3d(calc(-50% + 56%), -50%, -150px) scale(0.76) rotateY(36deg);
}
.ba-slide.is-prev::after,
.ba-slide.is-next::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  z-index: 20;
  pointer-events: none;
}
.ba-slide.is-off {
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, -50%, -200px) scale(0.72) rotateY(0deg);
}
.ba-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  min-height: 488px;
}
.ba-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.ba-photo img.is-on { opacity: 1; }
.ba-photo-portrait img {
  object-position: center 28%;
}
.ba-photo.is-split-x img.is-avant {
  object-position: left center;
  transform: scale(1.14);
  transform-origin: left center;
}
.ba-photo.is-split-x img.is-apres {
  object-position: right center;
  transform: scale(1.14);
  transform-origin: right center;
}
/* Image unique empilée (avant en haut / après en bas) — ex. Scott */
.ba-photo.is-split-y img {
  height: 200%;
  width: 100%;
  object-fit: cover;
  transform: none;
}
.ba-photo.is-split-y img.is-avant {
  top: 0;
  bottom: auto;
  object-position: center top;
}
.ba-photo.is-split-y img.is-apres {
  top: auto;
  bottom: 0;
  object-position: center bottom;
}
.ba-photo.is-split-y img:not(.is-on) {
  visibility: hidden;
  pointer-events: none;
}
.ba-switch {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}
.ba-switch button {
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-d);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}
.ba-switch button.is-on { background: var(--lime); }
.ba-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 40px 28px 12px;
}
.ba-copy .stars {
  color: var(--lime);
  letter-spacing: 4px;
  font-size: 22px;
  line-height: 1;
}
.ba-quote {
  margin: 22px 0 0;
  max-width: 640px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.ba-copy strong {
  margin-top: 36px;
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ba-role { margin-top: 6px; color: #9a9a9a; font-size: 15px; }
.ba-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding-top: 12px;
  position: relative;
  z-index: 6;
  flex-shrink: 0;
}
.ba-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid #111;
  background: #fff;
  color: #111;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ba-arrow:hover { background: #f3f3f3; }
.ba-dots {
  display: flex;
  gap: 10px;
  align-items: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.ba-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c8c8c8;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ba-dots button.is-on {
  background: #111;
  transform: scale(1.15);
}
@media (prefers-reduced-motion: reduce) {
  .ba-photo img { transition: none; }
  .ba-slide { transition: none; }
  .ba-stage { perspective: none; }
  .ba-slide.is-prev { transform: translate3d(calc(-50% - 56%), -50%, 0) scale(0.85) rotateY(0deg); }
  .ba-slide.is-next { transform: translate3d(calc(-50% + 56%), -50%, 0) scale(0.85) rotateY(0deg); }
}

@media (prefers-reduced-motion: reduce) and (max-width: 980px) {
  .ba-slide.is-prev { transform: translate3d(calc(-50% - 46%), -50%, 0) scale(0.82) rotateY(0deg); }
  .ba-slide.is-next { transform: translate3d(calc(-50% + 46%), -50%, 0) scale(0.82) rotateY(0deg); }
}

@media (min-width: 981px) and (max-width: 1100px) {
  .ba-slide {
    min-height: 460px;
    width: min(780px, 86vw);
    grid-template-columns: 280px 1fr;
  }
  .ba-photo { min-height: 420px; }
}

@media (max-width: 1100px) {
  .quotes-head { margin-bottom: 44px; }
  .ba-stage {
    height: 640px;
    overflow-x: clip;
    padding-top: 8px;
    margin-top: 8px;
  }
  .ba-slide.is-prev {
    transform: translate3d(calc(-50% - 52%), -50%, -150px) scale(0.74) rotateY(-34deg);
  }
  .ba-slide.is-next {
    transform: translate3d(calc(-50% + 52%), -50%, -150px) scale(0.74) rotateY(34deg);
  }
  .ba-nav { margin-top: 40px; }
}

.offer { padding: 10px 0 30px; }
.offer-card {
  background: #111;
  color: #fff;
  border-radius: 32px;
  overflow: hidden;
}
.offer-body { padding: 36px 48px 40px; }
.offer-card h2 { font-size: clamp(36px, 4vw, 56px); margin: 16px 0 8px; max-width: 760px; }
.offer-lead { margin: 0 0 28px; color: #bdbdbd; font-size: 18px; }
.offer-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.offer-step {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 18px 20px;
}
.offer-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.offer-step h3 { margin: 0; font-size: 22px; }
.offer-step p { margin: 10px 0 0; color: #d7d7d7; line-height: 1.55; }
.offer-badge {
  flex: none;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 26, 26, 0.16);
  color: #fff;
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 0.03em;
}
.offer-includes-title { margin: 32px 0 0; font-size: 22px; }
.offer-includes {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.offer-includes li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
}
.offer-includes .is-tax { color: var(--lime); border-color: rgba(255, 26, 26, 0.45); }
.offer-quote {
  margin: 28px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--lime);
}
.offer-quote p { margin: 0; font-size: 18px; line-height: 1.55; }
.offer-quote cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-family: var(--font-d);
  letter-spacing: 0.04em;
}
.offer-card .btn { margin-top: 28px; }

/* Est-ce pour toi ? — cartes alternées + ligne centrale */
.offer-fit {
  padding: 20px 0 72px;
  color: var(--text);
}
.offer-fit h2 {
  font-size: clamp(36px, 4vw, 56px);
  max-width: 920px;
  margin: 18px 0 14px;
  text-transform: none;
  line-height: 1.08;
}
.offer-fit-lead {
  max-width: 640px;
  margin: 0 0 48px;
  color: #4a4a4a;
  font-size: 18px;
  line-height: 1.55;
}
.offer-zig-wrap {
  position: relative;
}
.offer-zig-timeline {
  display: none;
}
.offer-zig {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
.offer-zig-row {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}
.offer-zig-col-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  min-width: 0;
}
.offer-zig-row.is-right .offer-zig-col-body {
  align-items: flex-end;
  text-align: right;
}
.offer-zig-col-spine,
.offer-zig-col-empty {
  display: none;
}
.offer-zig-step {
  margin: 0 0 8px;
  font-family: var(--font-d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
}
.offer-zig-title {
  margin: 0 0 18px;
  max-width: min(640px, 100%);
  font-family: var(--font-d);
  font-size: clamp(26px, 2.8vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
  color: var(--ink);
}
.offer-zig-mark {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.offer-zig-card {
  width: 100%;
  padding: var(--offer-zig-pad, 28px);
  border-radius: 24px;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.offer-zig-card-sketch {
  background-color: #111;
}
.offer-zig-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.offer-zig-list li {
  padding: 0 0 0 14px;
  border-left: 2px solid rgba(255, 26, 26, 0.55);
}
.offer-zig-list li strong {
  display: block;
  font-family: var(--font-b);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.offer-zig-list li strong .offer-zig-mark {
  text-decoration-thickness: 2px;
}
.offer-zig-list li p {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #b0b0b0;
}
.offer-zig-excuses {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.offer-zig-excuses li {
  margin: 0;
  padding: 13px 0 13px 18px;
  font-size: 16px;
  line-height: 1.45;
  color: #d4d4d4;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.offer-zig-excuses li:first-child {
  padding-top: 0;
}
.offer-zig-excuses li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.offer-zig-excuses li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 13px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 26, 26, 0.65);
  line-height: 1;
}
.offer-zig-excuses li:first-child::before {
  top: 0;
}
.offer-zig-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.58;
  color: #d0d0d0;
}
.offer-zig-card p + p {
  margin-top: 14px;
}
.offer-zig-card strong {
  color: #fff;
  font-weight: 600;
}
.offer-zig-note {
  color: #b8b8b8 !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}
.offer-zig-note .offer-zig-mark {
  color: #eee;
}
@media (min-width: 960px) {
  .offer-zig-timeline {
    display: block;
    position: absolute;
    left: 50%;
    top: 48px;
    bottom: 48px;
    width: 2px;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 0;
  }
  .offer-zig-timeline-track,
  .offer-zig-timeline-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border-radius: 999px;
  }
  .offer-zig-timeline-track {
    height: 100%;
    background: rgba(255, 26, 26, 0.14);
  }
  .offer-zig-timeline-fill {
    height: 0%;
    background: var(--lime);
    transition: height 0.35s ease;
  }
  .offer-zig {
    position: relative;
    z-index: 1;
  }
  .offer-zig-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
    gap: 0 clamp(20px, 3vw, 40px);
    align-items: start;
  }
  .offer-zig-row.is-left .offer-zig-col-body {
    grid-column: 1;
  }
  .offer-zig-row.is-left .offer-zig-col-spine {
    grid-column: 2;
  }
  .offer-zig-row.is-right .offer-zig-col-body {
    grid-column: 3;
    align-items: flex-start;
    text-align: left;
  }
  .offer-zig-row.is-right .offer-zig-col-spine {
    grid-column: 2;
  }
  .offer-zig-col-spine {
    display: flex;
    justify-content: center;
    padding-top: 132px;
  }
  .offer-zig-col-empty {
    display: block;
  }
  .offer-zig-dot {
    flex: none;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-family: var(--font-d);
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #111;
    border: 2px solid var(--lime);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }
  .offer-zig-row.is-active .offer-zig-dot {
    background: var(--lime);
    color: #111;
    border-color: var(--lime);
  }
  .offer-zig-card {
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: var(--offer-zig-pad, 28px);
  }
}
@media (min-width: 960px) {
  .offer-fit {
    --offer-zig-pad: 32px;
  }
}
.offer-fit-cta {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}
.offer-fit-cta .btn {
  padding: 0 28px;
}

.pricing {
  padding: 80px 0 100px;
  background:
    radial-gradient(900px 500px at 50% 0%, #fff, transparent 70%),
    linear-gradient(#efefef, #d9d9d9);
}
.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
}
.pricing-head h2 { font-size: clamp(36px, 4vw, 56px); max-width: 640px; }
.billing {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  padding-bottom: 8px;
}
.switch {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: #cfcfcf;
  position: relative;
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.switch[aria-pressed="true"] { background: #111; }
.switch[aria-pressed="true"] i { transform: translateX(22px); }
.discount {
  background: #ececec;
  color: #333;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.plan {
  background: #fff;
  border-radius: 28px;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}
.plan-top {
  background: #f3f3f3;
  border-radius: 20px;
  padding: 22px 20px 20px;
  min-height: 210px;
}
.plan h3 { margin: 0 0 12px; font-size: 26px; font-weight: 600; }
.price {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 54px;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.price small { font-family: var(--font-b); font-size: 16px; font-weight: 500; letter-spacing: 0; margin-bottom: 6px; }
.plan-top p { color: #555; margin: 14px 0 0; }
.plan .includes { color: #a1a1a1; font-size: 14px; margin: 22px 18px 10px; }
.plan ul { list-style: none; margin: 0 8px 22px; padding: 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan-popular { background: #0e0e0e; color: #fff; }
.plan-popular .plan-top {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.72)),
    url("../images/hero-paul.jpg") center / cover;
}
.plan-popular .plan-top p,
.plan-popular li { color: var(--muted); }
.plan-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.badge {
  background: var(--lime);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}

.faq {
  background: #fff;
  color: var(--ink);
  padding: 90px 0 72px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}
.faq h2 { font-size: clamp(36px, 4vw, 56px); margin-top: 18px; }
.faq-lead {
  margin: 16px 0 0;
  max-width: 520px;
  color: #666;
  font-size: 17px;
  line-height: 1.55;
}
.faq-item {
  background: #f3f3f3;
  border-radius: 18px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #1a1a1a;
  padding: 18px 22px;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item button span:last-child {
  color: #888;
  font-size: 22px;
  line-height: 1;
  flex: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
}
.faq-item.open button span:last-child {
  color: var(--lime);
  transform: rotate(180deg);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-item p {
  margin: 0;
  padding: 0 22px 18px;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.32s ease 0.06s, transform 0.38s cubic-bezier(0.4, 0, 0.2, 1) 0.04s;
}
.faq-item.open p {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .faq-panel,
  .faq-item p,
  .faq-item button span:last-child {
    transition: none;
  }
  .faq-item.open p {
    transform: none;
  }
}

.site-closing {
  padding: 0 0 48px;
  background: #fff;
}
.footer-card {
  background: #111;
  color: #fff;
  border-radius: 32px;
  padding: 16px;
}
.footer-card-hero {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 56px 28px 48px;
  border-radius: 18px;
  overflow: hidden;
}
.footer-card-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 18px;
}
.footer-card-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.72));
}
.footer-card-cta {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.footer-card-cta h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  margin: 0;
  color: #fff;
}
.footer-card-cta p {
  max-width: 520px;
  margin: 14px auto 22px;
  color: #d0d0d0;
  font-size: 17px;
  line-height: 1.55;
}
.site-header-solid {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.site-header-solid .logo,
.site-header-solid .nav a { color: var(--ink); }
.site-header-solid .nav-cta { border-color: rgba(0, 0, 0, 0.18); }
.site-header-solid .menu-btn span,
.site-header-solid .menu-btn span::before,
.site-header-solid .menu-btn span::after {
  background: var(--ink);
}

.legal-page {
  padding: calc(var(--header) + 48px) 0 80px;
  background: #fff;
  color: var(--ink);
}
.legal-doc { max-width: 760px; }
.legal-breadcrumb { color: #888; font-size: 14px; margin: 0 0 20px; }
.legal-breadcrumb a { color: var(--ink); font-weight: 600; }
.legal-doc h1 {
  font-size: clamp(32px, 4vw, 48px);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.legal-updated { margin: 0 0 32px; color: #888; font-size: 14px; }
.legal-doc h2 {
  font-family: var(--font-b);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin: 28px 0 10px;
}
.legal-doc p,
.legal-doc li { color: #444; line-height: 1.65; font-size: 16px; }
.legal-doc .legal-editable-lead {
  padding: 14px 16px;
  border-radius: 12px;
  background: #f6f6f6;
  border: 1px solid #ebebeb;
  color: #333;
}
.legal-doc ul { margin: 0 0 16px; padding-left: 20px; }
.legal-doc a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.site-footer {
  color: #cfcfcf;
  padding: 56px 0 24px;
  background: #070707;
}
.site-footer.site-footer-inset {
  padding: 28px 20px 8px;
  background: transparent;
}
.site-footer-inset .footer-top {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.9fr;
  gap: 36px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand p {
  max-width: 340px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #a8a8a8;
}
.footer-brand .logo {
  color: #fff;
  font-size: 20px;
}
.btn-footer {
  margin-top: 20px;
  width: auto;
  min-height: 44px;
  padding: 0 20px;
  font-size: 13px;
}
.footer-col {
  display: grid;
  align-content: start;
  gap: 10px;
}
.footer-col strong {
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.footer-col a {
  color: #b8b8b8;
  font-size: 14px;
}
.footer-col a:hover { color: #fff; }
.footer-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: #b8b8b8;
}
.footer-meta a { color: #fff; font-weight: 600; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 18px 0 6px;
}
.footer-legal a {
  color: #9a9a9a;
  font-size: 13px;
}
.footer-legal a:hover { color: #fff; }

.zone { padding: 20px 0 80px; }
.zone h2 { font-size: clamp(36px, 4vw, 56px); max-width: 920px; margin: 18px 0 14px; }
.zone-lead {
  max-width: 720px;
  margin: 0;
  color: #4a4a4a;
  font-size: 18px;
  line-height: 1.6;
}
.zone-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}
.zone-point {
  background: #f6f6f6;
  border-radius: 28px;
  padding: 28px 26px 26px;
}
.zone-point strong {
  display: block;
  font-family: var(--font-d);
  font-size: clamp(28px, 2.4vw, 38px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
  text-transform: uppercase;
}
.zone-point h3 {
  margin: 14px 0 0;
  font-family: var(--font-b);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.zone-point p {
  margin: 8px 0 0;
  color: #4a4a4a;
  font-size: 15px;
  line-height: 1.55;
}
.zone-foot { margin-top: 36px; }
.zone-foot p { margin: 0; color: #666; font-size: 16px; }
.zone-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.zone-list li {
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}
.footer-bottom {
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.footer-copy-line {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
/* Accès CRM discret (point après le ©) */
.footer-admin-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  min-height: 20px;
  margin-left: 2px;
  font-size: 15px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.14);
  text-decoration: none;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}
.footer-admin-access:hover,
.footer-admin-access:focus-visible {
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: #fff;
}

.contact-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88)),
    url("../images/hero-paul.jpg") center / cover no-repeat;
  color: #fff;
  padding: 140px 0 80px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-page h1 { font-size: clamp(48px, 6vw, 84px); max-width: 640px; }
.contact-page .lede { color: var(--muted); font-size: 18px; max-width: 520px; }
.contact-proof { margin-top: 28px; }
.contact-meta { margin-top: 36px; display: grid; gap: 18px; }
.contact-meta small { display: block; color: #aaa; letter-spacing: 0.04em; text-transform: uppercase; font-size: 12px; }
.contact-meta a:hover { color: var(--lime); }
.form-card {
  background: #141414;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: grid; gap: 8px; font-size: 14px; color: #ddd; }
input, select, textarea {
  width: 100%;
  background: #0e0e0e;
  color: #fff;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px 14px;
  outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lime); }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}
.form-note { min-height: 22px; margin: 0; font-size: 14px; }
.form-note.ok { color: var(--lime-deep); }
.form-note.err { color: #ffb4b4; }
select option { color: #111; }

@media (max-width: 980px) {
  body:not(.crm-app):not(.client-portal-app) {
    touch-action: pan-y pinch-zoom;
  }
  .wrap, .hero-inner, .intro-inner, .site-header .wrap {
    width: min(100% - 40px, var(--max));
    margin-inline: auto;
    max-width: 100%;
  }
  .hero h1.hero-title { font-size: clamp(26px, 6.6vw, 38px); max-width: 100%; }
  .hero .hero-h1-tagline { font-size: clamp(15px, 3.8vw, 17px); letter-spacing: 0.1em; }
  .hero .hero-lead { font-size: clamp(13px, 3.4vw, 15px); }
  .why-panel { padding: 48px 20px 32px; border-radius: 28px; }
  .why-head h2 {
    font-size: clamp(26px, 7.2vw, 40px);
    max-width: none;
    padding-inline: 4px;
  }
  .training h2 { font-size: clamp(28px, 7vw, 44px); padding-inline: 8px; }
  .site-header {
    z-index: 22;
    transition: background 0.25s ease;
  }
  body.nav-open .site-header {
    background: #fff;
  }
  body.nav-open .site-header:not(.site-header-solid) .logo {
    color: var(--ink);
  }
  body.nav-open .site-header:not(.site-header-solid) .menu-btn span,
  body.nav-open .site-header:not(.site-header-solid) .menu-btn span::before,
  body.nav-open .site-header:not(.site-header-solid) .menu-btn span::after {
    background: var(--ink);
  }
  .menu-btn {
    display: block;
    z-index: 23;
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 18;
    background: rgba(0, 0, 0, 0.42);
    animation: nav-backdrop-in 0.3s ease;
  }
  @keyframes nav-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  .nav {
    display: flex;
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    z-index: 21;
    margin: 0;
    padding: 8px 20px 22px;
    background: #fff;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    min-width: 0;
    max-height: min(88vh, 520px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(calc(-100% - var(--header)));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.32s ease,
      visibility 0.42s;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav a {
    color: var(--ink);
    font-size: 15px;
    letter-spacing: 0.06em;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .nav a:hover {
    opacity: 1;
    background: #f4f4f4;
  }
  .nav-eleve {
    margin-left: 0;
    margin-top: 6px;
    text-align: center;
    justify-content: center;
  }
  .nav-cta {
    margin-left: 0;
    margin-top: 4px;
    border-color: rgba(0, 0, 0, 0.14);
    color: var(--ink) !important;
    text-align: center;
    justify-content: center;
  }
  .site-header-solid .nav a {
    color: var(--ink);
  }
  .services-grid, .why-grid, .about-grid, .plans, .faq-grid, .contact-grid, .form-row {
    grid-template-columns: 1fr;
  }
  .services-copy { position: static; }
  .service-card {
    position: sticky;
    top: 16px;
    margin-bottom: 20px;
    min-height: min(500px, 72vh);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  }
  .service-card:nth-child(1) { z-index: 1; }
  .service-card:nth-child(2) { top: 28px; z-index: 2; }
  .service-card:nth-child(3) { top: 40px; z-index: 3; }
  .service-card:last-child { margin-bottom: 0; }
  .why-photo { min-height: 360px; }
  .stats { grid-template-columns: 1fr; gap: 4px; }
  .stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 14px 0;
    justify-content: center;
  }
  .stat:last-child { border-bottom: 0; }
  .intro-inner { align-items: center; text-align: center; }
  .carousel {
    height: 540px;
    max-width: min(100%, 400px);
    width: 100%;
  }
  .review-card.is-prev,
  .review-card.is-next { opacity: 0; pointer-events: none; }
  .review-card.is-active { width: min(300px, calc(100% - 88px)); height: 480px; }
  .carousel-arrow {
    top: 50%;
    transform: translateY(-50%);
  }
  .carousel-arrow-prev {
    left: 4px;
    right: auto;
  }
  .carousel-arrow-next {
    left: auto;
    right: 4px;
  }
  .pricing-head, .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-top { grid-template-columns: 1fr; }
  .offer-body { padding: 28px 20px 24px; }
  .footer-card { padding: 12px; }
  .footer-card-hero { min-height: 280px; padding: 40px 20px 32px; }
  .footer-card-cta .btn { width: 100%; max-width: 320px; }
  .site-footer.site-footer-inset { padding: 20px 8px 4px; }
  .offer-card .btn { width: 100%; }
  .offer-step-head { align-items: flex-start; flex-direction: column; }
  .offer-includes { grid-template-columns: 1fr; }
  .offer-zig-row.is-right .offer-zig-col-body {
    align-items: flex-start;
    text-align: left;
  }
  .offer-fit-cta .btn { width: 100%; max-width: 360px; }
  .zone-points { grid-template-columns: 1fr; }
  .quotes-head {
    margin-bottom: 28px;
  }
  .quotes .wrap {
    overflow-x: clip;
    position: relative;
    z-index: 2;
  }
  /* Mobile : même carousel 3D que desktop, cartes plus compactes */
  .ba-stage {
    height: min(640px, 82vh);
    perspective: 880px;
    perspective-origin: 50% 36%;
    padding: 0 6px;
    margin-top: 4px;
    overflow-x: clip;
    touch-action: pan-y;
  }
  .ba-slide {
    width: min(336px, 86vw);
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
  }
  .ba-slide.is-active {
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.2);
  }
  .ba-slide.is-prev {
    transform: translate3d(calc(-50% - 46%), -50%, -130px) scale(0.7) rotateY(-34deg);
  }
  .ba-slide.is-next {
    transform: translate3d(calc(-50% + 46%), -50%, -130px) scale(0.7) rotateY(34deg);
  }
  .ba-photo { min-height: 300px; }
  .ba-photo:not(.is-split-y):not(.is-split-x) img {
    object-position: center 48%;
  }
  .ba-photo.is-split-x img.is-avant {
    object-position: left 46%;
    transform: scale(1.08);
    transform-origin: left center;
  }
  .ba-photo.is-split-x img.is-apres {
    object-position: right 46%;
    transform: scale(1.08);
    transform-origin: right center;
  }
  .ba-photo.is-split-y img.is-avant.is-on {
    object-position: center top;
  }
  .ba-photo.is-split-y img.is-apres.is-on {
    object-position: center bottom;
  }
  .ba-copy { padding: 4px 8px 14px; }
  .ba-quote { font-size: clamp(18px, 5.2vw, 24px); }
  .ba-copy strong { margin-top: 18px; font-size: 15px; }
  .ba-role { font-size: 13px; }
  .ba-copy .stars { font-size: 18px; }
  .ba-nav {
    margin-top: 28px;
    padding-top: 8px;
    padding-bottom: 4px;
    width: 100%;
    position: relative;
    z-index: 20;
    pointer-events: auto;
    isolation: isolate;
  }
  .ba-arrow,
  .ba-dots button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .quotes { padding-bottom: 72px; }
  .logo { font-size: 15px; }
}

@media (max-width: 480px) {
  .quotes-head { margin-bottom: 24px; }
  .ba-stage { height: min(600px, 80vh); }
  .ba-slide { width: min(312px, 90vw); }
  .ba-slide.is-prev {
    transform: translate3d(calc(-50% - 44%), -50%, -120px) scale(0.68) rotateY(-32deg);
  }
  .ba-slide.is-next {
    transform: translate3d(calc(-50% + 44%), -50%, -120px) scale(0.68) rotateY(32deg);
  }
  .ba-photo { min-height: 268px; }
  .ba-photo:not(.is-split-y) img {
    object-position: center 50%;
  }
  .ba-nav { margin-top: 32px; }
}

/* —— Popup bilan + modale quiz —— */
.quiz-tease[hidden],
.quiz-modal[hidden] {
  display: none !important;
}

.quiz-tease {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  max-width: min(380px, calc(100% - 32px));
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-tease.is-ready {
  opacity: 1;
  transform: translateY(0);
  /* Ne pas capturer les clics sur toute la colonne (carte cachée + FAB) */
  pointer-events: none;
}

.quiz-tease-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  padding: 20px 20px 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.45s;
  pointer-events: none;
}

/* Carte fermée : hors flux pour ne pas agrandir la zone cliquable du conteneur */
.quiz-tease-card:not(.is-visible) {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(380px, calc(100% - 32px));
}

.quiz-tease-card.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.quiz-tease-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  color: #555;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.quiz-tease-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-right: 28px;
}

.quiz-tease-avatar {
  position: relative;
  flex-shrink: 0;
}

.quiz-tease-avatar img,
.quiz-modal-brand img,
.quiz-paul-bubble img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #f0f0f0;
}

.quiz-modal-brand img {
  width: 36px;
  height: 36px;
}

.quiz-tease-online {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid #fff;
}

.quiz-tease-meta strong {
  display: block;
  font-size: 14px;
  color: #333;
}

.quiz-tease-meta span {
  font-size: 12px;
  color: #888;
}

.quiz-tease-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  margin: 0 0 8px;
}

.quiz-tease-sub {
  font-size: 13px;
  line-height: 1.45;
  color: #666;
  margin: 0 0 16px;
}

.quiz-tease-cta {
  width: 100%;
  justify-content: center;
}

.quiz-tease-fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--lime);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 26, 26, 0.35);
  flex-shrink: 0;
  pointer-events: auto;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.quiz-tease-fab:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 26, 26, 0.42);
}

body.quiz-modal-open {
  overflow: hidden;
}

.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.quiz-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quiz-modal.is-open .quiz-modal-backdrop {
  opacity: 1;
}

.quiz-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
  background: #fff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-modal.is-open .quiz-modal-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.quiz-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #eee;
}

.quiz-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}

.quiz-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #f3f3f3;
  font-size: 22px;
  cursor: pointer;
  color: #444;
}

.quiz-modal-progress {
  height: 4px;
  background: #f0f0f0;
}

.quiz-modal-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 0.35s ease;
}

.quiz-modal-section {
  margin: 0;
  padding: 10px 20px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #999;
}

.quiz-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px 8px;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.quiz-modal-body.is-loading-step {
  padding-bottom: 36px;
}

.quiz-modal-body.quiz-step-out {
  opacity: 0;
  transform: translateX(-10px);
}

.quiz-modal-body.quiz-step-in {
  opacity: 0;
  transform: translateX(12px);
}

.quiz-modal-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 18px;
  border-top: 1px solid #eee;
}

.quiz-modal-footer.is-empty {
  display: none;
  padding: 0;
  border: none;
}

.quiz-q {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 18px;
}

.quiz-q-sub {
  margin: -8px 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #666;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-options.is-locked .quiz-option {
  pointer-events: none;
}

.quiz-option {
  text-align: left;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 14px 16px;
  background: #fafafa;
  cursor: pointer;
  font: inherit;
  width: 100%;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: quiz-option-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.quiz-options .quiz-option:nth-child(1) { animation-delay: 0.03s; }
.quiz-options .quiz-option:nth-child(2) { animation-delay: 0.06s; }
.quiz-options .quiz-option:nth-child(3) { animation-delay: 0.09s; }
.quiz-options .quiz-option:nth-child(4) { animation-delay: 0.12s; }
.quiz-options .quiz-option:nth-child(5) { animation-delay: 0.15s; }

@keyframes quiz-option-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-option strong {
  display: block;
  font-size: 15px;
  color: #111;
}

.quiz-option span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #666;
}

.quiz-option.is-selected {
  border-color: var(--lime);
  background: #fff5f5;
  transform: scale(0.98);
  box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.15);
}

.quiz-option:hover {
  border-color: var(--lime);
  background: #fff5f5;
}

.quiz-form-grid {
  display: grid;
  gap: 16px;
}

.quiz-field {
  display: block;
}

.quiz-field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.quiz-modal .quiz-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: #111;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quiz-modal .quiz-field input::placeholder {
  color: #9ca3af;
  opacity: 1;
}

.quiz-modal .quiz-field input:focus {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(255, 26, 26, 0.14);
}

.quiz-modal .quiz-field input:-webkit-autofill,
.quiz-modal .quiz-field input:-webkit-autofill:hover,
.quiz-modal .quiz-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #111;
  caret-color: #111;
}

.quiz-consent-box {
  margin-top: 20px;
  margin-bottom: 8px;
  padding: 14px 16px;
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
}

.quiz-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  cursor: pointer;
}

.quiz-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--lime);
  cursor: pointer;
}

.quiz-consent-text {
  flex: 1;
}

.quiz-consent-text a {
  color: var(--lime);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.quiz-modal-body.is-contact-step {
  padding-bottom: 28px;
}

.quiz-hint {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0 0 16px;
}

.quiz-error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 10px;
}

.quiz-back {
  border: none;
  background: transparent;
  color: #666;
  font: inherit;
  cursor: pointer;
  padding: 10px 4px;
}

.quiz-back:disabled {
  opacity: 0.35;
  cursor: default;
}

.quiz-modal-footer .btn {
  margin-left: auto;
}

.quiz-paul-bubble {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #f8f8f8;
  border-radius: 16px;
  padding: 16px;
  text-align: left;
}

.quiz-paul-bubble-btn {
  display: flex;
  width: 100%;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quiz-paul-bubble-btn:hover {
  border-color: rgba(255, 26, 26, 0.25);
  background: #fff5f5;
  transform: translateY(-1px);
}

.quiz-paul-bubble-btn div {
  flex: 1;
}

.quiz-tap-hint {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
}

.quiz-paul-bubble img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.quiz-paul-bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

.quiz-checklist {
  list-style: none;
  padding: 0 0 20px;
  margin: 0 0 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quiz-checklist li {
  padding-left: 28px;
  position: relative;
  color: #888;
  font-size: 15px;
}

.quiz-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #ddd;
}

.quiz-checklist li.is-done {
  color: #111;
}

.quiz-checklist li.is-done::before {
  border-color: var(--lime);
  background: var(--lime);
}

.quiz-result-lead {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.quiz-result-global {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fafafa;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.quiz-result-global strong {
  font-size: 36px;
  line-height: 1;
}

.quiz-result-global strong small {
  font-size: 16px;
  font-weight: 600;
  color: #888;
}

.quiz-result-global strong.is-good { color: #16a34a; }
.quiz-result-global strong.is-mid { color: #ca8a04; }
.quiz-result-global strong.is-low { color: var(--lime); }

.quiz-scores {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.quiz-score-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.quiz-score-track {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}

.quiz-score-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.quiz-score-fill.is-good { background: #22c55e; }
.quiz-score-fill.is-mid { background: #eab308; }
.quiz-score-fill.is-low { background: var(--lime); }

.quiz-hint-warn {
  color: #92400e;
  background: #fffbeb;
  border-radius: 10px;
  padding: 10px 12px;
}

.quiz-curve-wrap {
  margin-bottom: 16px;
  background: #fafafa;
  border-radius: 14px;
  padding: 12px 12px 8px;
}

.quiz-curve-wrap-hero {
  margin: 0 auto 20px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius, 14px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  padding: 16px 16px 12px;
  text-align: left;
}

.quiz-results-body {
  text-align: center;
}

.quiz-results-body .quiz-q,
.quiz-results-body .quiz-result-lead,
.quiz-results-body .quiz-hint {
  text-align: center;
}

.quiz-result-title {
  font-size: 22px;
  margin-top: 4px;
}

.quiz-result-sub {
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin: 22px 0 12px;
  text-align: left;
}

.quiz-focus-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  text-align: left;
}

.quiz-focus-card {
  background: #fafafa;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid #eee;
}

.quiz-focus-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}

.quiz-focus-card p {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.45;
  color: #555;
}

.quiz-focus-plan {
  color: #111 !important;
  font-weight: 600;
}

.quiz-focus-why {
  font-size: 13px !important;
  color: #666 !important;
}

.quiz-result-cta {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

.quiz-curve-head-crm {
  text-align: left;
  margin-bottom: 10px;
}

.quiz-curve-head-crm h2 {
  font-size: 12px;
}

.quiz-curve-area {
  min-height: 200px;
  margin-bottom: 4px;
}

.quiz-curve-svg {
  height: 200px;
}

.quiz-curve-area-fill {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.quiz-curve-wrap.is-chart-ready .quiz-curve-area-fill {
  opacity: 1;
}

.quiz-curve-seul-path,
.quiz-curve-seul {
  fill: none;
  stroke: #d4d4d4;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz-curve-paul-path,
.quiz-curve-paul {
  fill: none;
  stroke: #ff1a1a;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quiz-curve-dot {
  filter: drop-shadow(0 2px 6px rgba(255, 26, 26, 0.25));
}

.quiz-curve-bars {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.quiz-curve-bars .crm-vbars {
  min-height: 120px;
}

.quiz-curve-bars .crm-vbar {
  height: 120px;
}

.quiz-curve-legend {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

.quiz-curve-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.quiz-curve-legend .dot.is-muted { background: #d4d4d4; }
.quiz-curve-legend .dot.is-accent { background: #ff1a1a; }

.quiz-pillar-tip {
  font-size: 13px;
  line-height: 1.45;
  color: #444;
  margin: 0 0 10px;
}

@media (max-width: 640px) {
  .quiz-modal {
    padding: 0;
    align-items: flex-end;
  }

  .quiz-modal-panel {
    width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
  }

  .quiz-tease {
    right: 12px;
    bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quiz-modal-progress span,
  .quiz-score-fill,
  .quiz-tease-card,
  .quiz-modal-backdrop,
  .quiz-modal-panel,
  .quiz-modal-body,
  .quiz-option {
    transition: none;
    animation: none;
  }

  .quiz-tease-card.is-visible,
  .quiz-tease.is-ready {
    transform: none;
  }

  .quiz-tease,
  .quiz-tease.is-ready {
    transition: none;
  }

  .quiz-modal.is-open .quiz-modal-panel {
    transform: none;
  }
}

/* —— Boutique / programmes —— */
.shop-teaser {
  padding: 32px 0 56px;
  background: #fff;
}
.shop-teaser-inline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 28px 0;
}
.shop-teaser-thumb {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
}
.shop-teaser-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.88;
}
.shop-teaser-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 12px 0 6px;
}
.shop-teaser-lead {
  margin: 0;
  color: #555;
  font-size: 16px;
  line-height: 1.5;
  max-width: 520px;
}
.shop-teaser-price {
  margin: 8px 0 0;
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
}
.shop-teaser-btn { white-space: nowrap; }

.shop-page {
  padding: calc(var(--header) + 48px) 0 80px;
  background: #fff;
}
.shop-page h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 16px 0 10px;
}
.shop-page-lead {
  max-width: 640px;
  color: #555;
  font-size: 18px;
  line-height: 1.55;
  margin: 0 0 36px;
}
.shop-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #eee;
}
.shop-row {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid #eee;
}
.shop-row-thumb {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f0f0;
}
.shop-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  opacity: 0.9;
}
.shop-row-kicker {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}
.shop-row-body h2 {
  margin: 6px 0 8px;
  font-size: clamp(22px, 2.5vw, 28px);
}
.shop-row-body h2 a { color: inherit; }
.shop-row-desc {
  margin: 0;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
  max-width: 560px;
}
.shop-row-side {
  text-align: right;
  display: grid;
  gap: 12px;
  justify-items: end;
}
.shop-row-price {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}
.shop-empty { color: #666; }

.product-page {
  padding: calc(var(--header) + 32px) 0 80px;
  background: #fff;
}
.product-loading { color: #666; padding: 40px 0; }
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
}
.product-hero {
  border-radius: 20px;
  overflow: hidden;
  background: #f3f3f3;
  aspect-ratio: 4 / 3;
}
.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product-thumb {
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  width: 72px;
  height: 72px;
  cursor: pointer;
  background: #eee;
}
.product-thumb.is-active { border-color: var(--lime); }
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2);
}
.product-back {
  color: #666;
  font-size: 14px;
  text-decoration: none;
}
.product-back:hover { color: var(--ink); }
.product-kicker {
  margin: 12px 0 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
}
.product-page h1,
.product-buy h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 8px 0 10px;
}
.product-price {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}
.product-price-promo {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--lime-deep);
}
.product-price-promo.err {
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
}
.product-promo-field {
  grid-column: 1 / -1;
}
.product-delivery {
  margin: 0 0 16px;
  color: var(--lime-deep);
  font-weight: 600;
  font-size: 15px;
}
.product-desc {
  color: #444;
  line-height: 1.6;
  margin: 0 0 16px;
}
.product-features {
  margin: 0 0 28px;
  padding-left: 18px;
  color: #333;
  line-height: 1.55;
}
.product-checkout {
  border-top: 1px solid #eee;
  padding-top: 24px;
}
.product-checkout h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
.product-checkout-lead {
  margin: 0 0 16px;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}
.product-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.product-fields label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.product-fields input {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 16px;
}
.product-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #444;
  line-height: 1.45;
  margin-bottom: 16px;
}
.product-buy-btn { width: 100%; }

.product-training,
.shop-training {
  padding-top: 48px;
  background: #fff;
}
.product-closing { margin-top: 0; }
.shop-closing { margin-top: 0; }
.product-closing-call {
  margin-left: 10px;
}
.footer-card-cta .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
@media (max-width: 640px) {
  .product-closing-call {
    display: block;
    margin: 10px 0 0;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 980px) {
  .shop-teaser-inline {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .shop-teaser-thumb { width: 96px; height: 96px; }
  .shop-teaser-btn { width: 100%; }
  .shop-row {
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "thumb body"
      "thumb side";
  }
  .shop-row-thumb { grid-area: thumb; width: 80px; height: 80px; }
  .shop-row-body { grid-area: body; }
  .shop-row-side {
    grid-area: side;
    text-align: left;
    justify-items: start;
  }
  .product-layout { grid-template-columns: 1fr; }
  .product-fields { grid-template-columns: 1fr; }
}

/* —— CRM admin (DA site) —— */
.crm-app {
  background: #fff;
  color: var(--ink);
  min-height: 100vh;
}
.crm-gate {
  min-height: 100vh;
}
.crm-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.crm-auth-visual {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  min-height: 100vh;
}
.crm-auth-photo-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  opacity: 0.55;
}
.crm-auth-photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.crm-auth-visual-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 44px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 55%, rgba(0, 0, 0, 0.92) 100%);
  color: #fff;
}
.crm-auth-brand {
  font-family: var(--font-d);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.crm-auth-quote {
  margin: 14px 0 0;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15;
  max-width: 420px;
  font-weight: 600;
}
.crm-auth-meta {
  margin: 16px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}
.crm-auth-panel {
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 32px 48px 28px;
}
.crm-auth-back {
  font-size: 14px;
  color: #666;
  text-decoration: none;
  font-weight: 600;
}
.crm-auth-back:hover { color: var(--ink); }
.crm-auth-form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 380px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 0;
}
.crm-auth-form-wrap h1 {
  font-size: clamp(32px, 4vw, 42px);
  margin: 16px 0 8px;
}
.crm-auth-lead {
  margin: 0 0 28px;
  color: #666;
  font-size: 16px;
  line-height: 1.55;
}
.crm-auth-submit {
  width: 100%;
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.crm-auth-submit .crm-auth-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: crm-auth-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.crm-auth-submit.is-loading .crm-auth-spinner {
  display: inline-block;
}
.crm-auth-submit.is-loading .crm-auth-submit-chevron {
  display: none;
}
.crm-auth-submit:disabled {
  opacity: 0.92;
  cursor: wait;
}
@keyframes crm-auth-spin {
  to {
    transform: rotate(360deg);
  }
}
.crm-auth-forgot {
  width: 100%;
  margin-top: 14px;
}
.crm-auth-copy {
  margin: 0;
  text-align: center;
  font-size: 12px;
  color: #aaa;
}
.crm-field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.crm-field input {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  caret-color: var(--ink);
  -webkit-text-fill-color: var(--ink);
}
.crm-field input::placeholder {
  color: rgba(18, 18, 18, 0.38);
  opacity: 1;
  font-weight: 400;
}
.crm-field input::-webkit-input-placeholder {
  -webkit-text-fill-color: rgba(18, 18, 18, 0.38);
}
.crm-auth-form-wrap input[type="password"]::placeholder {
  letter-spacing: 0.02em;
}
.crm-auth-form-wrap input[type="password"] {
  font-family: var(--font-b);
  letter-spacing: 0.12em;
}
.crm-gate-err {
  margin: 12px 0 0;
  color: var(--lime);
  font-size: 14px;
}
.crm-header { border-bottom: 1px solid #eee; }
.crm-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.crm-header-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: #888;
}
.crm-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-ghost-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid #ddd;
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}
.crm-logout {
  background: transparent;
  border: 0;
  color: #666;
  font-size: 14px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crm-main {
  padding: 32px 0 64px;
  background: #fff;
}
.crm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.crm-stat {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 18px;
  padding: 18px 16px;
}
.crm-stat-accent {
  border-color: rgba(255, 26, 26, 0.25);
  background: #fffafa;
}
.crm-stat span {
  display: block;
  font-size: 12px;
  color: #777;
  margin-bottom: 6px;
  line-height: 1.35;
}
.crm-stat strong {
  font-size: 28px;
  font-family: var(--font-d);
  color: var(--ink);
}
.crm-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--crm-r);
}
.crm-subtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: calc(var(--crm-r) - 2px);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.crm-subtab:hover {
  background: var(--soft);
  color: var(--ink);
}
.crm-subtab.is-active {
  background: #0a0a0a;
  color: #fff;
}
.crm-subtab-badge {
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 26, 26, 0.15);
  color: var(--lime);
}
.crm-subtab.is-active .crm-subtab-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.crm-subtab-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: #666;
}
.crm-subtab-panel {
  animation: crm-view-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.crm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.crm-tab {
  border: 1px solid #e5e5e5;
  background: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: #444;
}
.crm-tab.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: #fff;
}
.crm-panel {
  background: var(--soft);
  border-radius: 28px;
  padding: 28px 24px 32px;
}
.crm-panel-head {
  margin-bottom: 20px;
}
.crm-panel-head h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 32px);
}
.crm-panel-head p {
  margin: 0;
  color: #666;
  font-size: 15px;
}
.crm-table-wrap { overflow-x: auto; }
.crm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}
.crm-table th,
.crm-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: top;
}
.crm-table th {
  background: #fafafa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #777;
}
.crm-contact-links {
  display: grid;
  gap: 4px;
  font-size: 13px;
}
.crm-contact-links a { color: var(--ink); font-weight: 600; }
.crm-msg { max-width: 320px; line-height: 1.45; color: #444; }
.crm-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eee;
  color: #444;
}
.crm-badge-new { background: rgba(255, 26, 26, 0.12); color: var(--lime); }
.crm-badge-read { background: #e8e8e8; color: #555; }
.crm-badge-sent,
.crm-badge-paid { background: #e6f7ea; color: #1a7a32; }
.crm-quiz-list {
  display: grid;
  gap: 14px;
}
.crm-quiz-card {
  background: #fff;
  border-radius: 20px;
  padding: 20px 22px;
  border: 1px solid #eee;
}
.crm-quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.crm-quiz-head h3 {
  margin: 0;
  font-size: 20px;
}
.crm-quiz-meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: #888;
}
.crm-quiz-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-sm {
  min-height: 38px;
  padding: 0 16px;
  font-size: 12px;
}
.crm-quiz-phone {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 700;
}
.crm-quiz-phone a { color: var(--ink); }
.crm-quiz-duration {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
}
.crm-quiz-scores { color: #888; font-weight: 400; }
.crm-quiz-answers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
}
.crm-quiz-answers li {
  display: grid;
  grid-template-columns: minmax(0, 38%) minmax(0, 1fr);
  gap: 10px 14px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: var(--crm-r);
}
.crm-quiz-answer-label {
  color: #888;
  font-size: 12px;
  font-weight: 600;
}
.crm-quiz-answer-val {
  color: #111;
  font-weight: 500;
}
.crm-quiz-scores-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.crm-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 999px;
  font-size: 12px;
  color: #444;
}
.crm-score-pill em {
  font-style: normal;
  color: #888;
}
.crm-order-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.crm-order-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--crm-r);
  padding: 18px 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.crm-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.crm-order-head h3 {
  margin: 0;
  font-size: 16px;
}
.crm-order-meta {
  margin: 4px 0 0;
  font-size: 12px;
  color: #888;
}
.crm-order-client {
  margin: 0 0 8px;
  font-size: 15px;
}
.crm-order-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
.crm-order-links a {
  color: var(--ink);
  font-weight: 600;
}
.crm-dashboard-charts.is-dashboard-loading .crm-chart-area,
.crm-dashboard-charts.is-dashboard-loading .crm-vbars,
.crm-dashboard-charts.is-dashboard-loading .crm-donut-wrap,
.crm-dashboard-charts.is-dashboard-loading .crm-bars,
.crm-dashboard-charts.is-dashboard-loading .crm-funnel,
.crm-dashboard-charts.is-dashboard-loading .crm-top-pages,
#crm-coach-feed.is-dashboard-loading {
  min-height: 120px;
  background: linear-gradient(90deg, #f3f3f3 0%, #fafafa 50%, #f3f3f3 100%);
  background-size: 200% 100%;
  animation: crm-dash-shimmer 1.2s ease-in-out infinite;
  border-radius: var(--crm-r);
}
.crm-kpi-row.is-dashboard-kpis-loading .crm-kpi strong {
  color: transparent;
  background: linear-gradient(90deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
  background-size: 200% 100%;
  animation: crm-dash-shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
  min-width: 2.5ch;
  display: inline-block;
}
.crm-kpi-skeleton strong {
  color: #ccc;
}
.crm-dash-feed-placeholder {
  color: #888;
}
#crm-view-dashboard.is-dashboard-busy .crm-dashboard-charts {
  pointer-events: none;
}
.crm-refresh-btn.is-loading {
  opacity: 0.65;
  cursor: wait;
}
@keyframes crm-dash-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.crm-dashboard-charts.is-updating {
  opacity: 0.55;
  transition: opacity 0.22s ease;
}
.crm-dashboard-charts:not(.is-updating) {
  opacity: 1;
  transition: opacity 0.35s ease;
}
.crm-chart-area.is-entering .crm-svg-chart {
  animation: crm-chart-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.crm-chart-bars.is-entering .crm-vbar-fill {
  animation: crm-bar-grow 0.5s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
@keyframes crm-chart-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes crm-bar-grow {
  from { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.4; }
  to { transform: scaleY(1); opacity: 1; }
}
.crm-profile-visual-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
}
.crm-profile-visual-label-logo {
  margin-top: 20px;
}
.crm-profile-logo-preview {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  border-radius: var(--crm-r);
  margin-bottom: 10px;
}
.crm-profile-logo-preview img {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  object-fit: contain;
}
.crm-empty {
  margin: 0;
  padding: 24px;
  text-align: center;
  color: #888;
  background: #fff;
  border-radius: 16px;
}

/* CRM SaaS (dashboard — noir / blanc / rouge) */
body.crm-app.crm-logged-in {
  --crm-r: 5px;
  --crm-nav-r: 5px;
  background: var(--soft);
  color: var(--ink);
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
body.crm-app.crm-logged-in .crm-card,
body.crm-app.crm-logged-in .crm-kpi,
body.crm-app.crm-logged-in .crm-range,
body.crm-app.crm-logged-in .crm-range button,
body.crm-app.crm-logged-in .crm-vbar-fill,
body.crm-app.crm-logged-in .crm-program-edit,
body.crm-app.crm-logged-in .crm-qr-card,
body.crm-app.crm-logged-in .crm-cms-preview,
body.crm-app.crm-logged-in .crm-cms-field textarea,
body.crm-app.crm-logged-in .crm-field-light input,
body.crm-app.crm-logged-in .crm-program-grid input,
body.crm-app.crm-logged-in .crm-program-grid textarea,
body.crm-app.crm-logged-in .crm-tool-btn,
body.crm-app.crm-logged-in .crm-sidebar-profile img,
body.crm-app.crm-logged-in .btn,
body.crm-app.crm-logged-in .crm-table {
  border-radius: var(--crm-r) !important;
}
.crm-saas {
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  width: 100%;
}
.crm-sidebar {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  bottom: 0;
  width: 268px;
  background: #0a0a0a;
  border-right: 1px solid #1f1f1f;
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  transition: width 0.2s ease;
}
.crm-sidebar.is-collapsed {
  width: 76px;
}
.crm-sidebar.is-collapsed .crm-nav-text,
.crm-sidebar.is-collapsed .crm-nav-label,
.crm-sidebar.is-collapsed .crm-nav-badge,
.crm-sidebar.is-collapsed .crm-brand-text,
.crm-sidebar.is-collapsed .crm-tool-label,
.crm-sidebar.is-collapsed .crm-profile-meta {
  display: none;
}
.crm-sidebar-head {
  flex-shrink: 0;
  padding: 8px 8px 18px;
  border-bottom: 1px solid #1a1a1a;
  margin-bottom: 8px;
}
.crm-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crm-brand-mark {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}
.crm-brand-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #666;
}
.crm-brand-name {
  margin: 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.crm-sidebar-nav {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
.crm-nav-indicator {
  position: absolute;
  left: 4px;
  right: 4px;
  top: 0;
  height: 40px;
  background: #fff;
  border-radius: var(--crm-nav-r);
  z-index: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), height 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.2s ease;
  will-change: transform, height;
}
.crm-nav-indicator.is-hidden {
  opacity: 0;
}
.crm-sidebar.is-collapsed .crm-nav-indicator {
  display: none;
}
.crm-nav-label {
  margin: 14px 8px 6px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
}
.crm-nav-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: var(--crm-nav-r);
  background: transparent;
  color: #aaa;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}
.crm-nav-item:hover:not(.is-active):not(:disabled) {
  background: #161616;
  color: #eee;
}
.crm-nav-item.is-active {
  background: transparent;
  color: #0a0a0a;
}
.crm-nav-item.is-active:hover {
  background: transparent;
  color: #0a0a0a;
}
.crm-nav-item.is-active .crm-nav-svg {
  color: #0a0a0a;
}
.crm-nav-svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: currentColor;
}
.crm-nav-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--lime);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.crm-nav-soon {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}
.crm-sidebar-bottom {
  flex-shrink: 0;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #1a1a1a;
}
.crm-sidebar-tools {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}
.crm-tool-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: #888;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.crm-tool-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.crm-tool-btn:hover {
  background: #161616;
  color: #eee;
}
.crm-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 0;
  padding: 4px 2px;
  background: transparent;
  border: none;
  border-radius: var(--crm-nav-r);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}
.crm-sidebar-profile:hover {
  background: #161616;
}
.crm-sidebar-profile.is-profile-active {
  background: #161616;
}
.crm-sidebar-profile .ps-avatar-ring,
.crm-sidebar-profile img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 10px !important;
}
.crm-profile-name-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}
.crm-profile-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #777;
  transition: transform 0.2s ease, color 0.2s ease;
}
.crm-sidebar-profile:hover .crm-profile-chevron,
.crm-sidebar-profile.is-profile-active .crm-profile-chevron {
  color: inherit;
}
.crm-sidebar-profile.is-profile-active .crm-profile-chevron {
  transform: rotate(-180deg);
  color: #aaa;
}
.crm-profile-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
}
.crm-profile-meta strong {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.crm-profile-email {
  font-size: 10px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.crm-sidebar.is-collapsed .crm-sidebar-profile {
  justify-content: center;
  padding: 6px 0;
}
.crm-sidebar.is-collapsed .crm-sidebar-profile .ps-avatar-ring,
.crm-sidebar.is-collapsed .crm-sidebar-profile img {
  width: 28px;
  height: 28px;
}
.crm-workspace {
  margin-left: 268px;
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: margin-left 0.2s ease;
}
body.crm-sidebar-collapsed .crm-workspace {
  margin-left: 76px;
}
.crm-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 28px 36px 18px;
  border-bottom: 1px solid #eee;
  background: #fff;
}
.crm-topbar-primary {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.crm-topbar-headlines {
  min-width: 0;
}
.coach-portal-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.coach-portal-btn-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.coach-portal-btn-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
@media (max-width: 980px) {
  .crm-topbar-actions {
    width: 100%;
    justify-content: flex-start;
  }
}
.crm-topbar-title {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.crm-topbar-sub {
  margin: 6px 0 0;
  color: #666;
  font-size: 15px;
}
.crm-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.crm-range {
  display: flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px;
  border: 1px solid #e5e5e5;
}
.crm-range button {
  border: none;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.crm-range button.is-active {
  background: var(--lime);
  color: #fff;
}
.crm-refresh-btn {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid #ddd !important;
}
.crm-workspace-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 36px 56px;
  background: var(--soft);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.crm-view.is-active {
  animation: crm-view-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#crm-view-dashboard.is-active {
  animation: none;
}
@keyframes crm-view-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .crm-view.is-active { animation: none; }
  .crm-nav-indicator { transition: none; }
}
.crm-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.crm-kpi {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}
.crm-kpi span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}
.crm-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  font-family: var(--font-d);
}
.crm-kpi-highlight {
  border: 2px solid rgba(255, 26, 26, 0.35);
}
.crm-kpi-alert strong { color: var(--lime); }
.crm-dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.crm-card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 20px 22px 24px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.05);
}
.crm-card-wide {
  grid-column: 1 / -1;
}
.crm-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.crm-card-head h2 {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  font-weight: 700;
}
.crm-card-head span {
  font-size: 12px;
  color: #666;
}
.crm-chart-area {
  min-height: 220px;
  margin-bottom: 8px;
}
.crm-chart-bars {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.crm-chart-bars-tall .crm-vbars {
  min-height: 160px;
}
.crm-vbars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  min-height: 120px;
  padding-bottom: 4px;
}
.crm-vbar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 140px;
}
.crm-vbar-fill {
  width: 100%;
  max-width: 28px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, #ff1a1a, #ff6b6b);
  min-height: 0;
}
.crm-vbar-val {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink);
}
.crm-vbar-day {
  font-size: 9px;
  color: #999;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crm-chart-empty {
  margin: 0;
  padding: 16px 0;
  color: #888;
  font-size: 14px;
}
.crm-svg-chart {
  width: 100%;
  height: 200px;
  display: block;
}
.crm-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.crm-donut {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex-shrink: 0;
}
.crm-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-width: 140px;
  font-size: 13px;
  color: #444;
}
.crm-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.crm-legend span { flex: 1; }
.crm-legend em {
  font-style: normal;
  color: #666;
  font-size: 12px;
}
.crm-bars {
  display: grid;
  gap: 10px;
}
.crm-bar-row {
  display: grid;
  grid-template-columns: 88px 1fr 36px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.crm-bar-label {
  color: #555;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-bar-track {
  height: 8px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.crm-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), #ff6b6b);
  border-radius: 999px;
}
.crm-bar-val {
  text-align: right;
  font-weight: 700;
  color: var(--ink);
}
.crm-top-pages {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}
.crm-top-pages li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
}
.crm-top-pages strong { color: var(--ink); }
.crm-funnel {
  display: grid;
  gap: 12px;
}
.crm-funnel-step {
  display: grid;
  gap: 6px;
}
.crm-funnel-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #666;
}
.crm-funnel-head strong { color: var(--ink); }
.crm-funnel-bar {
  height: 10px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
}
.crm-funnel-bar span {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: 999px;
}
.crm-panel-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-d);
  font-size: 26px;
  color: var(--ink);
}
.crm-panel-head p {
  margin: 0 0 20px;
  color: #666;
  font-size: 15px;
}
.crm-panel-head-cms {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 24px;
}
.crm-panel-head-cms > div:first-child {
  flex: 1;
  min-width: min(100%, 280px);
}
.crm-panel-head-cms p {
  margin-bottom: 0;
  max-width: 52ch;
}
.crm-cms-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}
.crm-cms-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.crm-cms-jump-link {
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  color: #444;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  padding: 6px 12px;
}
.crm-cms-jump-link:hover {
  border-color: #ccc;
  color: #111;
}
.crm-cms-form {
  display: grid;
  gap: 18px;
  max-width: 720px;
}
.crm-cms-field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #444;
}
.crm-cms-field textarea,
.crm-cms-field input[type="text"] {
  width: 100%;
  background: #fff;
  color: var(--ink);
  border: 1px solid #ddd;
  border-radius: var(--radius);
  padding: 14px 16px;
  resize: vertical;
  min-height: 52px;
  font-size: 15px;
  font-weight: 400;
  -webkit-text-fill-color: var(--ink);
}
.crm-cms-field input[type="text"] {
  min-height: 0;
  resize: none;
}
.crm-cms-texts {
  display: grid;
  gap: 12px;
}
.crm-cms-field-short input {
  min-height: 48px;
}
.crm-programs-admin {
  display: grid;
  gap: 18px;
}
.crm-program-edit {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}
.crm-program-edit header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.crm-program-edit h3 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 22px;
}
.crm-program-slug {
  font-size: 12px;
  color: #999;
}
.crm-program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.crm-program-layout {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 20px;
  margin-bottom: 14px;
}
.crm-program-visual {
  display: grid;
  gap: 10px;
  align-content: start;
}
.crm-program-preview-frame {
  aspect-ratio: 4/5;
  background: #f0f0f0;
  border: 1px solid #ddd;
  overflow: hidden;
}
.crm-program-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crm-program-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #333 !important;
}
.crm-program-grid label > span {
  color: #444;
}
.crm-program-grid input,
.crm-program-grid textarea {
  width: 100%;
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid #ddd !important;
  padding: 12px 14px;
  -webkit-text-fill-color: var(--ink) !important;
}
.crm-program-grid .crm-span2 { grid-column: 1 / -1; }
.crm-program-grid .crm-check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  grid-column: span 1;
}
.crm-program-grid .crm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}
.crm-program-grid .crm-check span {
  color: #222 !important;
  font-weight: 600;
}
.crm-cms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}
.crm-page-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.crm-page-tabs button {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #555;
}
.crm-page-tabs button.is-active {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}
.crm-cms-block {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  scroll-margin-top: 12px;
}
.crm-cms-block-head {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.crm-cms-block-head h3 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 18px;
  color: var(--ink);
}
.crm-cms-block-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #777;
  line-height: 1.45;
  font-weight: 400;
}
.crm-cms-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.crm-cms-media-card {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
}
.crm-cms-media-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  line-height: 1.35;
}
.crm-cms-advanced {
  font-size: 12px;
  color: #666;
}
.crm-cms-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: #888;
  list-style: none;
}
.crm-cms-advanced summary::-webkit-details-marker {
  display: none;
}
.crm-cms-advanced input {
  width: 100%;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
}
.crm-cms-form-foot {
  padding-top: 8px;
}
.crm-cms-image {
  /* legacy hook for upload JS */
}
.crm-cms-img-preview {
  aspect-ratio: 16/10;
  background: #eee;
  overflow: hidden;
  border: 1px solid #ddd;
}
.crm-cms-img-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crm-cms-preview {
  background: #fff;
  color: var(--ink);
  padding: 18px;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 12px;
}
.crm-cms-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.crm-cms-preview-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}
.crm-cms-preview-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
}
.crm-cms-preview-link:hover {
  text-decoration: underline;
}
.crm-cms-preview-hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: #888;
  line-height: 1.45;
}
.crm-cms-preview-hero {
  min-height: 160px;
  padding: 20px;
  background: #1a1a1a center / cover;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  border-radius: 12px;
  color: #fff;
}
.crm-cms-preview-why {
  min-height: 100px;
  margin-bottom: 12px;
  background: #eee center 35% / cover no-repeat;
  border: 1px solid #ddd;
  border-radius: 12px;
}
.crm-cms-preview-h {
  margin: 0;
  font-family: var(--font-d);
  font-size: 20px;
  text-transform: uppercase;
  color: #fff;
}
.crm-cms-preview-lead {
  margin: 10px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
}
.crm-cms-preview-thumbs-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
}
.crm-cms-preview-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.crm-cms-preview-thumbs img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}
.crm-qr-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.crm-qr-card-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.crm-qr-preview {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border: 1px solid #ddd;
  border-radius: var(--crm-r);
  padding: 12px;
}
.crm-qr-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.crm-qr-preview img[hidden] {
  display: none;
}
.crm-qr-empty {
  margin: 0;
  padding: 20px;
  text-align: center;
  color: #666;
  font-size: 14px;
  max-width: 220px;
}
.crm-profile-form {
  max-width: 720px;
}
.crm-profile-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  align-items: start;
}
.crm-profile-visual {
  display: grid;
  gap: 12px;
  justify-items: start;
}
.crm-profile-avatar-lg {
  width: 160px;
  height: 160px;
  background: #eee;
  border: 1px solid #ddd;
  overflow: hidden;
}
.crm-profile-avatar-lg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crm-profile-fields {
  display: grid;
  gap: 4px;
}
.crm-form-note {
  min-height: 20px;
  margin: 10px 0 0;
  font-size: 14px;
}
.crm-form-note.ok { color: #1a7a32; }
.crm-form-note.err { color: var(--lime); }
.crm-qr-card {
  max-width: 440px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}
.crm-field-light span { color: #444; }
.crm-field-light input {
  background: #fff;
  border: 1px solid #ddd;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 14px 16px;
  -webkit-text-fill-color: var(--ink);
}
.crm-field-light input::placeholder {
  color: rgba(18, 18, 18, 0.38);
  opacity: 1;
}
.crm-field-light input::-webkit-input-placeholder {
  -webkit-text-fill-color: rgba(18, 18, 18, 0.38);
}
.crm-qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 4px;
}
.btn-ghost {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid #ddd !important;
}
.crm-qr-preview {
  margin-top: 16px;
  padding: 16px;
  background: var(--soft);
  border-radius: var(--radius);
  display: inline-block;
  min-height: 120px;
  min-width: 120px;
}
.crm-qr-preview img {
  display: block;
  border-radius: 12px;
}
.crm-qr-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: #666;
}

@media (max-width: 980px) {
  .crm-dash-grid { grid-template-columns: 1fr; }
  .crm-workspace {
    margin-left: 0;
  }
  body.crm-sidebar-collapsed .crm-workspace {
    margin-left: 0;
  }
  .crm-sidebar {
    width: min(280px, 88vw);
    transform: translateX(0);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
  }
  .crm-sidebar.is-collapsed {
    width: 76px;
    transform: translateX(0);
  }
  .crm-workspace-main { padding: 16px; }
  .crm-topbar { padding: 20px 16px 12px; }
  .crm-program-grid { grid-template-columns: 1fr; }
  .crm-program-layout { grid-template-columns: 1fr; }
  .crm-cms-layout { grid-template-columns: 1fr; }
  .crm-cms-preview { position: static; }
  .crm-profile-layout { grid-template-columns: 1fr; }
}

/* ——— Espace client & dossiers élèves ——— */
.client-portal-app {
  background: #fff;
  color: var(--ink);
  min-height: 100vh;
}
.client-portal-app.client-logged-in {
  background: #0a0a0a;
  color: #f5f5f5;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
}
body.crm-app.client-portal-app.client-logged-in {
  background: #0a0a0a;
  color: #f5f5f5;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.client-portal-app.client-logged-in #client-shell:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  width: 100%;
}
.client-auth-visual .crm-auth-quote {
  max-width: 460px;
}
/* Espace élève · layout SaaS (sidebar + workspace) */
.client-portal-saas.crm-saas {
  height: 100%;
  min-height: 0;
  max-height: 100dvh;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.client-portal-app.client-logged-in .client-workspace {
  margin-left: 268px;
  background: #0a0a0a;
  color: #f5f5f5;
  transition: margin-left 0.2s ease, width 0.2s ease;
  min-width: 0;
  min-height: 0;
  flex: 1;
  height: 100%;
  width: calc(100% - 268px);
  max-width: none;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.client-portal-app.client-logged-in .crm-workspace-main,
.client-portal-app.client-logged-in .client-workspace-main {
  background: #0a0a0a;
  color: #f5f5f5;
}
.client-portal-app.client-logged-in .crm-topbar.client-topbar {
  background: #0a0a0a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
body.client-portal-app.client-sidebar-collapsed.client-logged-in .client-workspace {
  margin-left: 76px;
  width: calc(100% - 76px);
}
.client-portal-app.client-logged-in .client-topbar {
  background: #0a0a0a;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.client-portal-app.client-logged-in .crm-topbar-title,
.client-portal-app.client-logged-in .client-top-kicker {
  color: #f5f5f5;
}
.client-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.client-topbar-start {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.client-topbar-titles {
  min-width: 0;
}
.client-welcome-emoji {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.92em;
  vertical-align: middle;
  transform: translateY(-2px);
}
.client-welcome-tagline {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: #aaa;
  letter-spacing: 0.01em;
}
.client-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.client-topbar-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #141414;
  color: #f5f5f5;
  cursor: pointer;
  text-decoration: none;
}
.client-topbar-icon svg {
  width: 20px;
  height: 20px;
}
.client-topbar-icon:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: #1a1a1a;
}
.client-topbar-profile {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.client-topbar-avatar-ring {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.client-topbar-profile:active .client-topbar-avatar-ring {
  transform: scale(0.96);
}
.client-bottom-nav {
  display: none;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  z-index: 80;
  width: calc(100% - max(20px, env(safe-area-inset-left, 0px) + env(safe-area-inset-right, 0px) + 12px));
  max-width: 400px;
  padding: 6px 8px;
  background: rgba(18, 18, 20, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  justify-content: space-between;
  gap: 4px;
  box-sizing: border-box;
}
.client-bottom-nav-item {
  flex: 1;
  min-width: 0;
  max-width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 3px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #888;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.client-bottom-nav-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.client-bottom-nav-item span {
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.client-bottom-nav-item.is-active {
  color: #fff;
  background: rgba(255, 26, 26, 0.12);
}
.client-bottom-nav-item.is-active svg {
  color: var(--lime);
}
.client-mobile-menu {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #141414;
  color: #fff;
  cursor: pointer;
}
.client-mobile-menu svg {
  width: 22px;
  height: 22px;
}
.client-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.55);
}
.client-sidebar-profile-btn {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.client-sidebar-profile-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}
.client-sidebar-profile-btn .crm-profile-meta {
  min-width: 0;
}
.ps-avatar-ring,
.client-avatar-ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  line-height: 0;
  overflow: hidden;
}
.ps-avatar-ring > img,
.ps-avatar-ring > .ps-avatar-initials,
.client-avatar-ring > img,
.client-avatar-ring > .ps-avatar-initials {
  grid-area: 1 / 1;
}
.ps-avatar-ring > img:not([hidden]),
.client-avatar-ring > img:not([hidden]) {
  position: relative;
  z-index: 3;
}
.ps-avatar-ring > .ps-avatar-initials,
.client-avatar-ring > .ps-avatar-initials {
  z-index: 1;
}
.ps-avatar-ring:has(> img:not([hidden])) > .ps-avatar-initials,
.client-avatar-ring:has(> img:not([hidden])) > .ps-avatar-initials,
.ps-avatar-ring.has-photo > .ps-avatar-initials,
.client-avatar-ring.has-photo > .ps-avatar-initials,
.client-sidebar-avatar-ring.has-photo > .ps-avatar-initials,
.client-avatar-ring:has(> img[src]:not([hidden])) > .ps-avatar-initials {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none;
  font-size: 0 !important;
  line-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}
.ps-avatar-ring.is-fallback,
.client-avatar-ring.is-fallback,
.coach-avatar-ring.is-fallback {
  background: linear-gradient(145deg, #d8d8dc 0%, #b8b8bf 100%);
}
.ps-avatar-initials,
.coach-avatar-initials {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #3a3a3c;
  user-select: none;
  line-height: 1;
}
.client-avatar-ring img,
.ps-avatar-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.client-avatar-ring img[hidden],
.ps-avatar-ring img[hidden] {
  display: none !important;
}
.ps-avatar-ring img:not([hidden]) + .ps-avatar-initials,
.client-avatar-ring img:not([hidden]) + .ps-avatar-initials {
  display: none !important;
}
.ps-avatar-ring:not(.is-fallback) > .ps-avatar-initials,
.client-avatar-ring:not(.is-fallback) > .ps-avatar-initials {
  display: none !important;
}
.ps-avatar-ring.is-fallback img,
.client-avatar-ring.is-fallback img {
  display: none !important;
  visibility: hidden !important;
}
.crm-sidebar-avatar-ring {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.crm-sidebar-avatar-ring .ps-avatar-initials {
  font-size: 11px;
  color: #f0f0f2;
}
.crm-sidebar-profile .ps-avatar-ring.is-fallback {
  background: linear-gradient(145deg, #3a3a3c 0%, #2c2c2e 100%);
}
.crm-profile-avatar-lg.ps-avatar-ring {
  display: grid;
  place-items: center;
}
.crm-profile-avatar-lg.ps-avatar-ring.is-fallback {
  background: linear-gradient(145deg, #e8e8ec 0%, #cfcfd6 100%);
}
.ps-avatar-initials-lg {
  font-size: 42px;
  color: #48484a;
}
.client-onboarding-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.client-ob-avatar.ps-avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.client-ob-avatar .ps-avatar-initials {
  font-size: 18px;
}
.client-ob-photo-ring .ps-avatar-initials {
  font-size: 32px;
}
.client-profile-avatar-ring .ps-avatar-initials {
  font-size: 28px;
}
.client-sidebar-avatar-ring .ps-avatar-initials {
  font-size: 11px;
  color: #f0f0f2;
}
.client-sidebar-avatar-ring.is-fallback {
  background: linear-gradient(145deg, #3a3a3c 0%, #2c2c2e 100%);
}
.client-sidebar-avatar-ring {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.client-sidebar-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-avatar-saved-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.client-avatar-ring.is-saved {
  animation: client-avatar-pulse 0.65s ease;
}
.client-avatar-ring.is-saved .client-avatar-saved-badge {
  opacity: 1;
  transform: scale(1);
}
@keyframes client-avatar-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 26, 26, 0.45);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 26, 26, 0);
  }
  100% {
    box-shadow: none;
  }
}
.client-readonly-val {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ccc;
  font-size: 15px;
  word-break: break-all;
}
.client-field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #777;
  line-height: 1.4;
}
.client-ob-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 8px 0 4px;
}
.client-ob-photo-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.client-ob-photo-ring img {
  border-radius: 50%;
}
.client-ob-photo-status {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #7dffb2;
}
.client-ob-photo-btn {
  cursor: pointer;
}
.client-profile-sheet {
  position: fixed;
  inset: 0;
  z-index: 9700;
  display: grid;
  place-items: center;
  padding: 16px;
}
.client-profile-sheet[hidden] {
  display: none !important;
}
.client-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.client-profile-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.client-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.client-profile-head h2 {
  margin: 0;
  font-family: var(--font-d);
  font-size: 20px;
}
.client-profile-body {
  padding: 20px;
}
.client-profile-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.client-profile-avatar-ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.client-profile-avatar-ring img {
  border-radius: 50%;
}
.client-profile-avatar-hint {
  margin: 0;
  font-size: 13px;
  color: #7dffb2 !important;
}
.client-profile-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.client-profile-open {
  overflow: hidden;
}

/* Sidebar élève : pas de pastille blanche admin */
.client-portal-app.client-logged-in .crm-nav-indicator {
  background: rgba(255, 26, 26, 0.14);
  border: 1px solid rgba(255, 26, 26, 0.28);
  box-shadow: none;
}
.client-portal-app.client-logged-in .crm-nav-item.is-active,
.client-portal-app.client-logged-in .crm-nav-item.is-active:hover {
  color: #fff;
}
.client-portal-app.client-logged-in .crm-nav-item.is-active .crm-nav-svg {
  color: var(--lime);
}
.client-portal-app.client-logged-in .crm-nav-item:hover:not(.is-active):not(:disabled) {
  background: #161616;
  color: #eee;
}
.client-portal-app.client-logged-in .crm-nav-label {
  color: #666;
}
.client-workspace-main {
  padding: 10px clamp(14px, 2.4vw, 28px) 40px;
  overflow-y: auto;
  overflow-x: clip;
  flex: 1;
  min-height: 0;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.client-portal-app.client-logged-in .client-topbar {
  padding-left: clamp(14px, 2.4vw, 28px);
  padding-right: clamp(14px, 2.4vw, 28px);
}
.client-topbar-title {
  font-size: clamp(18px, 3.2vw, 26px) !important;
  color: inherit;
}
.client-top-kicker {
  margin: 0;
  font-size: 11px;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}
.client-top h1 {
  margin: 4px 0 0;
  font-family: var(--font-d);
  font-size: clamp(26px, 5vw, 36px);
}
.client-tab[hidden] {
  display: none !important;
}
#client-tab-home {
  width: 100%;
  max-width: 100%;
}
#client-tab-home .client-hero-card {
  margin-bottom: 18px;
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background:
    linear-gradient(145deg, rgba(255, 26, 26, 0.07), transparent 42%),
    #121212;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05),
    0 20px 48px rgba(0, 0, 0, 0.35);
}
.client-hero-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}
@media (min-width: 1100px) {
  .client-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: 28px 32px;
    padding: 26px 28px 28px;
  }
}
@media (min-width: 1400px) {
  .client-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 480px);
    gap: 32px 36px;
    padding: 28px 32px 32px;
  }
}
@media (max-width: 1099px) {
  .client-hero-grid {
    grid-template-columns: 1fr;
    padding: 22px 20px 24px;
  }
  .client-hero-media {
    max-width: 560px;
  }
}
.client-hero-copy .client-top-kicker {
  margin-bottom: 10px;
}
.client-hero-lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #b8b8b8;
  max-width: 36em;
}
.client-hero-objectif {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.client-hero-objectif-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.client-hero-objectif-val {
  font-weight: 700;
  color: #fff;
  font-size: 15px;
}
.client-hero-objectif-detail {
  flex: 1 1 100%;
  font-size: 14px;
  line-height: 1.45;
  color: #aaa;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.client-hero-media {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.client-hero-media .client-video-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.client-hero-copy h2 {
  margin: 0 0 12px;
}
.client-video-card {
  border-radius: 16px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.client-video-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.client-video-card-label {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.client-video-card-meta {
  font-size: 12px;
  color: #888;
}
.client-video-frame {
  padding: 10px 10px 0;
}
.client-video-card .client-video-wrap {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.client-video-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 12px;
}
.client-video-card-foot a {
  color: #ddd;
  font-weight: 600;
  text-decoration: none;
}
.client-video-card-foot a:hover {
  color: var(--lime);
  text-decoration: underline;
}
.client-video-card-foot-note {
  color: #666;
}
#client-tab-home .client-grid {
  margin-top: 0;
  gap: 18px;
}
#client-tab-home .client-card h3 {
  margin-bottom: 10px;
}
#client-tab-home .client-card .client-muted {
  margin-bottom: 14px;
}
.client-onboarding-banner {
  margin-bottom: 18px;
  border-color: rgba(255, 26, 26, 0.35);
  background: linear-gradient(135deg, rgba(255, 26, 26, 0.1), #141414);
}
.client-onboarding-launch-wrap {
  margin: 24px 0 8px;
  text-align: center;
}
.client-onboarding-launch-wrap .btn-ghost {
  color: #aaa;
  border-color: rgba(255, 255, 255, 0.12);
}
.client-onboarding {
  position: fixed;
  inset: 0;
  z-index: 9600;
  background: #0a0a0a;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
}
.client-onboarding[hidden] {
  display: none !important;
}
.client-onboarding-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 560px;
  width: 100%;
  margin: 0 auto;
}
.client-onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.client-onboarding-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
}
.client-onboarding-brand img {
  border-radius: 50%;
  object-fit: cover;
}
.client-onboarding-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.client-onboarding-later {
  border: none;
  background: transparent;
  color: #999;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 10px;
}
.client-onboarding-later:hover {
  color: #ccc;
}
.client-onboarding-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141414;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.client-onboarding-progress {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.client-onboarding-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--lime);
  transition: width 0.35s ease;
}
.client-onboarding-section {
  margin: 0;
  padding: 12px 20px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
}
.client-onboarding-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 12px;
  -webkit-overflow-scrolling: touch;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.client-onboarding-body.client-ob-step-out {
  opacity: 0;
  transform: translateX(-10px);
}
.client-onboarding-body.client-ob-step-in {
  opacity: 0;
  transform: translateX(12px);
}
.client-onboarding-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0a0a;
}
.client-onboarding-footer:empty {
  display: none;
  padding: 0;
  border: none;
}
.client-onboarding #client-onboarding-note {
  margin: 0 20px 8px;
}
.client-ob-hero {
  text-align: center;
  padding: 24px 8px 12px;
}
.client-ob-avatar {
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(255, 26, 26, 0.2);
}
.client-ob-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.client-ob-title {
  margin: 0 0 14px;
  font-family: var(--font-d);
  font-size: clamp(26px, 6vw, 32px);
  line-height: 1.2;
  color: #fff;
}
.client-ob-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #aaa;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.client-ob-hero-success .client-ob-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--lime);
}
.client-ob-cta {
  flex: 1;
  min-width: min(100%, 200px);
  justify-content: center;
}
.client-ob-ghost {
  color: #bbb;
  border-color: rgba(255, 255, 255, 0.15);
}
.client-onboarding .quiz-q {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 18px;
  color: #fff;
}
.client-onboarding .quiz-q-sub.client-ob-sub {
  margin: -8px 0 16px;
  font-size: 14px;
  color: #888;
}
.client-onboarding .quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.client-onboarding .quiz-option {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  background: #141414;
  cursor: pointer;
  font: inherit;
  width: 100%;
  color: inherit;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  animation: quiz-option-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.client-onboarding .quiz-option strong {
  color: #fff;
}
.client-onboarding .quiz-option span {
  color: #888;
}
.client-onboarding .quiz-option.is-selected,
.client-onboarding .quiz-option:hover {
  border-color: var(--lime);
  background: rgba(255, 26, 26, 0.08);
  box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.12);
}
.client-onboarding .quiz-option.is-selected {
  transform: scale(0.98);
}
.client-onboarding .client-ob-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.client-onboarding .client-field span {
  color: #aaa;
}
.client-onboarding .client-field input,
.client-onboarding .client-field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141414;
  color: #fff;
  font: inherit;
  font-size: 16px;
}
body.client-onboarding-open {
  overflow: hidden;
}
.client-onboarding.client-onboarding-exit {
  opacity: 0;
  transform: scale(1.015);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.client-workspace-main.client-dashboard-enter {
  opacity: 0;
  transform: translateY(10px);
}
.client-workspace-main.client-dashboard-enter.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease 0.06s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}
#client-tab-home.client-home-reveal .client-hero-card,
#client-tab-home.client-home-reveal .client-grid > *,
#client-tab-home.client-home-reveal .client-workflow-card {
  opacity: 0;
  transform: translateY(14px);
}
#client-tab-home.client-home-reveal.is-visible .client-hero-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease 0.12s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}
#client-tab-home.client-home-reveal.is-visible .client-grid > *:nth-child(1) {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease 0.22s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.22s;
}
#client-tab-home.client-home-reveal.is-visible .client-grid > *:nth-child(2) {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s ease 0.32s,
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.32s;
}
#client-tab-home.client-home-reveal.is-visible .client-workflow-card {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.55s ease 0.42s,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.42s;
}
@media (prefers-reduced-motion: reduce) {
  .client-onboarding.client-onboarding-exit,
  .client-workspace-main.client-dashboard-enter,
  #client-tab-home.client-home-reveal .client-hero-card,
  #client-tab-home.client-home-reveal .client-grid > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
@media (max-width: 520px) {
  .client-onboarding-footer {
    flex-direction: column-reverse;
  }
  .client-onboarding-footer .btn {
    width: 100%;
  }
}
.client-video-fallback {
  margin: 8px 0 0;
  font-size: 12px;
  color: #777;
}
.client-video-fallback a {
  color: #ccc;
  text-decoration: underline;
}
.client-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}
.client-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.client-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 28px 0;
}
.client-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 16px 0;
}
.client-stat-kpi {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #888;
}
.client-stat-kpi strong {
  font-size: 22px;
  color: #fff;
}
.client-stat-kpi-accent strong {
  color: var(--lime);
}
.client-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.client-stat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  min-width: 140px;
}
.client-stat-chip strong {
  color: var(--lime);
}
.client-month-label {
  margin: 0 0 8px;
  text-transform: capitalize;
  color: #f0f0f0;
  font-size: 17px;
  font-weight: 600;
}
.client-portal-app.client-logged-in .client-month-label {
  color: #f5f5f5;
}
.client-habit-pct {
  font-weight: 700;
  color: var(--lime);
  min-width: 48px;
}
.client-habit-trend-chart {
  width: 100%;
  max-width: 420px;
  height: auto;
}
.client-bar-label {
  font-size: 9px;
  fill: #888;
}
.client-chart-card {
  margin-bottom: 20px;
}
.client-pdf-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 16px 0;
}
.client-pdf-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}
.client-pdf-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 26, 26, 0.15);
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
}
.client-warn {
  color: #ffb4b4;
  font-size: 14px;
  margin: 12px 0;
}
.client-card-inset {
  margin-top: 16px;
  background: #101010;
  padding: 20px 20px 22px;
}
.client-card .client-card-inset {
  margin-top: 18px;
}
.client-card-inset > h3:first-child {
  margin-top: 0;
}
.client-card-inset > .client-muted:first-of-type,
.client-card-inset > h3 + .client-muted {
  margin: 0 0 18px;
}
.client-tally-block {
  margin-top: 12px;
}
.client-tally-iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
.client-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.client-self-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.client-records-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.client-records-table th,
.client-records-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
}
.client-records-table input {
  width: 100%;
  min-width: 80px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d0d;
  color: #fff;
}
.client-field {
  display: block;
  margin: 0;
}
.client-field span {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: #aaa;
}
.client-field input,
.client-field select,
.client-field textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0d0d0d;
  color: #fff;
  font: inherit;
  box-sizing: border-box;
}
.client-field textarea {
  padding: 12px;
  min-height: 72px;
  resize: vertical;
}
.client-form-note.ok { color: #7dffb2; font-size: 13px; }
.client-form-note.err { color: #ff8a8a; font-size: 13px; }

@media (max-width: 980px) {
  .client-portal-app.client-logged-in .client-workspace,
  body.client-portal-app.client-sidebar-collapsed.client-logged-in .client-workspace {
    margin-left: 0;
    width: 100%;
  }
  .client-portal-saas .client-sidebar.crm-sidebar {
    display: none;
  }
  .client-sidebar-backdrop,
  .client-mobile-menu {
    display: none !important;
  }
  .client-portal-app.client-logged-in .client-bottom-nav {
    display: flex;
  }
  .client-portal-app.client-logged-in .client-workspace-main {
    padding: 6px max(12px, env(safe-area-inset-left, 0px) + 8px)
      calc(84px + env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-right, 0px) + 8px);
  }
  .client-portal-app.client-logged-in .client-topbar {
    padding: max(8px, env(safe-area-inset-top, 0px) + 4px)
      max(12px, env(safe-area-inset-right, 0px) + 8px)
      8px
      max(12px, env(safe-area-inset-left, 0px) + 8px);
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .client-topbar-profile {
    display: flex;
  }
  .client-bottom-nav-item span {
    font-size: 9px;
  }
  .client-bottom-nav-item svg {
    width: 20px;
    height: 20px;
  }
  .client-topbar-title {
    font-size: 19px !important;
  }
  .client-card {
    padding: 14px 14px 16px;
    border-radius: 14px;
  }
  .client-grid {
    gap: 14px;
  }
  .client-grid-2,
  .client-grid-3 {
    grid-template-columns: 1fr;
  }
  .client-stat-row {
    grid-template-columns: 1fr;
  }
  .client-habit-cell {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .client-habit-label {
    min-width: 120px;
    font-size: 14px;
  }
  .client-habit-toolbar {
    flex-wrap: wrap;
  }
  .client-habit-toolbar .btn {
    flex: 1;
    min-width: 140px;
    justify-content: center;
  }
  .client-habit-toolbar-week {
    flex-direction: column;
    align-items: stretch;
  }
  .client-habit-toolbar-week .btn {
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }
  .client-habit-week-meta {
    min-width: 0;
    order: -1;
  }
  .client-habit-week-range {
    font-size: 13px;
    line-height: 1.35;
  }
  .client-habit-table {
    font-size: 11px;
  }
  .client-habit-table th,
  .client-habit-table td {
    padding: 5px 4px;
  }
  .client-habit-cell {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 12px;
  }
  .client-habit-label {
    min-width: 96px;
    max-width: 140px;
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
  }
  .client-habit-pct {
    min-width: 40px;
    font-size: 11px;
  }
  .client-habit-scroll {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 6px 4px;
    background: rgba(0, 0, 0, 0.2);
  }
  .client-habit-scroll-hint {
    display: block;
  }
  .client-habit-trend-chart {
    max-width: 100%;
  }
  .client-chart-card {
    overflow: hidden;
  }
  .client-cal-card {
    width: 100%;
    box-sizing: border-box;
  }
  .client-cal-day {
    font-size: 11px;
    border-radius: 6px;
  }
  .client-tab-intro {
    padding: 18px 16px 20px;
  }
  .client-tally-iframe {
    min-height: 360px;
  }
  .client-pdf-grid {
    grid-template-columns: 1fr;
  }
  .client-portal-app .crm-gate {
    min-height: 100dvh;
  }
  .client-portal-app .crm-auth-panel {
    padding: 24px 20px 28px;
  }
  .client-portal-app .crm-auth-form-wrap {
    max-width: none;
    padding: 12px 0 8px;
  }
  .client-portal-app .crm-field input {
    min-height: 48px;
    font-size: 16px;
  }
  .client-portal-app .crm-auth-submit {
    min-height: 48px;
    font-size: 16px;
  }
  .client-portal-app.client-logged-in .client-card .btn {
    min-height: 44px;
  }
  .client-portal-app.client-logged-in .client-card .btn-sm {
    min-height: 42px;
  }
  .client-pillar summary,
  .client-faq-item summary {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}
@media (min-width: 981px) {
  .client-topbar-actions {
    display: none;
  }
}
.client-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.client-grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.client-portal-app.client-logged-in #client-tab-home .client-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .client-portal-app.client-logged-in #client-tab-home .client-grid-2 {
    grid-template-columns: 1fr;
  }
}
.client-grid-3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.client-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.client-card-wide { grid-column: 1 / -1; }
.client-card h2, .client-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-d);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.client-card h2 { font-size: clamp(20px, 4.5vw, 26px); }
.client-card h3 { font-size: clamp(17px, 3.8vw, 20px); }
.client-card ul {
  margin: 0;
  padding-left: 18px;
  color: #ccc;
  line-height: 1.55;
  font-size: 15px;
}
.client-muted {
  color: #9a9a9a;
  font-size: 15px;
  line-height: 1.55;
}
.client-hero-copy h2 {
  font-family: var(--font-d);
  margin: 0 0 12px;
  font-size: clamp(22px, 5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.client-tab {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}
.client-tab.client-tab-anim {
  animation: client-tab-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes client-tab-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.client-tab-intro {
  padding: 22px 24px 24px;
  background:
    linear-gradient(145deg, rgba(255, 26, 26, 0.06), transparent 48%),
    #141414;
  border-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 0;
}
.client-tab-intro-title {
  margin: 0 0 10px;
  font-family: var(--font-d);
  font-size: clamp(22px, 4.5vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.client-tab-intro-lead {
  margin: 0 0 14px;
  max-width: 52em;
  font-size: 15px;
}
.client-tab-intro-tips {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-tab-intro-tips li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.45;
  color: #b0b0b0;
}
.client-tab-intro-tips li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--lime);
  font-weight: 700;
}
.client-tab-block {
  margin-top: 0;
}
.client-tab-block-title {
  margin: 0 0 8px;
  font-family: var(--font-d);
  font-size: clamp(17px, 3.6vw, 20px);
  line-height: 1.25;
}
.client-tab-block-lead {
  margin: 0 0 16px;
  font-size: 14px;
}
.client-tab-block-grid {
  margin-top: 0;
}
.client-tab-list {
  margin: 0;
  padding-left: 18px;
  color: #ccc;
  line-height: 1.55;
  font-size: 14px;
}
.client-tab-callout {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 26, 26, 0.1);
  border: 1px solid rgba(255, 26, 26, 0.25);
  color: #ffb4b4;
  font-size: 14px;
  line-height: 1.45;
}
.client-tab-footnote {
  margin: 16px 0 0;
  font-size: 13px;
}
.client-tab-subcard {
  margin-top: 18px;
}
.client-tab .client-card + .client-card,
.client-tab .client-grid + .client-card,
.client-tab .client-card-wide + .client-grid {
  margin-top: 0;
}
@media (prefers-reduced-motion: reduce) {
  .client-tab.client-tab-anim {
    animation: none;
  }
}
@media (max-width: 720px) {
  .client-portal-app.client-logged-in .client-tab-block-grid.client-grid-3 {
    grid-template-columns: 1fr;
  }
}
.client-deliverable {
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.client-deliverable:first-child { border-top: 0; padding-top: 0; }
.client-habit-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.client-habit-scroll-hint {
  display: none;
  margin: 0 0 10px;
  font-size: 12px;
  color: #777;
}
.client-habit-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.client-habit-table th, .client-habit-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px;
  text-align: center;
}
.client-habit-label { text-align: left; min-width: 160px; }
.client-habit-cell {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #0d0d0d;
  color: var(--lime);
  font-weight: 700;
}
.client-habit-cell.is-done {
  background: rgba(255, 26, 26, 0.2);
  border-color: var(--lime);
}
.client-habit-toolbar { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; }
.client-habit-toolbar-week {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.client-habit-week-meta {
  flex: 1;
  min-width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}
.client-habit-week-range {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.client-week-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 26, 26, 0.2);
  color: var(--lime, #ff1a1a);
}
.client-week-badge-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #bbb;
}
.client-habits-layout {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  min-width: 0;
  max-width: 100%;
}
.client-habits-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  max-width: 100%;
}
.client-habits-aside {
  position: sticky;
  top: 12px;
  min-width: 0;
  max-width: 100%;
}
.client-cal-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.client-cal-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}
.client-cal-month {
  margin: 0 0 8px;
  font-family: var(--font-d);
  font-size: 18px;
  text-transform: capitalize;
  color: #f5f5f5;
}
.client-portal-app.client-logged-in .client-cal-month {
  color: #fff;
}
.client-cal-badge {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 26, 26, 0.18);
  color: var(--lime, #ff1a1a);
}
.client-cal-badge-muted {
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
}
.client-cal-range {
  margin: 0 0 12px;
  font-size: 12px;
  color: #aaa;
  line-height: 1.4;
}
.client-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
  font-size: 10px;
  color: #666;
  text-align: center;
}
.client-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.client-cal-day {
  aspect-ratio: 1;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  color: #ddd;
  cursor: pointer;
  padding: 0;
}
.client-cal-day.is-empty {
  background: transparent;
  cursor: default;
}
.client-cal-day.is-in-week {
  background: rgba(255, 26, 26, 0.22);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 26, 26, 0.45);
}
.client-cal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--lime, #ff1a1a);
}
.client-cal-day:not(.is-empty):hover {
  background: rgba(255, 255, 255, 0.12);
}
.client-cal-hint {
  margin: 12px 0 8px;
  font-size: 11px;
  color: #777;
  line-height: 1.35;
}
.client-cal-today { width: 100%; }
@media (max-width: 980px) {
  .client-habits-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .client-habits-aside {
    position: static;
    order: -1;
  }
  .client-habit-month-block {
    order: 3;
  }
  .client-habit-week-block {
    order: 2;
  }
  .client-habit-trend-block {
    order: 4;
  }
}
.client-weight-chart { width: 100%; height: auto; }
.client-radar-wrap { display: flex; justify-content: center; }
.client-radar { width: 100%; max-width: 240px; height: auto; }
.client-radar-label { font-size: 9px; fill: #aaa; }
.client-habit-section-title {
  margin: 20px 0 10px;
  font-family: var(--font-d);
  font-size: 16px;
}
.client-habit-avoid { color: #ff8a8a; }
.client-steps { margin: 0; padding-left: 20px; color: #ccc; }
.client-steps li { margin-bottom: 8px; }
.client-home-quick {
  margin-bottom: 18px;
}
.client-start-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: #ccc;
  font-size: 14px;
  line-height: 1.55;
}
.client-start-list li {
  margin-bottom: 10px;
  padding-left: 0;
}
.client-start-list strong {
  color: var(--lime);
  font-weight: 700;
}
.client-workflow-card {
  margin-bottom: 18px;
}
.client-workflow-head h3 {
  margin-bottom: 8px;
}
.client-workflow-intro {
  margin: 0 0 20px;
  max-width: 52em;
}
.client-workflow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.client-workflow-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.client-workflow-step:first-child {
  border-top: none;
  padding-top: 4px;
}
.client-workflow-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 26, 26, 0.18);
  border: 1px solid rgba(255, 26, 26, 0.35);
  flex-shrink: 0;
}
.client-workflow-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.35;
}
.client-workflow-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #aaa;
  max-width: 56em;
}
@media (min-width: 900px) {
  .client-workflow-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .client-workflow-step {
    border-top: none;
    padding: 0 0 20px;
  }
  .client-workflow-step:nth-child(-n + 2) {
    padding-top: 0;
  }
}
.client-pillars, .client-faq { display: flex; flex-direction: column; gap: 8px; }
.client-pillar, .client-faq-item {
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
}
.client-pillar summary, .client-faq-item summary {
  cursor: pointer;
  font-weight: 600;
}
.client-pillar p, .client-faq-item p { margin: 10px 0 0; color: #aaa; font-size: 14px; }
.client-legal {
  margin-top: 24px;
  font-size: 12px;
  color: #666;
  line-height: 1.5;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.crm-app.crm-logged-in .crm-workspace-main:has(#crm-view-clients.is-active) {
  padding: 0;
  overflow: hidden;
}
#crm-view-clients.is-active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.crm-workspace-main:has(#crm-view-clients.is-active) {
  display: flex;
  flex-direction: column;
}
.coach-workspace {
  display: grid;
  grid-template-columns: minmax(260px, min(340px, 34vw)) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  width: 100%;
  background: var(--soft);
}
.coach-rail {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid #e4e4e4;
  background: #fff;
  padding: 0;
  overflow: hidden;
}
.coach-rail-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 10px;
  overflow: hidden;
}
.coach-rail-foot {
  flex-shrink: 0;
  max-height: min(38vh, 340px);
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 1px solid #eee;
  padding: 8px 14px 14px;
  background: #fafafa;
  -webkit-overflow-scrolling: touch;
}
.coach-rail-scroll {
  max-height: min(28vh, 260px);
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-top: 8px;
}
.coach-rail-head {
  flex-shrink: 0;
  margin-bottom: 12px;
}
.coach-rail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.coach-rail-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.coach-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: var(--crm-r);
  font: inherit;
  font-size: 14px;
  background: var(--soft);
}
.coach-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.coach-filter-chips button {
  border: 1px solid #e0e0e0;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  color: #555;
}
.coach-filter-chips button.is-active {
  border-color: #0a0a0a;
  background: #0a0a0a;
  color: #fff;
}
.coach-create-drawer {
  margin: 12px 0;
  padding: 14px;
  border: 1px dashed #ddd;
  border-radius: var(--crm-r);
  background: var(--soft);
}
.coach-rail-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0;
  padding-right: 4px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.coach-rail-empty {
  margin: 16px 0;
  font-size: 13px;
  color: #888;
  text-align: center;
}
.coach-rail-card {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 10px 10px 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--crm-r);
  background: var(--soft);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  flex-wrap: nowrap;
}
.coach-rail-card:hover {
  border-color: #ddd;
  background: #fff;
}
.coach-rail-card.is-selected {
  border-color: rgba(255, 26, 26, 0.45);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 26, 26, 0.12);
}
.coach-rail-card-hit {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
}
.coach-rail-delete {
  flex-shrink: 0;
  align-self: center;
  position: relative;
  z-index: 2;
  min-height: 0;
  height: 26px;
  padding: 0 8px;
  margin: 0;
  pointer-events: auto;
  border: none;
  border-radius: 8px;
  background: rgba(255, 26, 26, 0.12);
  color: #c01818;
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.coach-rail-delete:hover {
  background: rgba(255, 26, 26, 0.22);
  color: #9f1212;
}
.coach-rail-delete:active {
  transform: scale(0.96);
}
.coach-dossier-loading {
  padding: 2rem 1rem;
}
.coach-avatar-ring {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, #f5f5f7 0%, #eaeaef 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04);
}
.coach-avatar-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.coach-avatar-ring.is-fallback {
  background: linear-gradient(145deg, #e8e8ec 0%, #cfcfd6 100%);
}
.coach-avatar-initials {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #48484a;
}
.coach-rail-avatar.coach-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.coach-dossier-avatar.coach-avatar-ring {
  width: 56px;
  height: 56px;
  border-radius: 16px;
}
.coach-dossier-avatar.coach-avatar-ring .coach-avatar-initials {
  font-size: 16px;
}
.coach-spotlight-avatar.coach-avatar-ring {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 12px 32px rgba(0, 0, 0, 0.08);
}
.coach-spotlight-avatar.coach-avatar-ring .coach-avatar-initials {
  font-size: 28px;
}
.coach-rail-card.is-selected .coach-avatar-ring {
  box-shadow:
    0 0 0 2px rgba(255, 26, 26, 0.35),
    0 4px 14px rgba(255, 26, 26, 0.12);
}
.coach-rail-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.coach-rail-card-body strong {
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coach-rail-card-body span {
  font-size: 12px;
  color: #777;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coach-rail-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--lime);
  color: #fff;
}
.coach-rail-library {
  margin-top: 6px;
  font-size: 13px;
}
.coach-rail-library summary {
  cursor: pointer;
  font-weight: 600;
  color: #444;
  padding: 8px 0;
  list-style: none;
}
.coach-rail-library summary::-webkit-details-marker {
  display: none;
}
.coach-rail-foot .coach-library-card,
.coach-rail-foot .coach-q-admin-card {
  margin: 0 0 10px;
  padding: 10px 12px;
  font-size: 13px;
}
.coach-rail-foot .coach-library-card h3,
.coach-rail-foot .coach-q-admin-card h3 {
  font-size: 14px;
  margin: 0 0 8px;
}
.coach-rail-foot .coach-library-card .crm-muted,
.coach-rail-foot .coach-form,
.coach-rail-foot .coach-q-admin-form,
.coach-rail-foot .coach-q-add-field {
  font-size: 12px;
}
.coach-rail-foot .coach-form {
  grid-template-columns: 1fr;
  gap: 8px;
}
.coach-rail-foot .coach-span2 {
  grid-column: 1;
}
.coach-rail-foot .coach-doc-row {
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
}
.coach-rail-foot .coach-audience-field {
  padding: 8px;
}
.coach-stage-host {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--soft);
  position: relative;
  isolation: isolate;
}
.coach-stage {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px clamp(16px, 3vw, 28px) 32px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}
.coach-stage-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: clamp(16px, 4vw, 40px);
  box-sizing: border-box;
}
.coach-stage-host #coaching-empty-stage[hidden],
.coach-stage-host #coaching-detail-panel[hidden] {
  display: none !important;
}
.coach-workspace.has-detail #coaching-empty-stage {
  display: none !important;
}
.coach-workspace:not(.has-detail) #coaching-detail-panel {
  display: none !important;
}
.coach-empty-card {
  width: 100%;
  max-width: min(420px, 92%);
  text-align: center;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3vw, 32px);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}
.coach-empty-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
}
.coach-empty-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}
.coach-dossier-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 16px;
  margin-bottom: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f9f9fb 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.coach-spotlight {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-bottom: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, #fafafa 0%, #f2f2f7 48%, #fafafa 100%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.7) inset,
    0 8px 28px rgba(0, 0, 0, 0.06);
}
.coach-spotlight-copy {
  flex: 1;
  min-width: 200px;
}
.coach-spotlight-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #86868b;
}
.coach-spotlight-name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.coach-spotlight-meta {
  margin: 0;
  font-size: 15px;
  color: #515154;
  line-height: 1.45;
}
.coach-spotlight-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #86868b;
  line-height: 1.4;
}
.coach-card-soft {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.coach-dossier-back {
  border: 1px solid #ddd;
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: var(--crm-r);
  cursor: pointer;
  font-size: 16px;
  display: none;
}
.coach-dossier-identity {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  min-width: 200px;
}
.coach-dossier-name {
  margin: 0;
  font-size: 20px;
}
.coach-status-pill {
  display: inline-block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eee;
  color: #444;
}
.coach-status-active {
  background: rgba(255, 26, 26, 0.12);
  color: var(--lime);
}
.coach-status-prospect {
  background: #f0f0f0;
  color: #555;
}
.coach-dossier-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.coach-dossier-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 2px 12px;
  margin-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.coach-dossier-tab {
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  color: #515154;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.coach-dossier-tab:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.12);
}
.coach-dossier-tab.is-active {
  background: #1d1d1f;
  border-color: #1d1d1f;
  color: #f5f5f7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.coach-tab-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--lime);
  color: #fff;
}
.coach-dossier-tab.is-active .coach-tab-badge {
  background: #fff;
  color: var(--lime);
}
.coach-dossier-panel {
  animation: crm-view-in 0.26s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.coach-dossier-panel[hidden] {
  display: none !important;
}
.coach-panel-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  min-width: 0;
}
.coach-panel-grid .crm-card {
  min-width: 0;
}
.coach-panel-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
}
.coach-panel-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.coach-panel-head-row .coach-panel-title {
  margin: 0;
}
.coach-kpi-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: #555;
}
.coach-kpi-list strong {
  color: var(--ink);
  font-size: 18px;
  margin-right: 6px;
}
.coach-habit-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--crm-r);
  border: 1px solid #eee;
}

.client-q-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.client-q-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.client-q-card.is-due {
  border-color: rgba(255, 200, 80, 0.35);
}
.client-q-card.is-overdue {
  border-color: rgba(255, 26, 26, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 26, 26, 0.12);
}
.client-q-card.is-done {
  opacity: 0.92;
}
.client-q-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.client-q-head h3 {
  margin: 0;
  font-size: 17px;
}
.client-q-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
}
.client-q-card.is-due .client-q-badge {
  background: rgba(255, 200, 80, 0.15);
  color: #ffd27a;
}
.client-q-card.is-overdue .client-q-badge {
  background: rgba(255, 26, 26, 0.18);
  color: #ff9a9a;
}
.client-q-nudge {
  margin: 0 0 12px;
  font-size: 14px;
  color: #ffb4b4;
  line-height: 1.45;
}
.client-q-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.client-q-scale {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.client-q-scale > span {
  grid-column: 1 / -1;
}
.client-q-scale input[type="range"] {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  accent-color: var(--lime);
}
.client-q-scale output {
  grid-column: 2;
  grid-row: 2;
  font-weight: 700;
  color: var(--lime);
  min-width: 1.5rem;
  text-align: center;
  font-size: 15px;
}
body.client-portal-app.client-logged-in .client-q-card,
body.client-portal-app.client-logged-in .client-q-form {
  color: #f0f0f0;
}
body.client-portal-app.client-logged-in .client-q-head h3 {
  color: #fff;
}
body.client-portal-app.client-logged-in .client-q-form .client-field > span {
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
}
body.client-portal-app.client-logged-in .client-q-bool-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #141414;
  cursor: pointer;
  font-size: 15px;
  color: #f5f5f5;
}
body.client-portal-app.client-logged-in .client-q-bool-row span {
  color: #f5f5f5;
}
body.client-portal-app.client-logged-in .client-q-bool-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--lime);
}
body.client-portal-app.client-logged-in .client-q-form .client-field input,
body.client-portal-app.client-logged-in .client-q-form .client-field textarea {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
body.client-portal-app.client-logged-in .client-q-form .client-field input::placeholder,
body.client-portal-app.client-logged-in .client-q-form .client-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
  opacity: 1;
}
.client-q-reminder {
  border: 1px solid rgba(255, 26, 26, 0.28);
  background: rgba(255, 26, 26, 0.06);
  margin-bottom: 16px;
}
.client-q-reminder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.client-q-reminder-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.client-q-reminder-item:first-child {
  border-top: none;
  padding-top: 0;
}

.coach-q-sub-feed {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}
.coach-q-sub {
  padding: 14px 16px;
  border: 1px solid #eee;
  border-radius: var(--crm-r);
  background: #fafafa;
}
.coach-q-sub.is-new {
  border-color: rgba(255, 26, 26, 0.4);
  background: #fff;
}
.coach-q-sub-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 10px;
}
.coach-q-sub-meta {
  font-size: 12px;
  color: #888;
}
.coach-q-answers {
  margin: 0;
}
.coach-q-answer-row {
  margin-bottom: 10px;
}
.coach-q-answer-row dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 2px;
}
.coach-q-answer-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
}
.coach-q-admin-card {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #eee;
  border-radius: var(--crm-r);
  background: var(--soft);
}
.coach-questionnaires-page {
  min-width: 0;
}
.coach-questionnaires-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 22px;
  align-items: start;
}
.coach-questionnaires-main {
  min-width: 0;
}
.coach-questionnaires-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.coach-q-page-card {
  margin: 0;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ececec;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
}
.coach-q-page-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.coach-q-page-card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.coach-q-page-card-slug {
  margin: 4px 0 0;
  font-size: 12px;
  color: #888;
}
.coach-q-fields-block {
  margin: 16px 0;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}
.coach-q-fields-list-page {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.coach-q-field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  font-size: 13px;
}
.coach-q-field-row .crm-muted {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.coach-q-add-field-page {
  padding-top: 14px;
  border-top: 1px dashed #e8e8e8;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.coach-q-add-field-page .coach-span2 {
  grid-column: 1;
}
.coach-q-required-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.coach-q-required-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex-shrink: 0;
}
.coach-q-options-label {
  display: grid;
  gap: 6px;
}
.coach-q-options-hint {
  font-size: 12px;
  font-weight: 400;
  color: #777;
  line-height: 1.4;
}
.coach-q-edit-field.coach-form {
  grid-template-columns: 1fr;
}
.client-q-choice {
  border: none;
  margin: 0;
  padding: 0;
}
.client-q-choice legend {
  font-size: 14px;
  font-weight: 600;
  color: #e8e8e8;
  margin-bottom: 8px;
  padding: 0;
}
.client-q-choice-hint {
  margin: 0 0 10px;
  font-size: 13px;
  color: #aaa;
}
.client-q-choice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.client-q-chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 8px;
}
.client-q-chips-2 {
  grid-template-columns: 1fr 1fr;
}
.client-q-choice-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #141414;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: #f0f0f0;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.client-q-choice-row:has(input:checked) {
  border-color: rgba(255, 26, 26, 0.55);
  background: rgba(255, 26, 26, 0.12);
  box-shadow: 0 0 0 1px rgba(255, 26, 26, 0.2);
}
.client-q-choice-row input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.client-q-choice-row span {
  flex: 1;
  line-height: 1.25;
}
.client-q-note-field {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.client-q-note-field textarea {
  min-height: 72px;
  font-size: 16px;
}
.client-q-submit {
  margin-top: 14px;
  width: 100%;
  min-height: 48px;
  justify-content: center;
}
.coach-q-presets {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}
.coach-q-presets-label {
  font-size: 12px;
  font-weight: 700;
  color: #666;
}
.coach-q-presets-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.coach-q-fields-lead {
  margin: -4px 0 10px;
  font-size: 13px;
}
body.client-portal-app.client-logged-in .client-field select {
  width: 100%;
  background: #141414;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
}
.coach-q-add-field-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  grid-column: 1 / -1;
}
.coach-q-reminder-check {
  align-self: end;
}
.coach-questionnaires-aside {
  position: sticky;
  top: 12px;
}
.coach-q-create-card .coach-panel-title {
  margin-bottom: 8px;
}
.coach-questionnaires-empty {
  padding: 36px 24px;
  text-align: center;
  border: 1px dashed #ddd;
  border-radius: 14px;
  background: #fafafa;
}
.coach-rail-q-teaser {
  margin-top: 0;
}
.coach-library-file-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.coach-library-file-name {
  font-size: 13px;
  color: #555;
  word-break: break-all;
}
.coach-q-field-item {
  list-style: none;
}
.coach-q-field-details {
  flex: 1;
  min-width: 0;
}
.coach-q-field-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.coach-q-field-details summary::-webkit-details-marker {
  display: none;
}
.coach-q-field-details[open] summary {
  margin-bottom: 10px;
}
.coach-q-field-key {
  margin: 0 0 10px;
  font-size: 12px;
  color: #777;
  grid-column: 1 / -1;
}
.coach-q-field-key code {
  font-size: 11px;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}
.coach-q-edit-field {
  padding: 12px 0 4px;
  border-top: 1px solid #eee;
}
.coach-q-field-row .coach-q-field-details + .btn {
  flex-shrink: 0;
  align-self: flex-start;
}
.coach-q-admin-form,
.coach-q-add-field,
.coach-q-create {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin-bottom: 10px;
}
.coach-q-create.coach-form,
.coach-q-add-field-page.coach-form,
.coach-q-admin-form.coach-form {
  margin-bottom: 0;
}
.coach-q-fields-list {
  margin: 0 0 10px;
  padding-left: 16px;
  font-size: 13px;
}
.coach-q-fields-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
}
@media (max-width: 980px) {
  .coach-questionnaires-layout {
    grid-template-columns: 1fr;
  }
  .coach-questionnaires-aside {
    position: static;
  }
  .coach-q-admin-form,
  .coach-q-add-field,
  .coach-q-create {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 980px) {
  .coach-workspace {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .coach-rail {
    grid-column: 1;
    grid-row: 1;
    max-height: min(52vh, 480px);
    border-right: none;
    border-bottom: 1px solid #e4e4e4;
  }
  .coach-rail-foot {
    max-height: 22vh;
  }
  .coach-rail-scroll {
    max-height: 18vh;
  }
  .coach-workspace.has-detail .coach-rail {
    display: none;
  }
  .coach-workspace.has-detail {
    grid-template-rows: minmax(0, 1fr);
  }
  .coach-stage-host {
    grid-column: 1;
    grid-row: 2;
  }
  .coach-workspace.has-detail .coach-stage-host {
    grid-row: 1;
  }
  .coach-workspace:not(.has-detail) #coaching-empty-stage {
    display: none;
  }
  .coach-dossier-back {
    display: grid;
    place-items: center;
  }
  .coach-stage {
    padding: 14px 14px 28px;
  }
  .coach-dossier-tabs {
    padding-bottom: 8px;
  }
  .coach-dossier-hero {
    flex-direction: column;
    align-items: stretch;
  }
  .coach-dossier-hero-actions {
    margin-left: 0;
    width: 100%;
  }
  .coach-dossier-hero-actions .btn {
    flex: 1;
    justify-content: center;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .coach-workspace {
    grid-template-columns: minmax(248px, 280px) minmax(0, 1fr);
  }
}

.coach-client-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.coach-client-card {
  text-align: left;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: var(--crm-r);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.coach-client-card strong { font-size: 16px; color: var(--ink); }
.coach-client-card span { font-size: 13px; color: #666; }
.coach-client-status {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
}
.coach-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.coach-detail-meta { margin: 4px 0 0; color: #666; font-size: 14px; }
.coach-detail-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.coach-card-wide { grid-column: 1 / -1; }
.coach-form {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.coach-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #333;
}
.coach-form label > span {
  font-weight: 600;
  color: #333;
}
.coach-form input,
.coach-form select,
.coach-form textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.coach-form input:focus,
.coach-form select:focus,
.coach-form textarea:focus {
  border-color: var(--lime);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.12);
}
body.crm-app.crm-logged-in .coach-workspace label {
  color: #333;
}
body.crm-app.crm-logged-in .coach-workspace .coach-form label > span,
body.crm-app.crm-logged-in .coach-workspace .coach-slider > span {
  color: #333;
  font-weight: 600;
}
body.crm-app.crm-logged-in .coach-workspace .coach-form input,
body.crm-app.crm-logged-in .coach-workspace .coach-form select,
body.crm-app.crm-logged-in .coach-workspace .coach-form textarea {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid #ddd !important;
  -webkit-text-fill-color: var(--ink) !important;
}
body.crm-app.crm-logged-in .coach-workspace .crm-card {
  color: var(--ink);
}
body.crm-app.crm-logged-in .coach-workspace .crm-card .crm-muted {
  color: #666;
}
.coach-span2 { grid-column: 1 / -1; }
.coach-form-inline { align-items: end; }
@media (max-width: 720px) {
  .coach-form {
    grid-template-columns: 1fr;
  }
  .coach-span2 {
    grid-column: 1;
  }
}
.coach-portal-url code {
  display: block;
  font-size: 11px;
  word-break: break-all;
  background: var(--soft);
  padding: 10px;
  border-radius: 8px;
}
.coach-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.coach-prosp-hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
}
.client-prosp-self {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.client-prosp-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}
.client-prosp-slider input[type="range"] {
  grid-column: 1 / -1;
  width: 100%;
}
.client-prosp-card .btn {
  margin-top: 12px;
}
.coach-prosp-sliders {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.coach-slider {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  align-items: center;
  font-size: 13px;
  color: #333;
  min-width: 0;
  width: 100%;
}
.coach-slider > span {
  grid-column: 1 / -1;
  line-height: 1.35;
}
.coach-slider input[type="range"] {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  accent-color: var(--lime);
}
.coach-slider output {
  grid-column: 2;
  grid-row: 2;
  font-weight: 700;
  color: var(--ink);
  min-width: 1.25rem;
  text-align: center;
}
.coach-habit-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.coach-habit-table th,
.coach-habit-table td {
  border: 1px solid #ddd;
  padding: 8px 6px;
  text-align: center;
  color: #333;
}
.coach-habit-table th {
  background: #f5f5f5;
  font-weight: 700;
  color: #222;
  font-size: 11px;
}
.coach-habit-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: #222;
}
.coach-habit-done { background: rgba(255, 26, 26, 0.12); color: var(--lime); font-weight: 700; }
.coach-inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; align-items: center; }
body.crm-app.crm-logged-in .coach-workspace .coach-inline-form input {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid #ddd !important;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  min-width: 120px;
}
body.crm-app.crm-logged-in .coach-workspace .crm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}
body.crm-app.crm-logged-in .coach-workspace .crm-check span {
  color: #333;
}
body.crm-app.crm-logged-in .coach-workspace .crm-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
}
.coach-radar-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}
.coach-radar {
  width: 100%;
  max-width: 280px;
  height: auto;
}
.coach-radar-label {
  font-size: 10px;
  fill: #444;
  font-weight: 600;
}
.coach-weight-table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 13px;
}
.coach-weight-table th,
.coach-weight-table td {
  border: 1px solid #eee;
  padding: 8px 10px;
  text-align: left;
  color: #333;
}
.coach-weight-table th {
  background: #f7f7f7;
  font-weight: 700;
}
.coach-weight-label {
  font-size: 10px;
  fill: #333;
  font-weight: 700;
}
.coach-prosp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
  min-width: 0;
}
@media (max-width: 720px) {
  .coach-prosp-layout {
    grid-template-columns: 1fr;
  }
  .coach-prosp-sliders {
    padding-top: 4px;
  }
}
.coach-portal-hint {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.5;
  color: #444;
}
.coach-portal-meta {
  margin: 0 0 8px;
  font-size: 13px;
  color: #333;
}
.coach-portal-meta span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  margin-bottom: 4px;
}
.coach-docs-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.coach-docs-form-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fafafa;
}
.coach-docs-form-title {
  margin: 0 0 12px;
  font-size: 15px;
}
.coach-docs-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.coach-q-sub-feed .coach-q-sub {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #fff;
}
.coach-q-sub.is-new {
  border-color: rgba(255, 26, 26, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 26, 26, 0.1);
}
.coach-q-sub-head strong {
  color: #111;
  font-size: 15px;
}
.coach-q-sub-meta {
  color: #666 !important;
}
.coach-q-answer-row dt {
  color: #555 !important;
}
.coach-modal-dialog-wide {
  width: min(560px, 100%);
}
.coach-form-modal {
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}
.coach-form-single {
  grid-template-columns: 1fr;
}
.crm-modal-dialog .coach-form label > span {
  color: #333;
  font-weight: 600;
}
.crm-modal-dialog .coach-form input,
.crm-modal-dialog .coach-form select,
.crm-modal-dialog .coach-form textarea {
  background: #fff !important;
  color: var(--ink) !important;
  border: 1px solid #ddd !important;
}
.coach-password-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.coach-password-row input {
  flex: 1;
  min-width: 0;
}
.coach-credentials {
  margin: 16px 0;
  padding: 14px 16px;
  background: #f7f7f7;
  border-radius: 10px;
  border: 1px solid #eee;
}
.coach-credentials div {
  margin-bottom: 10px;
}
.coach-credentials dt {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 4px;
}
.coach-credentials dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111;
  word-break: break-all;
}
.coach-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
.coach-deliverable-list { margin: 0 0 16px; padding-left: 18px; font-size: 14px; }
.coach-library-card { margin-bottom: 16px; }
.crm-panel-head-library {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.crm-panel-head-library p {
  margin-bottom: 0;
  max-width: 52ch;
}
.coach-library-page {
  min-width: 0;
}
.coach-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  align-items: start;
}
.coach-library-main {
  min-width: 0;
}
.coach-library-toolbar {
  margin-bottom: 14px;
}
.coach-library-count {
  margin: 0;
  font-size: 14px;
  color: #666;
}
.coach-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 14px;
  margin-bottom: 0;
}
.coach-library-grid .coach-doc-row {
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}
.coach-library-grid .coach-doc-actions {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f0f0f0;
}
.coach-library-empty {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 36px 24px;
  text-align: center;
  border: 1px dashed #ddd;
  border-radius: 14px;
  background: #fafafa;
}
.coach-library-empty-title {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 16px;
}
.coach-library-aside {
  position: sticky;
  top: 12px;
}
.coach-library-add .coach-panel-title {
  margin-bottom: 8px;
}
.coach-library-add-lead {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
}
.coach-library-form {
  margin-top: 4px;
}
.coach-rail-library-teaser {
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
}
.coach-rail-teaser-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}
.coach-rail-teaser-meta {
  margin: 0 0 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.35;
}
.coach-rail-teaser-btn {
  width: 100%;
}
@media (max-width: 980px) {
  .coach-library-layout {
    grid-template-columns: 1fr;
  }
  .coach-library-aside {
    position: static;
  }
}
.coach-doc-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.coach-doc-list-compact { margin-bottom: 16px; }
.coach-doc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}
.coach-doc-main { display: flex; gap: 12px; flex: 1; min-width: 200px; }
.coach-doc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 26, 26, 0.1);
  font-size: 12px;
  font-weight: 700;
}
.coach-doc-meta { display: block; font-size: 12px; color: #777; margin-top: 2px; }
.coach-doc-body { margin: 6px 0 0; font-size: 13px; color: #444; }
.coach-doc-link { font-size: 13px; }
.coach-doc-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.coach-doc-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: rgba(255, 26, 26, 0.12);
}
.coach-doc-badge-muted { background: #eee; color: #555; }
.coach-audience-field {
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.coach-audience-field legend { font-size: 13px; font-weight: 600; padding: 0 4px; }
.coach-client-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
  margin-top: 8px;
  max-height: 160px;
  overflow: auto;
  padding: 8px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}
.coach-client-pick { font-size: 13px; display: flex; gap: 8px; align-items: center; }
.client-home-docs { margin-bottom: 0; }
.client-doc-grid { margin-top: 8px; }
.client-home-doc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.client-home-doc-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.client-home-doc-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 26, 26, 0.12);
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
}
.client-home-doc-body {
  min-width: 0;
  flex: 1;
}
.client-home-doc-body h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.client-home-doc-meta {
  margin: 0 0 6px !important;
  font-size: 12px !important;
}
.client-home-doc-excerpt {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #aaa;
}
.client-home-doc-row .btn {
  margin-top: 4px;
}
.client-home-card-lead {
  margin-bottom: 16px !important;
  line-height: 1.5;
}
#client-tab-home .client-home-habit-card .client-muted {
  max-width: none;
}
.client-doc-card .btn {
  align-self: flex-start;
  margin-top: 8px;
}
.client-doc-card > div {
  min-width: 0;
  flex: 1;
}
.client-training-card { margin-top: 16px; }
.client-training-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 2px;
}
.client-training-form .client-habit-scroll {
  margin: 0;
}
.client-training-form .btn,
.client-self-form .btn {
  align-self: flex-start;
}
.client-training-form .client-form-note {
  margin: 0;
}
.client-training-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.client-field-rpe {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
  width: 100%;
}
.client-field-rpe > span {
  grid-column: 1 / -1;
}
.client-field-rpe input[type="range"] {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}
.client-field-rpe output {
  grid-column: 2;
  grid-row: 2;
  font-weight: 700;
  color: var(--lime, #ff1a1a);
}
.client-training-table input { width: 100%; min-width: 56px; }
.client-training-recent {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.client-training-recent-title { margin: 0 0 10px; font-size: 14px; }
.client-portal-app.client-logged-in .client-card .btn-ghost {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f0f0f0 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: none;
}
.client-portal-app.client-logged-in .client-card .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}
.client-portal-app.client-logged-in .client-tab-block .client-pdf-grid {
  margin-bottom: 4px;
}
.client-training-history { margin: 0; padding-left: 18px; font-size: 14px; }
.client-training-history li { margin-bottom: 8px; }
.client-training-history .client-muted { display: block; font-size: 12px; margin-top: 2px; }
.coach-training-feed { display: flex; flex-direction: column; gap: 12px; max-height: 480px; overflow: auto; }
.coach-training-entry {
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  font-size: 14px;
}
.coach-training-entry.is-new { border-color: rgba(255, 26, 26, 0.45); box-shadow: 0 0 0 1px rgba(255, 26, 26, 0.12); }
.coach-training-entry-head { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin-bottom: 8px; }
.coach-training-sent { margin-left: auto; font-size: 12px; color: #888; }
.coach-training-table { margin: 8px 0; font-size: 12px; }
.coach-training-badge-wrap { margin: 0 0 10px; }
.coach-weight-chart { width: 100%; max-height: 180px; }
.coach-create-card { margin-bottom: 8px; }

body.crm-modal-open { overflow: hidden; }
.crm-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
}
.crm-modal[hidden] { display: none !important; }
.crm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.crm-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: var(--crm-r);
  padding: 24px 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}
.crm-modal-dialog h2 {
  margin: 0 0 8px;
  font-family: var(--font-d);
  font-size: 22px;
  color: var(--ink);
}
.crm-modal-lead {
  margin: 0 0 12px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}
.crm-modal-target {
  margin: 0 0 18px;
  font-weight: 600;
  color: var(--ink);
}
.crm-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.crm-btn-danger {
  background: #c01818 !important;
  color: #fff !important;
  border-color: #c01818 !important;
}
.crm-btn-danger:hover { filter: brightness(1.05); }

.crm-coach-dash {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.crm-coach-activity .crm-card-head {
  align-items: center;
}
.crm-notif-wrap {
  position: relative;
}
.crm-notif-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #333;
}
.crm-notif-btn svg {
  width: 22px;
  height: 22px;
}
.crm-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--lime);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.crm-notif-badge[hidden] {
  display: none !important;
}
.crm-notif-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: min(380px, calc(100vw - 24px));
  max-height: min(420px, 70vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}
.crm-notif-panel[hidden] {
  display: none !important;
}
.crm-notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #eee;
}
.crm-notif-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.crm-notif-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #444;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.crm-notif-close:hover {
  background: #f5f5f5;
  color: #111;
}
.crm-notif-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  padding: 8px 10px 10px;
  border-bottom: 1px solid #eee;
  background: #fafafa;
}
.crm-notif-bulk-dash {
  margin-right: auto;
  padding: 0;
  border: none;
  background: transparent;
}
.crm-card-head-notifs {
  flex-wrap: wrap;
  gap: 10px;
}
.crm-notif-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-right: 4px;
  cursor: pointer;
}
.crm-notif-select-all input {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}
.crm-notif-bulk-sep {
  width: 1px;
  height: 22px;
  background: #ddd;
  margin: 0 2px;
}
.crm-btn-danger-ghost {
  color: #b91c1c !important;
  border-color: rgba(185, 28, 28, 0.35) !important;
}
.crm-btn-danger-ghost:hover {
  background: rgba(185, 28, 28, 0.06) !important;
}
.crm-notif-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  overflow-y: auto;
  flex: 1;
}
.crm-notif-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: stretch;
  margin-bottom: 8px;
}
.crm-notif-check {
  display: grid;
  place-items: center;
  padding: 0 2px;
  cursor: pointer;
}
.crm-notif-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--lime);
}
.crm-notif-row-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
}
.crm-notif-mark-read,
.crm-notif-delete-one {
  border: 1px solid #e0e0e0;
  background: #fff;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  color: #444;
  line-height: 1.2;
}
.crm-notif-delete-one {
  font-size: 16px;
  padding: 2px 8px;
  color: #b91c1c;
}
.crm-notif-mark-read:hover {
  background: #f5f5f5;
}
.crm-notif-delete-one:hover {
  background: rgba(185, 28, 28, 0.06);
}
.crm-notif-list-dash {
  max-height: 320px;
}
.crm-notif-empty {
  padding: 16px;
  font-size: 14px;
  color: #666;
  text-align: center;
}
.crm-notif-item {
  width: 100%;
  min-width: 0;
  text-align: left;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
  background: #fafafa;
  cursor: pointer;
  font: inherit;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.crm-notif-item:hover {
  border-color: rgba(255, 26, 26, 0.35);
  background: #fff;
}
.crm-notif-item-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lime);
}
.crm-notif-item-title {
  font-size: 14px;
  color: #222;
}
.crm-notif-item-detail {
  font-size: 12px;
  color: #777;
}
.crm-row-unread {
  cursor: pointer;
  outline: none;
}
.crm-table tbody tr.crm-row-unread {
  background: rgba(255, 26, 26, 0.04);
  box-shadow: inset 3px 0 0 var(--lime);
}
.crm-order-card.crm-row-unread,
.crm-quiz-card.crm-row-unread {
  box-shadow: inset 0 0 0 1px rgba(255, 26, 26, 0.25);
}
.crm-flash-highlight {
  animation: crm-flash-pulse 2s ease-out;
}
@keyframes crm-flash-pulse {
  0% { background-color: rgba(255, 92, 0, 0.18); }
  100% { background-color: transparent; }
}
.coach-dossier-alerts {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 26, 26, 0.35);
  background: rgba(255, 26, 26, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.coach-dossier-alerts strong {
  color: #111;
  font-size: 14px;
}
.coach-dossier-alerts > span {
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: #444;
}
.coach-dossier-alerts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.coach-danger-card {
  margin-top: 16px;
  border-color: rgba(0, 0, 0, 0.08);
  background: #fafafa;
}
.coach-danger-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.coach-danger-note {
  margin-top: 10px;
  font-size: 12px;
  color: #777;
}
.crm-demo-eleve-btn {
  border: 1px solid rgba(255, 26, 26, 0.35) !important;
  color: var(--lime) !important;
  background: rgba(255, 26, 26, 0.08) !important;
}
.coach-client-card.is-demo,
.coach-rail-card.is-demo:not(.is-selected) {
  border-color: #d8d8d8;
  border-style: dashed;
  background: #fafafa;
}
.coach-rail-card.is-demo.is-selected {
  border-style: solid;
}
.crm-quiz-card.is-removing {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

@media (max-width: 980px) {
  .crm-gate .crm-auth {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }
  .crm-gate .crm-auth-visual {
    display: none;
  }
  .crm-gate .crm-auth-panel {
    min-height: 100dvh;
    justify-content: center;
    padding: max(20px, env(safe-area-inset-top, 0px)) 24px max(24px, env(safe-area-inset-bottom, 0px));
  }
  .crm-gate .crm-auth-form-wrap {
    justify-content: center;
    padding: 16px 0 8px;
    max-width: 400px;
  }
  .crm-gate .crm-auth-form-wrap h1 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .crm-gate .crm-auth-lead {
    font-size: 15px;
    margin-bottom: 22px;
  }
  .crm-auth {
    grid-template-columns: 1fr;
  }
  .crm-auth-panel {
    min-height: auto;
    padding: 28px 24px 24px;
  }
  .crm-header-inner { flex-direction: column; align-items: flex-start; }
  .crm-table { font-size: 13px; }
}

/* Pop-up promo · pages programmes */
body.shop-promo-open { overflow: hidden; }
.shop-promo-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.shop-promo-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.shop-promo-modal[hidden] { display: none !important; }
.shop-promo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.shop-promo-modal.is-open .shop-promo-backdrop {
  opacity: 1;
}
.shop-promo-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition:
    transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.32s ease;
}
.shop-promo-panel.is-visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.shop-promo-media {
  margin: -8px -8px 16px;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--soft);
}
.shop-promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-promo-price {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
}
.shop-promo-price-old {
  text-decoration: line-through;
  color: #999;
  font-weight: 500;
  margin-right: 8px;
}
.shop-promo-price-new {
  color: var(--lime);
}
.shop-promo-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: var(--soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.shop-promo-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime);
  font-weight: 700;
}
.shop-promo-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-d);
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.15;
}
.shop-promo-body {
  margin: 0 0 16px;
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}
.shop-promo-code-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.shop-promo-code-wrap code {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.shop-promo-hint {
  margin: 0 0 16px;
  font-size: 12px;
  color: #888;
  line-height: 1.4;
}
.shop-promo-cta {
  width: 100%;
}

/* —— Popup cookies bas-gauche (consentement par session) —— */
.crm-app .ps-cookie-root,
.client-portal-app .ps-cookie-root {
  display: none !important;
}
.ps-cookie-root {
  position: relative;
  z-index: 12000;
}
.ps-cookie-bar {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 12000;
  width: auto;
  max-width: 400px;
  max-height: min(560px, calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px 18px 16px;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.16);
  transform: translateX(calc(-100% - 24px));
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  box-sizing: border-box;
}
.ps-cookie-bar.is-visible {
  transform: translateX(0);
  opacity: 1;
}
.ps-cookie-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ps-cookie-bar-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ps-cookie-mascot {
  flex: none;
  width: 72px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.1));
  pointer-events: none;
  user-select: none;
}
.ps-cookie-bar-copy {
  min-width: 0;
  flex: 1;
}
.ps-cookie-kicker {
  margin: 0 0 4px;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #888;
  transition: color 0.35s ease;
}
.ps-cookie-bar.is-accent .ps-cookie-kicker {
  color: var(--lime);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 11px;
}
.ps-cookie-title {
  margin: 0;
  font-family: var(--font-d);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.25;
  color: #111;
}
.ps-cookie-desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: #555;
}
.ps-cookie-desc a {
  color: #111;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ps-cookie-bar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.ps-cookie-bar-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ps-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-b);
  font-size: clamp(11px, 3.2vw, 13px);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  box-shadow: none;
  transform: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ps-cookie-btn:hover {
  transform: none;
  filter: none;
}
.ps-cookie-btn-ghost {
  border: 1px solid #cfcfcf;
  color: #111;
  background: #fff;
}
.ps-cookie-btn-ghost:hover {
  background: #f4f4f4;
}
.ps-cookie-btn-accept {
  background: #111;
  color: #fff;
  border: 1px solid #111;
}
.ps-cookie-bar.is-accent .ps-cookie-btn-accept {
  background: var(--lime);
  border-color: var(--lime);
  color: #000;
}
.ps-cookie-btn-accept-main {
  font-family: var(--font-d);
  letter-spacing: 0.03em;
}
.ps-cookie-btn-accept:hover {
  filter: brightness(1.05);
}
.ps-cookie-modal .ps-cookie-btn-ghost {
  border: 1px solid #d8d8d8;
  color: #111;
  background: #fff;
}
.ps-cookie-save-all {
  background: var(--lime);
  color: #000;
  border: 1px solid var(--lime);
}
.ps-cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 12001;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.ps-cookie-modal[hidden] {
  display: none !important;
}
.ps-cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.ps-cookie-modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 640px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
}
.ps-cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
}
.ps-cookie-modal-title {
  margin: 0 32px 8px 0;
  font-family: var(--font-d);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1.15;
}
.ps-cookie-modal-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: #555;
}
.ps-cookie-options {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.ps-cookie-option {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #e8e8e8;
  background: #fafafa;
}
.ps-cookie-option.is-locked {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.ps-cookie-option.is-locked strong {
  display: block;
  font-size: 15px;
}
.ps-cookie-option.is-locked p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}
.ps-cookie-pill {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eee;
}
.ps-cookie-toggle {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.ps-cookie-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ps-cookie-toggle-ui {
  flex: none;
  width: 44px;
  height: 26px;
  margin-top: 2px;
  border-radius: 999px;
  background: #ccc;
  position: relative;
  transition: background 0.2s ease;
}
.ps-cookie-toggle-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.ps-cookie-toggle input:checked + .ps-cookie-toggle-ui {
  background: var(--lime);
}
.ps-cookie-toggle input:checked + .ps-cookie-toggle-ui::after {
  transform: translateX(18px);
}
.ps-cookie-toggle-text {
  display: grid;
  gap: 4px;
}
.ps-cookie-toggle-text strong {
  font-size: 15px;
  color: var(--ink);
}
.ps-cookie-toggle-text span {
  font-size: 13px;
  line-height: 1.45;
  color: #666;
}
.ps-cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-cookie-clear {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: #888;
  text-decoration: underline;
  cursor: pointer;
}
.ps-cookie-manage {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 11999;
  max-width: min(400px, calc(100% - 24px));
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.42);
  color: rgba(30, 30, 30, 0.55);
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity 0.25s ease,
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.ps-cookie-manage:hover,
.ps-cookie-manage:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.94);
  color: #333;
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  outline: none;
}
/* Tablette / mobile : popup toujours à gauche, largeur fluide */
@media (max-width: 768px) {
  .ps-cookie-bar {
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    max-width: 400px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    border-radius: 18px;
    padding: 16px;
  }
  .ps-cookie-title {
    font-size: clamp(16px, 4.5vw, 19px);
  }
  .ps-cookie-desc {
    font-size: 12px;
  }
}

@media (max-width: 400px) {
  .ps-cookie-bar-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .ps-cookie-mascot {
    width: 72px;
  }
  .ps-cookie-bar-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Paysage / petit viewport : scroll interne, ne pas masquer le contenu */
@media (max-height: 520px) and (orientation: landscape) {
  .ps-cookie-bar {
    max-height: calc(100dvh - 12px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    bottom: max(8px, env(safe-area-inset-bottom, 0px));
    padding: 12px 14px;
  }
  .ps-cookie-bar-inner {
    gap: 10px;
  }
  .ps-cookie-mascot {
    width: 52px;
  }
  .ps-cookie-bar-head {
    flex-direction: row;
    text-align: left;
  }
  .ps-cookie-btn {
    min-height: 38px;
    padding: 6px 10px;
  }
}

/* Évite le chevauchement quiz (bas droite) vs cookies (bas gauche) sur très petits écrans */
@media (max-width: 380px) and (max-height: 700px) {
  .ps-cookie-bar {
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ps-cookie-bar {
    transition: opacity 0.2s ease;
    transform: none;
  }
  .ps-cookie-bar:not(.is-visible) {
    opacity: 0;
    pointer-events: none;
  }
}
