/* ============================================================
   Team FitBrothers — Marketing site
   Design : dark, inspiration Apple. Noir profond, beaucoup d'air,
   typo soignée, uniquement l'essentiel.
   ============================================================ */

/* ---------- Police auto-hébergée (Anton) ---------- */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/anton.woff2') format('woff2'); }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Accessibilité : focus clavier visible et net (n'apparaît qu'au clavier) */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
::selection { background: rgba(255,255,255,.18); }

/* ---------- Variables ---------- */
:root {
  --bg: #000000;
  --surface: #0c0c0e;
  --surface-2: #16161a;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #7c7c82;
  --line: rgba(255,255,255,0.10);
  --line-2: rgba(255,255,255,0.22);
  --white: #ffffff;
  --accent: #3284ff;
  --btn-bg: #ffffff;
  --btn-fg: #000000;
  --nav-bg: rgba(0,0,0,0.6);
  --bg-grad: radial-gradient(135% 85% at 50% 0%, #16181e 0%, #0c0d11 30%, #070809 60%, #030304 100%);
  --radius: 20px;
  --maxw: 1080px;
  --pad: clamp(22px, 5vw, 40px);
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Anton", var(--font-body);
}

/* ---------- Thème clair ---------- */
html[data-theme="light"] {
  --bg: #faf9f5;
  --surface: #ffffff;
  --surface-2: #f1f0ea;
  --text: #15151a;
  --text-2: #55555c;
  --text-3: #8a8a90;
  --line: rgba(0,0,0,0.12);
  --line-2: rgba(0,0,0,0.22);
  --white: #0a0a0b;
  --btn-bg: #0a0a0b;
  --btn-fg: #ffffff;
  --nav-bg: rgba(255,255,255,0.72);
  --bg-grad: radial-gradient(135% 85% at 50% 0%, #ffffff 0%, #f6f5f0 45%, #eeede7 100%);
  --radius: 20px;
  --maxw: 1080px;
  --pad: clamp(22px, 5vw, 40px);
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Anton", var(--font-body);
}

/* ---------- Base ---------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-grad) no-repeat;
  background-color: var(--bg);
  background-attachment: fixed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Typo ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.92;
  color: var(--text);
}
h1.display { font-size: clamp(52px, 13vw, 140px); }
h2.display { font-size: clamp(34px, 7vw, 68px); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.lead { font-size: clamp(18px, 2.3vw, 23px); color: var(--text-2); line-height: 1.5; font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: 0.01em;
  padding: 16px 32px; border-radius: 980px;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s, border-color .2s, background .2s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); opacity: .92; }
.btn:active { transform: translateY(0); opacity: .8; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--white); opacity: 1; }
.btn--lg { font-size: 19px; padding: 18px 40px; }
.btn--block { width: 100%; }

/* CTA flottant — toujours visible (1 clic vers le coaching) */
.cta-float {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 200;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px; letter-spacing: .01em;
  padding: 13px 24px; border-radius: 980px;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 12px 34px rgba(0,0,0,0.55);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), opacity .2s;
}
.cta-float:hover { transform: translateX(-50%) translateY(-2px); }
.cta-float:active { transform: translateX(-50%); opacity: .85; }

/* ---------- Header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.nav__brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); text-transform: uppercase; font-size: 20px; letter-spacing: 0.03em; }
.nav__brand img { height: 26px; width: auto; border-radius: 0; }
html[data-theme="light"] .nav__brand img { filter: invert(1); }
.nav__cta { font-size: 15px; font-weight: 600; color: var(--text); opacity: .9; }
.nav__cta:hover { opacity: 1; }

/* Réseaux du coach (page offres) — sous l'entête */
.coach-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.coach-social__btn { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); text-decoration: none; padding: 9px 18px; border-radius: 980px; background: var(--surface-2); border: 1px solid var(--line-2); transition: transform .2s ease, background .2s ease; }
.coach-social__btn:hover { transform: translateY(-1px); background: var(--surface-3, var(--surface-2)); }
.coach-social__btn svg { flex: 0 0 auto; }

/* Menu hamburger (sous-pages) — masqué en desktop, visible en mobile */
.fb-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 34px; padding: 8px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fb-burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.fb-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.fb-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.fb-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.fb-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 90; flex-direction: column; padding: 6px clamp(20px,5vw,40px) 18px; background: var(--bg); border-bottom: 1px solid var(--line); }
.fb-menu.open { display: flex; }
.fb-menu a { padding: 15px 4px; font-size: 17px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.fb-menu__cta { margin-top: 14px; text-align: center; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .04em; font-size: 18px; color: var(--bg) !important; background: var(--text); border-radius: 980px; padding: 15px !important; border-bottom: none !important; }

/* ---------- Sections ---------- */
section { padding: clamp(50px, 8vw, 112px) 0; }
.section--tight { padding: clamp(38px, 6vw, 80px) 0; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding-top: clamp(44px, 9vw, 104px); padding-bottom: clamp(36px, 7vw, 76px); }
.hero__logo { width: 76px; height: 76px; border-radius: 17px; margin: 0 auto clamp(28px, 4vw, 44px); }
.hero h1 { margin-bottom: clamp(22px, 3vw, 30px); }
.hero .lead { max-width: 600px; margin: 0 auto clamp(36px, 5vw, 48px); }
.hero__note { margin-top: 20px; font-size: 13px; color: var(--text-3); letter-spacing: .01em; }

/* ---------- Présentation / valeurs ---------- */
.section-head { text-align: center; max-width: 740px; margin: 0 auto clamp(30px, 5vw, 52px); }
.section-head h2 { margin: 16px 0 20px; }

.coaches { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 56px); }
.coach { text-align: center; }
.coach__avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 20px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 38px; color: var(--text);
  overflow: hidden;
}
.coach__avatar img { width: 100%; height: 100%; object-fit: cover; }
.coach__name { font-size: 21px; font-weight: 600; color: var(--text); }
.coach__role { font-size: 14px; color: var(--text-3); margin-top: 3px; }
.coach__bio { font-size: 15px; color: var(--text-2); margin-top: 14px; max-width: 320px; margin-left: auto; margin-right: auto; line-height: 1.55; }
.coach__ig { margin-top: 16px; font-size: 14px; padding: 11px 24px; }

/* ---------- Valeurs (liste) ---------- */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 56px); max-width: 780px; margin: clamp(56px,8vw,88px) auto 0; }
.value { display: flex; align-items: flex-start; gap: 14px; }
.value__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--white); margin-top: 10px; flex: 0 0 auto; }
.value__txt strong { display: block; font-size: 17px; font-weight: 600; color: var(--text); }
.value__txt span { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- Preuve sociale (stats) ---------- */
.stats { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 6vw, 56px); text-align: center; max-width: 900px; margin: 0 auto; }
.stat__num { font-family: var(--font-display); font-size: clamp(52px, 9vw, 88px); line-height: .9; color: var(--text); }
.stat__label { font-size: 15px; color: var(--text-2); margin-top: 12px; letter-spacing: .01em; }
.social-cta { text-align: center; margin-top: clamp(48px, 7vw, 72px); }

/* ---------- Résultats (carrousel de transformations) ---------- */
.carousel-wrap { position: relative; max-width: 1120px; margin: clamp(40px,6vw,64px) auto 0; }
.carousel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 4px 4px 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.tslide { flex: 0 0 82%; scroll-snap-align: center; }
.tslide__media { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.tslide__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tslide__cap { text-align: center; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.carousel__nav { position: absolute; top: 42%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.10); border: 1px solid var(--line-2); color: var(--text); font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); z-index: 3; transition: background .2s; }
.carousel__nav:hover { background: rgba(255,255,255,0.20); }
.carousel__nav--prev { left: -8px; }
.carousel__nav--next { right: -8px; }

/* ---------- CTA finale ---------- */
.cta-final { background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: center; border-radius: clamp(24px, 4vw, 40px); padding: clamp(64px, 10vw, 120px) var(--pad); }
.cta-final h2 { margin-bottom: clamp(32px, 4vw, 44px); }
.cta-final .btn { background: var(--btn-bg); color: var(--btn-fg); }

/* ---------- Coach select / formules ---------- */
.choose { text-align: center; padding-top: clamp(64px, 11vw, 120px); }
.choose__grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 820px; margin: clamp(48px,7vw,72px) auto 0; }
.choose-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(30px, 4vw, 44px); text-align: center;
  transition: border-color .25s, transform .25s cubic-bezier(.2,.8,.2,1), background .25s;
}
.choose-card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.choose-card .coach__avatar { margin-bottom: 18px; }
.choose-card__name { font-family: var(--font-display); text-transform: uppercase; font-size: 28px; margin-bottom: 8px; color: var(--text); line-height: 1.05; }
.choose-card__role { font-size: 14px; color: var(--text-2); margin-bottom: 24px; line-height: 1.5; }
.choose-card .btn { width: 100%; }
.choose__back { display: inline-flex; align-items: center; gap: 8px; margin-top: clamp(48px,7vw,64px); font-size: 15px; font-weight: 600; color: var(--text-2); }
.choose__back:hover { color: var(--text); }

/* ---------- Legal pages (privacy / cgu / mentions) ---------- */
.legal { max-width: 760px; padding-top: clamp(56px, 9vw, 100px); padding-bottom: clamp(72px, 11vw, 130px); }
.legal h1.display { font-size: clamp(40px, 9vw, 80px); margin-bottom: 12px; }
.legal__date { color: var(--text-3); font-size: 14px; margin-bottom: clamp(40px, 6vw, 56px); }
.legal h2 { font-size: 22px; font-weight: 600; color: var(--text); margin: 42px 0 14px; }
.legal h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 26px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px 22px; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 72px) 0; }
.footer__inner { display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer__brand { font-family: var(--font-display); text-transform: uppercase; font-size: 18px; letter-spacing: .03em; color: var(--text); }
.footer__links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer__links a { font-size: 14px; color: var(--text-2); }
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: 13px; color: var(--text-3); }

/* ---------- Animations discrètes ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .choose-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .coaches { grid-template-columns: repeat(3, 1fr); }
  .choose__grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .tslide { flex-basis: 31.5%; }
  .carousel__nav--prev { left: -20px; }
  .carousel__nav--next { right: -20px; }
  .footer__inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Toggles segmentés (langue / thème) ---------- */
.fbtgl { position: relative; display: inline-flex; align-items: center; padding: 3px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; line-height: 1; vertical-align: middle; -webkit-tap-highlight-color: transparent; }
.fbtgl__opt { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 5px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--text-3); transition: color .25s ease; user-select: none; }
.fbtgl--icon .fbtgl__opt { font-size: 14px; }
.fbic { width: 15px; height: 15px; display: block; }
.fbtgl__knob { position: absolute; z-index: 1; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px); border-radius: 999px; background: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .28s cubic-bezier(.4,0,.2,1); }
#fb-lang .fbtgl__opt[data-v="fr"] { color: var(--bg); }
html[lang="en"] #fb-lang .fbtgl__knob { transform: translateX(100%); }
html[lang="en"] #fb-lang .fbtgl__opt[data-v="fr"] { color: var(--text-3); }
html[lang="en"] #fb-lang .fbtgl__opt[data-v="en"] { color: var(--bg); }
#fb-theme .fbtgl__opt[data-v="dark"] { color: var(--bg); }
html[data-theme="light"] #fb-theme .fbtgl__knob { transform: translateX(100%); }
html[data-theme="light"] #fb-theme .fbtgl__opt[data-v="dark"] { color: var(--text-3); }
html[data-theme="light"] #fb-theme .fbtgl__opt[data-v="light"] { color: var(--bg); }

/* ---------- Mobile : les 3 coachs sur une seule ligne (site moins long) ---------- */
@media (max-width: 760px) {
  /* page COACHING (3 coachs sur une ligne) — exclut la grille des formules (#offres) */
  .choose__grid:not(#offres) { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: clamp(28px,6vw,48px); }
  .choose-card:not(.offre) { padding: 14px 4px; border-radius: 14px; }
  .choose-card:not(.offre) .coach__avatar { width: 58px; height: 58px; margin-bottom: 10px; }
  .choose-card:not(.offre) .choose-card__name { font-size: 15px; margin-bottom: 3px; }
  .choose-card:not(.offre) .choose-card__role { font-size: 9px; margin-bottom: 0; line-height: 1.35; white-space: nowrap; }
  /* nav serrée sur mobile : on masque le CTA texte (le logo renvoie déjà à l'accueil,
     et chaque page a sa propre navigation en contenu) — évite le retour à la ligne */
  .nav__cta { display: none; }
  /* menu hamburger visible sur mobile (comme l'accueil) */
  .fb-burger { display: flex; }
  /* titres et textes moins gros sur mobile */
  h1.display { font-size: clamp(27px, 7.5vw, 46px) !important; margin-bottom: 16px !important; }
  .lead { font-size: 13px !important; line-height: 1.45 !important; }
  .section-head { margin-bottom: clamp(24px, 5vw, 40px); }
}

/* ---------- Très petits écrans (sécurité mobile) ---------- */
html, body { overflow-x: clip; }
@media (max-width: 420px) {
  h1.display { font-size: clamp(24px, 7.5vw, 38px) !important; }
}

/* ---------- Pages de contenu (SEO / evergreen) ---------- */
.fbart { max-width: 760px; margin: 0 auto; padding: clamp(30px,6vw,60px) clamp(20px,5vw,40px) clamp(56px,8vw,90px); }
.fbart h1 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1.02; font-size: clamp(30px,7vw,52px); margin: 12px 0 18px; color: var(--text); }
.fbart__lead { font-size: clamp(17px,2.4vw,20px); line-height: 1.6; color: var(--text); margin: 0 0 6px; }
.fbart h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(23px,5vw,34px); line-height: 1.06; margin: clamp(36px,5vw,52px) 0 16px; color: var(--text); }
.fbart h3 { font-size: 18px; font-weight: 700; margin: 24px 0 8px; color: var(--text); }
.fbart p { font-size: 16px; line-height: 1.72; color: var(--text-2); margin: 0 0 16px; }
.fbart strong { color: var(--text); font-weight: 700; }
.fbart ul { list-style: none; margin: 0 0 16px; padding: 0; }
.fbart ul li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.6; color: var(--text-2); margin-bottom: 12px; }
.fbart ul li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fbart a.inline { color: var(--accent); text-decoration: none; font-weight: 600; }
.fbart a.inline:hover { text-decoration: underline; }
.fbart details { border-top: 1px solid var(--line); padding: 15px 0; }
.fbart details summary { cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.fbart details summary::-webkit-details-marker { display: none; }
.fbart details summary::after { content: "+"; color: var(--accent); font-family: var(--font-display); font-size: 22px; line-height: 1; }
.fbart details[open] summary::after { content: "\2013"; }
.fbart details p { margin: 12px 0 2px; font-size: 15px; }
.fbart-cta { margin: clamp(44px,6vw,68px) 0 0; padding: clamp(28px,4vw,40px); border-radius: 22px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.fbart-cta h2 { margin: 0 0 10px; }
.fbart-cta p { margin: 0 auto 22px; max-width: 460px; }
.fbart-related { margin-top: clamp(40px,6vw,56px); }
.fbart-related h2 { font-size: clamp(18px,3vw,22px); margin-bottom: 4px; }
.fbart-related a { display: block; padding: 15px 2px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.fbart-related a:last-child { border-bottom: 1px solid var(--line); }
.fbart-related a:hover { color: var(--accent); }
