/* ================================================================
   BERGEC — Styles de la page Contact
   ================================================================ */

/* En-tête de page (cohérent avec les autres pages) */
.page-entete {
  background: linear-gradient(135deg, var(--sombre) 0%, var(--bleu-fonce) 50%, var(--bleu) 100%);
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.entete-corps { position: relative; z-index: 2; }
.page-entete .titre-section { font-size: clamp(30px, 5vw, 50px); margin-top: 12px; }
.entete-decor {
  position: absolute; bottom: -1px; left: 0; right: 0; height: 60px;
  background: var(--blanc);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* ── Grille principale : gauche (infos) / droite (formulaire) ── */
.contact-grille {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

/* ── Colonne gauche ── */
.contact-gauche {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Carte d'information de contact (adresse, tél, email) */
.info-contact {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon);
  padding: 20px 22px;
  transition: var(--transition);
}

.info-contact:hover {
  border-color: var(--bleu);
  box-shadow: var(--ombre);
  transform: translateX(4px);
}

/* Icône ronde colorée */
.ic-icone {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--bleu), var(--bleu-clair));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blanc);
  font-size: 16px;
  flex-shrink: 0;
  transition: var(--transition);
}

.info-contact:hover .ic-icone {
  background: linear-gradient(135deg, var(--rouge-fonce), var(--rouge));
}

.info-contact h4 {
  font-family: var(--police-titre);
  font-size: 13px;
  font-weight: 700;
  color: var(--sombre);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.info-contact p,
.info-contact a {
  font-size: 14px;
  color: var(--discret);
  display: block;
  line-height: 1.7;
  transition: color 0.2s;
}

.info-contact a:hover { color: var(--bleu); }

/* ── Bouton WhatsApp ── */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: var(--blanc);
  border-radius: var(--rayon);
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--police-titre);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp i { font-size: 20px; }

.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
}

/* ── Bloc FAQ ── */
.boite-faq {
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--rayon-lg);
  padding: 24px;
  margin-top: 6px;
}

.boite-faq h3 {
  font-family: var(--police-titre);
  font-size: 15px;
  font-weight: 700;
  color: var(--sombre);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fond-clair);
}

/* ── Colonne droite : enveloppe du formulaire ── */
.formulaire-enveloppe {
  background: var(--blanc);
  border-radius: var(--rayon-lg);
  padding: 38px 40px;
  border: 1px solid var(--bordure);
  box-shadow: var(--ombre-lg);
  position: sticky;
  top: 100px;
}

/* En-tête du formulaire */
.form-entete {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--fond-clair);
}

.form-entete h3 {
  font-family: var(--police-titre);
  font-size: 22px;
  font-weight: 700;
  color: var(--sombre);
  margin-bottom: 6px;
}

.form-entete p {
  font-size: 14px;
  color: var(--discret);
}

/* ── Champs du formulaire ── */
/* (base déjà dans style.css : .champ-form, .rangee-form, input, select, textarea) */

/* Ligne de séparation visuelle entre les groupes de champs */
.champ-form + .champ-form,
.rangee-form + .champ-form,
.rangee-form + .rangee-form { margin-top: 6px; }

/* Séparateur visuel avant la zone de message */
.champ-form:has(textarea) { margin-top: 4px; }

/* ── Bouton d'envoi ── */
#boutonEnvoi {
  width: 100%;
  margin-top: 8px;
  padding: 16px;
  font-size: 16px;
  gap: 10px;
  justify-content: center;
  border-radius: var(--rayon);
}

#boutonEnvoi i { font-size: 18px; }

/* État de chargement du bouton */
#boutonEnvoi.chargement {
  opacity: 0.75;
  pointer-events: none;
}

/* État de succès du bouton */
#boutonEnvoi.succes {
  background: #16a34a;
  border-color: #16a34a;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .contact-grille {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .formulaire-enveloppe {
    position: static;
  }
}

@media (max-width: 768px) {
  .formulaire-enveloppe {
    padding: 26px 22px;
  }
  .info-contact {
    padding: 16px 18px;
  }
}
