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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 2rem;
  transition: all 0.3s ease;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  background: linear-gradient(45deg, #00d4ff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo a {
  color: #fff;
  text-decoration: none;
}

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

.nav-links a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(45deg, #00d4ff, #ff00ff);
  transition: width 0.3s ease;
}

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

/* Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #00d4ff, #ff00ff, #ffff00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }

  100% {
    text-shadow: 0 0 40px rgba(255, 0, 255, 0.5);
  }
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: linear-gradient(45deg, #00d4ff, #ff00ff);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.5);
}

/* Floating elements */
.floating-element {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
  border-color: rgba(255, 0, 255, 0.3);
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
  border-color: rgba(255, 255, 0, 0.3);
}

@keyframes float {

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

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Common Sections */
.services,
.offers {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio {
  padding: 5rem 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 3rem;
  background: linear-gradient(45deg, #00d4ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards Grid Layout */
.services-grid,
.offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Common Card Styles */
.service-card,
.offer-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover,
.offer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.2);
}

.service-card {
  text-align: center;
}

.offer-card {
  text-align: left;
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.service-card h3,
.offer-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #00d4ff;
}

/* Portfolio Items */
.portfolio-item {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 255, 0.1));
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-item:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.3);
}

.portfolio-image {
  height: 200px;
  background: linear-gradient(45deg, #00d4ff, #ff00ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-item h3 {
  color: #00d4ff;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact {
  padding: 5rem 2rem;
  text-align: center;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #00d4ff;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group select option {
  background: #1a1a2e;
  color: white;
}

.submit-button,
.offer-btn {
  background: linear-gradient(45deg, #00d4ff, #ff00ff);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.submit-button:hover,
.offer-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.4);
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  padding: 3rem 2rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-contact {
  margin-bottom: 2rem;
}

.footer-contact h3 {
  color: #00d4ff;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, #00d4ff, #ff00ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 255, 0.1));
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.contact-button:hover {
  background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(255, 0, 255, 0.2));
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.6);
}

.whatsapp-button {
  background: linear-gradient(45deg, #25D366, #128C7E);
  border-color: #25D366;
}

.whatsapp-button:hover {
  background: linear-gradient(45deg, #128C7E, #25D366);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.contact-icon {
  font-size: 1.3rem;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  margin: 2rem 0 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
}

.social-links a {
  color: #00d4ff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-5px);
  color: #ff00ff;
}

/* Offers Specific */
.offer-card ul {
  list-style: disc;
  margin: 10px 0 15px 20px;
  color: #ffffff;
  opacity: 0.8;
}

.offer-card li {
  margin-bottom: 5px;
}

.offer-price {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: #00d4ff;
  font-weight: bold;
}

/* Alerts */
.alert {
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 10px;
  font-weight: 500;
  transition: opacity 0.5s ease;
}

.alert-success {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
  border-left: 4px solid #2E7D32;
}

.alert-error {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
  border-left: 4px solid #c62828;
}

/* Scroll animations */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

.services, .offers {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #111;
    width: 220px;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 3rem;
  }

  .services-grid,
  .portfolio-grid,
  .offers-grid {
    grid-template-columns: 1fr;
  }

  .contact-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .contact-button {
    width: 100%;
    max-width: 380px;
    justify-content: center;
  }

  .footer-contact h3 {
    font-size: 1.5rem;
  }

  .service-card,
  .offer-card {
    padding: 2rem 0.5rem;
  }
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: #000;
  color: white;
  padding: 8px;
  z-index: 1001;
  text-decoration: none;
}

.skip-link:focus {
  top: 6px;
}


/* Styles pour la modale */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 100%);
  border: 1px solid #00d4ff;
  border-radius: 15px;
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  position: relative;
  animation: modalAppear 0.5s ease-out;
}

@keyframes modalAppear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }

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

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.modal-title {
  color: #00d4ff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.modal-message {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-close {
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.loading-spinner {
  display: none;
  text-align: center;
  padding: 2rem;
}

.spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid #00d4ff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}


/* Styles pour la section contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info,
.contact-form {
  width: 100%;
}

.contact-method {
  margin-bottom: 2rem;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-method h4 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.contact-method a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: #00d4ff;
}

.contact-method p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* Styles responsives */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Sur mobile : formulaire en haut, contacts en bas */
  .contact-wrapper {
    display: flex;
    flex-direction: column;
  }

  .contact-form {
    order: -1;
    /* Met le formulaire en premier */
  }

  .contact-info {
    order: 1;
    /* Met les contacts en second */
  }

  .contact {
  padding: 0;
}
}

@media (max-width: 480px) {
  .contact-wrapper {
    gap: 1.5rem;
  }

  .contact-method {
    margin-bottom: 1.5rem;
  }
}


/* Styles pour la section contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  width: 100%;
}

.contact-info,
.contact-form {
  width: 100%;
}

.contact-method {
  margin-bottom: 2rem;
}

.contact-method:last-child {
  margin-bottom: 0;
}

.contact-method h4 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-method a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  display: block;
}

.contact-method a:hover {
  color: #00d4ff;
}

.contact-method p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.contact-schedule {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

/* Styles responsives */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    display: flex;
    flex-direction: column;
  }

  /* Sur mobile : formulaire en haut, contacts en bas */
  .contact-form {
    order: -1;
    /* Met le formulaire en premier */
    width: 100%;
    padding: 0.5rem;
  }

  .contact-info {
    order: 1;
    /* Met les contacts en second */
    width: 100%;
  }

  /* Assure que les cartes prennent toute la largeur */
  .contact-card,
  .form-card {
    width: 100%;
    margin: 0 auto;
  }


  .services, .offers {
    padding: 5rem 0.3rem;
    max-width: 1200px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .contact-wrapper {
    gap: 1.5rem;
    padding: 0 0.1rem;
    /* Un peu d'espace sur les côtés */
  }

  .contact-method {
    margin-bottom: 1.5rem;
  }

  /* Pour les très petits écrans, on réduit encore les marges */
  .contact-card,
  .form-card {
    margin: 0;
  }
}

/* Styles pour les éléments de formulaire */
.contact-card,
.form-card {
  height: auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.contact-title,
.form-title {
  color: #00d4ff;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: #fff;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  /* Important pour la largeur */
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #00d4ff;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

/* Responsive pour les petits mobiles */
@media (max-width: 480px) {

  .contact-card,
  .form-card {
    padding: 1.5rem;
    border-radius: 10px;
  }

  .contact-title,
  .form-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    padding: 0.875rem;
    font-size: 16px;
    /* Évite le zoom sur iOS */
  }

  .submit-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .contact-method h4 {
    font-size: 1rem;
  }

  .contact-method a {
    font-size: 1rem;
  }
}

/* Assure que le conteneur parent ne limite pas la largeur */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .contact-container {
    padding: 0;
  }
}