/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  line-height: 1.6;
}

/* Section hero avec image */
.hero {
  position: relative;
  min-height: 100vh;
  background: url("assets/hero.png") no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 20px;
}

.brand {
  font-size: 3rem;
  font-weight: 700;
}

.tagline {
  font-size: 1.5rem;
  margin: 10px 0;
}

.subtitle {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Formulaire */
.card {
  background: rgba(255, 255, 255, 0.35);
  padding: 16px;
  border-radius: 12px;
  color: rgba(34, 34, 34, 0.85);
  text-align: left;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  backdrop-filter: blur(10px);
  max-width: 60%; /* 🔥 réduit de 20% par rapport à avant */
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.25);
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: rgba(34, 34, 34, 0.8);
}

.field input,
.field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(204, 204, 204, 0.4);
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.4);
  color: rgba(34, 34, 34, 0.9);
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(100, 100, 100, 0.6);
}

.btn {
  display: inline-block;
  background: rgba(255, 102, 0, 0.9);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
}

.btn:hover {
  background: rgba(230, 92, 0, 0.9);
}

.form-note {
  font-size: 0.85rem;
  margin-top: 10px;
  color: rgba(50, 50, 50, 0.7);
}

/* Footer */
.footer {
  text-align: center;
  padding: 15px;
  background: rgba(34, 34, 34, 0.8);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .brand {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1.2rem;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .card {
    padding: 14px;
    max-width: 70%; /* réduit aussi sur tablette */
  }

  .btn {
    font-size: 1rem;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 10px;
  }

  .hero-content {
    max-width: 100%;
    padding: 10px;
  }

  .brand {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .subtitle {
    font-size: 0.85rem;
  }

  .card {
    max-width: 80%; /* 🔥 réduit sur mobile */
    padding: 12px;
    background: rgba(255, 255, 255, 0.3);
  }

  .field input,
  .field textarea {
    font-size: 0.9rem;
    padding: 8px;
    background: rgba(255, 255, 255, 0.35);
  }

  .btn {
    font-size: 0.9rem;
    padding: 8px;
  }
}
