/* =============================================
   ITWIN TECHNOLOGIES – contact.css
   Styles spécifiques à la page Contact
   Dépend de style.css (chargé en premier)
   ============================================= */

/* =============================================
   SECTION CONTACT PRINCIPALE
   Fond gris très clair, padding haut/bas généreux
   ============================================= */
.contact-section {
  padding: 48px 0 64px;
  background: #f7f9fb;
}

/* =============================================
   CARTE GÉNÉRIQUE (.contact-card)
   Base commune pour la carte formulaire
   et la carte d'informations de contact
   ============================================= */
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  height: 100%;
  /* Animation d'entrée : invisible par défaut, révélée via .visible (JS) */
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .6s ease,
    transform .6s ease,
    box-shadow .3s;
}
/* État visible déclenché par JS (DOMContentLoaded) */
.contact-card.visible {
  opacity: 1;
  transform: none;
}
/* Ombre plus prononcée au survol */
.contact-card:hover { box-shadow: var(--shadow-hover); }

/* ---- Titre de carte ---- */
.card-heading {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green-light);
  margin-bottom: 28px;
  position: relative;
  padding-bottom: 12px;
}
/* Ligne rouge courte sous le titre */
.card-heading::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* =============================================
   FORMULAIRE DE CONTACT
   ============================================= */
.contact-form .form-control {
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--body-font);
  font-size: 0.88rem;
  color: var(--dark);
  padding: 13px 16px;
  background: #fdfdfd;
  transition: border-color .2s, box-shadow .2s;
  margin-bottom: 14px;
}
/* Placeholder visible en noir */
.contact-form .form-control::placeholder { color: var(--dark); }

/* Focus : contour vert avec lueur douce */
.contact-form .form-control:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(39,174,96,.12);
  outline: none;
  background: #fff;
}

/* Textarea : hauteur minimale et redimensionnable verticalement */
.contact-form textarea.form-control {
  min-height: 130px;
  resize: vertical;
}

/* Bouton d'envoi pleine largeur */
.btn-send {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: .5px;
  padding: 15px;
  margin-top: 6px;
  transition: background .2s, transform .2s, box-shadow .2s;
  position: relative;   /* Nécessaire pour l'effet ripple */
  overflow: hidden;     /* Contient le span ripple */
}
.btn-send:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,107,60,.3);
}
.btn-send:active { transform: translateY(0); }

/* ---- Effet Ripple sur le bouton d'envoi ---- */
/* Créé dynamiquement par JS au clic */
.btn-send .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  transform: scale(0);
  animation: ripple-anim .6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* =============================================
   MESSAGE DE SUCCÈS
   Affiché après envoi du formulaire (via JS)
   ============================================= */
.success-msg {
  display: none; /* Caché par défaut */
  text-align: center;
  padding: 20px;
  color: var(--green);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  animation: fadeIn .4s ease;
}
.success-msg i {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 10px;
}
/* Animation d'apparition douce */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* =============================================
   CARTE D'INFORMATIONS DE CONTACT
   Liste d'items (email, téléphone, adresse…)
   ============================================= */
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: background .2s;
}
.info-item:last-of-type { border-bottom: none; }

/* Cercle icône avec contour vert */
.info-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-light);
  font-size: 1rem;
  transition: background .2s, color .2s;
}
/* Remplissage du cercle au survol de l'item parent */
.info-item:hover .info-icon {
  background: var(--green-light);
  color: #fff;
}

/* Texte à droite de l'icône */
.info-text strong {
  display: block;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.info-text span,
.info-text a {
  font-size: 0.9rem;
  color: var(--text);
  transition: color .2s;
}
.info-text a:hover { color: var(--green-light); }
.info-text small {
  display: block;
  font-size: 0.78rem;
  color: var(--text);
  margin-top: 2px;
}

/* ---- Bloc réseaux sociaux dans la carte info ---- */
.social-section { margin-top: 24px; }
.social-section h6 {
  font-family: var(--font);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
  color: var(--green-light);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Cercles colorés pour chaque réseau social */
.social-circles { display: flex; gap: 10px; flex-wrap: wrap; }
.social-circle {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.social-circle:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}
/* Couleurs officielles de chaque plateforme */
.sc-linkedin  { background: #0A66C2; }
.sc-facebook  { background: #1877F2; }
.sc-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.sc-youtube   { background: #FF0000; }

/* =============================================
   COLONNE DROITE (HÉRO TEXTE + CARTE MAP)
   Animation d'entrée depuis la droite
   ============================================= */
.right-col {
  opacity: 0;
  transform: translateX(28px);
  transition:
    opacity .6s ease .1s,  /* Délai de 0.1s pour décaler légèrement l'animation */
    transform .6s ease .1s;
}
.right-col.visible {
  opacity: 1;
  transform: none;
}

/* Bloc de texte accroche au-dessus de la carte map */
.hero-text-block { margin-bottom: 28px; }
.hero-text-block h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero-text-block p {
  font-size: 0.92rem;
  color: var(--dark);
  line-height: 1.75;
  max-width: 320px;
  margin: 0 auto;
  text-align: center;
}

/* ---- Conteneur de la carte Google Maps ---- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
}
.map-container iframe {
  width: 100%;
  height: 260px;
  border: none;
  display: block;
  filter: grayscale(10%);
  transition: filter .3s;
}
/* Désaturation supprimée au survol pour afficher la carte en couleur */
.map-container:hover iframe { filter: grayscale(0); }

/* =============================================
   BADGE NUMÉRO DE PAGE (optionnel)
   Pastille fixée en bas à droite
   ============================================= */
.page-badge {
  position: fixed;
  bottom: 0; right: 0;
  background: var(--green);
  color: #fff;
  font-family: var(--font);
  font-weight: 900;
  font-size: 1.4rem;
  padding: 12px 18px;
  border-radius: 10px 0 0 0;
  z-index: 100;
  box-shadow: -2px -2px 12px rgba(0,0,0,.15);
}

/* =============================================
   RESPONSIVE – Mobile (< 768px)
   ============================================= */
@media (max-width: 767px) {
  .topbar-right { display: none !important; } /* Masquer les réseaux sociaux topbar */
  .hero-text-block h2 { font-size: 1.6rem; }
  .contact-card { padding: 24px 18px; }
}