/* Geodex World — landing "Crépuscule" (Direction A) */

:root {
  /* — Couleurs (hex exacts, charte Geodex) — */
  --bg-night-deep: #241735;   /* fond body + bas du dégradé */
  --bg-night:      #2C1D42;   /* texte sombre hero, texte CTA */
  --prune:         #3D2B52;   /* texte secondaire hero, badge */
  --mauve-1:       #472F5F;
  --mauve-2:       #5D4270;
  --mauve-3:       #6C4B7E;
  --mauve-label:   #8A5B7E;   /* crédit footer */
  --gold-clair:    #F2B366;   /* accent principal, chiffres, liens */
  --terracotta:    #D96F4E;
  --ambre:         #E3B98F;   /* corps de texte sur zones sombres */
  --etoile:        #F2E4C8;   /* étoiles, titres H2, labels */
  --or-vif:        #F0CC5E;   /* points "pays découverts" sur le globe */
  --texte-principal: #F2EFE6; /* H3, prix */
  --texte-secondaire: #A8A599;/* notes "Déblocage unique" */

  /* — Dégradés — */
  /* duskBg : fond pleine page, appliqué UNE SEULE FOIS sur le wrapper racine */
  --dusk-bg: linear-gradient(180deg,
    #F2B366 0%, #E3B98F 12%, #6C4B7E 34%, #5D4270 48%,
    #472F5F 62%, #2C1D42 82%, #241735 100%);
  /* goldBadge : CTA, barres d'accent des cartes feature */
  --gold-badge: linear-gradient(135deg, #F2B366, #D96F4E);
  /* Globe hero */
  --globe-fill: radial-gradient(circle at 34% 28%,
    #F2B366 0%, #D96F4E 38%, #472F5F 72%, #241735 100%);
  /* Halo derrière le globe */
  --halo-globe: radial-gradient(ellipse 60% 50% at 50% 55%,
    rgba(242,179,102,.28), rgba(242,179,102,0) 70%);
  /* Halo section prix */
  --halo-prix: radial-gradient(ellipse 55% 60% at 50% 50%,
    rgba(242,179,102,.12), rgba(242,179,102,0) 70%);

  /* — Ombres & halos — */
  --shadow-cta:        0 10px 40px rgba(217,111,78,.45);
  --shadow-cta-hover:  0 14px 50px rgba(217,111,78,.65);
  --shadow-cta-bas:        0 10px 40px rgba(217,111,78,.35); /* CTA section prix */
  --shadow-cta-bas-hover:  0 14px 50px rgba(217,111,78,.55);
  --shadow-globe: 0 0 140px rgba(242,179,102,.35),
                  inset -30px -40px 90px rgba(36,23,53,.6);
  --shadow-carte-wm: 0 0 60px rgba(242,179,102,.25); /* carte World Master */

  /* — Bordures translucides — */
  --border-carte:      1px solid rgba(242,228,200,.16); /* cartes chiffres */
  --border-feature:    1px solid rgba(242,228,200,.14);
  --border-prix:       1px solid rgba(242,228,200,.18);
  --border-footer-top: 1px solid rgba(242,228,200,.12);
  --border-pill-nav:   1px solid rgba(44,29,66,.4);
  --border-badge-hero: 1px solid rgba(61,43,82,.35);

  /* — Fonds translucides — */
  --surface-carte:   rgba(36,23,53,.35);  /* cartes chiffres */
  --surface-feature: rgba(242,228,200,.06);
  --surface-prix:    rgba(36,23,53,.5);

  /* — Rayons — */
  --radius-pill: 999px;   /* CTA, badge, bouton nav */
  --radius-carte: 16px;   /* cartes chiffres */
  --radius-feature: 18px;
  --radius-prix: 20px;

  /* — Layout — */
  --content-max: 1100px;  /* toutes sections sauf prix */
  --content-max-prix: 900px;
  --pad-x: 48px;          /* padding horizontal de toutes les sections */

  /* — Breakpoints (adaptation responsive) — */
  --bp-tablet: 960px;
  --bp-mobile: 640px;
}

/* — Base — */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg-night-deep);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

a {
  color: var(--gold-clair);
  text-decoration: none;
}

a:hover {
  color: var(--etoile);
}

/* — Wrapper racine : dégradé duskBg appliqué une seule fois — */

.page {
  background: var(--dusk-bg);
  overflow: hidden;
}

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* — Nav — */

.nav {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 36px var(--pad-x) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--bg-night);
}

.nav-btn {
  font-weight: 600;
  font-size: 13px;
  color: var(--bg-night);
  border: var(--border-pill-nav);
  border-radius: var(--radius-pill);
  padding: 9px 18px;
}

.nav-btn:hover {
  background: rgba(44,29,66,.12);
  color: var(--bg-night);
}

/* — Hero — */

.hero {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 72px var(--pad-x) 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--prune);
  border: var(--border-badge-hero);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  margin-bottom: 28px;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.05;
  color: var(--bg-night);
  margin: 0 0 24px;
  text-wrap: balance;
}

.hero-pitch {
  font-size: 19px;
  line-height: 1.6;
  color: var(--prune);
  max-width: 560px;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

.hero-sub {
  font-size: 13px;
  color: var(--prune);
  margin: 14px 0 0;
}

/* — CTA goldBadge — */

.cta {
  display: inline-block;
  background: var(--gold-badge);
  color: var(--bg-night);
  font-weight: 700;
  font-size: 16px;
  padding: 16px 34px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta);
  transition: box-shadow .2s ease, color .2s ease;
}

.cta:hover {
  box-shadow: var(--shadow-cta-hover);
  color: var(--bg-night-deep);
}

.cta--bas {
  box-shadow: var(--shadow-cta-bas);
  margin-top: 52px;
}

.cta--bas:hover {
  box-shadow: var(--shadow-cta-bas-hover);
}

/* — Étoiles : un div 2×2px, box-shadow multiple — */

.stars {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--etoile);
}

.stars--globe {
  left: 50%;
  top: 20%;
  opacity: .8;
  box-shadow: -420px 60px #F2E4C8, -350px 220px #F2E4C8, -480px 320px #F2E4C8,
    380px 40px #F2E4C8, 440px 200px #F2E4C8, 330px 330px #F2E4C8,
    -280px 380px #F2E4C8, 290px 120px #F2E4C8;
}

.stars--features {
  left: 20%;
  top: 0;
  opacity: .7;
  box-shadow: 120px 80px #F2E4C8, 560px 30px #F2E4C8, 700px 260px #F2E4C8,
    -80px 340px #F2E4C8, 420px 520px #F2E4C8, 640px 640px #F2E4C8,
    60px 620px #F2E4C8;
}

.stars--footer {
  left: 30%;
  top: 30px;
  opacity: .6;
  box-shadow: 200px 20px #F2E4C8, 480px 50px #F2E4C8, -160px 60px #F2E4C8,
    320px 90px #F2E4C8;
}

/* — Globe — */

.globe-section {
  display: flex;
  justify-content: center;
  padding: 30px 0 90px;
  position: relative;
}

.globe-halo {
  position: absolute;
  inset: 0;
  background: var(--halo-globe);
}

.globe {
  position: relative;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: var(--globe-fill);
  box-shadow: var(--shadow-globe);
}

.globe-graticule {
  position: absolute;
  inset: 0;
  opacity: .35;
}

.globe-dot {
  position: absolute;
  border-radius: 50%;
}

/* Positions : px maquette / 460 — identiques en desktop, ratios conservés à 340px */

.globe-dot--1 {
  width: 8px;
  height: 8px;
  background: var(--or-vif);
  box-shadow: 0 0 14px 4px rgba(240,204,94,.8);
  left: calc(150 / 460 * 100%);
  top: calc(190 / 460 * 100%);
  animation: gx-twinkle 3s infinite;
}

.globe-dot--2 {
  width: 6px;
  height: 6px;
  background: var(--or-vif);
  box-shadow: 0 0 12px 3px rgba(240,204,94,.7);
  left: calc(260 / 460 * 100%);
  top: calc(140 / 460 * 100%);
  animation: gx-twinkle 4s infinite .8s;
}

.globe-dot--3 {
  width: 7px;
  height: 7px;
  background: var(--or-vif);
  box-shadow: 0 0 12px 3px rgba(240,204,94,.7);
  left: calc(300 / 460 * 100%);
  top: calc(260 / 460 * 100%);
  animation: gx-twinkle 3.5s infinite 1.6s;
}

.globe-dot--4 {
  width: 5px;
  height: 5px;
  background: var(--etoile);
  box-shadow: 0 0 10px 2px rgba(242,228,200,.7);
  left: calc(190 / 460 * 100%);
  top: calc(300 / 460 * 100%);
  animation: gx-twinkle 4.2s infinite .4s;
}

@keyframes gx-twinkle {
  0%, 100% { opacity: .9; }
  50% { opacity: .35; }
}

/* — Chiffres — */

.stats {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) 100px;
}

.stats-grid {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card {
  flex: 1;
  min-width: 170px;
  text-align: center;
  background: var(--surface-carte);
  border: var(--border-carte);
  border-radius: var(--radius-carte);
  padding: 28px 16px;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--gold-clair);
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--etoile);
  margin-top: 10px;
}

/* — Features — */

.features {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--pad-x) 40px;
  position: relative;
}

.features h2 {
  margin-bottom: 56px;
}

h2 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 44px);
  color: var(--etoile);
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.feature-card {
  background: var(--surface-feature);
  border: var(--border-feature);
  border-radius: var(--radius-feature);
  padding: 30px 30px 28px;
}

.feature-accent {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--gold-badge);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 23px;
  color: var(--texte-principal);
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ambre);
  margin: 0;
  text-wrap: pretty;
}

/* — Prix — */

.pricing {
  position: relative;
}

.pricing-halo {
  position: absolute;
  inset: 0;
  background: var(--halo-prix);
}

.pricing-content {
  position: relative;
  max-width: var(--content-max-prix);
  margin: 0 auto;
  padding: 90px var(--pad-x) 110px;
  text-align: center;
}

.pricing h2 {
  margin-bottom: 14px;
}

.pricing-sub {
  font-size: 16px;
  color: var(--ambre);
  margin: 0 0 48px;
}

.pricing-grid {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.price-card {
  flex: 1;
  max-width: 340px;
  padding: 36px 30px;
  border-radius: var(--radius-prix);
  background: var(--surface-prix);
  border: var(--border-prix);
}

.price-card--wm {
  border: 1px solid var(--gold-clair);
  box-shadow: var(--shadow-carte-wm);
}

.price-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-clair);
}

.price-label--wm {
  background: var(--gold-badge);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.price-amount {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 52px;
  color: var(--texte-principal);
  margin: 14px 0 6px;
}

.price-note {
  font-size: 13px;
  color: var(--texte-secondaire);
  margin: 0;
}

/* — Footer — */

.footer {
  border-top: var(--border-footer-top);
  position: relative;
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 44px var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--etoile);
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 13px;
}

.footer-links a {
  color: var(--ambre);
}

.footer-links a:hover {
  color: var(--etoile);
}

.footer-credit {
  font-size: 12px;
  color: var(--mauve-label);
}

/* — Responsive — */

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .globe {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad-x: 24px;
  }

  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    min-width: 140px;
  }

  .hero-pitch {
    font-size: 17px;
  }
}

/* ============================================================ */
/* — Pages légales (privacy.html / support.html) —              */
/* Ajouts uniquement : aucune règle existante n'est modifiée.   */
/* ============================================================ */

.legal-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Halo doré discret en haut de page, clin d'œil au crépuscule */
.legal-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background: radial-gradient(ellipse 70% 100% at 50% 0%,
    rgba(242,179,102,.10), rgba(242,179,102,0) 70%);
  pointer-events: none;
}

.nav--legal {
  position: relative;
}

.nav--legal .nav-logo {
  color: var(--etoile);
}

.nav--legal .nav-logo:hover {
  color: var(--gold-clair);
}

.legal-wrap {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px var(--pad-x) 96px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ambre);
}

.legal-header {
  border-bottom: var(--border-footer-top);
  padding-bottom: 28px;
  margin-bottom: 36px;
}

.legal-wrap h1 {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 42px);
  line-height: 1.15;
  color: var(--etoile);
  margin: 0 0 8px;
}

.legal-wrap h2 {
  font-size: 23px;
  color: var(--etoile);
  margin: 40px 0 12px;
}

.legal-updated {
  font-size: 14px;
  color: var(--texte-secondaire);
  margin: 0;
}

.legal-lead {
  font-size: 18px;
  color: var(--texte-principal);
}

.legal-wrap p {
  margin: 0 0 14px;
}

.legal-wrap ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.legal-wrap li {
  margin: 0 0 8px;
}

.legal-wrap strong {
  color: var(--texte-principal);
  font-weight: 600;
}

.legal-wrap a {
  border-bottom: 1px solid rgba(242,179,102,.35);
}

.legal-wrap a:hover {
  border-bottom-color: var(--etoile);
}

.legal-wrap a:focus-visible {
  outline: 2px solid var(--gold-clair);
  outline-offset: 3px;
  border-radius: 2px;
}

.legal-note {
  border-left: 3px solid var(--gold-clair);
  background: var(--surface-feature);
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  margin: 18px 0;
}

.legal-contact {
  background: var(--surface-carte);
  border: var(--border-carte);
  border-radius: var(--radius-carte);
  padding: 20px 22px;
  margin: 24px 0 8px;
}

.legal-contact-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--texte-secondaire);
  margin: 0 0 6px;
}

.legal-contact-email {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.legal-footer {
  border-top: var(--border-footer-top);
  margin-top: 48px;
  padding-top: 22px;
  font-size: 14px;
  color: var(--texte-secondaire);
}

@media (max-width: 640px) {
  .legal-wrap {
    padding: 36px var(--pad-x) 72px;
    font-size: 16px;
  }

  .legal-wrap h1 {
    font-size: 30px;
  }
}
