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

html,
body {
  background-color: #070b23;
  overflow-x: hidden;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: rgba(7, 11, 35, 0.8);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav {
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #c084fc;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #c084fc;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4a4feb, #9d48e6);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* --- NOS OFFRES SECTION --- */
#offres-section {
  max-width: 1200px;
  margin: 5rem auto 0 auto;
  padding: 3rem 1rem;
  position: relative;
  z-index: 10;
  text-align: center;
}
#offres-title {
  font-family: "Inter", sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #c084fc;
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px #7f5af0, 0 0 24px #1e293b;
}
#offres-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.offre-card {
  background: linear-gradient(
    135deg,
    rgba(40, 30, 80, 0.95) 60%,
    rgba(72, 60, 148, 0.8) 100%
  );
  border: 2px solid #312e81;
  border-radius: 1.5rem;
  box-shadow: 0 0 32px 0 rgba(124, 58, 237, 0.25), 0 2px 12px 0 #0a0e23;
  padding: 2.5rem 2rem 2rem 2rem;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.offre-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 40px 0 #7f5af0, 0 0 16px 0 #38bdf8;
  border-color: #7f5af0;
}
.offre-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-shadow: 0 0 10px #38bdf8aa;
}
.offre-desc {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  min-height: 54px;
}
.offre-price {
  color: #c084fc;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px #7f5af0bb;
}
.offre-cta {
  background: linear-gradient(90deg, #4a4feb 0%, #9d48e6 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 2.2rem;
  box-shadow: 0 0 18px #7f5af0cc, 0 0 6px #38bdf8cc;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  outline: none;
}
.offre-cta:hover {
  background: linear-gradient(90deg, #9d48e6 0%, #4a4feb 100%);
  box-shadow: 0 0 32px #38bdf8, 0 0 12px #7f5af0;
  transform: scale(1.05);
}

@media (max-width: 900px) {
  #offres-cards-container {
    gap: 1.5rem;
  }
  .offre-card {
    min-width: 220px;
    max-width: 100%;
    padding: 2rem 1.2rem 1.5rem 1.2rem;
    flex: 1 1 100px;
  }
}
@media (max-width: 768px) {

  /* --- NOS OFFRES SECTION --- */
  #offres-section {
    margin-top: 0;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  #offres-title {
    font-size: 2.1rem;
    margin-bottom: 1.3rem;
  }

  #offres-cards-container {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .offre-card {
    padding: 1.5rem 1rem 1rem 1rem;
    max-width: 380px;
    flex: 1 1 100px;
  }

  .offre-title {
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
  }

  .offre-desc {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
  }
  
  .offre-price {
    color: #c084fc;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0rem;
  }

  .offre-cta {
    font-size: 1rem;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 0 18px #7f5af0cc, 0 0 6px #38bdf8cc;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
    outline: none;
  }
}

#open-quote-modal {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  background: linear-gradient(90deg, #7c3aed 0%, #a48cff 100%);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
}

/* Page de chargement */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #070b23;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.8s ease-out; /* <-- seulement l'opacité */
}

.preloader.fade-out {
  opacity: 0; /* <-- plus de visibility ici */
}

.loader {
  position: relative;
  width: 150px;
  height: 150px;
}

.planet-loader {
  position: absolute;
  width: 80px;
  height: 80px;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(74, 122, 255, 0.9),
    rgba(142, 45, 226, 0.8)
  );
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 30px rgba(98, 86, 221, 0.7);
  animation: pulse 2s ease-in-out infinite alternate;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 0px solid transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 2s linear infinite;
}

.loader-ring-1 {
  width: 140px;
  height: 140px;
  border-top: 3px solid #9d48e6;
  border-left: 2px solid rgba(156, 81, 244, 0.3);
  filter: drop-shadow(0 0 8px #9d48e6);
}

.loader-ring-2 {
  width: 110px;
  height: 110px;
  border-bottom: 2px solid #508fff;
  border-right: 2px solid rgba(80, 143, 255, 0.5);
  filter: drop-shadow(0 0 8px #508fff);
  animation-direction: reverse;
  animation-duration: 1.5s;
}

.loading-text {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: 3px;
  color: white;
  text-transform: uppercase;
  opacity: 0.8;
  animation: blink 1.5s infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    box-shadow: 0 0 15px rgba(98, 86, 221, 0.5);
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(156, 81, 244, 0.8);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Orbites et anneaux */
.orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-25deg);
  pointer-events: none; /* pour éviter tout clic fantôme */
}

/* Anneaux de la planète avec effet néon */
.planet-container {
  position: relative;
  display: inline-block;
  pointer-events: none;
}

.planet-ring {
  position: absolute;
  border-radius: 50%;
  border: 0px solid transparent;
  box-shadow: 0 0 15px 2px rgba(156, 81, 244, 0.3);
  animation: rotate-ring 20s linear infinite;
}

.planet-ring::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  box-shadow: 0 0 8px rgba(156, 81, 244, 0.8),
    inset 0 0 8px rgba(103, 128, 255, 0.8);
}

.ring-1 {
  width: 780px;
  height: 780px;
  top: 50%;
  left: 50%;
  margin-top: -390px;
  margin-left: -390px;
  border-top: 4px solid rgba(110, 71, 238, 0.8);
  border-right: 2px solid rgba(156, 81, 244, 0.3);
  animation-duration: 30s;
  filter: drop-shadow(0 0 6px #9d48e6);
}

.ring-2 {
  width: 680px;
  height: 680px;
  top: 50%;
  left: 50%;
  margin-top: -340px;
  margin-left: -340px;
  border-top: 3px solid rgba(80, 143, 255, 0.9);
  border-left: 1px solid rgba(80, 143, 255, 0.4);
  border-right: 2px solid rgba(124, 161, 255, 0.7);
  animation-duration: 25s;
  animation-direction: reverse;
  filter: drop-shadow(0 0 8px #508fff);
}

.ring-3 {
  width: 580px;
  height: 580px;
  top: 50%;
  left: 50%;
  margin-top: -290px;
  margin-left: -290px;
  border-top: 2px solid rgba(191, 124, 255, 0.9);
  border-right: 3px solid rgba(191, 124, 255, 0.5);
  border-bottom: 1px solid rgba(191, 124, 255, 0.3);
  animation-duration: 20s;
  filter: drop-shadow(0 0 10px #bf7cff);
}

/* Animation de la planète */
.planet-float {
  animation: planet-float 6s ease-in-out infinite;
}

@keyframes planet-float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes planet-float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
  100% {
    transform: translateY(0px);
  }
}

.planet-glow {
  filter: drop-shadow(0 0 20px rgba(103, 128, 255, 0.5));
  animation: glow 8s ease-in-out infinite alternate;
}

/* Étoiles scintillantes */
.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 4s infinite;
}

/* Éléments d'interface */
.service-icon {
  border: 2px solid rgba(100, 116, 240, 0.3);
  border-radius: 8px;
  padding: 15px;
  display: inline-block;
  margin-bottom: 1rem;
  color: #6474f0;
}

.neon-button {
  background: linear-gradient(90deg, #4a4feb, #9d48e6);
  box-shadow: 0 0 15px rgba(98, 86, 221, 0.5);
  transition: all 0.3s ease;
}

.neon-button:hover {
  box-shadow: 0 0 25px rgba(98, 86, 221, 0.7);
  transform: translateY(-2px);
}

/* Keyframes pour les animations */
@keyframes rotate-ring {
  0% {
    transform: rotate(-25deg);
    opacity: 0.8;
  }
  25% {
    opacity: 1;
  }
  50% {
    opacity: 0.9;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: rotate(335deg);
    opacity: 0.8;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.5);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes glow {
  0% {
    filter: drop-shadow(0 0 15px rgba(103, 128, 255, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(156, 81, 244, 0.7));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(103, 128, 255, 0.5));
  }
}

/* Burger menu */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
  z-index: 110; /* au-dessus du menu */
}

.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #c084fc;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation croix */
.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive Header */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0px; /* hauteur du header */
    right: -100%;
    height: 100vh;
    width: 250px;
    background: rgba(7, 11, 35, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Place les liens en haut du container */
    gap: 2rem;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 80px; /* Ajoute un espace sous le header */
  }

  .nav-links.active {
    right: 0;
  }
}

.scroll-indicator {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1000;
  pointer-events: none; /* pas cliquable */
}

.scroll-text {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  animation: fade-text 3s infinite;
}

/* Dessin de la souris */
.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
}

.wheel {
  width: 4px;
  height: 8px;
  background: rgba(192, 132, 252, 0.9);
  border-radius: 2px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheel-move 2s infinite;
}

/* Animations */
@keyframes wheel-move {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0; transform: translateX(-50%) translateY(10px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes fade-text {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 0.3; }
}

/* Responsive */
@media (max-width: 768px) {
  .scroll-indicator {
    bottom: 30px;
  }

  .scroll-circle {
    width: 45px;
    height: 45px;
  }

  .scroll-arrow {
    width: 10px;
    height: 10px;
  }

  .scroll-text {
    font-size: 11px;
    top: -30px;
  }

  #texthero {
    font-size: 2rem;
  }
}

