/* Teevy · site vitrine. Page claire, sections sombres aux couleurs de l'app (menthe, sarcelle, citron). */
:root {
  --bg: #fbfbfa;
  --bg-soft: #f2f2f0;
  --ink: #0b0b0c;
  --ink-2: #3a3a3c;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, .08);
  --dark: #000;
  --card-dark: #0e0e0e;
  --line-dark: rgba(255, 255, 255, .08);
  --mint: #b4fce0;
  --teal: #1bc4a1;
  --lime: #d2fd9c;
  --lav: #c8b6ff;
  --aqua: #8fe3f0;
  --iris: linear-gradient(100deg, #8f7cff 0%, #3fb8e6 45%, #1bc4a1 100%);
  --radius: 28px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

section { padding: 128px 24px; }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; }
.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--iris);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow-mint { background: none; color: var(--mint); }
.lead { max-width: 620px; margin: 22px auto 0; font-size: clamp(18px, 2vw, 21px); color: var(--muted); line-height: 1.45; }
.lead-dark { color: #8e8e93; }
.muted-dark { color: #5c5c61; }
.iris { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 26px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px -10px rgba(0,0,0,.45); }
.btn-dark:hover { background: #222; }
.btn-ghost { color: var(--ink); background: rgba(0,0,0,.05); }
.btn-ghost:hover { background: rgba(0,0,0,.08); }

/* Navigation flottante */
.nav-wrap { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 28px;
  width: fit-content; max-width: 100%; height: 60px; margin: 0 auto; padding: 0 10px 0 22px;
  border-radius: 999px; border: 1px solid var(--line);
  background: rgba(251, 251, 250, .92);
  backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 10px 30px -18px rgba(0,0,0,.25);
}
.nav-logo img { width: 78px; height: auto; }
.nav-links { display: flex; gap: 26px; margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: 15px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  height: 40px; padding: 0 18px; display: inline-flex; align-items: center;
  border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; text-decoration: none;
}

/* Héros */
.hero { position: relative; padding: 150px 24px 40px; text-align: center; }
.hero-glow {
  position: absolute; inset: -20% 0 auto; height: 900px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(200, 182, 255, .55), transparent 70%),
    radial-gradient(40% 50% at 70% 25%, rgba(180, 252, 224, .65), transparent 70%),
    radial-gradient(35% 45% at 50% 55%, rgba(143, 227, 240, .45), transparent 70%);
  filter: blur(10px);
}
.hero-icon { width: 104px; height: 104px; margin: 0 auto 26px; border-radius: 23px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); }
.hero h1 { font-size: clamp(44px, 7.6vw, 92px); line-height: 1; letter-spacing: -.045em; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

.stage { position: relative; max-width: 1040px; margin: 80px auto 0; padding-bottom: 96px; }

/* TV en CSS : écran fin, pied discret */
.tv { margin: 0; }
.tv-screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 14px; background: #000;
  border: 7px solid #111; outline: 1px solid #2a2a2a;
  box-shadow: 0 50px 90px -40px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6);
}
.tv-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-slide { opacity: 0; transition: opacity 1.2s var(--ease); }
.tv-slide.is-on { opacity: 1; }
.tv-stand { width: 34%; height: 10px; margin: 0 auto; border-radius: 0 0 8px 8px; background: linear-gradient(#1d1d1f, #3a3a3c); }
.tv-dark .tv-screen { border-color: #1a1a1a; outline-color: #333; box-shadow: 0 60px 120px -50px rgba(27,196,161,.35); }
.tv-dark .tv-stand { background: linear-gradient(#2a2a2a, #111); }

/* iPhone 17 Pro : dessiné en SVG par main.js (proportions fixes) ; l'ombre suit la forme du téléphone */
.iphone { position: relative; margin: 0; aspect-ratio: 439 / 902; }
.iphone-svg { display: block; width: 100%; height: auto; overflow: visible; }
/* l'ombre se pose sur la figure HTML : posée sur le <svg>, elle était coupée net sous le téléphone */
.iphone.svg-pret { filter: drop-shadow(0 28px 34px rgba(0, 0, 0, .28)) drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
/* sans JavaScript : la capture seule, arrondie */
.iphone-screen img { width: 100%; height: auto; border-radius: 13%/6%; }
.iphone.svg-pret .iphone-screen { display: none; }
.iphone-hero { position: absolute; width: 21%; right: 1%; bottom: 24px; }

/* Manifeste */
.statement { padding: 120px 24px 140px; }
.reveal-words {
  max-width: 940px; margin: 0 auto;
  font-size: clamp(28px, 4.2vw, 50px); line-height: 1.16; font-weight: 600; letter-spacing: -.03em;
  text-wrap: pretty;
}
.reveal-words .w { color: #c7c7cc; transition: color .35s ease; }
.reveal-words .w.on { color: var(--ink); }

/* Étapes */
.how { background: var(--bg-soft); }
.steps {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--max);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.step { position: relative; }
.step .iphone { width: 82%; margin: 0 auto 30px; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 600;
}
.step h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 16px; }

/* Accueil TV (section sombre) */
.home { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.home::before {
  content: ""; position: absolute; left: 50%; top: -260px; width: 1100px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(27, 196, 161, .22), transparent);
  pointer-events: none;
}
.home .section-head { position: relative; }
.styles { position: relative; max-width: 1000px; margin: 0 auto; }
.style-img { transition: opacity .35s ease; }
.style-img.fade { opacity: 0; }
.styles-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: 44px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #161616; border: 1px solid var(--line-dark); }
.seg button {
  appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500;
  height: 40px; padding: 0 18px; border-radius: 999px; color: #8e8e93; background: transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.seg button[aria-selected="true"] { background: #fff; color: #000; }
.seg button:not([aria-selected="true"]):hover { color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: #d1d1d6; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { width: 48px; height: 28px; border-radius: 999px; background: #3a3a3c; position: relative; transition: background-color .25s var(--ease); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.switch input:checked + .switch-track { background: #5c9a1b; }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--mint); outline-offset: 3px; }
.style-caption { text-align: center; color: #8e8e93; font-size: 15px; margin-top: 18px; min-height: 1.5em; }

.home-cards { max-width: var(--max); margin: 90px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dcard { background: var(--card-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 30px; }
.dcard h3 { font-size: 21px; margin-bottom: 8px; color: var(--mint); }
.dcard p { color: #8e8e93; font-size: 16px; }

/* Bento sécurité */
.bento { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.tile h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 16px; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tile-wide h3 { font-size: 30px; }
.tile .big-num { font-size: 64px; font-weight: 600; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ticks { list-style: none; margin: 0; padding: 6px 18px; border-radius: 20px; background: var(--bg-soft); }
.ticks li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 0; }
.ticks em { font-style: normal; font-weight: 600; color: var(--muted); }

/* Confidentialité */
.privacy { background: var(--bg-soft); }
.pcards { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.pcard svg { width: 34px; height: 34px; margin-bottom: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pcard h3 { font-size: 22px; margin-bottom: 8px; }
.pcard p { color: var(--muted); font-size: 16px; }

/* Compatibilité */
.compat { padding: 90px 0; text-align: center; overflow: hidden; }
.compat-title { font-size: 15px; font-weight: 500; color: var(--muted); margin-bottom: 30px; padding: 0 24px; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: defile 40s linear infinite; }
.marquee-track span { font-size: 26px; font-weight: 600; letter-spacing: -.03em; color: #b0b0b5; white-space: nowrap; }
@keyframes defile { to { transform: translateX(-50%); } }

/* Appel final */
.get { padding-top: 40px; padding-bottom: 40px; }
.get-card {
  position: relative; overflow: hidden; max-width: var(--max); margin: 0 auto;
  border-radius: 40px; background: #000; color: #fff; text-align: center; padding: 90px 24px 0;
}
.get-glow {
  position: absolute; inset: auto -10% -40% -10%; height: 80%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(210, 253, 156, .35), rgba(143, 227, 240, .18) 45%, transparent 75%);
  pointer-events: none;
}
.get-icon { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 20px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.get-card h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; position: relative; }
.get-card > p { color: #8e8e93; font-size: 19px; margin-top: 16px; position: relative; }
.get-steps { list-style: none; margin: 36px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; position: relative; }
.get-steps li { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 8px; border-radius: 999px; background: #161616; border: 1px solid var(--line-dark); font-size: 15px; }
.get-steps span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: #000; font-weight: 600; font-size: 14px; }
.get-phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; margin: 64px auto -120px; max-width: 760px; }
.get-phones .iphone { width: 30%; }
.get-phones .iphone:nth-child(1) { transform: rotate(-8deg) translate(18%, 40px); }
.get-phones .iphone:nth-child(2) { z-index: 2; }
.get-phones .iphone:nth-child(3) { transform: rotate(8deg) translate(-18%, 40px); }

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 26px 0; max-width: 700px; }

/* Pied de page */
.footer { max-width: var(--max); margin: 0 auto; padding: 40px 24px 60px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.footer-top img { width: 78px; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.fine { font-size: 12px; color: #8e8e93; max-width: 820px; margin-top: 8px; line-height: 1.55; }

/* Apparition au défilement */
.rise { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rise.in { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid #3fb8e6; outline-offset: 3px; border-radius: 6px; }

.how-dots { display: none; }

/* Tablette et mobile : les étapes défilent de côté pendant qu'on descend (bloc collant) */
@media (max-width: 980px) {
  .how.defile { height: calc(100svh + var(--course, 0px)); padding: 0; }
  .how.defile .how-sticky {
    position: sticky; top: 0; height: 100svh; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center; padding: 92px 0 16px;
  }
  .how.defile .section-head { margin-bottom: 26px; padding: 0 20px; }
  .how.defile .section-head h2 { font-size: clamp(26px, 6.8vw, 42px); }
  .how.defile .steps {
    display: flex; width: max-content; gap: 18px; padding: 0 11vw; margin: 0;
    will-change: transform;
  }
  .how.defile .step { width: 78vw; max-width: 420px; }
  .how.defile .step .iphone { width: min(50vw, 22svh, 230px); margin-bottom: 18px; }
  .how.defile .step h3 { font-size: 20px; }
  .how.defile .step p { font-size: 15px; }
  .how.defile .step-num { margin-bottom: 8px; }
  .how-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .how-dots span { width: 6px; height: 6px; border-radius: 99px; background: #c7c7cc; transition: width .3s var(--ease), background-color .3s; }
  .how-dots span.on { width: 20px; background: var(--ink); }
}

/* Tablette */
@media (max-width: 980px) {
  section { padding: 96px 20px; }
  .nav-links { display: none; }
  .nav { gap: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 22px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
  .home-cards, .pcards { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 80px 16px; }
  .section-head { margin-bottom: 44px; }
  .hero { padding: 120px 16px 24px; }
  .hero-icon { width: 84px; height: 84px; border-radius: 19px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .stage { margin-top: 56px; padding-bottom: 110px; }
  .tv-screen { border-width: 4px; border-radius: 9px; }
  .iphone-hero { width: 30%; right: 3%; bottom: 40px; }
  .statement { padding: 72px 16px 88px; }

  .seg button { padding: 0 12px; font-size: 14px; height: 36px; }
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; grid-template-columns: 1fr; }
  .tile, .pcard, .dcard { padding: 26px; }
  .marquee-track span { font-size: 21px; }
  .get-card { border-radius: 30px; padding-top: 64px; }
  .get-phones { margin-bottom: -70px; }
  .faq summary { font-size: 17px; padding: 22px 0; }
  .faq details p { padding-right: 0; }
  .nav { padding-left: 18px; height: 54px; }
  .nav-cta { height: 36px; padding: 0 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 16px 32px; }
  .tv-slide { transition: none; }
}
