/* ===== PAGE CONTACT - STYLES SPÉCIFIQUES ===== */

/* Variables personnalisées pour la page contact */
:root {
  --bg: #f5f5f5;
  --card: #ffffff;
  --text: #2c3e50;
  --muted: #6b7a86;
  --primary: #ff6600;
  --accent: #34495e;
  --success: #2ecc71;
  --gap: 20px;
}

/* Main Contact Container */
.contact-main {
  background: var(--bg);
  padding: 40px 0 80px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}

/* Hero Section */
.contact-hero {
  background-color: #f5f5f5;
  padding: 36px 0;
  margin-bottom: 30px;
}

.contact-hero .container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-hero h1 {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 6px;
}

.contact-hero p {
  color: var(--muted);
  max-width: 820px;
}

/* Two-Column Wrapper */
.contact-content .contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

/* Card Style for Columns */
.contact-infos,
.contact-form {
  background: var(--card);
  padding: 22px;
  box-shadow: 0 6px 20px rgba(44, 62, 80, 0.06);
  border: 1px solid rgba(44, 62, 80, 0.04);
}

/* Contact Info Column */
.contact-content .contact-infos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin: 0;
  padding-left: 8px;
}

/* Titles */
.contact-infos {
  margin-left: 15px;
}

.contact-infos h2,
.contact-form h2 {
  margin-left: 15px;
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 20px;
  letter-spacing: 0.2px;
}

/* Contact Items */
.contact-item {
  margin-left: 15px;
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  align-items: flex-start;
  width: 100%;
}

.contact-item:last-of-type {
  margin-bottom: 8px;
}

/* Icon Bubble */
.contact-icon {
  min-width: 44px;
  height: 44px;
  background: rgba(255, 102, 0, 0.08);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 102, 0, 0.12);
  margin-right: 6px;
}

/* Contact Details */
.contact-details {
  text-align: left;
  flex: 1 1 auto;
}

.contact-details h3 {
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--text);
}

.contact-details p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* Social Section */
.social-contact h3 {
  margin-left: 15px;
  margin: 10px 0 8px;
  color: var(--text);
}

/* CHANGEMENT DE NOMS DE CLASSES POUR ÉVITER CONFLIT FOOTER */
.contact-page-social-list {
  margin-left: 15px;
  display: flex;
  gap: 10px;
  margin-top: 6px;
  justify-content: flex-start;
  align-items: center;
}

.contact-page-social-link {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  text-decoration: none;
  border: 1px solid rgba(44, 62, 80, 0.06);
  background: rgba(52, 73, 94, 0.03);
  color: var(--accent); /* Couleur grise par défaut */
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.contact-page-social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(52, 73, 94, 0.08);
  background: var(--primary); /* Devient orange au survol */
  color: #fff; /* Devient blanc au survol */
}

/* ========== FORM ========== */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(44, 62, 80, 0.08);
  background: #fff;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Focus State */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 6px 18px rgba(52, 73, 94, 0.06);
  border-color: var(--primary);
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Submit Button */
.submit-btn {
  margin-top: 6px;
  align-self: start;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 12px 18px;
  background: linear-gradient(90deg, var(--primary), #e85a00);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(255, 102, 0, 0.18);
  transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.12s ease;
}

.submit-btn i {
  font-size: 14px;
}

.submit-btn:hover {
  transform: translateY(-3px);
}

.submit-btn:active {
  transform: translateY(0);
  opacity: 0.95;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE SPÉCIFIQUE PAGE CONTACT ===== */
@media (max-width: 1000px) {
  .contact-content .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-hero h1 {
    font-size: 28px;
  }

  .contact-hero p {
    font-size: 15px;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .contact-main {
    padding: 24px 0 40px;
  }

  .contact-hero {
    padding: 20px 0;
  }

  .contact-hero h1 {
    font-size: 22px;
  }

  .contact-infos,
  .contact-form {
    padding: 16px;
  }

  .contact-icon {
    min-width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* ATTENTION : Mise à jour responsive aussi */
  .contact-page-social-link {
    width: 36px;
    height: 36px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 10px 12px;
    font-size: 14px;
  }
}