/* ==========================================================================
   BIRDIE GOLF — Design System
   Palette et réglages globaux : tout se pilote depuis les variables ci-dessous.
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --green-deep:   #0a3d2c;   /* vert green profond (fonds héro, footer)   */
  --green-dark:   #062a1e;   /* variante sombre (dégradés)                 */
  --green-mid:    #14563f;   /* variante claire (survols, bordures)        */
  --lime:         #c6f53f;   /* vert fluo — boutons d'action               */
  --lime-dark:    #a8d92e;
  --gold:         #c9a648;   /* détails premium (filets, badges)           */
  --anthracite:   #23282b;   /* texte principal sur fond clair             */
  --grey:         #66707a;   /* texte secondaire                           */
  --white:        #ffffff;
  --off-white:    #f5f8f5;   /* fond des sections claires                  */
  --line:         #e4eae4;   /* bordures discrètes                         */

  /* Typographie */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rythme & formes */
  --radius:       18px;
  --radius-sm:    12px;
  --shadow:       0 20px 60px -20px rgba(6, 42, 30, 0.35);
  --shadow-soft:  0 8px 30px -12px rgba(6, 42, 30, 0.18);
  --transition:   0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --container:    1120px;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Boutons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), color var(--transition);
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--lime);
  color: var(--green-dark);
  box-shadow: 0 10px 30px -10px rgba(198, 245, 63, 0.55);
}
.btn-primary:hover {
  background: var(--lime-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(198, 245, 63, 0.65);
}

.btn-ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover {
  border-color: var(--lime);
  color: var(--lime);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--green-deep);
  color: var(--white);
}
.btn-dark:hover { background: var(--green-mid); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition),
              padding var(--transition);
}
.nav.scrolled {
  background: rgba(6, 42, 30, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  padding: 0.7rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}
.nav-logo .logo-icon {
  width: 30px; height: 30px;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav-links li.nav-cta a.btn-primary {
  color: var(--green-dark);
}

.nav-links a:hover { color: var(--lime); }
.nav-links .btn { padding: 0.55rem 1.3rem; font-size: 0.88rem; }

@media (max-width: 720px) {
  .nav-links li:not(.nav-cta) { display: none; }
}

/* --------------------------------------------------------------------------
   Héro
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(1100px 600px at 78% 18%, rgba(198, 245, 63, 0.10), transparent 60%),
    radial-gradient(900px 700px at 12% 85%, rgba(201, 166, 72, 0.10), transparent 55%),
    linear-gradient(160deg, var(--green-deep) 0%, var(--green-dark) 65%, #041d14 100%);
  background-color: var(--green-dark);
}

/* Texture "fairway" très subtile en bandes diagonales */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.015) 0 90px,
    transparent 90px 180px
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
  padding: 8rem 0 5rem;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 7rem; }
  .hero-visual { justify-self: center; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
}
@media (max-width: 900px) { .hero-eyebrow { justify-content: center; } }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.4vw, 4.3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--lime);
}
.hero p.lead {
  font-size: 1.13rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 34rem;
  margin-bottom: 2.4rem;
}
@media (max-width: 900px) { .hero p.lead { margin-inline: auto; } }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero-actions { justify-content: center; } }

/* Mockups téléphone dessinés en CSS — remplaçables par de vraies captures.
   Duo : Learning au premier plan, carte de score en retrait derrière. */
.hero-visual { position: relative; }
.phone-duo {
  position: relative;
  width: fit-content;
  margin-inline: auto;
  padding-left: 110px; /* espace pour le téléphone en retrait */
}
.phone {
  position: relative;
  width: 272px;
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #2e3438, #17191b);
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.6),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.phone-front {
  z-index: 2;
  animation: phone-float 7s ease-in-out infinite;
}
.phone-back {
  position: absolute;
  left: 0;
  top: 34px;
  z-index: 1;
  width: 236px;
  opacity: 0.88;
  filter: brightness(0.82);
  animation: phone-float-back 7s ease-in-out 0.6s infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(1.5deg); }
  50%      { transform: translateY(-16px) rotate(-0.5deg); }
}
@keyframes phone-float-back {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50%      { transform: translateY(-10px) rotate(-7.5deg); }
}
@media (max-width: 480px) {
  .phone-duo { padding-left: 0; }
  .phone-back { display: none; }
}
.phone-screen {
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(175deg, var(--off-white), #e8efe8);
  display: flex;
  flex-direction: column;
}
.phone-notch {
  width: 90px; height: 22px;
  margin: 10px auto 0;
  border-radius: 999px;
  background: #17191b;
}
.screen-app {
  flex: 1;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.screen-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.screen-card {
  background: var(--white);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  box-shadow: var(--shadow-soft);
}
.screen-card .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--grey);
  padding: 0.28rem 0;
  border-bottom: 1px solid var(--line);
}
.screen-card .row:last-child { border-bottom: none; }
.screen-card .row strong { color: var(--anthracite); }
.screen-scan {
  margin-top: auto;
  background: var(--green-deep);
  color: var(--lime);
  border-radius: 14px;
  padding: 0.8rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Écran Learning (téléphone au premier plan) */
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.lives-dots { font-size: 0.72rem; letter-spacing: 0.1em; }
.quiz-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(10, 61, 44, 0.12);
  overflow: hidden;
}
.quiz-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-mid), var(--lime));
}
.quiz-step {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--grey);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.quiz-question {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
}
.quiz-option {
  font-size: 0.68rem;
  color: var(--grey);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.4rem;
}
.quiz-option:last-child { margin-bottom: 0; }
.quiz-option.correct {
  color: var(--green-deep);
  font-weight: 700;
  border-color: var(--green-mid);
  background: rgba(198, 245, 63, 0.18);
}

/* Halo décoratif derrière le téléphone */
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8% -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 245, 63, 0.14), transparent 65%);
  filter: blur(10px);
}

/* --------------------------------------------------------------------------
   Sections génériques
   -------------------------------------------------------------------------- */
.section { padding: 6.5rem 0; }
.section.alt { background: var(--off-white); }

.section-head { max-width: 40rem; margin: 0 auto 4rem; text-align: center; }
.section-head .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-head p { color: var(--grey); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Étapes (fonctionnement en 3 temps)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2rem 2.2rem;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.step-num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  margin-bottom: 1.2rem;
}
.step-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: var(--lime);
  margin-bottom: 1.3rem;
}
.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 0.6rem;
}
.step-card p { color: var(--grey); font-size: 0.96rem; }

/* --------------------------------------------------------------------------
   Fonctionnalités (les 5 onglets de l'app + compte cloud)
   -------------------------------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .features { grid-template-columns: 1fr; } }

.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature-icon {
  width: 50px; height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--off-white);
  color: var(--green-deep);
  border: 1px solid var(--line);
  margin-bottom: 1.2rem;
  transition: background var(--transition), color var(--transition);
}
.feature-card:hover .feature-icon {
  background: var(--green-deep);
  color: var(--lime);
}

.feature-tab {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-deep);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
.feature-card > p {
  color: var(--grey);
  font-size: 0.93rem;
  margin-bottom: 1.2rem;
}

.feature-points {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-points li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--anthracite);
}
.feature-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green-mid);
  font-weight: 700;
}

/* Badge des fonctionnalités payantes */
.badge-premium {
  display: inline-block;
  vertical-align: 1px;
  margin-left: 0.3rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.premium-note {
  margin: 2.4rem auto 0;
  max-width: 46rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--grey);
}
.premium-note .badge-premium { margin: 0 0.4rem 0 0; }

/* Carte mise en avant (concept phare) et carte cloud (fond sombre) */
.feature-card.highlight { border-color: var(--gold); }
.feature-card.progress-card {
  background: linear-gradient(155deg, var(--green-deep), var(--green-dark));
  border-color: transparent;
}
.progress-card .feature-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--lime);
}
.progress-card h3 { color: var(--white); }
.progress-card > p { color: rgba(255, 255, 255, 0.72); }
.progress-card .feature-points li { color: rgba(255, 255, 255, 0.9); }
.progress-card .feature-points li::before { color: var(--lime); }

/* --------------------------------------------------------------------------
   Encart clubs partenaires
   -------------------------------------------------------------------------- */
.club-callout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 3rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 860px) {
  .club-callout { grid-template-columns: 1fr; text-align: center; }
  .club-qr { justify-self: center; }
  .club-copy .feature-points { align-items: center; }
}
.club-copy .kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.club-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--green-deep);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}
.club-copy > p { color: var(--grey); margin-bottom: 1.4rem; }
.club-copy .feature-points { margin: 0 0 1.8rem; }

.qr-mock {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--green-deep), var(--green-dark));
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  transition: transform var(--transition);
}
.club-callout:hover .qr-mock { transform: rotate(0deg) scale(1.03); }
.qr-mock svg { border-radius: 10px; }
.qr-mock-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
}

/* --------------------------------------------------------------------------
   Bandeau CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(700px 300px at 85% 20%, rgba(198, 245, 63, 0.13), transparent 60%),
    linear-gradient(150deg, var(--green-deep), var(--green-dark));
  color: var(--white);
  padding: 4.5rem 3rem;
  text-align: center;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 0.9rem;
}
.cta-band p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 32rem;
  margin: 0 auto 2.2rem;
}
.store-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  transition: transform var(--transition), border-color var(--transition),
              background var(--transition);
}
.store-badge:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  background: rgba(198, 245, 63, 0.08);
}
.store-badge small { display: block; font-size: 0.62rem; opacity: 0.7; line-height: 1.2; }
.store-badge strong { font-size: 0.98rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0;
  font-size: 0.88rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer a:hover { color: var(--lime); }
.footer nav { display: flex; gap: 1.6rem; }

/* --------------------------------------------------------------------------
   Animations d'apparition au scroll (pilotées par js/main.js)
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone { animation: none; }
  html { scroll-behavior: auto; }
}
