/* ============================================================
   STYLE : noir, blanc, gris + une seule couleur néon (--accent,
   réglée dans config.js)
   ============================================================ */
:root {
  --bg: #0a0a0a;
  --card: #111111;
  --card-2: #151515;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --text: #ffffff;
  --muted: #9a9a9a;
  --accent: #8b5cf6;
  --accent-soft: color-mix(in srgb, var(--accent) 22%, transparent);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: 760px;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.25s,
    background 0.25s,
    color 0.25s;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--accent),
    0 10px 30px -6px var(--accent);
}

.btn-outline {
  border-color: var(--line-2);
  color: var(--text);
}

.btn-outline:hover,
.btn-ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 22px -6px var(--accent);
}

.btn-ghost {
  border-color: var(--line-2);
  color: var(--muted);
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-small {
  padding: 9px 16px;
  font-size: 14px;
  border-color: var(--line-2);
}

.btn-small:hover {
  border-color: var(--accent);
  box-shadow: 0 0 18px -6px var(--accent);
}

.btn-block {
  width: 100%;
}

/* ---------- En-tête fixe ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: 68px;
  border-bottom: 1px solid transparent;
  transition:
    background 0.3s,
    border-color 0.3s;
}

.topbar.is-scrolled {
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}

.topbar-in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  color: var(--muted);
}

.nav > a:not(.btn):hover {
  color: var(--text);
}

/* ---------- Mascotte ---------- */
.mascot {
  display: block;
  overflow: visible;
}

/* Les flammes : deux images qui alternent */
.m-b {
  opacity: 0;
}

.mascot .m-a {
  animation: m-flame 0.56s steps(1) infinite;
}

.mascot .m-b {
  animation: m-flame 0.56s steps(1) infinite reverse;
}

@keyframes m-flame {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Respiration : monte et descend d'un pixel */
.m-bob {
  animation: m-bob 2.2s steps(1) infinite;
}

@keyframes m-bob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}

/* Clignement des yeux de temps en temps */
.m-blink {
  opacity: 0;
  animation: m-blink 4.6s steps(1) infinite;
}

@keyframes m-blink {
  0% {
    opacity: 0;
  }
  93% {
    opacity: 1;
  }
  97% {
    opacity: 0;
  }
}

/* Clin d'œil au survol */
.m-wink {
  opacity: 0;
}

.brand:hover .m-wink,
.hero-mascot:hover .m-wink,
.corner-btn:hover .m-wink,
.corner-btn:focus-visible .m-wink {
  opacity: 1;
}

.brand:hover .m-blink,
.hero-mascot:hover .m-blink,
.corner-btn:hover .m-blink {
  animation: none;
  opacity: 0;
}

/* Petit saut au survol */
.hero-mascot:hover .mascot,
.corner-btn:hover .mascot {
  animation: m-hop 0.5s var(--ease);
}

@keyframes m-hop {
  40% {
    transform: translateY(-8%);
  }
}

/* ---------- En-tête de page (hero) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 110px 0 70px;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(52px, 9vw, 104px);
}

.hero-tagline {
  margin-top: 22px;
  max-width: 470px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-mascot {
  position: relative;
  display: grid;
  place-items: center;
  cursor: default;
}

.hero-glow {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  filter: blur(10px);
}

.m-hero {
  position: relative;
  height: min(400px, 56vh);
  width: auto;
}

/* ---------- Sections ---------- */
.section {
  padding: 110px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

.section-head h2 {
  font-size: clamp(36px, 5vw, 54px);
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
}

/* ---------- Avantages ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit {
  padding: 26px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color 0.3s,
    transform 0.4s var(--ease);
}

.benefit:hover {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  transform: translateY(-3px);
}

.picon {
  display: block;
  width: 30px;
  height: auto;
  fill: var(--accent);
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 55%, transparent));
}

.benefit h3 {
  margin-top: 20px;
  font-size: 19px;
}

.benefit p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Offres ---------- */
.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
  align-items: stretch;
}

.offer {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 30px 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition:
    border-color 0.3s,
    box-shadow 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.offer:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}

.offer.is-featured {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, var(--card)), var(--card) 55%);
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 50px -18px var(--accent);
}

.offer.is-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 0 60px -14px var(--accent);
}

.offer-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 0 18px -4px var(--accent);
}

.offer h3 {
  font-size: 24px;
}

.offer-desc {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.offer-price {
  margin: 26px 0 24px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.offer-price span {
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 58px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* Réduction : ancien prix barré + pourcentage */
.offer-deal {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.offer-old {
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-decoration-thickness: 2px;
  text-decoration-color: #ef4444;
}

.offer-discount {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 0 18px -4px #ef4444;
}

.offer-price.has-deal {
  margin: 6px 0 4px;
}

.offer-saved {
  margin-bottom: 24px;
  color: #4ade80;
  font-size: 14px;
  font-weight: 600;
}

.offer-until {
  display: inline-block;
  align-self: flex-start;
  margin: -14px 0 24px;
  padding: 5px 12px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  font-size: 13px;
  font-weight: 600;
}

.offer ul {
  list-style: none;
  margin: 0 0 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  font-size: 15px;
}

.offer li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.picon-check {
  flex-shrink: 0;
  width: 15px;
  margin-top: 5px;
  filter: none;
}

.offer .buy {
  margin-top: auto;
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 2px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary i {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq-item summary i::before,
.faq-item summary i::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: var(--muted);
  transition:
    transform 0.3s var(--ease),
    background 0.3s;
}

.faq-item summary i::after {
  transform: rotate(90deg);
}

.faq-item[open] summary i::after {
  transform: rotate(0);
}

.faq-item summary:hover i::before,
.faq-item summary:hover i::after,
.faq-item[open] summary i::before {
  background: var(--accent);
}

.faq-item p {
  padding: 0 40px 22px 2px;
  color: var(--muted);
  animation: faq-open 0.35s var(--ease);
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ---------- Pied de page ---------- */
.footer {
  padding: 30px 0 40px;
}

.footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.footer-cta h2 {
  font-size: 30px;
}

.footer-cta p {
  margin-top: 6px;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.footer-bottom .brand {
  color: var(--text);
  font-size: 15px;
}

/* ---------- Bandeau TWINT ---------- */
.twint {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px 12px 12px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--card);
}

.twint-logo {
  display: inline-grid;
  place-items: center;
  padding: 10px 18px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  box-shadow: 0 0 24px -8px rgba(255, 255, 255, 0.45);
}

/* Logos des moyens de paiement, côte à côte */
.pay-logos {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.paypal-logo {
  display: inline-grid;
  grid-auto-flow: column;
  place-items: center;
  padding: 10px 18px;
  border: 2px solid #fff;
  border-radius: 10px;
  background: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 24px -8px rgba(0, 156, 222, 0.6);
}
.paypal-logo b { color: #003087; font-weight: 700; font-style: italic; }
.paypal-logo i { color: #009cde; font-weight: 700; font-style: italic; }

.twint-offers .paypal-logo {
  font-size: 36px;
  padding: 12px 24px;
}

@media (max-width: 640px) {
  .twint { flex-wrap: wrap; justify-content: center; text-align: center; }
  .twint-logo, .paypal-logo, .twint-offers .twint-logo, .twint-offers .paypal-logo { font-size: 22px; padding: 8px 14px; }
}

.twint-text {
  display: grid;
  gap: 2px;
  text-align: left;
}

.twint-text strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  line-height: 1.2;
}

.twint-text span {
  color: var(--muted);
  font-size: 14px;
}

.twint-hero {
  margin-top: 28px;
}

/* Au-dessus des offres : plus grand et centré */
.twint-offers {
  display: flex;
  justify-content: center;
  max-width: 860px;
  margin: -16px auto 40px;
  padding: 18px 24px;
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2));
}

.twint-offers .twint-logo {
  font-size: 36px;
  padding: 12px 24px;
}

.twint-offers .twint-text strong {
  font-size: 26px;
}

.twint.is-soon .twint-logo {
  opacity: 0.85;
}

.offer-pay {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.offer-pay b {
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ---------- Petite mascotte en bas à droite ---------- */
.corner {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 30;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.corner.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.corner-btn {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.m-corner {
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 35%, transparent));
}

.bubble {
  position: absolute;
  right: 58px;
  bottom: 70px;
  width: max-content;
  max-width: 210px;
  padding: 9px 13px;
  border: 1px solid var(--line-2);
  border-radius: 12px 12px 2px 12px;
  background: var(--card-2);
  color: var(--text);
  font: 500 13px/1.4 "Inter", sans-serif;
  text-align: left;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease);
  pointer-events: none;
}

.corner-btn:hover .bubble,
.corner-btn:focus-visible .bubble {
  opacity: 1;
  transform: none;
}

/* ---------- Message (bouton sans lien de paiement) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 13px 18px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--card-2);
  box-shadow: 0 0 30px -10px var(--accent);
  font-size: 14px;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Apparitions au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Visiteurs qui préfèrent moins de mouvement : simple fondu */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    transform: none;
  }
  .hero-mascot:hover .mascot,
  .corner-btn:hover .mascot {
    animation: none;
  }
}

/* ---------- Tablette et mobile ---------- */
@media (max-width: 900px) {
  .benefits {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 100px 0 40px;
  }
  .hero-in {
    grid-template-columns: 1fr;
    gap: 10px;
    text-align: center;
  }
  .hero-mascot {
    order: -1;
  }
  .m-hero {
    height: 240px;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
  }
  .hero-actions {
    justify-content: center;
  }
  .twint-offers {
    flex-direction: column;
    text-align: center;
  }
  .twint-offers .twint-text {
    text-align: center;
  }
  .offers {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section {
    padding: 72px 0;
  }
  .nav > a:not(.btn) {
    display: none;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 16px;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    flex: 1 1 100%;
  }
  .offer {
    padding: 30px 22px 24px;
  }
  .footer-cta {
    padding: 26px 22px;
  }
  .footer-cta .btn {
    width: 100%;
  }
  .corner {
    right: 10px;
    bottom: 10px;
  }
  .m-corner {
    height: 64px;
    width: auto;
  }
  .bubble {
    right: 44px;
    bottom: 50px;
  }
}
