/* ═══════════════════════════════════════════════════════════════
   GeoNatSat — présentation commerciale
   Slide plein écran sur fond étoilé unique. Point focal = visuel central.
   Textes ≥ 1rem, contrastes forts (petit écran / vue réduite).
   ═══════════════════════════════════════════════════════════════ */

:root {
  --gc-or:       #c9a24a;         /* doré des numéros */
  --gc-or-clair: #e6c58a;         /* doré clair pour le texte courant */
  --gc-texte:    #e9e4f2;
  --gc-texte-2:  #c7c0d8;
  --gc-fond:    #0a0714;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--gc-fond);
  color: var(--gc-texte);
  font-size: 1.05rem;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Fond unique : ciel étoilé légèrement nuageux ───────────────── */
.gc-sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 900px at 15% 0%,   #241640 0%, transparent 60%),
    radial-gradient(1400px 1000px at 100% 30%, #1a1030 0%, transparent 55%),
    linear-gradient(160deg, #120b22 0%, #0a0714 55%, #060410 100%);
}

/* voile nuageux / nébuleuse pour casser l'uniformité */
.gc-sky__nebula {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(600px 400px at 30% 25%, rgba(120, 80, 200, .18), transparent 70%),
    radial-gradient(700px 500px at 75% 60%, rgba(60, 120, 180, .14), transparent 70%),
    radial-gradient(500px 500px at 55% 90%, rgba(160, 90, 150, .10), transparent 70%);
  filter: blur(8px);
}

/* champs d'étoiles générés (deux profondeurs) */
.gc-sky__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.4px 1.4px at 20% 30%,  #fff, transparent),
    radial-gradient(1.4px 1.4px at 70% 20%,  #fff, transparent),
    radial-gradient(1.2px 1.2px at 40% 70%,  #eef, transparent),
    radial-gradient(1.6px 1.6px at 85% 55%,  #fff, transparent),
    radial-gradient(1.2px 1.2px at 55% 45%,  #dde, transparent),
    radial-gradient(1.3px 1.3px at 10% 80%,  #fff, transparent),
    radial-gradient(1.5px 1.5px at 90% 88%,  #fff, transparent),
    radial-gradient(1.2px 1.2px at 33% 12%,  #eef, transparent),
    radial-gradient(1.3px 1.3px at 5% 45%,   #fff, transparent),
    radial-gradient(1.1px 1.1px at 25% 60%,  #dde, transparent),
    radial-gradient(1.5px 1.5px at 48% 8%,   #fff, transparent),
    radial-gradient(1.1px 1.1px at 62% 78%,  #eef, transparent),
    radial-gradient(1.4px 1.4px at 78% 35%,  #fff, transparent),
    radial-gradient(1.2px 1.2px at 92% 15%,  #dde, transparent),
    radial-gradient(1.3px 1.3px at 15% 5%,   #fff, transparent),
    radial-gradient(1.1px 1.1px at 43% 52%,  #eef, transparent),
    radial-gradient(1.5px 1.5px at 66% 30%,  #fff, transparent),
    radial-gradient(1.2px 1.2px at 82% 68%,  #fff, transparent),
    radial-gradient(1.1px 1.1px at 37% 90%,  #dde, transparent),
    radial-gradient(1.3px 1.3px at 58% 62%,  #fff, transparent);
  background-repeat: repeat;
  background-size: 520px 520px;
  opacity: .9;
  animation: gc-drift 85s linear infinite;
}
.gc-sky__stars--far {
  background-size: 300px 300px;
  opacity: .42;
  filter: blur(.4px);
  animation: gc-drift-far 130s linear infinite;
}

/* dérive lente du ciel, du haut-droite vers le bas-gauche (sensation d'espace) */
@keyframes gc-drift     { to { background-position: -520px 520px; } }
@keyframes gc-drift-far { to { background-position: -300px 300px; } }

@media (prefers-reduced-motion: reduce) {
  .gc-sky__stars, .gc-sky__stars--far { animation: none; }
}

/* ── Slide ─────────────────────────────────────────────────────── */
.gc-slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.gc-slide__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6vh 5vw;
  display: grid;
  grid-template-columns: minmax(320px, 41%) 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

/* Colonne texte */
.gc-slide__text { position: relative; min-width: 0; }

.gc-slide__num {
  position: absolute;
  top: -0.72em;
  left: -0.55em;   /* décalé vers la gauche pour détacher le numéro du titre */
  font-size: clamp(6rem, 13vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: var(--gc-or);
  opacity: .28;
  letter-spacing: -.04em;
  pointer-events: none;
}

.gc-slide__title {
  position: relative;
  margin: 0 0 1.4rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  color: var(--gc-or);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}
.gc-slide__title span { display: block; }

.gc-slide__text p {
  margin: 0 0 1rem;
  max-width: 34rem;
  color: var(--gc-or-clair);
  font-size: 1.05rem;
}

/* Visuel central : point focal */
.gc-slide__visual {
  position: relative;
  z-index: 3;
  margin: 0;
  justify-self: start;
  align-self: start;
  margin-top: clamp(6rem, 15vh, 9.5rem); /* aligne le haut de la photo sur le texte sous le titre */
  max-width: 380px;
  width: 100%;
  min-width: 0;
}
.gc-slide__visual img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  /* léger filtre pour assombrir / désaturer et harmoniser les visuels entre eux */
  filter: saturate(.88) brightness(.84) contrast(1.03);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 10px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .06) inset;
}

/* Liserés d'angle dorés, plus larges : bas-gauche et haut-droite */
.gc-slide__visual::before,
.gc-slide__visual::after {
  content: "";
  position: absolute;
  width: 64px;
  height: 64px;
  border: 4px solid var(--gc-or);
  pointer-events: none;
}
.gc-slide__visual::before {  /* haut-droite */
  top: -10px;
  right: -10px;
  border-left: none;
  border-bottom: none;
  border-top-right-radius: 8px;
}
.gc-slide__visual::after {   /* bas-gauche */
  bottom: -10px;
  left: -10px;
  border-right: none;
  border-top: none;
  border-bottom-left-radius: 8px;
}
/* Globe statique — décor de contexte, à droite, débordant */
.gc-slide__globewrap {
  position: absolute;
  z-index: 1;
  right: -14vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(70vh, 780px);
  pointer-events: none;
}
.gc-slide__globe {
  display: block;
  width: 100%;
  height: auto;
  opacity: .9;
  mix-blend-mode: screen;
}

/* Repère « exemple » posé sur le globe — position par slide via --pin-x / --pin-y */
.gc-globe-pin {
  position: absolute;
  left: var(--pin-x, 27.5%);
  top: var(--pin-y, 9.3%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px 3px rgba(255, 255, 255, .55);
}

/* Trait de liaison photo → repère (tracé en JS) */
.gc-linkline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  overflow: visible;
}
.gc-linkline line {
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
}

/* Photo déplaçable (desktop uniquement) */
@media (min-width: 901px) {
  .gc-slide__visual { cursor: grab; touch-action: none; }
  .gc-slide__visual.is-dragging { cursor: grabbing; }
}

/* ── Slide en miroir : globe à gauche, texte à droite ──────────── */
.gc-slide--gauche .gc-slide__inner {
  grid-template-columns: 1fr minmax(320px, 41%);
}
.gc-slide--gauche .gc-slide__visual { order: 1; justify-self: end; }
.gc-slide--gauche .gc-slide__text   { order: 2; }

.gc-slide--gauche .gc-slide__globewrap {
  right: auto;
  left: -14vw;
}

/* Écrans intermédiaires : le « 01 » ne doit pas être rogné à gauche */
@media (max-width: 1440px) {
  .gc-slide__num { left: -0.1em; }
}

/* ── Mobile ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .gc-slide__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 12vh 7vw 8vh;
  }
  .gc-slide__num {
    font-size: clamp(4.5rem, 22vw, 7rem);
    top: -0.5em;
    left: -0.1em;
  }
  .gc-slide__inner,
  .gc-slide--gauche .gc-slide__inner { grid-template-columns: 1fr; }
  .gc-slide--gauche .gc-slide__visual,
  .gc-slide--gauche .gc-slide__text { order: 0; }
  .gc-slide__globewrap {
    right: -35vw;
    top: 12%;
    transform: none;
    width: 90vw;
  }
  .gc-slide--gauche .gc-slide__globewrap { right: auto; left: -35vw; }
  .gc-slide__globe { opacity: .35; }
  .gc-globe-pin { display: none; }
  .gc-slide__visual { max-width: 100%; margin-top: 0; }
  .gc-slide__text p { max-width: 100%; }
  .gc-linkline { display: none; }
}

/* ── Pied de page ─────────────────────────────────────────────── */
.gc-footer {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 4, 14, .55) 0%, rgba(5, 3, 12, .92) 22%);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1.5rem;
}
.gc-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(4, 1.3fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.gc-footer__logo {
  width: 190px;
  max-width: 100%;
  height: auto;
}
.gc-footer__social {
  display: flex;
  gap: .7rem;
  margin-top: 1.4rem;
}
.gc-social {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  color: #d9d2e6;
  transition: background .15s, color .15s, border-color .15s;
}
.gc-social:hover { background: var(--gc-or); border-color: var(--gc-or); color: #1a1204; }
.gc-social svg { fill: currentColor; }

.gc-footer__col h2 {
  margin: 0 0 .9rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}
.gc-footer__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gc-footer__col li {
  position: relative;
  padding-left: 1rem;
  margin: .45rem 0;
  line-height: 1.35;
}
.gc-footer__col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gc-or);
}
.gc-footer__col a {
  color: var(--gc-texte-2);
  text-decoration: none;
  font-size: .98rem;
}
.gc-footer__col a:hover { color: #fff; }

.gc-footer__legal {
  max-width: 1200px;
  margin: clamp(2rem, 5vw, 3.5rem) auto 0;
  padding: 1.2rem 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: #8a7fa0;
  font-size: .9rem;
}

@media (max-width: 900px) {
  .gc-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .gc-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .gc-footer__inner { grid-template-columns: 1fr; }
}
