/* ==========================================
   STYLES SPÉCIFIQUES À LA PAGE CONTACT
   ========================================== */

/* Arrière-plan animé avec motif logistique/tech */
.bg-pattern-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #f8f9fa;
  background-image: radial-gradient(#0d6efd 1px, transparent 1px), radial-gradient(#0d6efd 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.05;
  animation: scrollPattern 20s linear infinite;
}

@keyframes scrollPattern {
  0% { background-position: 0 0, 20px 20px; }
  100% { background-position: 40px 40px, 60px 60px; }
}

/* Hero Contact */
.contact-hero {
  background: linear-gradient(135deg, #002b6b 0%, #0d6efd 100%);
  color: white;
  text-align: center;
  padding: 80px 20px;
  margin-bottom: 40px;
}

.contact-hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.contact-hero p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0.9;
}

.contact-hero .sub-text-animated {
  color: #f0f4f8 !important;
  font-weight: 400;
  line-height: 1.7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Grille des Réseaux Sociaux */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.social-card {
  display: flex;
  align-items: flex-start;
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-left: 5px solid transparent;
  position: relative;
  overflow: hidden;
}

.social-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.social-icon {
  font-size: 2.5rem;
  margin-right: 20px;
  transition: transform 0.3s ease;
}

.social-card:hover .social-icon {
  transform: scale(1.1);
}

.social-info h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #111;
}

.social-info p {
  margin: 0 0 15px 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.5;
}

.social-btn-link {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

/* Couleurs de marque (Brands) */
.whatsapp { border-left-color: #25D366; }
.whatsapp .social-icon, .whatsapp .social-btn-link { color: #25D366; }

.telegram { border-left-color: #0088cc; }
.telegram .social-icon, .telegram .social-btn-link { color: #0088cc; }

.email { border-left-color: #ea4335; }
.email .social-icon, .email .social-btn-link { color: #ea4335; }

.linkedin { border-left-color: #0A66C2; }
.linkedin .social-icon, .linkedin .social-btn-link { color: #0A66C2; }

.facebook { border-left-color: #1877F2; }
.facebook .social-icon, .facebook .social-btn-link { color: #1877F2; }

/* Instagram : dégradé un peu spécial */
.instagram { 
  border-left: 5px solid transparent; 
  border-image: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) 1;
}
.instagram .social-icon i {
  background: -webkit-linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.instagram .social-btn-link { color: #dc2743; }

.discord { border-left-color: #5865F2; }
.discord .social-icon, .discord .social-btn-link { color: #5865F2; }

.twitter { border-left-color: #000000; }
.twitter .social-icon, .twitter .social-btn-link { color: #000000; }

.github { border-left-color: #333333; }
.github .social-icon, .github .social-btn-link { color: #333333; }

.twitch { border-left-color: #9146FF; }
.twitch .social-icon, .twitch .social-btn-link { color: #9146FF; }

.pinterest { border-left-color: #E60023; }
.pinterest .social-icon, .pinterest .social-btn-link { color: #E60023; }

/* Snapchat : fond très clair, icône sombre pour ressortir */
.snapchat { border-left-color: #FFFC00; }
.snapchat .social-icon { color: #e6e200; text-shadow: 1px 1px 0px #000; }
.snapchat .social-btn-link { color: #c4c100; }

/* Section Formulaire */
.contact-form-section {
  margin-top: 60px;
  padding-bottom: 60px;
}

.form-wrapper {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
}

.form-wrapper h2 {
  color: #002b6b;
  margin-bottom: 10px;
}

.form-wrapper p {
  color: #666;
  margin-bottom: 30px;
}

.form-row {
  display: flex;
  gap: 20px;
}

.input-box {
  flex: 1;
  margin-bottom: 20px;
}

.input-box label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #444;
}

.input-box label i {
  color: #0d6efd;
  margin-right: 5px;
}

.input-box input,
.input-box textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-box input:focus,
.input-box textarea:focus {
  outline: none;
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* ============================================================
   1. TEXTES & ICÔNES ANIMÉS
   ============================================================ */
.animated-gradient-text {
  background: linear-gradient(90deg, #002b6b, #0d6efd, #00c6ff, #002b6b);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 6s ease infinite;
  display: inline-block;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.sub-text-animated {
  color: #555;
  transition: color 0.3s ease;
}

.icon-animated {
  color: #0d6efd;
  display: inline-block;
  margin-right: 8px;
}

/* Halo lumineux à pulsation pour la modale */
.icon-pulse-wrapper {
  width: 70px;
  height: 70px;
  margin: 0 auto 15px auto;
  border-radius: 50%;
  background: rgba(13, 110, 253, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #0d6efd;
  box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* ============================================================
   2. REFONTE DES BOUTONS (MODERNES & INTERACTIFS)
   ============================================================ */
.send-message-btn,
.btn-modern,
.auth-submit-btn {
  position: relative;
  background: linear-gradient(135deg, #0d6efd 0%, #0044b4 100%);
  color: #ffffff;
  border: none;
  padding: 15px 30px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}

.send-message-btn::before,
.btn-modern::before,
.auth-submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
  z-index: -1;
}

.send-message-btn:hover::before,
.btn-modern:hover::before,
.auth-submit-btn:hover::before {
  left: 100%;
}

.send-message-btn:hover,
.btn-modern:hover,
.auth-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.45);
  background: linear-gradient(135deg, #1172ff 0%, #003696 100%);
}

.send-message-btn:active,
.btn-modern:active,
.auth-submit-btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

/* ============================================================
   3. STYLES DE LA MODALE DE CONFIRMATION (POPUP)
   ============================================================ */
.confirmation-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.confirmation-modal .confirm-modal-content {
  background: #ffffff;
  margin: 4% auto;
  padding: 30px;
  border-radius: 16px;
  max-width: 550px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: modalSlideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header-animated {
  text-align: center;
  margin-bottom: 20px;
}

.modal-header-animated h3 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.modal-header-animated p {
  font-size: 0.9rem;
  color: #666;
}

/* Boîte de récapitulatif des données */
.recap-container {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.recap-item {
  font-size: 0.95rem;
  color: #333;
  word-break: break-word;
}

.recap-item strong {
  color: #002b6b;
  margin-right: 5px;
}

.recap-message-box {
  border-top: 1px dashed #ccc;
  padding-top: 10px;
  margin-top: 5px;
}

.recap-message-box p {
  background: #ffffff;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #eee;
  font-style: italic;
  margin-top: 5px;
  color: #555;
  max-height: 120px;
  overflow-y: auto;
}

.send-options-title {
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  text-align: center;
  font-size: 1rem;
}

/* Grille d'options d'envoi */
.send-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.option-btn i {
  font-size: 1.8rem;
}

.option-text {
  display: flex;
  flex-direction: column;
}

.option-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.option-sub {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* Option WhatsApp */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}
.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* Option Telegram */
.btn-telegram {
  background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
}
.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 136, 204, 0.4);
}

.cancel-btn {
  width: 100%;
  background: transparent;
  border: 1px solid #ddd;
  color: #666;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.cancel-btn:hover {
  background: #f1f1f1;
  color: #333;
}

/* ============================================================
   4. SYSTÈME DE NOTIFICATION TOAST / ALERTES
   ============================================================ */
#toastContainer {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custom-toast {
  min-width: 300px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-left: 6px solid #28a745;
  animation: toastIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  transition: all 0.3s ease;
}

.custom-toast.error {
  border-left-color: #dc3545;
}

.custom-toast.warning {
  border-left-color: #ffc107;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   5. ANIMATIONS AU SCROLL & RESPONSIVE
   ============================================================ */
.scroll-animate {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.scroll-animate.show {
  opacity: 1;
  transform: none;
}

/* Différents effets de base */
.fade-up { transform: translateY(50px); }
.fade-down { transform: translateY(-50px); }
.slide-left { transform: translateX(-50px); }
.slide-right { transform: translateX(50px); }
.zoom-in { transform: scale(0.9); }
.flip-up { transform: perspective(400px) rotateX(20deg); }

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .contact-hero {
    padding: 50px 15px;
  }
}

@media (max-width: 576px) {
  .send-options-grid {
    grid-template-columns: 1fr;
  }
}
