/* Le site de présentation de Tetelestai. Les couleurs et les polices sont
   celles de l'app : un seul violet, des gris lavande. */

@font-face { font-family: 'Bricolage'; font-weight: 700; font-display: swap; src: url('fonts/BricolageGrotesque_700Bold.ttf'); }
@font-face { font-family: 'Bricolage'; font-weight: 800; font-display: swap; src: url('fonts/BricolageGrotesque_800ExtraBold.ttf'); }
@font-face { font-family: 'Public Sans'; font-weight: 400; font-display: swap; src: url('fonts/PublicSans_400Regular.ttf'); }
@font-face { font-family: 'Public Sans'; font-weight: 600; font-display: swap; src: url('fonts/PublicSans_600SemiBold.ttf'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 400; font-display: swap; src: url('fonts/Fraunces_400Regular_Italic.ttf'); }

:root {
  --violet: #7944B2;
  --violet-clair: #B286EB;
  --nuit: #0F0C17;
  --nuit-2: #17141F;
  --lavande: #E9E3F4;
  --lavande-2: #F6F2FB;
  --encre: #1D1828;
  --gris: #6A6178;
  --gris-nuit: #B9B0C8;
  --gutter: clamp(16px, 5vw, 64px);
  --title: 'Bricolage', system-ui, sans-serif;
  --text: 'Public Sans', system-ui, sans-serif;
  --verse: 'Fraunces', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--nuit);
  color: #fff;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--title); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(32px, 5vw, 56px); }
h3 { font-size: 22px; font-weight: 700; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--text); font-weight: 600; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--violet-clair); margin: 0 0 18px;
}
.violet { color: var(--violet-clair); }

/* ——— Barre du haut ——— */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: rgba(15, 12, 23, 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .3s;
}
.logo { font-family: var(--title); font-weight: 800; font-size: 22px; text-decoration: none; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; opacity: .75; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.demo-link {
  font-size: 14px; text-decoration: none; opacity: .75;
  padding: 7px 14px; border-radius: 99px; border: 1px solid currentColor;
  transition: opacity .2s;
}
.demo-link:hover { opacity: 1; }

/* ——— Boutons ——— */
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 99px;
  font-family: var(--text); font-weight: 600; font-size: 16px; text-decoration: none;
  border: 0; cursor: pointer; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s;
}
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--violet); color: #fff; box-shadow: 0 10px 30px -8px rgba(121, 68, 178, .7); }
.btn-solid:hover { box-shadow: 0 14px 40px -8px rgba(121, 68, 178, .9); }
.btn-ghost { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }

/* ——— Le téléphone ——— */
.phone {
  --w: 260px;
  position: relative; width: var(--w); aspect-ratio: 393 / 852;
  border-radius: calc(var(--w) * .16); padding: calc(var(--w) * .035);
  background: #0B0910;
  box-shadow: inset 0 0 0 1.5px #3A3346, 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  display: flex; flex-direction: column; overflow: hidden; flex: none;
}
.phone .bar {
  height: 6.5%; flex: none; background: var(--lavande);
  border-radius: calc(var(--w) * .13) calc(var(--w) * .13) 0 0; position: relative;
}
.phone .bar::after {
  content: ''; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 32%; height: 52%; border-radius: 99px; background: #0B0910;
}
.phone img {
  flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top;
  border-radius: 0 0 calc(var(--w) * .13) calc(var(--w) * .13);
}
.phone-dark .bar { background: var(--nuit-2); }

/* ——— Haut de page ——— */
.hero-1 {
  position: relative; overflow: hidden; min-height: 100svh; padding: 140px var(--gutter) 80px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 40px;
}
.hero-1 h1 { font-size: clamp(44px, 6.4vw, 92px); }
.hero-1 .question { display: block; color: var(--violet-clair); }
.hero-1 .word { display: inline-block; transition: opacity .45s, filter .45s, transform .45s cubic-bezier(.2,.8,.2,1); }
.hero-1 .word.out { opacity: 0; filter: blur(12px); transform: translateY(-.25em); }
.hero-1 .word.in { opacity: 0; filter: blur(12px); transform: translateY(.25em); transition: none; }
.hero-1 .answer { display: block; margin-top: .08em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--gris-nuit); max-width: 34em; margin: 26px 0 0; }

.aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(80px); opacity: .75; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 55vw; height: 55vw; left: 40%; top: -20%; background: #5B2A99; }
.aurora span:nth-child(2) { width: 40vw; height: 40vw; left: -10%; top: 40%; background: #3A1F6B; animation-duration: 22s; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 65%; top: 55%; background: #8A4FD0; opacity: .5; animation-duration: 26s; }
@keyframes drift { to { transform: translate(-8vw, 6vh) scale(1.15); } }
.hero-1-text, .fan { position: relative; z-index: 1; }

.fan { height: 620px; perspective: 1400px; }
.fan .phone { position: absolute; left: 50%; top: 50%; transition: transform .2s ease-out; }
.fan .center { --w: 270px; transform: translate(-50%, -50%) rotateY(var(--ry, -12deg)) rotateX(var(--rx, 6deg)); z-index: 2; }
.fan .left { --w: 220px; transform: translate(-112%, -44%) rotateY(18deg) rotateZ(-6deg); opacity: .85; }
.fan .right { --w: 220px; transform: translate(12%, -46%) rotateY(-28deg) rotateZ(6deg); opacity: .85; }
.chip {
  position: absolute; z-index: 3; padding: 10px 16px; border-radius: 99px; font-size: 15px; font-weight: 600;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  animation: float 6s ease-in-out infinite;
}
.chip.c1 { left: 2%; top: 12%; }
.chip.c2 { right: 0; top: 22%; animation-delay: -2s; filter: blur(1.5px); }
.chip.c3 { left: 8%; bottom: 14%; animation-delay: -4s; filter: blur(2.5px); opacity: .7; }
.chip.c4 { right: 6%; bottom: 8%; animation-delay: -1s; }
@keyframes float { 50% { transform: translateY(-14px); } }

/* ——— Les thèmes qui défilent ——— */
.marquee { overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); padding: 22px 0; background: var(--nuit); }
.track { display: flex; gap: 48px; width: max-content; animation: slide 40s linear infinite; }
.track span { font-family: var(--title); font-weight: 700; font-size: clamp(22px, 3vw, 34px); white-space: nowrap; color: rgba(255,255,255,.85); }
@keyframes slide { to { transform: translateX(calc(-50% - 24px)); } }

/* ——— Pourquoi ——— */
.why { padding: clamp(100px, 16vh, 180px) var(--gutter); max-width: 1100px; margin: 0 auto; }
.glow-text { font-family: var(--title); font-weight: 800; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
.glow-text .w { color: rgba(255,255,255,.16); transition: color .35s; }
.glow-text .w.on { color: #fff; }
.glow-text .w.on.v { color: var(--violet-clair); }
.verse { margin: 64px 0 0; padding-left: 22px; border-left: 3px solid var(--violet-clair); }
.verse p { font-family: var(--verse); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); margin: 0; color: #fff; }
.verse cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--violet-clair); letter-spacing: .05em; }

/* ——— Comment ——— */
.how { background: var(--lavande-2); color: var(--encre); padding: clamp(90px, 14vh, 150px) var(--gutter); border-radius: 48px 48px 0 0; }
.how .eyebrow { color: var(--violet); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; max-width: 1180px; margin: 64px auto 0; }
.step { background: #fff; border-radius: 32px; padding: 36px 30px 34px; box-shadow: 0 24px 60px -30px rgba(64, 30, 110, .35); position: relative; overflow: hidden; }
.step .phone { --w: 210px; margin: 0 auto 30px; box-shadow: inset 0 0 0 1.5px #3A3346, 0 30px 50px -25px rgba(64,30,110,.5); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.step:hover .phone { transform: translateY(-8px) rotate(-1.5deg); }
.step .num { position: absolute; top: 22px; left: 26px; font-family: var(--title); font-weight: 800; font-size: 15px; color: #fff; background: var(--violet); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; }
.step h3 { font-size: 28px; }
.step p { color: var(--gris); margin: 10px 0 0; font-size: 16px; }

/* ——— Teaser ——— */
.teaser { background: var(--lavande-2); color: var(--encre); display: flex; align-items: center; justify-content: center; gap: clamp(32px, 7vw, 110px); padding: 20px var(--gutter) clamp(90px, 14vh, 150px); flex-wrap: wrap; }
.teaser .eyebrow { color: var(--violet); }
.teaser p:last-child { color: var(--gris); }
.phone.video { --w: 280px; aspect-ratio: 9 / 16; padding: 8px; }
.phone.video video { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; background: #000; }
.play {
  position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.2); color: #fff; font-size: 26px; padding-left: 6px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .2s, opacity .3s;
}
.play:hover { transform: scale(1.06); }
.playing .play { opacity: 0; pointer-events: none; }

/* ——— Confiance ——— */
.trust { padding: clamp(100px, 16vh, 170px) var(--gutter); max-width: 1180px; margin: 0 auto; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }
.tile { background: var(--nuit-2); border: 1px solid rgba(255,255,255,.07); border-radius: 28px; padding: 30px; transition: border-color .3s, transform .3s; }
.tile:hover { border-color: rgba(178,134,235,.4); transform: translateY(-3px); }
.tile.big { grid-row: span 2; background: linear-gradient(160deg, #3A1F6B, var(--nuit-2) 70%); display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.tile.big h3 { font-size: 34px; }
.tile.wide { grid-column: span 2; }
.tile p { color: var(--gris-nuit); margin: 10px 0 0; font-size: 16px; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(178,134,235,.16); color: var(--violet-clair); font-size: 20px; margin-bottom: 22px; }
.sub-title { margin-top: clamp(90px, 13vh, 140px); font-size: clamp(28px, 4vw, 44px); }
.privacy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.pv { border-top: 2px solid var(--violet-clair); padding-top: 18px; }
.pv strong { display: block; font-family: var(--title); font-size: 20px; line-height: 1.2; }
.pv span { display: block; color: var(--gris-nuit); margin-top: 8px; font-size: 15px; }

/* ——— Questions ——— */
.faq { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 14vh, 150px); }
.faq h2 { margin-bottom: 44px; font-size: clamp(30px, 4vw, 46px); }
.faq details { border-bottom: 1px solid rgba(255,255,255,.1); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-family: var(--title); font-weight: 700; font-size: 21px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; color: var(--violet-clair); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--gris-nuit); }

/* ——— Prévenez-moi ——— */
.notify { position: relative; overflow: hidden; text-align: center; padding: clamp(110px, 18vh, 190px) var(--gutter); margin: 0 var(--gutter) 40px; border-radius: 48px; background: #1B1428; }
.notify h2, .notify p, .notify form { position: relative; z-index: 1; }
.notify > p { color: var(--gris-nuit); margin: 16px 0 0; }
.aurora.soft { opacity: .6; }
.notify-form { display: flex; gap: 10px; max-width: 520px; margin: 34px auto 0; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); }
.notify-form input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #fff; font: inherit; padding: 0 18px; }
.notify-form input::placeholder { color: rgba(255,255,255,.45); }
.notify .note { font-size: 13px; opacity: .6; }
.notify .note.done { font-size: 17px; opacity: 1; }
.notify-form .trap { position: absolute; left: -9999px; }

/* ——— Pied ——— */
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; padding: 40px var(--gutter) 110px; color: var(--gris-nuit); font-size: 15px; }
.foot .logo { color: #fff; }
.foot p { margin: 6px 0 0; }
.foot em { font-family: var(--verse); }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

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

/* ——— Téléphone ——— */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; }
  .hero-1 { grid-template-columns: minmax(0, 1fr); padding-top: 110px; gap: 10px; }
  .fan { height: 480px; }
  .fan .center { --w: 210px; }
  .fan .left, .fan .right { --w: 160px; }
  .fan .left { transform: translate(-105%, -44%) rotateY(18deg) rotateZ(-6deg); }
  .fan .right { transform: translate(5%, -46%) rotateY(-28deg) rotateZ(6deg); }
  .chip { font-size: 13px; padding: 8px 12px; }
  .steps, .bento, .privacy { grid-template-columns: minmax(0, 1fr); }
  .tile.wide { grid-column: auto; }
  .tile.big { min-height: 240px; }
  .notify { margin-inline: 12px; border-radius: 32px; }
  .notify-form { flex-direction: column; border-radius: 24px; }
  .notify-form input { min-height: 48px; text-align: center; }
  .how { border-radius: 32px 32px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .glow-text .w { color: #fff; }
}
