/* Variables CSS */
:root {
  --vhx: #23f6c8;
  --vhx2: #2dd4bf;
  --bg: #0b0c0d;
}

/* Background principal avec gradients */
body {
  background:
    radial-gradient(1100px 700px at 10% 0%, rgba(35,246,200,.08), transparent 60%),
    radial-gradient(1100px 700px at 90% 100%, rgba(124,58,237,.08), transparent 60%),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

/* Effet glass morphism */
.glass {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

/* Ombre douce pour les éléments en relief */
.ring-soft {
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}

/* Effet de glow pour le logo */
.hx {
  filter: drop-shadow(0 8px 28px rgba(35,246,200,.25));
}

/* Animation des boutons */
.btn {
  transition: transform .08s ease, box-shadow .25s ease;
}

.btn:active {
  transform: translateY(1px);
}

/* Style des éléments kbd (raccourcis clavier) */
.kbd {
  border: 1px solid rgba(255,255,255,.15);
  border-bottom-width: 2px;
}

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

/* Animation hover pour les cartes de contact */
.contact-card {
  transition: transform 0.2s ease;
  /* Pas d'opacity par défaut pour éviter les problèmes */
}

.contact-card:hover {
  transform: translateY(-2px);
}

/* Effet glow pour les icônes */
.icon-glow {
  filter: drop-shadow(0 4px 12px rgba(35,246,200,.3));
}

/* Assurer que les cartes sont visibles par défaut */
.contact-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Formulaire de contact */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  ring: 2px;
  ring-color: rgba(52, 211, 153, 0.5);
}

/* Animation du bouton d'envoi */
.contact-form button[type="submit"] {
  position: relative;
  overflow: hidden;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* States pour les animations du formulaire */
.form-success {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(22, 163, 74, 0.1));
  border-color: rgba(34, 197, 94, 0.3);
}

.form-error {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  border-color: rgba(239, 68, 68, 0.3);
}

/* Badge de confidentialité */
.privacy-badge {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments pour la section contact */
@media (max-width: 768px) {
  .contact-card {
    margin-bottom: 1rem;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
}

/* Animation subtile pour les liens email */
.contact-email {
  position: relative;
  transition: all 0.3s ease;
}

.contact-email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.contact-email:hover::after {
  width: 100%;
}

/* Icônes des réseaux sociaux */
.social-link {
  transition: all 0.3s ease;
  position: relative;
}

.social-link:hover {
  transform: translateY(-1px);
}

.social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover::before {
  opacity: 1;
}