/* =====================================================================
   BEYBCIA · un écran = une idée. On swipe, comme sur TikTok.
   ===================================================================== */

@font-face {
  font-family: "Bricolage";
  src: url("assets/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --sky: #56C4FB;        /* le bleu ciel BEYBCIA */
  --sky-light: #8FD9FF;
  --sky-soft: #BFE8FF;
  --sky-mist: #EAF7FF;
  --sky-deep: #1497E6;
  --ink: #05213A;
  --ink-2: #0E3A5E;
  --coral: #FF5A66;
  --white: #fff;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.56, .64, 1);
  --chrome-h: calc(env(safe-area-inset-top, 0px) + 74px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  font-family: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  color: var(--ink);
  background: var(--sky);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, svg, video { display: block; }
svg { fill: currentColor; }

:focus-visible { outline: 3px solid var(--sky-deep); outline-offset: 3px; border-radius: 8px; }

/* ---------------------------------------------------------------------
   Le cadre : plein écran sur téléphone, un téléphone posé sur ordinateur
   --------------------------------------------------------------------- */

.stage { position: fixed; inset: 0; }

.phone {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.feed {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.desk-hint { display: none; }

@media (min-width: 700px) and (min-height: 560px) {
  body {
    background:
      radial-gradient(60% 50% at 20% 15%, rgba(255,255,255,.65), transparent 70%),
      radial-gradient(50% 45% at 85% 80%, rgba(255,255,255,.45), transparent 70%),
      linear-gradient(180deg, #CFEFFF 0%, var(--sky-light) 50%, var(--sky) 100%);
  }
  .stage { display: grid; place-items: center; }
  .phone {
    --chrome-h: 74px;
    width: min(410px, calc((100dvh - 100px) * 0.48));
    height: min(870px, calc(100dvh - 100px));
    margin-bottom: 30px;
    border-radius: 46px;
    border: 9px solid var(--ink);
    box-shadow:
      0 40px 80px -20px rgba(5, 33, 58, .45),
      0 0 0 1px rgba(255,255,255,.25);
  }
  .desk-hint {
    display: block;
    position: fixed;
    bottom: 22px;
    left: 0; right: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(5, 33, 58, .6);
  }
  kbd {
    font: inherit;
    display: inline-grid;
    place-items: center;
    min-width: 26px; height: 26px;
    border-radius: 7px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 0 rgba(5,33,58,.2);
    margin-right: 4px;
  }
}

/* ---------------------------------------------------------------------
   Le bandeau du haut, façon story : progression + compte
   --------------------------------------------------------------------- */

.chrome {
  --c: var(--ink);
  position: absolute;
  z-index: 20;
  top: 0; left: 0; right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 0;
  color: var(--c);
  pointer-events: none;
  transition: color .35s ease;
}
body[data-theme="ink"] .chrome { --c: #fff; }

.progress {
  display: flex;
  gap: 4px;
  height: 3px;
}
.progress i {
  flex: 1;
  border-radius: 3px;
  background: currentColor;
  opacity: .18;
  position: relative;
  overflow: hidden;
  transition: opacity .3s ease;
}
.progress i.is-seen { opacity: .85; }
.progress i.is-now { opacity: .18; }
.progress i.is-now::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  transform-origin: left;
  animation: fill .5s var(--ease-out) forwards;
}
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.chrome__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.account {
  display: flex;
  align-items: center;
  gap: 9px;
  pointer-events: auto;
}
.account__mark { flex: none; width: 36px; height: 36px; filter: drop-shadow(0 2px 6px rgba(5,33,58,.18)); }
/* Nom et métier sur deux lignes, comme un compte : ça laisse la place à la langue */
.account__text { display: flex; flex-direction: column; line-height: 1.1; }
.account__name { font-weight: 800; font-size: 16px; letter-spacing: .01em; }
.account__tag { font-size: 12.5px; font-weight: 600; opacity: .6; white-space: nowrap; }

.chrome__right { display: flex; align-items: center; gap: 8px; }

/* La langue : une bulle qui ouvre une barre de réactions */
.lang { position: relative; pointer-events: auto; }
.lang__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px 0 4px;
  border-radius: 18px 18px 18px 5px;
  background: rgba(255,255,255,.7);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 14px -8px rgba(5,33,58,.35);
  transition: background .35s ease, color .35s ease, transform .25s var(--ease-pop);
}
.lang__btn:active { transform: scale(.92); }
body[data-theme="ink"] .lang__btn { background: rgba(255,255,255,.14); color: #fff; }
.lang.is-open .lang__btn { background: #fff; color: var(--ink); }

.flag {
  flex: none;
  display: block;
  width: 28px; height: 28px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}
.flag svg { width: 100%; height: 100%; }
/* Un fin contour, sinon le blanc du drapeau polonais disparaît sur fond blanc */
.flag::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(5,33,58,.22); }

.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  translate: -50% 0;
  display: flex;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 20px 44px -14px rgba(5,33,58,.5);
  opacity: 0;
  transform: translateY(-8px) scale(.6);
  transform-origin: 50% 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .2s ease;
}
.lang.is-open .lang__menu {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity .2s ease, transform .45s var(--ease-pop);
}
.lang__menu button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 2px 5px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  transform: scale(0);
  transition: transform .15s ease;
}
.lang.is-open .lang__menu button {
  transform: scale(1);
  transition: transform .45s var(--ease-pop) calc(60ms + var(--i) * 60ms);
}
.lang__menu .flag {
  width: 44px; height: 44px;
  transition: transform .25s var(--ease-pop), box-shadow .2s ease;
}
.lang__menu button:hover .flag,
.lang__menu button:focus-visible .flag { transform: translateY(-5px) scale(1.18); }
.lang__menu button:active .flag { transform: scale(.9); }
.lang__menu button[aria-current="true"] .flag { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--sky); }

@media (max-width: 350px) {
  .lang__code { display: none; }
  .lang__btn { padding-right: 4px; }
}

.chrome__cta {
  white-space: nowrap;
  pointer-events: auto;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  transition: background .35s ease, color .35s ease, opacity .3s ease, transform .3s var(--ease-pop);
}
body[data-theme="ink"] .chrome__cta { background: var(--sky); color: var(--ink); }
body[data-theme="sky"] .chrome__cta { background: #fff; color: var(--ink); }
body.at-end .chrome__cta { opacity: 0; transform: scale(.8); pointer-events: none; }
.chrome__cta:active { transform: scale(.94); }

/* ---------------------------------------------------------------------
   Les écrans
   --------------------------------------------------------------------- */

.panel {
  position: relative;
  height: 100%;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  container-type: size;
  display: grid;
  /* en % : les unités cq* ne valent rien sur le conteneur lui-même */
  padding: var(--chrome-h) 7% calc(env(safe-area-inset-bottom, 0px) + 28px);
}

.panel__body {
  position: relative;
  z-index: 2;
  align-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: min(6cqi, 3.2cqh);
}

.panel--sky  { background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky) 60%, #3DB6F7 100%); }
.panel--mist { background: radial-gradient(90% 60% at 50% 0%, #fff 0%, var(--sky-mist) 70%); }
.panel--white { background: #fff; }
.panel--ink  {
  color: #fff;
  background: radial-gradient(120% 70% at 50% 0%, var(--ink-2) 0%, var(--ink) 65%);
}
.panel--hero { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 74px); }
.panel--end { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); }
.panel--hero { background: linear-gradient(180deg, #D6F1FF 0%, var(--sky-light) 42%, var(--sky) 100%); }

/* Entrée générique : chaque [data-r] arrive à son tour */
[data-r] {
  opacity: 0;
  transform: translateY(28px) scale(.97);
}
.panel.is-active [data-r] {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease-out), transform .7s var(--ease-pop);
  transition-delay: calc(var(--d, 0) * 1ms);
}

/* Le surlignage qui balaie le mot */
.hl {
  background-image: linear-gradient(var(--mark, var(--sky-soft)), var(--mark, var(--sky-soft)));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 0% 38%;
  padding: 0 .06em;
  margin: 0 -.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.panel.is-active .hl {
  background-size: 100% 38%;
  transition: background-size .6s var(--ease-out) var(--hl-d, .55s);
}
.panel--sky .hl { --mark: #fff; background-size: 0% 84%; background-position: 0 88%; border-radius: .14em; }
.panel--sky.is-active .hl { background-size: 100% 84%; }
.panel--ink .hl {
  background: none;
  color: var(--sky);
  text-shadow: 0 0 24px rgba(86,196,251,.55);
}

/* Titres */
.title {
  font-size: min(13.4cqi, 7.4cqh);
  line-height: .95;
  font-weight: 800;
  font-stretch: 86%;
  letter-spacing: -.025em;
}
.title--s { font-size: min(11.6cqi, 6.4cqh); }
.title__line { display: block; }

.step {
  align-self: flex-start;
  font-size: 4cqi;
  font-weight: 600;
  padding: .45em .9em;
  border-radius: 999px;
  background: rgba(5,33,58,.07);
}
.step b { font-weight: 800; color: var(--sky-deep); }
.panel--sky .step { background: rgba(255,255,255,.55); }
.panel--sky .step b { color: var(--ink); }

/* ---------------------------------------------------------------------
   1 · Accueil
   --------------------------------------------------------------------- */

.hero { align-items: center; text-align: center; gap: min(7cqi, 3.4cqh); }

.clouds { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.clouds i {
  position: absolute;
  width: 130cqi;
  height: 46cqi;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,255,255,.95), rgba(255,255,255,.55) 45%, rgba(255,255,255,0));
  animation: drift 26s linear infinite;
}
.clouds i:nth-child(1) { top: 6%;  left: -40cqi; animation-duration: 30s; }
.clouds i:nth-child(2) { top: 34%; left: 20cqi;  animation-duration: 38s; animation-delay: -12s; opacity: .7; }
.clouds i:nth-child(3) { top: 62%; left: -60cqi; animation-duration: 34s; animation-delay: -20s; opacity: .55; }
.clouds i:nth-child(4) { top: 84%; left: 10cqi;  animation-duration: 42s; animation-delay: -6s;  opacity: .8; }
@keyframes drift {
  from { transform: translateX(-30cqi); }
  to   { transform: translateX(60cqi); }
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--sky) url("assets/video/ciel-poster.webp") center / cover;
}
/* Avec la vidéo, les nuages dessinés ne servent plus (ils reviennent si elle manque) */
.panel:has(> .hero__video) .clouds { display: none; }
/* Un voile très léger en bas : le titre reste net sur les nuages */
.panel--hero:has(> .hero__video)::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(234,247,255,0), rgba(234,247,255,.35));
}

/* La bulle : le visage dépasse du cercle par le haut */
.hero__bubble {
  position: relative;
  width: min(68cqi, 40cqh);
  aspect-ratio: 1;
  margin-top: min(8cqi, 4cqh);
}
.hero__bubble::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff 0%, var(--sky-soft) 55%, var(--sky-light) 100%);
  box-shadow: 0 24px 50px -18px rgba(5,33,58,.35), inset 0 -10px 30px rgba(20,151,230,.18);
}
.hero__face {
  position: absolute;
  left: -8%;
  bottom: 0;
  width: 116%;
  height: auto;
  opacity: 0;
  /* Image 640×800 : le haut est libre (les cheveux dépassent de la bulle),
     le bas est coupé par le cercle. Image = 1,16 × la bulle en largeur,
     1,45 × en hauteur ; centre du cercle à 0,95/1,45 = 65,5 % du haut. */
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 65.5% no-repeat,
    radial-gradient(ellipse 43.1% 34.48% at 50% 65.5%, #000 99.2%, transparent 100%);
  mask:
    linear-gradient(#000 0 0) top / 100% 65.5% no-repeat,
    radial-gradient(ellipse 43.1% 34.48% at 50% 65.5%, #000 99.2%, transparent 100%);
}
.hero__face.is-on { opacity: 1; }

.hero__ask {
  position: absolute;
  z-index: 3;
  right: -4cqi;
  top: 12cqi;
  display: flex;
  gap: 1.1cqi;
  padding: 3cqi 3.6cqi;
  border-radius: 6cqi 6cqi 6cqi 1.5cqi;
  background: #fff;
  box-shadow: 0 10px 24px -8px rgba(5,33,58,.3);
  animation: bob 2.6s ease-in-out infinite;
}
.hero__ask i, .typing i {
  width: 1.9cqi; height: 1.9cqi;
  border-radius: 50%;
  background: var(--sky);
  animation: dot 1s ease-in-out infinite;
}
.hero__ask i:nth-child(2), .typing i:nth-child(2) { animation-delay: .15s; }
.hero__ask i:nth-child(3), .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-40%); opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-2.4cqi) rotate(2deg); } }

.hero__title {
  font-weight: 800;
  font-stretch: 86%;
  letter-spacing: -.025em;
  line-height: .98;
}
.hero__line { display: block; font-size: min(11.6cqi, 6.6cqh); }

.roll {
  display: grid;
  height: 1.12em;
  overflow: hidden;
  font-size: min(18.5cqi, 10.5cqh);
  line-height: 1.1;
  margin-top: .04em;
}
.roll__word {
  grid-area: 1 / 1;
  transform: translateY(105%);
  transition: transform .5s var(--ease-pop);
}
.roll__word.is-on { transform: translateY(0); }
.roll__word.is-out { transform: translateY(-105%); transition: transform .38s var(--ease-out); } /* sort plus vite que le nouveau n'entre : ils ne se croisent pas */

.swipe {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 18px);
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--ink);
  transition: opacity .4s ease;
}
.swipe__arrow {
  width: 14px; height: 14px;
  border-left: 3px solid currentColor;
  border-top: 3px solid currentColor;
  rotate: 45deg;
  animation: nudge 1.3s var(--ease-out) infinite;
}
@keyframes nudge { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5px, -5px); } }
body.has-swiped .swipe { opacity: 0; pointer-events: none; }

/* ---------------------------------------------------------------------
   La conversation avec l'IA
   --------------------------------------------------------------------- */

.chat {
  display: flex;
  flex-direction: column;
  gap: min(4cqi, 2.2cqh);
  font-size: min(4.7cqi, 3cqh);
  line-height: 1.3;
}

.msg { display: flex; align-items: flex-end; gap: 2.4cqi; }
.msg--me { justify-content: flex-end; }

.avatar {
  flex: none;
  width: 10cqi; height: 10cqi;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sky-soft);
}
.avatar img { width: 150%; height: auto; max-width: none; margin: -8% 0 0 -25%; }

.msg__ai {
  flex: none;
  display: grid;
  place-items: center;
  width: 10cqi; height: 10cqi;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
}
.msg__ai svg { width: 55%; height: 55%; }

.bubble {
  padding: .7em 1em;
  border-radius: 1.2em;
  font-weight: 600;
}
.bubble--me {
  max-width: 78%;
  background: var(--sky);
  color: var(--ink);
  border-bottom-right-radius: .3em;
  min-height: 2.6em;
}
.bubble--me::after {
  content: "";
  display: inline-block;
  width: 2px; height: 1.05em;
  margin-left: 2px;
  vertical-align: -.15em;
  background: currentColor;
  opacity: 0;
}
.bubble--me.is-typing::after { opacity: 1; animation: caret .7s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }

.bubble--ai {
  flex: 1;
  border-bottom-left-radius: .3em;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  min-height: 3em;
  display: grid;
}

.chat--light .bubble--me { background: var(--ink); color: #fff; }
.chat--light .bubble--ai { background: #fff; border-color: transparent; color: var(--ink); box-shadow: 0 18px 40px -20px rgba(5,33,58,.45); }
.chat--light .msg__ai { background: var(--ink); color: var(--sky); }

.msg--ai {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .5s var(--ease-pop);
}
.chat.is-thinking .msg--ai, .chat.is-answered .msg--ai { opacity: 1; transform: none; }

.typing { display: none; gap: 1.3cqi; align-self: center; padding: .25em 0; }
.chat.is-thinking .typing { display: flex; }

.answer { display: none; counter-reset: n; }
.chat.is-answered .answer { display: block; }
.answer li {
  counter-increment: n;
  display: flex;
  align-items: center;
  gap: .5em;
  padding: .5em 0;
  border-top: 1px solid rgba(255,255,255,.12);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .3s ease, transform .45s var(--ease-pop);
  transition-delay: calc(var(--i, 0) * 260ms);
}
.answer li:first-child { border-top: 0; }
.answer li::before { content: counter(n) "."; font-weight: 800; opacity: .5; width: 1.1em; }
.answer li b { flex: 1; font-weight: 700; }
.chat.is-answered .answer li { opacity: 1; transform: none; }
.chat--light .answer li { border-color: rgba(5,33,58,.1); }

.stars { font-size: .82em; font-weight: 600; opacity: .6; white-space: nowrap; }

.answer li.win {
  margin: 0 -.45em .25em;
  padding: .6em .55em;
  border-radius: .7em;
  background: linear-gradient(100deg, var(--sky-soft), var(--sky));
  color: var(--ink);
}
.answer li.win::before { opacity: .8; }
.chat.is-answered .answer li.win { animation: win 1.6s .2s ease-in-out infinite; }
@keyframes win {
  0%, 100% { box-shadow: 0 0 0 0 rgba(86,196,251,.0), 0 8px 22px -10px rgba(20,151,230,.6); }
  50%      { box-shadow: 0 0 0 6px rgba(86,196,251,.28), 0 8px 22px -10px rgba(20,151,230,.6); }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: .7em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .35em .6em;
  border-radius: 999px;
  background: #fff;
  color: var(--sky-deep);
}
.badge svg { width: 1em; height: 1em; }

/* « Et vous ? Absent. » */
.punch {
  display: flex;
  flex-direction: column;
  font-size: min(15.5cqi, 8.6cqh);
  line-height: .95;
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -.03em;
}
.punch span { display: block; opacity: 0; transform: scale(.6); }
.punch.is-on .punch__a { opacity: 1; transform: none; transition: opacity .2s ease, transform .5s var(--ease-pop); }
.punch.is-on .punch__b {
  color: var(--coral);
  opacity: 1;
  transform: none;
  transition: opacity .2s ease .55s, transform .5s var(--ease-pop) .55s;
  animation: shake .5s ease 1.1s;
}
@keyframes shake {
  0%, 100% { translate: 0; }
  20% { translate: -8px; } 40% { translate: 7px; } 60% { translate: -5px; } 80% { translate: 3px; }
}

/* ---------------------------------------------------------------------
   Gros mots qui s'allument un par un
   --------------------------------------------------------------------- */

.huge {
  font-size: min(21cqi, 12cqh);
  line-height: .92;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -.035em;
}
.huge--two { font-size: min(18cqi, 10.4cqh); }
.huge__line { display: block; }
.huge__line + .huge__line { margin-top: .12em; }
.huge .w { display: inline-block; opacity: .1; transform: translateY(.08em); transition: opacity .25s ease, transform .4s var(--ease-pop), color .3s ease; }
.huge .w.is-lit { opacity: 1; transform: none; }
.huge__line--alert .w.is-lit { color: var(--coral); }

.after {
  font-size: 6cqi;
  font-weight: 600;
  opacity: .7;
}

/* ---------------------------------------------------------------------
   5 · SEO / GEO
   --------------------------------------------------------------------- */

/* SEO + IA = GEO — une addition qui se pose ligne par ligne,
   chaque sigle avec ce qu'il veut dire */
.geo { gap: min(4.5cqi, 2.6cqh); }
.geo__big {
  font-size: min(19cqi, 10.5cqh);
  line-height: .9;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -.03em;
}
.geo__plus { color: var(--sky); text-shadow: 0 0 24px rgba(86,196,251,.5); }
.geo__def {
  display: flex;
  flex-direction: column;
  gap: .15em;
  margin-top: .5em;
  font-size: min(5.2cqi, 3cqh);
  font-weight: 700;
  line-height: 1.15;
}
.geo__full {
  font-size: .78em;
  font-weight: 600;
  letter-spacing: .01em;
  opacity: .55;
}
.geo__b .geo__def span:last-child { color: var(--sky); }

.geo__a, .geo__plus, .geo__b { opacity: 0; transform: translateY(26px) scale(.92); }
.geo.is-a .geo__a, .geo.is-p .geo__plus, .geo.is-b .geo__b {
  opacity: 1;
  transform: none;
  transition: opacity .25s ease, transform .55s var(--ease-pop);
}
.geo__plus { transform: translateX(-30px) scale(.6); }

/* ---------------------------------------------------------------------
   6 · Choisir une IA
   --------------------------------------------------------------------- */

.picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3cqi;
}
.picks li {
  position: relative;
  display: grid;
  place-items: center;
  padding: 5.4cqi 2cqi;
  border-radius: 5cqi;
  background: #fff;
  border: 2px solid rgba(5,33,58,.08);
  font-size: 5.6cqi;
  font-weight: 700;
  transition: transform .18s var(--ease-pop), background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.picks li.is-hover {
  border-color: var(--sky);
  transform: scale(1.04);
}
.picks li.is-picked {
  background: var(--sky);
  border-color: var(--sky);
  transform: scale(1.08);
  box-shadow: 0 16px 34px -14px rgba(20,151,230,.8);
}
.picks li.is-picked::after {
  content: "✓";
  position: absolute;
  top: -2.6cqi; right: -2.6cqi;
  display: grid;
  place-items: center;
  width: 8cqi; height: 8cqi;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 4.4cqi;
  animation: pop .45s var(--ease-pop);
}
.picks.is-done li:not(.is-picked) { opacity: .45; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------------------------------------------------------------------
   7 & 8 · Le score : 10 questions, combien vous citent
   --------------------------------------------------------------------- */

.bubble--solo { align-self: flex-end; font-size: 4.7cqi; }

.score { display: flex; flex-direction: column; gap: 3.2cqi; }
.score__label { font-size: 5cqi; font-weight: 600; opacity: .7; }
.score__big {
  font-size: 7.6cqi;
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -.015em;
}
.score__big b { font-weight: 800; }

.dots {
  --gap: 1.6cqi;
  position: relative;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: var(--gap);
  margin-top: min(7cqi, 4cqh); /* la place de l'étiquette du seuil */
}

/* Le seuil : une ligne entre deux pastilles (« 2/10 », « 8/10 ») */
.dots__mark {
  position: absolute;
  z-index: 1;
  top: -1.6cqi;
  bottom: -1.6cqi;
  left: calc((100% + var(--gap)) * var(--n) / 10 - var(--gap) / 2);
  width: 3px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .4s var(--ease-pop);
}
.dots__mark b {
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  translate: -50% 0;
  padding: .22em .55em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: min(3.6cqi, 2.2cqh);
  font-weight: 800;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease;
}
.dots__mark.is-in { transform: scaleY(1); }
/* Sur fond bleu, les pastilles allumées sont foncées : la ligne passe en blanc */
.panel--sky .dots__mark { background: #fff; box-shadow: 0 0 0 1.5px var(--sky); }
/* Seuil dépassé : l'étiquette passe au blanc et se coche */
.dots__mark.is-passed b { background: #fff; color: var(--ink); animation: pop .45s var(--ease-pop); }
.dots__mark.is-passed b::before { content: "✓ "; color: var(--sky-deep); }
.dots i {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid rgba(5,33,58,.16);
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform .35s var(--ease-pop), background .2s ease, border-color .2s ease;
}
.dots i.is-in { transform: scale(1); }
.dots i svg { width: 58%; height: 58%; color: #fff; transform: scale(0); transition: transform .35s var(--ease-pop); }
.dots i.is-lit { background: var(--sky); border-color: var(--sky); transform: scale(1.14); }
.dots i.is-lit svg { transform: scale(1); }
.panel--sky .dots i { border-color: rgba(5,33,58,.22); }
.panel--sky .dots i.is-lit { background: var(--ink); border-color: var(--ink); }
.panel--sky .dots i.is-lit svg { color: var(--sky); }

.score__big { opacity: 0; transform: translateY(12px); }
.score.is-done .score__big { opacity: 1; transform: none; transition: opacity .3s ease, transform .5s var(--ease-pop); }

.days {
  display: flex;
  align-items: baseline;
  gap: .25em;
  font-weight: 800;
  font-stretch: 80%;
  letter-spacing: -.04em;
  line-height: .85;
}
.days__label { font-size: min(12cqi, 6.6cqh); }
.days__n {
  font-size: min(40cqi, 22cqh);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------
   9 · La garantie
   --------------------------------------------------------------------- */

.guarantee { gap: 5cqi; }
.guarantee__q {
  font-size: 7cqi;
  font-weight: 700;
  color: var(--sky);
}
.guarantee__lines {
  display: flex;
  flex-direction: column;
  font-size: min(13.6cqi, 7.6cqh);
  line-height: 1;
  font-weight: 800;
  font-stretch: 84%;
  letter-spacing: -.03em;
}
.guarantee__lines span {
  opacity: 0;
  transform: translateX(-24px);
}
.guarantee__lines span.is-in { opacity: 1; transform: none; transition: opacity .25s ease, transform .5s var(--ease-pop); }

.stamp {
  align-self: flex-end;
  margin-top: 4cqi;
  font-size: 8cqi;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .25em .6em .3em;
  border: .12em solid var(--sky);
  border-radius: .3em;
  color: var(--sky);
  rotate: -9deg;
  opacity: 0;
  transform: scale(2.4);
}
.stamp.is-in { opacity: 1; transform: scale(1); transition: transform .38s cubic-bezier(.5, 0, .75, 0), opacity .2s ease; }
.stamp.is-in.is-landed { animation: thump .3s ease; }
@keyframes thump { 50% { scale: 1.06; } }

/* ---------------------------------------------------------------------
   11 · Contact
   --------------------------------------------------------------------- */

.contact { align-items: center; text-align: center; gap: min(7cqi, 3.6cqh); }
.contact__mark {
  width: min(24cqi, 13cqh); height: min(24cqi, 13cqh);
  filter: drop-shadow(0 18px 24px rgba(5,33,58,.25));
}
.panel.is-active .contact__mark { animation: hop 2.4s var(--ease-pop) .3s infinite; }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 20% { transform: translateY(-5cqi) rotate(-6deg); } 40% { transform: translateY(0) rotate(3deg); } }

.actions { width: 100%; display: flex; flex-direction: column; gap: 3cqi; }
.action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 1em 1em;
  border-radius: 999px;
  font-size: 5.6cqi;
  font-weight: 700;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 26px -14px rgba(5,33,58,.45);
  transition: transform .2s var(--ease-pop);
}
.action svg { width: 1.15em; height: 1.15em; }
.action--main { background: var(--ink); color: #fff; font-size: 6.4cqi; }
.action:active { transform: scale(.96); }

.replay {
  font-size: 4.4cqi;
  font-weight: 700;
  padding: .6em 1.1em;
  border-radius: 999px;
  background: rgba(255,255,255,.45);
}

.legal {
  position: absolute;
  z-index: 2;
  left: 0; right: 0;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  opacity: .55;
}

/* ---------------------------------------------------------------------
   Double-tap : une gerbe d'étincelles (le « like » de TikTok)
   --------------------------------------------------------------------- */

.bursts { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
.burst { position: absolute; width: 0; height: 0; }
.burst svg {
  position: absolute;
  left: 0; top: 0;
  width: var(--s, 18px);
  height: var(--s, 18px);
  margin: calc(var(--s, 18px) / -2) 0 0 calc(var(--s, 18px) / -2);
  color: var(--c, var(--sky));
  filter: drop-shadow(0 2px 4px rgba(5,33,58,.25));
  animation: fly .8s var(--ease-out) forwards;
}
.burst svg.big { animation: big .7s var(--ease-pop) forwards; }
@keyframes fly {
  0%   { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r)); opacity: 0; }
}
@keyframes big {
  0%   { transform: scale(0) rotate(-30deg); opacity: 1; }
  55%  { transform: scale(1.2) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 0; }
}

/* ---------------------------------------------------------------------
   Mouvement réduit : tout est déjà là
   --------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .feed { scroll-behavior: auto; }
}
