/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f5f7fa;
  color: #1e293b;
}

/* HEADER */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 10%;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #2563eb;
}

header nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  transition: 0.2s;
}

header nav a:hover {
  color: #2563eb;
}

.btn-register {
  background: #2563eb;
  color: white !important;
  padding: 8px 16px;
  border-radius: 6px;
}

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 10%;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  color: white;
}

.hero-text {
  max-width: 600px;
}

.hero-text h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons a {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 15px;
  transition: 0.2s;
}

.btn-primary {
  background: white;
  color: #2563eb;
}

.btn-primary:hover {
  background: #f1f5f9;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.hero-image {
  width: 450px;
  height: 350px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0.8;
}

/* FOOTER */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 40px 10%;
  text-align: center;
}

footer p {
  margin-bottom: 10px;
}

footer small {
  color: #94a3b8;
}
/* ========================= */
/* RESPONSIVE MOBILE */
/* ========================= */

@media (max-width: 992px) {

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
  }

  header nav a {
    margin-left: 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 5%;
  }

  .hero-text h2 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-image {
    width: 100%;
    height: 250px;
    margin-top: 40px;
  }

  .hero-buttons a {
    margin-bottom: 15px;
    display: block;
  }

}

@media (max-width: 480px) {

  .hero-text h2 {
    font-size: 26px;
  }

  .hero-text p {
    font-size: 15px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  footer {
    padding: 30px 5%;
  }

}

/* ========================= */
/* ANIMATIONS */
/* ========================= */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover premium sur boutons */
.btn-primary,
.btn-secondary,
.btn-register {
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.4);
}
/* ========================= */
/* AUTH PAGE */
/* ========================= */

.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1e3a8a);
  padding: 20px;
}

.auth-card {
  background: white;
  padding: 50px;
  border-radius: 20px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  text-align: center;
}

.auth-card h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.auth-subtitle {
  color: #64748b;
  margin-bottom: 30px;
  font-size: 15px;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 600;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}

.full-btn {
  width: 100%;
  margin-top: 10px;
}

.auth-footer {
  margin-top: 25px;
  font-size: 14px;
  color: #64748b;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .auth-card {
    padding: 30px;
  }
}
/* =========================
   BOUTON INSCRIPTION
========================= */

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  margin-top: 10px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: scale(0.98);
}
/* ========================= */
/* 🔹 SUCCESS MODAL */
/* ========================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;
  z-index: 9999;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  width: 380px;
  transform: scale(0.8);
  transition: 0.4s ease;
}

.modal-overlay.active .modal-box {
  transform: scale(1);
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #00c853, #00e676);
  border-radius: 50%;
  color: white;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
  animation: pop 0.5s ease;
}

@keyframes pop {
  0% { transform: scale(0); }
  80% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.modal-box h2 {
  margin-bottom: 10px;
}

.modal-box p {
  margin-bottom: 20px;
  color: #555;
}

.modal-box button {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.modal-box button:hover {
  transform: translateY(-2px);
}
