/* Uniteech Custom Styles - Couleurs violettes */

/* Variables de couleurs Uniteech */
:root {
  --uniteech-primary: #8B5CF6;
  --uniteech-primary-dark: #7C3AED;
  --uniteech-primary-light: #A78BFA;
  --uniteech-secondary: #6D28D9;
  --uniteech-accent: #C4B5FD;
}

/* Styles personnalisés pour Uniteech */

/* Couleurs principales */
.btn-primary {
  background-color: var(--uniteech-primary) !important;
  border-color: var(--uniteech-primary) !important;
}

.btn-primary:hover {
  background-color: var(--uniteech-primary-dark) !important;
  border-color: var(--uniteech-primary-dark) !important;
}

.text-primary {
  color: var(--uniteech-primary) !important;
}

.bg-primary {
  background-color: var(--uniteech-primary) !important;
}

/* Header et navigation */
.header-area .main-menu ul li a:hover {
  color: var(--uniteech-primary) !important;
}

/* Banner */
.banner-area .banner-content h1 {
  color: var(--uniteech-primary);
}

.banner-area .banner-content .btn-primary {
  background-color: var(--uniteech-primary);
  border-color: var(--uniteech-primary);
}

/* Section About */
.about-area .about-content h2 {
  color: var(--uniteech-primary);
}

.about-area .about-content .btn-primary {
  background-color: var(--uniteech-primary);
  border-color: var(--uniteech-primary);
}

/* Section Services */
.service-area .section-title h2 {
  color: var(--uniteech-primary);
}

.service-area .single-service .service-content h3 {
  color: var(--uniteech-primary);
}

.service-area .single-service .service-content .btn-primary {
  background-color: var(--uniteech-primary);
  border-color: var(--uniteech-primary);
}

/* Footer */
.footer-area .footer-content h3 {
  color: var(--uniteech-primary);
}

.footer-area .footer-content .btn-primary {
  background-color: var(--uniteech-primary);
  border-color: var(--uniteech-primary);
}

/* Animations et effets */
.btn-primary {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* Section Carte Google Maps */
.footer__maps-area {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.footer__maps-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%238B5CF6" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%238B5CF6" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%238B5CF6" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%238B5CF6" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%238B5CF6" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.maps-section {
  position: relative;
  z-index: 2;
}

.maps-header {
  margin-bottom: 2rem;
}

.maps-title {
  color: var(--uniteech-primary);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(139, 92, 246, 0.1);
}

.maps-description {
  color: #6c757d;
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.maps-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.1);
  backdrop-filter: blur(10px);
}

.info-item {
  display: flex;
  align-items: center;
  font-weight: 500;
  color: #495057;
  font-size: 0.95rem;
}

.info-item i {
  color: var(--uniteech-primary);
  font-size: 1.1rem;
}

.maps-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  background: white;
  padding: 20px;
}

.maps-container:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(139, 92, 246, 0.3);
}

.maps-wrapper {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.maps-actions {
  margin-top: 2rem;
}

.maps-btn {
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
}

.maps-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.btn-primary.maps-btn {
  background: linear-gradient(135deg, var(--uniteech-primary) 0%, var(--uniteech-primary-dark) 100%);
  border: none;
  color: white;
}

.btn-primary.maps-btn:hover {
  background: linear-gradient(135deg, var(--uniteech-primary-dark) 0%, var(--uniteech-secondary) 100%);
  color: white;
}

.btn-outline-primary.maps-btn {
  border: 2px solid var(--uniteech-primary);
  color: var(--uniteech-primary);
  background: transparent;
}

.btn-outline-primary.maps-btn:hover {
  background: var(--uniteech-primary);
  color: white;
  border-color: var(--uniteech-primary);
}

/* Styles pour le marqueur personnalisé */
.gm-style-iw {
  border-radius: 10px !important;
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3) !important;
}

.gm-style-iw-d {
  overflow: hidden !important;
  border-radius: 10px !important;
}

/* Responsive pour la carte */
@media (max-width: 768px) {
  .footer__maps-area {
    padding: 50px 0;
  }

  .maps-title {
    font-size: 2.2rem;
  }

  .maps-description {
    font-size: 1.1rem;
  }

  .maps-info {
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .info-item {
    justify-content: center;
    font-size: 0.9rem;
  }

  .maps-container {
    padding: 15px;
  }

  iframe {
    height: 300px !important;
  }

  .maps-actions {
    margin-top: 1.5rem;
  }

  .maps-btn {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .footer__maps-area {
    padding: 40px 0;
  }

  .maps-title {
    font-size: 1.8rem;
  }

  .maps-description {
    font-size: 1rem;
  }

  .maps-info {
    padding: 0.8rem;
    text-align: center;
  }

  .info-item {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .maps-container {
    padding: 10px;
  }

  iframe {
    height: 250px !important;
  }

  .maps-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .maps-btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  .maps-btn.ms-3 {
    margin-left: 0 !important;
  }
}

/* Contact Form Styles */
.contact-form-area {
  position: relative;
  overflow: hidden;
}

.contact-form-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contactPattern" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%238B5CF6" opacity="0.1"/><circle cx="10" cy="10" r="0.5" fill="%238B5CF6" opacity="0.05"/><circle cx="40" cy="40" r="0.5" fill="%238B5CF6" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23contactPattern)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.contact-form-wrapper {
  position: relative;
  z-index: 2;
}

.contact-form-container {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.1);
}

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

.form-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-label i {
  color: var(--uniteech-primary);
  font-size: 1rem;
}

.form-control {
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #FAFAFA;
  color: #374151;
}

.form-control:focus {
  border-color: var(--uniteech-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: white;
  outline: none;
}

/* Styles pour les inputs et selects du formulaire */
.contact__form .bg-transparent.bor {
  color: #333;
  background-color: #fff !important;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.contact__form .bg-transparent.bor:focus {
  outline: none;
  border-color: #8B5CF6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

/* Styles spécifiques pour les select */
.contact__form select.bg-transparent.bor {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238B5CF6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

/* Style pour l'option placeholder */
.contact__form select.bg-transparent.bor option[value=""] {
  color: #9CA3AF;
  font-style: italic;
}

/* Style pour le bouton de soumission */
.devis-submit-btn {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  transition: all 0.3s ease;
}

.devis-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Messages de succès/erreur */
#devisFormMessage {
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
}

#devisFormMessage.success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

#devisFormMessage.error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* Styles spécifiques pour les select */
select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%238B5CF6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

/* Style pour l'option placeholder */
select.form-control option[value=""] {
  color: #9CA3AF;
  font-style: italic;
}

select.form-control option:not([value=""]) {
  color: #374151;
  font-style: normal;
}

.form-control.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

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

.contact-submit-btn {
  background: linear-gradient(135deg, var(--uniteech-primary) 0%, var(--uniteech-primary-dark) 100%);
  border: none;
  color: white;
  padding: 15px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.contact-submit-btn:hover {
  background: linear-gradient(135deg, var(--uniteech-primary-dark) 0%, var(--uniteech-secondary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  color: white;
}

.contact-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.alert {
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 0;
  border: none;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
}

.alert-danger {
  background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
  color: white;
}

/* Responsive Contact Form */
@media (max-width: 768px) {
  .contact-form-container {
    padding: 25px;
    margin: 0 15px;
  }

  .contact-submit-btn {
    width: 100%;
    padding: 12px 30px;
  }
}

@media (max-width: 576px) {
  .contact-form-container {
    padding: 20px;
    margin: 0 10px;
  }

  .form-control {
    padding: 10px 14px;
  }

  .contact-submit-btn {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* Overlay sombre sur les images du banner slider pour améliorer la lisibilité du texte */
.banner__slider .swiper-slide {
  position: relative;
}

/* Overlay sombre avec dégradé pour améliorer la lisibilité du texte blanc */
.banner__slider .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.3) 0%,
      rgba(0, 0, 0, 0.5) 50%,
      rgba(0, 0, 0, 0.7) 100%);
  z-index: 0;
  pointer-events: none;
}

/* Assure que le contenu est au-dessus de l'overlay */
.banner__slider .container {
  position: relative;
  z-index: 1;
}

.banner__slider .banner__content {
  position: relative;
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  .banner-area .banner-content h1 {
    font-size: 2.5rem;
  }

  .about-area .about-content h2 {
    font-size: 2rem;
  }

  /* Overlay plus sombre sur mobile pour meilleure lisibilité */
  .banner__slider .slide-bg::after {
    background: rgba(0, 0, 0, 0.6);
  }
}

/* Fix pour le bouton "Devis Gratuit" dans le header */
.header__main .d-none.d-lg-inline-block {
  position: relative;
  z-index: 10;
}

.header__main .btn-one {
  position: relative;
  z-index: 10;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Assurer que le bouton est toujours au-dessus des autres éléments */
.header-area .btn-one {
  pointer-events: auto !important;
}
