/* ============================================
   APPSM - PAGE CONTACT PREMIUM
   Fichier: css/contact.css
============================================ */

/* ============================================
   1. SECTION CARTES CONTACT
============================================ */
.contact-cards-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-cards-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-cards-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  position: relative;
  z-index: 2;
}

.contact-card {
  background: linear-gradient(135deg, var(--white) 0%, #f8f5fa 100%);
  padding: 40px 25px 35px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 10px 30px rgba(74, 30, 92, 0.1);
  border-top: 5px solid var(--orange);
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.contact-card-decoration {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 45, 142, 0.05) 0%,
    transparent 70%
  );
  transition: all 0.5s ease;
  pointer-events: none;
}

.contact-card:hover .contact-card-decoration {
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.15) 0%,
    transparent 70%
  );
  transform: scale(1.4);
}

.contact-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(74, 30, 92, 0.2);
  border-top-color: var(--purple);
}

.contact-card-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
  transition: all 0.5s ease;
  box-shadow: 0 10px 25px rgba(91, 45, 142, 0.3);
  position: relative;
  z-index: 2;
}

.contact-card:hover .contact-card-icon {
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 12px 30px rgba(232, 103, 42, 0.5);
}

.contact-card-title {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  z-index: 2;
}

.contact-card-info {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
  margin: 0;
  position: relative;
  z-index: 2;
}

.contact-card-info a {
  color: var(--gray-600);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.contact-card-info a:hover {
  color: var(--orange);
}

.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.phone-link {
  color: var(--gray-600);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: color 0.3s ease;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(91, 45, 142, 0.05);
}

.phone-link:hover {
  color: var(--white);
  background: var(--orange);
}

/* ============================================
   2. SECTION FORMULAIRE + CARTE
============================================ */
.contact-form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #ede7f2 0%, #e4daee 100%);
  position: relative;
  overflow: hidden;
}

.contact-form-section::before {
  content: "";
  position: absolute;
  top: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 103, 42, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* FORMULAIRE */
.contact-form-wrapper {
  background: var(--white);
  padding: 45px 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(74, 30, 92, 0.15);
  border-top: 5px solid var(--orange);
}

.form-header {
  margin-bottom: 30px;
}

.form-header .section-label {
  color: var(--orange);
  justify-content: flex-start;
  margin-bottom: 12px;
}

.form-header .section-label::before {
  display: none;
}

.form-title {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.form-title span {
  color: var(--purple);
  position: relative;
}

.form-title span::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 6px;
  background: rgba(232, 103, 42, 0.25);
  z-index: -1;
  border-radius: 4px;
}

.form-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--orange) 0%,
    var(--orange-light) 100%
  );
  border-radius: 3px;
  margin-bottom: 15px;
}

.form-intro {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group label i {
  color: var(--orange);
  font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 2px solid rgba(91, 45, 142, 0.15);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--navy);
  font-family: "Inter", sans-serif;
  transition: all 0.3s ease;
  background: var(--off-white);
  font-weight: 500;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 5px 20px rgba(232, 103, 42, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  font-family: "Inter", sans-serif;
}

.form-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 10px 25px rgba(232, 103, 42, 0.4);
  font-family: "Poppins", sans-serif;
}

.form-submit-btn:hover {
  background: linear-gradient(
    135deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(91, 45, 142, 0.5);
}

.form-submit-btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.form-submit-btn:hover i {
  transform: translateX(5px);
}

/* CARTE MAPS */
.contact-map-wrapper {
  background: var(--white);
  padding: 45px 40px;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(74, 30, 92, 0.15);
  display: flex;
  flex-direction: column;
  border-top: 5px solid var(--purple);
}

.map-header {
  margin-bottom: 25px;
}

.map-header .section-label {
  color: var(--purple);
  justify-content: flex-start;
  margin-bottom: 12px;
}

.map-header .section-label::before {
  display: none;
}

.map-title {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.map-title span {
  color: var(--orange);
}

.map-line {
  width: 60px;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--purple) 0%,
    var(--purple-light) 100%
  );
  border-radius: 3px;
  margin-bottom: 15px;
}

.map-intro {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.6;
  margin: 0;
}

.contact-map {
  flex: 1;
  min-height: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(74, 30, 92, 0.15);
  margin-top: 20px;
  border: 3px solid var(--white);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  display: block;
}

.map-info {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.map-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 180px;
  padding: 12px 15px;
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.05) 0%,
    rgba(232, 103, 42, 0.05) 100%
  );
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.map-info-item:hover {
  background: linear-gradient(
    135deg,
    rgba(91, 45, 142, 0.1) 0%,
    rgba(232, 103, 42, 0.1) 100%
  );
  transform: translateY(-3px);
}

.map-info-item i {
  width: 40px;
  height: 40px;
  background: linear-gradient(
    135deg,
    var(--orange) 0%,
    var(--orange-dark) 100%
  );
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(232, 103, 42, 0.3);
}

.map-info-item div {
  display: flex;
  flex-direction: column;
}

.map-info-item strong {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.map-info-item span {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
}

/* ============================================
   3. SECTION RÉSEAUX SOCIAUX
============================================ */
.contact-social-section {
  padding: 80px 0;
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-social-section::after {
  content: "";
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(91, 45, 142, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.social-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  position: relative;
  z-index: 2;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--white);
  transition: all 0.4s ease;
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.social-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.social-btn:hover::before {
  left: 100%;
}

.social-btn:hover {
  transform: translateY(-8px);
}

.social-btn-icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.social-btn:hover .social-btn-icon {
  background: var(--white);
  color: var(--navy);
  transform: rotate(-10deg) scale(1.1);
}

.social-btn-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.social-btn-label {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
}

.social-btn-value {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.3;
  color: var(--white);
  font-weight: 500;
}

.social-btn-arrow {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateX(-10px);
}

.social-btn:hover .social-btn-arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--white);
  color: var(--navy);
}

/* Couleurs par réseau */
.social-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-whatsapp:hover {
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

.social-facebook {
  background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.social-facebook:hover {
  box-shadow: 0 15px 35px rgba(24, 119, 242, 0.5);
}

.social-linkedin {
  background: linear-gradient(135deg, #0077b5 0%, #005582 100%);
}

.social-linkedin:hover {
  box-shadow: 0 15px 35px rgba(0, 119, 181, 0.5);
}

.social-tiktok {
  background: linear-gradient(135deg, #fe2c55 0%, #25f4ee 100%);
}

.social-tiktok:hover {
  box-shadow: 0 15px 35px rgba(254, 44, 85, 0.5);
}

/* ============================================
   4. RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .contact-cards-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .contact-cards-section,
  .contact-form-section,
  .contact-social-section {
    padding: 60px 0;
  }

  .contact-form-wrapper,
  .contact-map-wrapper {
    padding: 30px 25px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-title,
  .map-title {
    font-size: 22px;
  }

  .map-info {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .social-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper,
  .contact-map-wrapper {
    padding: 25px 20px;
  }
}
