/* css/pages/contact.css */
/* =========================================
   CONTACT
   ========================================= */

.contact-hero-section {
  position: relative;
  width: 100%;
  padding: 8rem 0 !important;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 680px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.contact-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/companyHQ.webp');
  background-size: cover;
  background-position: center;
  filter: blur(3px);
  transform: scale(1.02);
  z-index: 1;
}

.contact-hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.5) 13%,
      rgba(0, 0, 0, 0.4) 50%,
      rgba(0, 0, 0, 1) 88%);
  z-index: 2;
}

.contact-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-hero-title {
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 4px 4px 15px rgba(0, 0, 0, 0.75);
}

.contact-hero-title::after {
  content: none;
}

/* =========================================
   CONTACT INFO SECTION
   ========================================= */

.contact-info-section {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 6rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .contact-info-section {
    flex-direction: row;
    align-items: stretch;
  }

  .contact-info-content,
  .contact-map {
    flex: 1;
    min-width: 0;
    width: 50%;
  }
}

.contact-info-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-info-content .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 2rem;
  color: var(--accent-primary);
}

.contact-address {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item svg,
.contact-item svg path {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
  /* White by default */
  transition: fill 0.3s ease;
}

.contact-item a {
  color: var(--text-primary);
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Hover effects for both icon and link simultaneously */
.contact-item:hover a {
  color: var(--accent-primary);
}

.contact-item:hover svg,
.contact-item:hover svg path {
  fill: var(--accent-primary);
}

.contact-map {
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  min-height: 400px;
  border: 7px solid transparent;
  border-image: linear-gradient(to bottom left,
      transparent 0%,
      transparent 40%,
      var(--accent-primary) 100%) 1;
  display: flex;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: block;
  flex: 1;
  border: none;
}

/* =========================================
   NOS RÉSEAUX
   ========================================= */

.contact-socials-section {
  padding: 4rem 0 6rem 0;
}

.contact-socials-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--accent-primary);
}

.socials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding-top: 4rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background-color: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-card svg,
.social-card svg path {
  width: 24px;
  height: 24px;
  fill: var(--text-primary);
  transition: fill 0.3s ease;
}

.social-card:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.02);
}

.social-card:hover svg,
.social-card:hover svg path {
  fill: var(--accent-primary);
}

/* =========================================
   CONTACT FORM SECTION
   ========================================= */

.contact-form-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: -2rem;
  margin-bottom: -2rem;
  padding: 4rem 2rem 6rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #000000;
}

.contact-form-section .section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 3.5rem;
  width: 100%;
  max-width: calc(1200px - 4rem);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 1rem;
  margin-bottom: 2.5rem;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.contact-form-wrapper {
  width: 100%;
  max-width: calc(1200px - 4rem);
}

.contact-form-wrapper .contact-form {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  flex: none;
  /* Reset the flex property from contact-section.css */
}

/* =========================================
   CONTACT LINKS SECTION
   ========================================= */
.contact-links-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: radial-gradient(ellipse 80% 50% at center, var(--bg-tertiary) 0%, #000000 100%);
  display: flex;
  justify-content: center;
  margin-bottom: -2rem;
}

.contact-links-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 6rem 2rem 6rem 2rem;
  width: 100%;
  max-width: 1200px;
}

.contact-link-card {
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.contact-link-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.contact-link-card h2::after {
  content: none;
}

.contact-link-card p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.contact-link-card .btn {
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .contact-link-card:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 767px) {
  .contact-link-card:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}