* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #070b23;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Animation des particules */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.star {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #ffffff;
  border-radius: 50%;
  animation: twinkle 2s infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Header */
.header {
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  padding-top: calc(1rem + 4px) !important;
  padding-bottom: calc(1rem + 4px) !important;
  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 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  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%;
}

/* 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);
}

/* Container principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px 60px;
  position: relative;
  z-index: 10;
}

/* En-tête */
.hero {
  text-align: center;
  margin-bottom: 80px;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  color: #c084fc;
  text-shadow: 0 0 5px #7f5af0, 0 0 5px #1e293b;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.3rem;
  color: #a1a1aa;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grille principale */
.main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Formulaire de devis */
.quote-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #c084fc;
  text-shadow: 0 0 5px #7f5af0, 0 0 5px #1e293b;
}

.subsection-title {
  color: #8b5cf6;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  display: block;
  margin-top: 8px;
  margin-bottom: 8px;
  color: #e4e4e7;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #694ab1;
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
  color: #71717a;
}

select {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ffffff" stroke-width="2"><polyline points="6,9 12,15 18,9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 20px;
  padding-right: 50px;
  appearance: none;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Checkboxes personnalisées */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.checkbox-item:hover {
  border-color: #8b5cf6;
  background: rgba(139, 92, 246, 0.1);
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  accent-color: #8b5cf6;
  cursor: pointer;
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  font-size: 0.95rem;
}

/* Affichage du prix */
.price-display {
  background: #1b1f35;
  color: white;
  padding: 30px;
  border-radius: 16px;
  text-align: center;
  margin: 30px 0;
}

.price-display h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  opacity: 0.9;
}

.price-amount {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 5px;
  transition: transform 0.3s ease;
  color: #c084fc;
  text-shadow: 0 0 5px #7f5af0, 0 0 5px #1e293b;
}

.price-display p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Bouton principal */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #472586 0%, #271552 100%);
  color: #e4e4e7;
  border: none;
  padding: 18px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #271552 0%, #472586 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(74, 79, 235, 0.18);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Section de contact */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.whatsapp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  transition: all 0.3s ease;
}

.contact-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.contact-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  line-height: 1.5;
}

.whatsapp-card p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.whatsapp-btn {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.whatsapp-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive */
@media (max-width: 1024px) {
  .main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 100px 20px 40px;
  }

  .hero {
    margin-bottom: 1.1rem;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
  }

  .subsection-title {
    margin-bottom: 10px;
  }

  label {
    margin-top: 6px;
    margin-bottom: 6px;
    font-size: 0.75rem;
  }

  input,
  select,
  textarea {
    padding: 12px 15px;
    font-size: 0.75rem;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 15px;
  }

  .checkbox-item {
    padding: 12px 15px;
  }

  .checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
  }

  .checkbox-item label {
    font-size: 0.75rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .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(40px);
    -webkit-backdrop-filter: blur(40px);
    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;
  }

  .quote-section {
    padding: 25px;
  }

  /* Bouton principal */
  .submit-btn {
    padding: 12px 30px;
    font-size: 0.95rem;
  }

  .contact-section {
    gap: 1rem;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-icon {
    margin: 0 auto 15px;
  }

  .contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .contact-card p {
    margin-bottom: 15px;
    line-height: 1;
  }

  .contact-btn {
    padding: 8px 18px;
    border-radius: 10px;
  }
}

/* Résultat du devis */
.quote-result {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 16px;
  padding: 30px;
  margin-top: 30px;
  animation: slideIn 0.5s ease;
}

.quote-result.show {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-result h4 {
  color: #8b5cf6;
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.quote-result ul {
  list-style: none;
  padding: 0;
}

.quote-result li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
}

.quote-total {
  background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
  color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  margin: 20px 0;
}

/* Correction visibilité menu déroulant */
select,
select option {
  color: #ffffff !important;
  background: #1b1f35 !important;
}

.whatsapp-icon {
  width: 100px;
  height: 100px;
}

.mail-icon {
  width: 75px;
  height: 75px;
}

.phone-icon {
  width: 75px;
  height: 70px;
}

/* Pop up box avec style futuriste */
.form-message {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(88, 28, 135, 0.4) 0%,
    rgba(15, 23, 42, 0.8) 70%,
    rgba(0, 0, 0, 0.9) 100%
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.4s ease-out;
}

/* Masqué par défaut */
.hidden {
  display: none;
}

/* Contenu de la popup */
.form-message-content {
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.95) 0%,
    rgba(51, 65, 85, 0.9) 50%,
    rgba(30, 41, 59, 0.95) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px 35px;
  border-radius: 24px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 0 60px rgba(139, 92, 246, 0.3), 0 20px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transform: scale(0.9);
  animation: popupAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Animation d'apparition du popup */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupAppear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Effet de glow animé autour du popup */
.form-message-content::before {
  content: "";
  position: absolute;
  inset: -2px;
  padding: 2px;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(139, 92, 246, 0.4),
    rgba(59, 130, 246, 0.4),
    rgba(139, 92, 246, 0.4),
    transparent
  );
  border-radius: 24px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* Texte du message */
.form-message-content p {
  color: #e2e8f0;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Bouton fermer */
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 24px;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.close-btn:hover {
  color: #f1f5f9;
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3), 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.close-btn:active {
  transform: scale(0.95);
}

/* Responsive design */
@media (max-width: 480px) {
  .form-message-content {
    padding: 30px 25px;
    margin: 20px;
    border-radius: 20px;
  }

  .form-message-content p {
    font-size: 14px;
  }

  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 20px;
    width: 28px;
    height: 28px;
  }
}
