@font-face {
  font-family: "Inter";
  src: url("inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg-dark: #0f212f;
  --bg: #1a2c38;
  --bg-card: #213743;
  --bg-footer: #0c1a25;
  --line: #2f4553;
  --blue: #1475e1;
  --blue-hover: #1a84f5;
  --white: #fff;
  --ink: #0f212f;
  --text: #b1bad3;
  --text-dim: #93a3b5;
  --green: #00e701;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text);
  font: 400 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg { display: block; }
b { color: var(--white); font-weight: 700; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 27px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .footer a:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-hover); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: #e4e9ef; }
.btn--lg { min-height: 80px; padding: 0 32px; font-size: 18px; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; border-radius: 6px; }

/* Navigation */
.nav { background: var(--bg); }
.nav__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.nav__logo { width: 96px; height: auto; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
  background: var(--bg-dark);
}
.hero::before {
  content: "";
  position: absolute;
  /* Plus grand que le hero : le bord du halo ne doit jamais apparaître quand il bouge */
  inset: -15%;
  background: radial-gradient(600px 520px at 76% 22%, rgba(20, 117, 225, .32), transparent 72%);
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 552px; gap: 40px; align-items: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

h1 {
  margin-top: 24px;
  color: var(--white);
  font-size: 68px;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
h1 span { display: block; color: var(--blue); }

.hero__lead { max-width: 520px; margin-top: 28px; font-size: 19px; line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.hero__note { margin-top: 22px; color: var(--text-dim); font-size: 14px; }

/* Carte offre */
.offer {
  padding: 28px 37px 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.offer__logo { width: 92%; height: auto; margin: 0 auto; }
.offer__label {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.offer__amount {
  margin-top: 16px;
  color: var(--white);
  font-size: 142px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}
.offer__num { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.offer__euro { display: inline-block; color: var(--blue); }
.offer__list {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--white);
  font-size: 16px;
}
.offer__list li { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.offer__list .ico { color: var(--blue); }

/* Bandeau défilant */
.ticker { overflow: hidden; background: var(--blue); color: var(--white); }
.ticker__track { display: flex; width: max-content; }
.ticker__track.is-running { animation: ticker 150s linear infinite; }
.ticker__group { display: flex; align-items: center; flex: none; }
.ticker__group li {
  padding: 15px 0 15px 48px;
  font-size: 19px;
  font-weight: 800;
  line-height: 26px;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__group .star .ico { width: 15px; height: 26px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Étapes */
h2 {
  color: var(--white);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.steps { padding: 84px 0 88px; background: var(--bg); scroll-margin-top: 0; }
.steps__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 42px 0 44px; }
.step { padding: 32px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-card); }
.step__n {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 9px;
  background: var(--blue);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
}
.step h3 { margin-top: 14px; color: var(--white); font-size: 22px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.step p { margin-top: 14px; font-size: 16px; line-height: 1.55; }

/* FAQ */
.faq { padding: 84px 20px 88px; background: var(--bg-dark); }
.faq__in { max-width: 820px; margin: 0 auto; }
.faq__item { margin-top: 12px; padding: 22px 26px; border-radius: 12px; background: var(--bg); }
.faq h2 + .faq__item { margin-top: 28px; }
.faq h3 { color: var(--white); font-size: 18px; font-weight: 700; line-height: 1.4; }
.faq__item p { margin-top: 6px; font-size: 17px; line-height: 1.45; }
.faq .btn { margin-top: 28px; }

/* Pied de page */
.footer { padding: 38px 0 40px; border-top: 1px solid #2c4150; background: var(--bg-footer); font-size: 13px; line-height: 1.6; }
.footer p + p { margin-top: 10px; }
.footer a { color: var(--white); }
.footer a.tel { color: inherit; text-decoration: none; }

/* Reflet qui balaie les boutons principaux */
.btn--shine, .stickycta .btn { position: relative; overflow: hidden; }
.btn--shine::after, .stickycta .btn::after {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-150%) skewX(-18deg);
  pointer-events: none;
  animation: cta-shine 5s ease-in-out infinite;
}

/* Bouton fixe en bas (mobile uniquement) */
.stickycta { display: none; }

/* Tablette */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .offer { width: 100%; max-width: 552px; }
  .steps__grid { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 28px; }
}

/* Mobile */
@media (max-width: 600px) {
  .nav {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
    background: rgba(26, 44, 56, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
  .nav__in { min-height: 60px; }
  .nav__logo { width: 84px; }
  .btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
  .steps { scroll-margin-top: 60px; }

  .stickycta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    /* Pas de fond : seule la zone du bouton capte le toucher */
    pointer-events: none;
  }
  .stickycta .btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 54px;
    pointer-events: auto;
    /* Ombre : détache le bouton du contenu qui défile derrière */
    box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
    animation: cta-glow 3.6s ease-out infinite;
  }
  .stickycta .btn::after { animation-duration: 3.6s; }
  .stickycta__arrow { animation: cta-arrow 3.6s ease-in-out infinite; }

  /* Cadeau : il s'agite, le couvercle se soulève, des étincelles sortent */
  .gift {
    flex: none;
    width: 28px;
    height: 28px;
    overflow: visible;
    fill: #fff;
    transform-origin: 50% 85%;
    animation: gift-wiggle 3.6s ease-in-out infinite;
  }
  .gift__ribbon { fill: var(--blue); }
  .gift__lid {
    transform-box: fill-box;
    transform-origin: 15% 100%;
    animation: gift-lid 3.6s ease-in-out infinite;
  }
  .gift__spark {
    opacity: 0;
    fill: #ffe27a;
    transform-box: fill-box;
    transform-origin: center;
    animation: gift-spark 3.6s ease-out infinite;
  }
  .gift__spark--b { animation-delay: .12s; }
  .footer { padding-bottom: calc(40px + 75px + env(safe-area-inset-bottom)); }
  .hero { padding: 40px 0 56px; }
  .hero::before { background: radial-gradient(420px 360px at 82% 12%, rgba(20, 117, 225, .28), transparent 72%); }
  h1 { margin-top: 20px; font-size: clamp(38px, 11.6vw, 52px); }
  .hero__lead { margin-top: 20px; font-size: 17px; }
  .hero__cta .btn { width: 100%; }
  .btn--lg { min-height: 66px; padding: 0 20px; font-size: 17px; }
  .hero__note { text-align: center; }
  .offer { padding: 22px 22px 24px; }
  .offer__amount { font-size: clamp(88px, 28vw, 120px); }
  .offer__list { font-size: 15px; }
  .ticker__group li { padding: 12px 0 12px 32px; font-size: 16px; }
  h2 { font-size: 32px; }
  .steps, .faq { padding-top: 56px; padding-bottom: 60px; }
  .steps__grid { margin: 28px 0 28px; gap: 14px; }
  .steps .btn, .faq .btn { width: 100%; }
  .step h3 { font-size: 20px; }
  .faq__item { padding: 18px 20px; }
  .faq__item p { font-size: 16px; }
}

@keyframes gift-wiggle {
  0%, 30%, 100% { transform: rotate(0) scale(1); }
  4% { transform: rotate(-11deg) scale(1.1); }
  9% { transform: rotate(10deg) scale(1.14); }
  14% { transform: rotate(-8deg) scale(1.14); }
  19% { transform: rotate(6deg) scale(1.1); }
  24% { transform: rotate(-3deg) scale(1.04); }
}
@keyframes gift-lid {
  0%, 12%, 34%, 100% { transform: none; }
  20%, 26% { transform: translateY(-4px) rotate(-14deg); }
}
@keyframes gift-spark {
  0%, 14% { opacity: 0; transform: translateY(5px) scale(.5); }
  21%, 30% { opacity: 1; transform: translateY(-3px) scale(1.5); }
  42%, 100% { opacity: 0; transform: translateY(-7px) scale(.8); }
}
@keyframes cta-shine {
  0%, 30% { transform: translateX(-150%) skewX(-18deg); }
  58%, 100% { transform: translateX(300%) skewX(-18deg); }
}
@keyframes cta-glow {
  0%, 12% { box-shadow: 0 6px 20px rgba(0, 0, 0, .45), 0 0 0 0 rgba(58, 148, 255, .7); }
  45%, 100% { box-shadow: 0 6px 20px rgba(0, 0, 0, .45), 0 0 0 11px rgba(58, 148, 255, 0); }
}
@keyframes cta-arrow {
  0%, 55%, 75%, 100% { transform: translateX(0); }
  62% { transform: translateX(5px); }
  69% { transform: translateX(1px); }
}

/* Animations du site : uniquement si le visiteur ne les a pas désactivées */
@media (prefers-reduced-motion: no-preference) {
  /* Hero : apparition en cascade, halo qui bouge, texte qui scintille */
  .hero::before { animation: hero-glow 9s ease-in-out infinite alternate; }
  .hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero__copy > :nth-child(2) { animation-delay: .08s; }
  .hero__copy > :nth-child(3) { animation-delay: .16s; }
  .hero__copy > :nth-child(4) { animation-delay: .24s; }
  .hero__copy > :nth-child(5) { animation-delay: .32s; }
  .badge i { animation: dot-pulse 2s ease-out infinite; }

  @supports ((-webkit-background-clip: text) or (background-clip: text)) {
    h1 span {
      /* padding : pour ne pas couper le bas du « g » */
      padding-bottom: .14em;
      margin-bottom: -.14em;
      background: linear-gradient(100deg, var(--blue) 40%, #7cbcff 50%, var(--blue) 60%) 100% 0 / 300% 100%;
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      animation: shimmer 5s ease-in-out infinite;
    }
  }

  /* Blocs qui apparaissent au scroll (masqués seulement si le JS tourne) */
  .js-anim .reveal:not(.is-in) { opacity: 0; }
  .js-anim .reveal.is-in { animation: rise .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) backwards; }

  /* Carte d'offre : flotte doucement, le € et les coches arrivent après le compteur */
  .js-anim .offer.is-in { animation: rise .7s cubic-bezier(.2, .7, .2, 1) backwards, float 6s ease-in-out 1.6s infinite; }
  .js-anim .offer.is-in .offer__euro { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) 1.05s backwards; }
  .js-anim .offer.is-in li { animation: rise .5s ease-out backwards; }
  .js-anim .offer.is-in li:nth-child(1) { animation-delay: .9s; }
  .js-anim .offer.is-in li:nth-child(2) { animation-delay: 1.05s; }
  .js-anim .offer.is-in li:nth-child(3) { animation-delay: 1.2s; }

  /* Numéros d'étapes et étoiles du bandeau */
  .js-anim .step.is-in .step__n { animation: pop .55s cubic-bezier(.3, 1.6, .5, 1) calc(var(--d, 0s) + .25s) backwards; }
  .ticker__group .star .ico { animation: spin 6s linear infinite; }

  /* Survol (souris uniquement) */
  @media (hover: hover) {
    .step, .faq__item { transition: transform .2s, box-shadow .2s; }
    .step:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0, 0, 0, .28), 0 0 0 1px var(--blue); }
    .faq__item:hover { transform: translateX(4px); box-shadow: inset 3px 0 0 var(--blue); }
    .btn .ico { transition: transform .2s; }
    .btn:hover .ico { transform: translateX(4px); }
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
}
@keyframes pop {
  from { opacity: 0; transform: scale(.4); }
}
@keyframes float {
  50% { transform: translateY(-7px); }
}
@keyframes hero-glow {
  from { transform: translate(-3%, -2%) scale(1); opacity: .75; }
  to { transform: translate(3%, 4%) scale(1.14); opacity: 1; }
}
@keyframes dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 231, 1, .6); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(0, 231, 1, 0); }
}
@keyframes shimmer {
  0%, 35% { background-position: 100% 0; }
  75%, 100% { background-position: 0 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .ticker__track.is-running { animation: none; }
  .btn--shine::after, .stickycta .btn, .stickycta .btn::after, .stickycta__arrow, .gift, .gift__lid, .gift__spark { animation: none; }
}
