.navbar {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.main {
  position: relative;
  z-index: 1;
}

/* Couleur du placeholder */
.form-control::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #adb5bd;
  opacity: 1;
  /* Firefox */
}

.form-floating>label {
  color: #adb5bd;
}

/* Canvas étoiles */
#stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* au lieu de -1 */
  background: #000;
  /* mettre le fond noir ici */
}

body {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  color: white;
  height: 100%;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  /* contenu au-dessus des étoiles */
  background: transparent;
  /* éviter de masquer le canvas */
}

/* HERO */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 2rem;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #f5c469;
  text-shadow: 0 0 15px rgba(245, 196, 105, 0.6);
}

.hero p {
  font-size: 1.3rem;
  max-width: 700px;
  margin-bottom: 2rem;
  color: #fdf6f0;
}


/* Capsule transparente (bulle autour du sablier) */
.capsule {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05) 70%);
  backdrop-filter: blur(2px);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.4),
    0 0 30px rgba(245, 196, 105, 0.5),
    0 0 60px rgba(108, 52, 131, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
  margin-bottom: 2rem;
}

/* Effet de halo autour de la capsule */
.capsule::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(245, 196, 105, 0.3);
  animation: pulse 4s infinite ease-in-out;
}

/* Animation flottante */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Halo pulsant */
@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
}

/* Sablier centré à l’intérieur */
.capsule .sablier {
  transform: scale(0.8);
  /* réduire un peu la taille pour bien tenir dans la bulle */
  z-index: 2;
}

.sablier-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sablier,
.sablier:before,
.sablier:after {
  animation-duration: 4s;
  animation-iteration-count: infinite;
}

.sablier {
  --polygonH: polygon(0% 0%, 100% 0%, 100% 5.55%, 95% 5.55%, 95% 28%, 60% 46%, 60% 54%, 95% 72%, 95% 94.45%, 100% 94.45%, 100% 100%, 0% 100%, 0% 94.45%, 5% 94.45%, 5% 72%, 40% 54%, 40% 46%, 5% 28%, 5% 5.55%, 0% 5.55%);
  animation-name: flip;
  animation-timing-function: ease-in-out;
  background-image: linear-gradient(#f5c469 0.5em, #737a8c55 0.5em 8.5em, #f5c469 8.5em);
  clip-path: var(--polygonH);
  -webkit-clip-path: var(--polygonH);
  overflow: hidden;
  position: relative;
  width: 5em;
  height: 9em;
  z-index: 2;
}

.sablier:before,
.sablier:after {
  animation-timing-function: linear;
  content: "";
  display: block;
  position: absolute;
}

.sablier:before {
  --polygonB1: polygon(0% 0%, 100% 0%, 100% 24%, 50% 47%, 50% 47%, 50% 47%, 50% 47%, 50% 47%, 50% 47%, 50% 47%, 50% 47%, 0% 24%);
  --polygonB2: polygon(0% 4%, 100% 4%, 100% 24%, 55% 45%, 55% 100%, 55% 100%, 55% 100%, 45% 100%, 45% 100%, 45% 100%, 45% 45%, 0% 24%);
  --polygonB3: polygon(0% 24%, 100% 24%, 100% 24%, 55% 45%, 55% 80%, 100% 100%, 100% 100%, 0% 100%, 0% 100%, 45% 80%, 45% 45%, 0% 24%);
  --polygonB4: polygon(45% 45%, 55% 45%, 55% 45%, 55% 45%, 55% 58%, 100% 76%, 100% 100%, 0% 100%, 0% 76%, 45% 58%, 45% 45%, 45% 45%);
  --polygonB5: polygon(50% 53%, 50% 53%, 50% 53%, 50% 53%, 50% 53%, 100% 76%, 100% 100%, 0% 100%, 0% 76%, 50% 53%, 50% 53%, 50% 53%);
  animation-name: fill;
  background-color: #f5c469;
  background-size: 100% 3.6em;
  clip-path: var(--polygonB1);
  -webkit-clip-path: var(--polygonB1);
  top: 0.5em;
  left: 0.5em;
  width: 4em;
  height: 8em;
  z-index: 1;
}

.sablier:after {
  animation-name: glare;
  background:
    linear-gradient(90deg, #0000 0.5em, #0003 0.5em 1.5em, #0000 1.5em 3.5em, #fff3 3.5em 4.5em, #fff0 4.5em 6.5em, #0003 6.5em 7.5em, #0000 7.5em) 0 0 / 100% 0.5em,
    linear-gradient(90deg, #0000 0.75em, #0003 0.75em 1.25em, #0000 1.25em 3.75em, #fff3 3.75em 4.25em, #fff0 4.25em 6.75em, #0003 6.75em 7.25em, #0000 7.25em) 0 0.5em / 100% 8em,
    linear-gradient(90deg, #0000 0.5em, #0003 0.5em 1.5em, #0000 1.5em 3.5em, #fff3 3.5em 4.5em, #fff0 4.5em 6.5em, #0003 6.5em 7.5em, #0000 7.5em) 0 100% / 100% 0.5em;
  background-repeat: repeat-x;
  top: 0;
  left: -3em;
  width: 200%;
  height: 100%;
  z-index: 2;
}

/* Animation */
@keyframes fill {
  from {
    clip-path: var(--polygonB1);
    -webkit-clip-path: var(--polygonB1);
  }

  10% {
    clip-path: var(--polygonB2);
    -webkit-clip-path: var(--polygonB2);
  }

  45% {
    clip-path: var(--polygonB3);
    -webkit-clip-path: var(--polygonB3);
  }

  80% {
    clip-path: var(--polygonB4);
    -webkit-clip-path: var(--polygonB4);
  }

  85%,
  to {
    clip-path: var(--polygonB5);
    -webkit-clip-path: var(--polygonB5);
  }
}

@keyframes glare {

  from,
  90% {
    transform: translateX(0);
  }

  to {
    transform: translateX(3em);
  }
}

@keyframes flip {

  from,
  90% {
    transform: rotate(0);
  }

  to {
    transform: rotate(180deg);
  }
}


/* Particules */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #f5c469;
  border-radius: 50%;
  animation: sparkle 3s infinite ease-in-out;
  z-index: 1;
}

@keyframes sparkle {
  0% {
    transform: scale(0.5);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.5);
    opacity: 1;
  }

  100% {
    transform: scale(0.3);
    opacity: 0.3;
  }
}

/* Section pourquoi /  explication */
#pourquoi {
  background: #333333;
  color: #ffffff;
}

#explication {
  background: #bbbbbb;
  color: #333;
}

.section {
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
}

.section h2 {
  font-weight: 700;
  margin-bottom: 2rem;
}

.section .step {
  margin-bottom: 2rem;
}

footer {
  position: relative;
  background: #090a0f;
  padding: 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
}

footer a {
  margin-right: 50px;
  color: #959393;
}

/* Section sombre */
/* Cartes stylées */
.choix-capsule .card.option {
  background: #1a1a1f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.choix-capsule .card.option:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 196, 105, 0.3);
}

.choix-capsule h2,
.suivi-capsule h2 {
  color: #f5c469 !important;
  font-weight: 700;
  position: relative;
}

.choix-capsule .card-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.choix-capsule .card-text {
  color: #bbb;
  font-size: 0.95rem;
}

.choix-capsule .price {
  color: #f5c469;
  font-weight: bold;
  margin-top: 1rem;
}

/* Button CTA */
.btn-main {
  background: #6c3483 !important;
  border: none;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border-radius: 50px;
  color: #fff;
  transition: all 0.3s;
}

.btn-main:hover {
  background: #8e44ad;
  transform: scale(1.05);
  color: #fff;
}

.btn-main:disabled,
.btn-main[disabled] {
  border: 1px solid #951414;
  background: #c71e1e !important;
  cursor: not-allowed;
}


.page-content {
  z-index: 2;
  position: relative;
}

.form-control,
.form-floating>.form-control,
.form-select {
  background-color: #1a1a1f;
  border: 1px solid #1a1a1f;
  color: var(--text-color);
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

textarea {
  min-height: 150px !important;
}

.countdown-card {
  background: radial-gradient(circle at top, #1c1c28, #0d0d13);
  border-radius: 20px;
  color: #fff;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.text-gold {
  color: #f5c469;
}

.countdown {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
}

.countdown span {
  font-size: 2.5rem;
  color: #f5c469;
  display: inline-block;
  min-width: 50px;
  text-align: center;
  animation: pulse 2s infinite ease-in-out;
}

/* Effet magique */
@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    text-shadow: 0 0 5px #f5c469, 0 0 15px rgba(245, 196, 105, 0.6);
  }

  50% {
    transform: scale(1.15);
    text-shadow: 0 0 15px #f5c469, 0 0 30px rgba(245, 196, 105, 0.8);
  }
}

.fade-change {
  animation: fadeScale 0.6s ease;
}

@keyframes fadeScale {
  from {
    opacity: 0;
    transform: scale(0.6);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.recap {
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Fond étoilé animé */
.countdown-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  opacity: 0.3;
  animation: starsMove 25s linear infinite;
}

@keyframes starsMove {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 500px 500px;
  }
}

/* Écran noir */
#launch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease;
  z-index: 9999;
}

#launch-overlay {
  transition: opacity 1s ease;
}

#launch-overlay .hidden {
  opacity: 0;
  pointer-events: none;
}

/* Capsule (simple forme stylisée) */
.capsulefinale {
  width: 40px;
  height: 80px;
  background: linear-gradient(to top, #f5c469, #fff);
  border-radius: 20px;
  position: relative;
  animation: none;
}

.capsulefinale::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 15px;
  height: 20px;
  background: radial-gradient(circle, rgba(255, 200, 100, 0.8), transparent);
  border-radius: 50%;
  animation: flame 0.2s infinite alternate;
}

/* Flamme animée */
@keyframes flame {
  from {
    transform: translateX(-50%) scaleY(1);
    opacity: 0.8;
  }

  to {
    transform: translateX(-50%) scaleY(1.4);
    opacity: 0.3;
  }
}

/* Décollage */
.launch {
  animation: flyUp 10s ease forwards;
}

@keyframes flyUp {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  80% {
    transform: translateY(-120vh) scale(0.7);
    opacity: 1;
  }

  100% {
    transform: translateY(-150vh) scale(0.5);
    opacity: 0;
  }
}

/* Texte final */
.launch-text {
  color: #fff;
  font-size: 1.5rem;
  margin-top: 30px;
  opacity: 0;
  animation: fadeInText 2s ease forwards;
  animation-delay: 3s;
}

@keyframes fadeInText {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.remove-email {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: #dc3545;
}

.remove-email:hover {
  color: #a71d2a;
}

.behind {
  z-index: 100;
}




.atterrissage {
  width: 120px;
  height: 200px;
  background: linear-gradient(to bottom, #00c6ff, #6c3483);
  border-radius: 60px;
  position: relative;
  animation: fall 2s ease-out forwards;
  cursor: pointer;
}

.atterrissage::before,
.atterrissage::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  background: #ffffff30;
  border-radius: 50%;
}

.atterrissage::before {
  top: 20px;
}

.atterrissage::after {
  bottom: 20px;
}

@keyframes fall {
  0% {
    transform: translateY(-300px);
    opacity: 0;
  }

  70% {
    transform: translateY(0px);
    opacity: 1;
  }

  85% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hint {
  opacity: 0;
  margin-top: 20px;
  animation: hintBlink 1.5s infinite;
}

@keyframes hintBlink {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.message-atterrissage {
  max-width: 100%;
  display: none;
  text-align: center;
  padding: 20px;
  background: #ffffff10;
  border: 1px solid #6c3483;
  border-radius: 15px;
  margin-top: 30px;
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.message-decollage {
  max-width: 100%;
  display: none;
  text-align: center;
  padding: 20px;
  background: #ffffff10;
  border: 1px solid #6c3483;
  border-radius: 15px;
  margin-top: 30px;
  animation: fadeIn 2s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.zone-atterrissage {
  margin: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  font-family: Arial, sans-serif;
  color: white;
}

.zone-atterrissage h1 {
  margin-bottom: 50px;
  color: #f5c469;
}

.datecommande {
  text-align: right !important;
}

.text-color {
  color: #6c3483;
}


@media (max-width: 1250px) {
  .hero {
    margin-top: 150px;
  }
}