/* === IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

/* === GLOBAL STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* === HERO SECTION === */
.hero-section {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 30%, #f39c12 60%, #e74c3c 100%);
    color: white;
    padding-top: 80px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* Texte en arrière-plan */
.hero-section::before {
    content: 'NUMÉRIQUE';
    position: absolute;
    font-family: 'Orbitron', sans-serif;
    font-size: 180px;
    font-weight: 900;
    letter-spacing: 20px;
    color: rgba(255, 255, 255, 0.05);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.hero-section .banner {
    background: rgba(232, 245, 233, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .btn {
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: bold;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.hero-section .btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Orbes lumineux dans le hero */
.hero-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    top: 10%;
    right: 10%;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* === MISSION SECTION === */
.mission-section {
    background: #0a1628;
    color: #fff;
    padding: 80px 0;
    position: relative;
}

.mission-section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    color: #f39c12;
    letter-spacing: 3px;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.mission-section .icon {
    font-size: 3rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.mission-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
}

.mission-section .cta {
    background: linear-gradient(135deg, #d35400 0%, #e67e22 30%, #f39c12 60%);
    padding: 50px;
    border-radius: 15px;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.mission-section .cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.mission-section .cta .btn {
    background: #fff;
    color: #d35400;
    font-family: 'Orbitron', sans-serif;
    font-weight: bold;
    border-radius: 50px;
    padding: 15px 30px;
    border: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.mission-section .cta .btn:hover {
    background: #f39c12;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.4);
}

/* === NAVBAR === */
.main-navbar {
    background: linear-gradient(135deg, #0a1628 0%, #162947 100%);
    padding: 15px 0;
    border-bottom: 2px solid rgba(243, 156, 18, 0.3);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-navbar .navbar-brand {
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
}

.main-navbar .logo-icon {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    padding: 10px;
    border-radius: 8px;
    font-size: 1.3rem;
    color: white;
    margin-right: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    margin: 0 10px;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.main-navbar .nav-link.active,
.main-navbar .nav-link:hover {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transform: translateY(-2px);
}

/* === LATEST SECTION === */
.latest-section {
    background: #162947;
    color: #fff;
    padding: 60px 0;
}

.latest-section h4 {
    font-family: 'Orbitron', sans-serif;
    border-bottom: 3px solid #f39c12;
    padding-bottom: 15px;
    margin-bottom: 30px;
    color: #f39c12;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.latest-section .list-group-item {
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.latest-section .list-group-item:hover {
    background: rgba(243, 156, 18, 0.1);
    border-color: #f39c12;
    transform: translateX(5px);
}

.latest-section .list-group-item a {
    text-decoration: none;
    color: #fff;
    display: block;
    padding: 5px 0;
}

.latest-section .list-group-item a:hover {
    color: #f39c12;
    font-weight: bold;
}

.list-group-item img {
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(243, 156, 18, 0.3);
    transition: all 0.3s ease;
}

.list-group-item img:hover {
    border-color: #f39c12;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.3);
}

/* === PARTICULES (optionnel) === */
.particle {
    position: fixed;
    width: 2px;
    height: 2px;
    background: rgba(243, 156, 18, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .mission-section h2 {
        font-size: 2rem;
    }
    
    .hero-section::before {
        font-size: 80px;
    }
}



/* === PAGE LOGIN === */
.login-card {
  background: rgba(10, 22, 40, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
  color: #f39c12;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.login-card label {
  color: #f39c12;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.login-card .form-control {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: white;
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.login-card .form-control:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: #f39c12;
  color: white;
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.btn-google {
  display: block;
  width: 100%;
  padding: 12px;
  background: white;
  color: #333;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 20px;
  transition: 0.3s;
  font-size: 1rem;
}

.btn-google:hover {
  background: #f8f9fa;
  color: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.separator {
  text-align: center;
  margin: 25px 0;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  font-size: 0.9rem;
}

.separator::before,
.separator::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.separator::before { left: 0; }
.separator::after { right: 0; }

.btn-primary-full {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border: none;
  color: white;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 1px;
  font-size: 1.05rem;
}

.btn-primary-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.login-card a {
  color: #3498db;
  text-decoration: none;
  font-size: 0.95rem;
}

.login-card a:hover {
  color: #5dade2;
  text-decoration: underline;
}

.login-card .alert {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #e74c3c;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

/* Tablettes (768px et moins) */
@media (max-width: 768px) {
  .login-card {
    padding: 30px 25px;
  }

  .login-card h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .login-card label {
    font-size: 0.95rem;
  }

  .login-card .form-control {
    padding: 11px;
    font-size: 0.95rem;
  }

  .btn-google {
    padding: 11px;
    font-size: 0.95rem;
  }

  .btn-primary-full {
    padding: 13px;
    font-size: 1rem;
  }

  .separator {
    margin: 20px 0;
  }
}

/* Petits mobiles (576px et moins) */
@media (max-width: 576px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .login-card {
    padding: 25px 20px;
    border-radius: 12px;
  }

  .login-card h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .login-card label {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .login-card .form-control {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

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

  .btn-primary-full {
    padding: 12px;
    font-size: 0.95rem;
  }

  .separator {
    margin: 18px 0;
    font-size: 0.85rem;
  }

  .login-card a {
    font-size: 0.9rem;
  }

  .login-card .alert {
    font-size: 0.9rem;
    padding: 10px;
  }

  .text-center.mt-3 {
    margin-top: 1rem !important;
  }

  .text-center.mt-3 br {
    display: none;
  }

  .text-center.mt-3 a {
    display: inline-block;
    margin: 5px 10px;
  }
}

/* Très petits mobiles (400px et moins) */
@media (max-width: 400px) {
  .login-card {
    padding: 20px 15px;
  }

  .login-card h2 {
    font-size: 1.2rem;
  }

  .btn-google,
  .btn-primary-full {
    font-size: 0.85rem;
  }
}