/* Section Contact Ultra-Moderne */

.modern-contact {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

/* Arrière-plan animé */
.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.contact-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0, 86, 179, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(148, 216, 21, 0.05) 0%, transparent 50%);
  animation: patternFloat 20s ease-in-out infinite;
}

.contact-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 86, 179, 0.02) 0%,
    transparent 25%,
    transparent 75%,
    rgba(148, 216, 21, 0.02) 100%
  );
}

@keyframes patternFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

/* Container principal */
.modern-contact .container {
  position: relative;
  z-index: 2;
}

/* En-tête de section */
.contact-header {
  text-align: center;
  margin-bottom: 80px;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 86, 179, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 86, 179, 0.2);
}

.contact-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.contact-title .highlight {
  background: linear-gradient(135deg, var(--primary-color), #94d815);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-subtitle {
  font-size: 1.2rem;
  color: var(--gray-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Contenu principal */
.contact-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
}

/* Informations de contact */
.contact-info-modern {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.contact-info-header {
  margin-bottom: 40px;
}

.contact-info-header h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.contact-info-header p {
  color: var(--gray-color);
  font-size: 1.1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.contact-method:hover {
  background: rgba(0, 86, 179, 0.05);
  transform: translateX(10px);
}

.method-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), #007bff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.method-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.method-content p {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.method-note {
  font-size: 0.9rem;
  color: var(--gray-color);
  font-style: italic;
}

/* Formulaire moderne */
.contact-form-modern {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.form-header {
  margin-bottom: 40px;
}

.form-header h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--gray-color);
  font-size: 1.1rem;
}

/* Champs de formulaire */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-field {
  position: relative;
  margin-bottom: 30px;
}

.form-field label {
  display: block;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 2px solid #e2e8f0;
  background: transparent;
  font-size: 1rem;
  color: var(--dark-color);
  transition: all 0.3s ease;
  outline: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--primary-color);
}

.form-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary-color), #94d815);
  transition: width 0.3s ease;
}

.form-field input:focus + .form-line,
.form-field select:focus + .form-line,
.form-field textarea:focus + .form-line {
  width: 100%;
}

/* Bouton de soumission */
.form-actions {
  margin-top: 40px;
  text-align: center;
}

.submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, var(--primary-color), #007bff);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 86, 179, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 86, 179, 0.4);
}

.btn-ripple {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
}

.submit-btn:active .btn-ripple {
  transform: scale(1);
}

.form-note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--gray-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Section carte */
.map-section {
  margin-top: 80px;
}

.map-header {
  text-align: center;
  margin-bottom: 40px;
}

.map-header h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-color);
  margin-bottom: 1rem;
}

.map-header p {
  font-size: 1.1rem;
  color: var(--gray-color);
}

.map-container-modern {
  position: relative;
  height: 400px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.map-info h4 {
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
}

.map-info p {
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* Mode sombre */
.dark-theme .modern-contact {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

.dark-theme .contact-info-modern,
.dark-theme .contact-form-modern {
  background: rgba(45, 55, 72, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-theme .contact-method:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dark-theme .form-field input,
.dark-theme .form-field select,
.dark-theme .form-field textarea {
  color: #e2e8f0;
  border-bottom-color: #4a5568;
}

.dark-theme .map-overlay {
  background: rgba(45, 55, 72, 0.95);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .contact-title {
    font-size: 3rem;
  }

  .contact-main {
    gap: 60px;
  }

  .contact-info-modern,
  .contact-form-modern {
    padding: 30px;
  }
}

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

  .contact-header {
    margin-bottom: 60px;
  }

  .contact-title {
    font-size: 2.5rem;
  }

  .contact-subtitle {
    font-size: 1.1rem;
  }

  .contact-main {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-info-modern,
  .contact-form-modern {
    padding: 25px;
  }

  .contact-methods {
    gap: 20px;
  }

  .contact-method {
    padding: 15px;
  }

  .method-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .map-container-modern {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .modern-contact {
    padding: 60px 0;
  }

  .contact-title {
    font-size: 2rem;
  }

  .contact-badge {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }

  .contact-info-modern,
  .contact-form-modern {
    padding: 20px;
    border-radius: 16px;
  }

  .contact-method {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .method-icon {
    align-self: center;
  }

  .submit-btn {
    padding: 16px 30px;
    font-size: 1rem;
  }

  .map-container-modern {
    height: 250px;
    border-radius: 16px;
  }
}

/* Animations d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-header,
.contact-info-modern,
.contact-form-modern,
.map-section {
  animation: fadeInUp 0.8s ease-out;
}

.contact-info-modern {
  animation-delay: 0.2s;
}

.contact-form-modern {
  animation-delay: 0.4s;
}

.map-section {
  animation-delay: 0.6s;
}
