/* CSS moderne pour la page de contact */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

main {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  min-height: calc(100vh - 160px);
}

h1 {
  color: #fff;
  margin-bottom: 40px;
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Formulaire de contact moderne */
.contact-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 25px;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  max-width: 700px;
  margin: 0 auto;
}

.contact-form:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(138, 43, 226, 0.4);
}

.contact-form label {
  display: block;
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  font-size: 16px;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(138, 43, 226, 0.8);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
  transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.contact-form button {
  background: linear-gradient(135deg, #8a2be2, #4b0082);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(138, 43, 226, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.contact-form button:hover::before {
  left: 100%;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #9932cc, #6a0dad);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 20px 40px rgba(138, 43, 226, 0.6);
}

/* Popup moderne */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(75, 20, 140, 0.95);
  backdrop-filter: blur(15px);
  color: white;
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup:not(.hidden) {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.popup.hidden {
  display: none;
}

/* Classes d'animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Effets de particules flottantes */
.floating-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.3;
  }
}

.popup-content {
  text-align: center;
  font-size: 16px;
}

.popup-content p {
  margin: 0;
}