/* =====================================================
   PADEL ROYALE — Landing page
   Charte : fond noir, vert néon, Anton (titres) + Kanit
   ===================================================== */

:root {
  --pr-black: #000000;
  --pr-green: #00ff00;
  --pr-white: #ffffff;
  --pr-text-muted: #f2f2f2;

  --pr-font: "Kanit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pr-display: "Anton", var(--pr-font);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--pr-font);
  background: var(--pr-black);
  color: var(--pr-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

/* =====================================================
   DÉCOR FIXE — couronnes + trame de points
   (reste en place, seul le contenu scrolle)
   ===================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.backdrop__crown {
  position: absolute;
  top: 0;
  height: min(72vh, 640px);
  width: auto;
  transition: transform 0.75s ease, opacity 0.75s ease;
}

.backdrop__crown--left {
  left: 0;
}

.backdrop__crown--right {
  right: 0;
  transform: scaleX(-1);
}

.backdrop__dots {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(1577px, 130%);
  max-width: none;
  transition: transform 0.85s ease, opacity 0.85s ease;
}

/* --- Sortie du décor à l'approche du footer --- */
.backdrop--exit .backdrop__dots {
  opacity: 0;
  transform: translateX(-50%) translateY(45%);
}

.backdrop--exit .backdrop__crown--left {
  opacity: 0;
  transform: translateX(-75%);
}

.backdrop--exit .backdrop__crown--right {
  opacity: 0;
  transform: scaleX(-1) translateX(-75%);
}

/* =====================================================
   HEADER STICKY (apparaît au scroll)
   ===================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: var(--pr-black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.site-header--visible {
  transform: translateY(0);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img {
  height: 56px;
  width: auto;
}

/* =====================================================
   SECTIONS (transparentes : laissent voir le décor)
   ===================================================== */

.section {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4.25rem, 9vh, 6.75rem) 1.5rem;
}

/* Le hero garde le plein écran */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: clamp(5rem, 12vh, 8rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
}

/* =====================================================
   HERO
   ===================================================== */

.hero__content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(-3vh);
}

.hero__logo {
  width: clamp(96px, 11vw, 140px);
  height: auto;
  margin-bottom: clamp(1rem, 2.4vh, 1.5rem);
}

.hero__title {
  font-family: var(--pr-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.04;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: var(--pr-white);
}

.hero__title span {
  display: block;
  color: var(--pr-green);
}

.hero__desc {
  max-width: 46ch;
  font-weight: 400;
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.45;
  color: var(--pr-text-muted);
  margin-top: 20px;
  margin-bottom: 32px;
}

/* --- Statistiques --- */
.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.5rem, 5vw, 3.25rem);
  margin: 0 0 clamp(1.5rem, 4vh, 2.25rem);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.stat__label {
  margin-top: -0.15rem;
}

.stat__icon {
  width: 19px;
  height: 19px;
  margin-bottom: 0.55rem;
}

.stat__icon--crown {
  width: 44px;
  height: auto;
  margin-bottom: 0.15rem;
}

.stat__value {
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1;
  color: var(--pr-green);
  white-space: nowrap;
}

/* Effet "shine" en boucle sur les montants (hero + récompense).
   Dégradé 3x plus large que le texte : aux deux extrémités
   de l'anim, seul du vert est visible (le blanc sort complètement). */
.stat__value--shine,
.reward__amount--shine {
  background: linear-gradient(
    110deg,
    var(--pr-green) 33%,
    #ffffff 50%,
    var(--pr-green) 67%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: shine 3.5s ease-in-out infinite;
}

@keyframes shine {
  0% {
    background-position: 100% 0;
  }
  45% {
    background-position: 0% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

.stat__label {
  font-weight: 500;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--pr-white);
}

/* --- CTA --- */
.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.18s ease,
    color 0.18s ease, box-shadow 0.22s ease;
}

.btn--primary {
  background: var(--pr-green);
  color: var(--pr-black);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  padding: 1rem 2.75rem;
  border-radius: 100px;
  box-shadow: 0 0 40px rgba(0, 255, 0, 0.3);
}

.btn--primary:hover {
  background: var(--pr-green);
  transform: translateY(-2px);
  box-shadow: 0 0 55px rgba(0, 255, 0, 0.55);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  background: var(--pr-black);
  color: var(--pr-white);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  padding: 0.85rem 2.5rem;
  border-radius: 100px;
  border: 1.5px solid var(--pr-green);
}

.btn--ghost {
  border-color: rgba(0, 255, 0, 0.45);
}

.btn--ghost:hover {
  background: #0c1a0c;
  border-color: var(--pr-green);
}

.btn--ghost:active {
  transform: scale(0.97);
}

.btn--sm {
  font-size: clamp(0.85rem, 1.4vw, 0.95rem);
  padding: 0.6rem 1.6rem;
  box-shadow: none;
}

/* =====================================================
   FORMAT
   ===================================================== */

.format__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.section-head__kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  color: var(--pr-green);
  margin-bottom: 0.6rem;
}

.section-head__title {
  font-family: var(--pr-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  color: var(--pr-white);
}

/* --- Cartes --- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
}

.card {
  position: relative;
  background: var(--pr-black);
  border: 1.5px solid var(--pr-green);
  border-radius: 26px;
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 2.5vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 55px rgba(0, 255, 0, 0.4);
}

/* Effet shine sur la BORDURE de la carte mise en avant :
   un reflet lumineux circule le long du contour vert. */
@property --shine-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.card--shine {
  border-color: transparent;
}

.card--shine::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px; /* épaisseur du liseré, = bordure des autres cartes */
  background: conic-gradient(
    from var(--shine-angle),
    var(--pr-green) 0deg,
    var(--pr-green) 250deg,
    #ffffff 300deg,
    var(--pr-green) 350deg,
    var(--pr-green) 360deg
  );
  /* ne garde que l'anneau (le contour), pas l'intérieur */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: border-shine 4s linear infinite;
  pointer-events: none;
}

@keyframes border-shine {
  to {
    --shine-angle: 360deg;
  }
}

.card__icon {
  height: 84px;
  width: auto;
  margin-bottom: clamp(1.1rem, 2.5vw, 1.6rem);
}

.card__title {
  font-family: var(--pr-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.02;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--pr-green);
  margin-bottom: clamp(0.9rem, 2vw, 1.25rem);
}

.card__text p {
  font-weight: 400;
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  line-height: 1.42;
  color: var(--pr-white);
}

.card__text p + p {
  margin-top: 0.9rem;
}

.card__text strong {
  font-weight: 700;
}

/* =====================================================
   TABLEAUX & VILLES
   ===================================================== */

.tableaux__inner {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
}

.section-head__sub {
  max-width: 42ch;
  margin: 1rem auto 0;
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.42;
  color: var(--pr-text-muted);
}

.tableaux__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

.tableau {
  background: var(--pr-black);
  border: 1.5px solid var(--pr-green);
  border-radius: 18px;
  padding: clamp(1.1rem, 2vw, 1.65rem) 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.tableau:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 45px rgba(0, 255, 0, 0.35);
}

.tableau__cat {
  font-family: var(--pr-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  color: var(--pr-green);
}

.tableau__lvl {
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--pr-white);
}

.zones__title {
  font-family: var(--pr-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  color: var(--pr-white);
  margin: clamp(2.5rem, 6vh, 4rem) 0 clamp(1.5rem, 3.5vh, 2.25rem);
}

.zones {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 840px;
  margin: 0 auto;
}

.pill {
  background: var(--pr-black);
  border: 1.5px solid var(--pr-green);
  border-radius: 100px;
  padding: 0.55rem 1.35rem;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--pr-white);
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 255, 0, 0.35);
}

/* =====================================================
   RÉCOMPENSE
   ===================================================== */

.reward__inner {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.reward__card {
  position: relative;
  max-width: 560px;
  margin: clamp(3.25rem, 7vh, 5rem) auto 0;
  background: var(--pr-black);
  border: 1.5px solid var(--pr-green);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 3.25rem) 1.5rem clamp(1.75rem, 3.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.reward__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 60px rgba(0, 255, 0, 0.4);
}

.reward__crown {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -58%);
  height: clamp(64px, 9vw, 90px);
  width: auto;
}

.reward__amount {
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  line-height: 1;
  color: var(--pr-green);
}

.reward__unit {
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: var(--pr-white);
}

.reward__desc {
  max-width: 44ch;
  margin: clamp(2rem, 4vh, 2.75rem) auto 0;
  font-weight: 400;
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.45;
  color: var(--pr-text-muted);
}

/* =====================================================
   CTA FINAL / FOOTER
   ===================================================== */

.final {
  /* fond noir opaque : masque le décor fixe (couronnes + dots) */
  background: var(--pr-black);
  /* plein écran : la slide précédente sort complètement pendant
     que le décor s'efface → transition propre */
  min-height: 100vh;
  min-height: 100svh;
}

.final__inner {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final__logo {
  width: clamp(90px, 10vw, 128px);
  height: auto;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.final__title {
  font-family: var(--pr-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.04;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--pr-white);
}

.final__title span {
  color: var(--pr-green);
}

.final__desc {
  max-width: 48ch;
  margin: clamp(1.25rem, 3vh, 1.75rem) auto clamp(2rem, 4.5vh, 2.75rem);
  font-weight: 400;
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.5;
  color: var(--pr-text-muted);
}

/* =====================================================
   MODALE FORMULAIRE (Brevo)
   ===================================================== */

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
}

.form-modal.is-open {
  display: block;
}

.form-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.form-modal__dialog {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--pr-black);
  overflow: hidden;
}

.form-modal__bar {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 0.4rem 0.5rem;
  background: var(--pr-black);
}

.form-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--pr-white);
  font-size: 2rem;
  line-height: 1;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.18s ease;
}

.form-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.form-modal__iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: var(--pr-black);
}

/* =====================================================
   ÉCRAN DE REMERCIEMENT (#merci)
   Overlay transparent : laisse voir le décor fixe (couronnes + dots)
   ===================================================== */

.merci-screen {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 4rem) 1.5rem;
  overflow-y: auto;
  text-align: center;
}

body.is-merci .merci-screen {
  display: flex;
}

/* On masque la landing + header + modale quand le remerciement est affiché */
body.is-merci .page,
body.is-merci .site-header,
body.is-merci #form-modal {
  display: none;
}

.merci-screen__inner {
  width: 100%;
  max-width: 840px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.merci-screen__logo {
  width: clamp(96px, 12vw, 150px);
  height: auto;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}

.merci-screen__title {
  font-family: var(--pr-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
  font-size: clamp(1.5rem, 4.5vw, 2.9rem);
  color: var(--pr-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5em;
}

.merci-screen__check {
  flex: 0 0 auto;
  width: clamp(38px, 5vw, 56px);
  height: auto;
}

.merci-screen__text {
  max-width: 52ch;
  margin: clamp(1.25rem, 3vh, 1.75rem) auto clamp(2rem, 4.5vh, 2.75rem);
  font-weight: 400;
  font-size: clamp(1rem, 1.9vw, 1.25rem);
  line-height: 1.5;
  color: var(--pr-text-muted);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 820px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }

  .tableaux__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .backdrop__crown {
    height: 42vh;
    opacity: 0.5;
  }

  .stats {
    gap: 1.75rem 2.5rem;
  }

  .stat {
    flex: 0 0 40%;
  }
}

@media (max-width: 400px) {
  .stat {
    flex: 0 0 42%;
  }
}

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
  .stat__value--shine,
  .reward__amount--shine,
  .card--shine::before {
    animation: none;
  }
  .backdrop__crown,
  .backdrop__dots {
    transition: none;
  }
}
