/* Get Better — site vitrine (13 nov. 2026)
   Identité de l'app : fond sombre, indigo/violet, logo « Get Better. » en Noto Sans Black. */

@font-face {
  font-family: 'Noto Sans Black';
  src: url('../fonts/NotoSans-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #09090B;
  --bg-alt: #111114;
  --surface: #18181B;
  --border: #27272A;
  --text: #FFFFFF;
  --muted: #A1A1AA;
  --indigo: #6366F1;
  --indigo-light: #818CF8;
  --violet: #A855F7;
  --grad: linear-gradient(100deg, var(--indigo-light) 0%, var(--violet) 100%);
  --radius: 22px;
  --gutter: clamp(16px, 5vw, 64px);
  --max: 1180px;
  --display: 'Noto Sans Black', system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

h1, h2, h3, .wordmark { font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1; }
h2 { font-size: clamp(36px, 6.4vw, 76px); line-height: 1; margin-bottom: 24px; }
h3 { font-size: 22px; line-height: 1.15; margin-bottom: 8px; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.6; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 700; color: var(--indigo-light); margin-bottom: 18px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(9, 9, 11, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.wordmark { font-size: 24px; text-decoration: none; }
.wordmark-big { font-size: clamp(40px, 7vw, 72px); line-height: 1; }

/* Liens de l'en-tête */
.nav-links { display: flex; gap: 28px; margin-left: auto; margin-right: 28px; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-weight: 800; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--indigo-light); color: var(--text); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--surface); }
.btn-store { flex-direction: column; gap: 0; padding: 14px 34px; min-width: 190px; }
.store-small { font-size: 12px; font-weight: 600; opacity: .7; }
.store-big { font-family: var(--display); font-size: 24px; line-height: 1.1; }

/* Sections */
.section { padding: clamp(90px, 13vw, 160px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.section-alt { max-width: none; background: var(--bg-alt); border-top: 1px solid rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.04); }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }

/* Ouverture */
.hero {
  min-height: min(100svh, 980px);
  display: grid; grid-template-columns: 1.4fr 0.6fr; align-items: center; gap: 40px;
  padding: 110px var(--gutter) 60px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax; right: -25vmax; top: -10vmax;
  background: radial-gradient(circle, rgba(99,102,241,.28) 0%, rgba(168,85,247,.12) 35%, transparent 65%);
  pointer-events: none;
}
.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 34px; }
.hero-phone { display: flex; justify-content: center; }

/* Téléphones (captures de l'app) — vraies captures d'iPhone (851 × 1849,
   coins droits) : le cadre a exactement ce format et l'écran est arrondi
   comme celui d’un iPhone (~13,5 % de la largeur). */
.phone {
  width: min(300px, 72vw);
  /* Le format est porté par l'écran (et non par le cadre, bord compris) :
     la capture s'affiche entière, sans rognage sur les côtés. */
  border-radius: 15.5% / 7.13%; padding: 9px;
  background: #000; border: 1px solid #2a2a30;
  box-shadow: 0 40px 90px -30px rgba(99,102,241,.45), inset 0 0 0 2px #151518;
  position: relative;
}
.phone-sm { width: min(250px, 42vw); }
.hero .phone { width: min(320px, 74vw, calc(82svh * 851 / 1849)); } /* toujours entier dans l'écran */
.phone-screen { display: block; width: 100%; height: auto; aspect-ratio: 851 / 1849; border-radius: 13.5% / 6.21%; object-fit: cover; object-position: center; }
.phone-placeholder {
  width: 100%; aspect-ratio: 851 / 1849; border-radius: 37px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 20px;
  background: repeating-linear-gradient(135deg, #141418 0 14px, #17171c 14px 28px);
  color: var(--muted); font-size: 14px;
}
.phone-placeholder strong { color: var(--text); font-family: var(--display); font-size: 20px; }
.phones-row { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); margin-top: 72px; }
.phones-row .phone:nth-child(2) { transform: translateY(48px); }
/* Histoire d'une séance : 3 téléphones côte à côte avec une légende. */
.phones-story { align-items: flex-start; gap: clamp(12px, 3vw, 40px); }
.story-step { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; max-width: 250px; }
.story-step:nth-child(2) { transform: translateY(40px); }
.phone-xs { width: min(230px, 28vw); }
.story-step figcaption { text-align: center; color: var(--muted); font-size: 15px; line-height: 1.4; }
.story-step figcaption span {
  display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--grad); color: var(--text); font-family: var(--display); font-size: 13px;
}
/* Pastille au-dessus du texte : les lignes de la légende restent bien centrées. */
.story-step figcaption span { display: flex; margin: 0 auto 10px; }
.story-step figcaption .nudge { font-style: normal; position: relative; left: 0.6em; } /* léger décalage vers la droite (demande de Lucas) */

/* Étapes */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.step p { color: var(--muted); margin: 0; line-height: 1.6; }
.step-num {
  display: inline-flex; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  background: var(--grad); font-family: var(--display); font-size: 20px; margin-bottom: 22px;
}

/* Cartes « différence » */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.card p { color: var(--muted); margin: 0; line-height: 1.6; }

/* Disciplines qui défilent */
.marquee {
  margin: 48px calc(-1 * var(--gutter)) 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee { overflow-x: auto; scrollbar-width: none; cursor: grab; touch-action: pan-x pan-y; }
.marquee::-webkit-scrollbar { display: none; }
.marquee.is-dragging { cursor: grabbing; user-select: none; }
.marquee-track { display: flex; gap: 12px; width: max-content; padding: 0 var(--gutter); }
.chip {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-weight: 700; font-size: 17px;
}

/* Mises en page à deux colonnes */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.split > :last-child { display: flex; flex-direction: column; align-items: center; }
.split-center > :last-child { align-items: flex-start; }

/* Bêta */
.beta { text-align: center; }
.beta .lead { margin-left: auto; margin-right: auto; }
.store-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin: 36px 0 22px; }
.beta .small { max-width: 52ch; margin: 0 auto; }

/* Pied de page */
.footer { padding: 80px var(--gutter) 40px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 56px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer-cols div { display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--muted); text-decoration: none; }
.footer-cols a:hover { color: var(--text); }
.footer-title { font-weight: 800; margin-bottom: 6px; }

/* FAQ : volets dépliants */
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.faq-item[open] { cursor: pointer; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 0 26px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 26px; font-weight: 400; color: var(--indigo-light); transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--muted); line-height: 1.65; margin: -6px 0 22px; }
.faq-item a { color: var(--indigo-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pages secondaires (histoire, partenaires) */
.page-hero { padding: 150px var(--gutter) 40px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }
.page-hero .lead { margin-top: 22px; }
.prose > * { max-width: 760px; }
.prose > .founders { max-width: 860px; }
.prose h3 { font-size: 26px; margin: 48px 0 12px; }
.prose p { color: var(--muted); line-height: 1.7; font-size: 18px; }
.founders { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; max-width: 860px; }
.founder { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.founder .role { color: var(--indigo-light); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.founder p { color: var(--muted); margin: 0; line-height: 1.6; }
.prose .founder h3 { margin: 0 0 12px; }
.todo-block { border: 1px dashed rgba(168,85,247,.6); background: rgba(168,85,247,.08); color: var(--text); border-radius: 14px; padding: 16px 18px; font-size: 15px; }

/* Téléphones cliquables + mode plein écran (lightbox) */
.phone[data-shot] { cursor: zoom-in; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease; }
.phone[data-shot]:hover { box-shadow: 0 50px 110px -30px rgba(129,140,248,.7), inset 0 0 0 2px #151518; }
.lb {
  position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(9, 9, 11, 0.72); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
}
.lb.is-open { display: flex; animation: lb-in .35s ease both; }
.lb.is-closing { animation: lb-out .38s ease both; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-out { from { opacity: 1; } to { opacity: 0; } }
.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.lb .lb-phone { width: min(400px, 82vw, calc(80svh * 851 / 1849)); cursor: default; box-shadow: 0 60px 160px -30px rgba(99,102,241,.75), inset 0 0 0 2px #151518; }
.lb-caption { color: var(--text); font-weight: 700; font-size: 16px; text-align: center; }
.lb-hint { margin: -8px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.lb-screen { position: relative; }
.lb-hotspots { position: absolute; inset: 0; }
.lb-hot {
  position: absolute; border: 0; padding: 0; background: transparent; cursor: pointer;
}
/* Surbrillance au survol : une pastille arrondie bien à l'intérieur de la zone
   (icône + libellé de l'onglet, ou bouton rond), jamais jusqu'aux bords. */
.lb-hot::after {
  content: ''; position: absolute; border-radius: 12px; background: transparent;
  transition: background .2s ease, transform .2s ease; transform: scale(.92);
}
.lb-tab::after { left: 3%; right: 3%; top: 8%; bottom: 36%; }
.lb-icon::after { inset: 4%; border-radius: 999px; }
.lb-hot:hover::after { background: rgba(255,255,255,.12); transform: scale(1); }
.lb-hot:focus-visible { outline: none; }
.lb-hot:focus-visible::after { background: rgba(129,140,248,.25); transform: scale(1); }
.lb-hot.is-active { cursor: default; }
.lb-hot.is-active:hover::after { background: transparent; }
.lb-toast {
  position: absolute; left: 50%; bottom: 13%; transform: translateX(-50%); white-space: nowrap;
  background: rgba(24,24,27,.92); border: 1px solid rgba(255,255,255,.12); color: var(--text);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14);
  background: rgba(24,24,27,.7); color: var(--text); font-size: 30px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lb-btn:hover { background: rgba(99,102,241,.55); }
.lb-btn:focus:not(:focus-visible) { outline: none; }
.lb-close { top: 22px; right: 22px; font-size: 32px; }
.lb-prev { left: max(16px, calc(50% - 360px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(16px, calc(50% - 360px)); top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
html.lb-lock, html.lb-lock body { overflow: hidden; }
@media (max-width: 520px) {
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; width: 46px; height: 46px; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
  .lb .lb-phone { width: min(82vw, calc(72svh * 851 / 1849)); }
}

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Pages simples (mentions légales) */
.page { max-width: 760px; margin: 0 auto; padding: 130px var(--gutter) 80px; }
.page h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 32px; }
.page h2 { font-size: 24px; margin: 36px 0 10px; }
.page p, .page li { color: var(--muted); }
.todo { background: rgba(168,85,247,.15); color: var(--text); border-radius: 6px; padding: 1px 6px; }

/* Téléphone / tablette */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .founders { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 120px; }
  .hero-phone { margin-top: 20px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split > :last-child, .split-center > :last-child { align-items: flex-start; }
  .split > .reveal:last-child:has(.phone) { align-items: center; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .story-step figcaption { font-size: 12px; }
  .story-step:nth-child(2) { transform: translateY(24px); }
  .nav { padding: 12px 16px; }
  .wordmark { font-size: 20px; }
  .btn-small { padding: 9px 14px; font-size: 14px; }
  .phones-row .phone:nth-child(2) { transform: translateY(28px); }
  .step, .card { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
