/* =========================================
   1. RESET & VARIABLES GLOBALES
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: #020617;
  color: #f8fafc;
  line-height: 1.6;
}

.dark-theme {
  background-color: #020617;
  color: #f8fafc;
}

/* =========================================
   1.5. ÉCRAN DE CHARGEMENT (SPLASH SCREEN)
   ========================================= */
.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #020617;
  width: 100%;
}

.pulsing-logo {
  width: 200px; /* Taille du logo au chargement */
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* =========================================
   2. EN-TÊTE & NAVIGATION (HEADER)
   ========================================= */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.tech-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 8%;
  background-color: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #1e293b;
}

/* Redimensionnement propre du logo sur le site */
.header-logo {
  height: 50px;
  object-fit: contain;
}

.tech-header nav {
  display: flex;
  align-items: center;
}

.tech-header nav a {
  margin-left: 30px;
  text-decoration: none;
  color: #94a3b8;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-header nav a:hover {
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.back-link {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: #f8fafc;
}

/* --- BOUTONS --- */
.btn-neon {
  background-color: transparent;
  color: #4ade80 !important;
  padding: 10px 20px;
  border-radius: 8px;
  border: 2px solid rgba(74, 222, 128, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  margin-left: 30px;
}

.btn-neon:hover {
  background-color: rgba(74, 222, 128, 0.1);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.3);
}

.btn-neon-large {
  background-color: #4ade80;
  color: #020617;
  padding: 18px 40px;
  border-radius: 12px;
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
}

.btn-neon-large:hover {
  background-color: #f8fafc;
  box-shadow: 0 0 30px rgba(74, 222, 128, 0.5);
}

.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #334155;
  color: #f8fafc;
  padding: 8px 16px;
  border-radius: 20px;
  margin-left: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s;
}

.lang-toggle:hover {
  background: rgba(74, 222, 128, 0.2);
  border-color: #4ade80;
}

/* =========================================
   3. SECTION 1 : HERO (ACCROCHE)
   ========================================= */
.hero-full {
  min-height: 90vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 10%;
}

.hero-content {
  max-width: 900px;
  z-index: 10;
}

.tech-h1 {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 40px rgba(0,0,0,0.9);
}

.tech-subtitle {
  font-size: 24px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 30px rgba(0,0,0,0.9);
}

/* =========================================
   4. SECTION 2 : PARTENAIRES (LOGOS)
   ========================================= */
.partners-section {
  padding: 60px 8%;
  background-color: #020617;
  text-align: center;
  border-bottom: 1px solid #0f172a;
}

.section-subtitle {
  color: #64748b;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 40px;
}

.logos-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-logo {
  max-width: 130px;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.7);
  transition: all 0.3s;
}
.partner-logo:hover {
  filter: grayscale(0%) opacity(1);
}

/* =========================================
   5. SECTION 3 : IMPACT (VULGARISATION)
   ========================================= */
.impact-section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 8%;
  background-color: #0f172a;
}

.impact-image {
  flex: 1;
}

.impact-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 2px solid #1e293b;
}

.impact-text {
  flex: 1;
}

.left-align {
  text-align: left !important;
  margin-bottom: 30px;
}

.impact-text p {
  color: #cbd5e1;
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* =========================================
   6. SECTION 4 : OFFLINE TECH (icon1.png)
   ========================================= */
.offline-tech-section {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 100px 8%;
  background-color: #020617;
}

.offline-text {
  flex: 1;
}

.offline-text p {
  color: #cbd5e1;
  font-size: 18px;
  margin-bottom: 20px;
  line-height: 1.8;
}

.offline-image {
  flex: 1;
  text-align: center;
}

.offline-image img {
  max-width: 350px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.15);
}

/* =========================================
   7. SECTION 5 : PROCESS (COMMENT ÇA MARCHE)
   ========================================= */
.process-section {
  padding: 100px 8%;
  background-color: #0f172a;
  text-align: center;
}

.process-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.process-step {
  flex: 1;
  min-width: 250px;
  max-width: 350px;
  background: #020617;
  padding: 40px;
  border-radius: 20px;
  border-top: 4px solid #4ade80;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.step-number {
  width: 50px;
  height: 50px;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 20px auto;
}

.process-step h4 {
  font-size: 20px;
  color: #f8fafc;
  margin-bottom: 15px;
}

.process-step p {
  color: #94a3b8;
}

/* =========================================
   8. SECTION 6 : LES 6 SECTEURS D'ACTIVITÉ
   ========================================= */
.features-dark {
  padding: 120px 8%;
  background-color: #020617;
}

.section-title-light {
  font-size: 42px;
  color: #f8fafc;
  margin-bottom: 80px;
  text-align: center;
  font-weight: 900;
}

.grid-6-neon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1300px;
  margin: 0 auto;
}

.neon-card {
  background-color: #0f172a;
  padding: 40px 30px;
  border-radius: 24px;
  border: 1px solid #1e293b;
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

.neon-card:hover {
  transform: translateY(-10px);
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 10px 40px rgba(74, 222, 128, 0.1);
}

.neon-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #4ade80, #0f172a, #4ade80);
  border-radius: 24px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.neon-card:hover::after, .neon-card.active::after {
  opacity: 1;
}

.activity-icon {
  font-size: 36px;
  margin-bottom: 24px;
  display: block;
}

.neon-card h3 {
  font-size: 22px;
  color: #f8fafc;
  margin-bottom: 16px;
  font-weight: 700;
}

.neon-card p {
  color: #94a3b8;
  line-height: 1.7;
}

/* =========================================
   9. SECTION 7 : NOTRE EMPREINTE (STATS)
   ========================================= */
.stats-section {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 80px 8%;
  background: linear-gradient(90deg, #020617, #0f172a);
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
  flex-wrap: wrap;
}

.stat-box {
  text-align: center;
}

.stat-number {
  font-size: 60px;
  font-weight: 900;
  color: #4ade80;
  text-shadow: 0 0 20px rgba(74, 222, 128, 0.4);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 20px;
  font-weight: bold;
  color: #f8fafc;
  margin-bottom: 5px;
}

.stat-desc {
  color: #64748b;
  font-size: 14px;
}

/* =========================================
   10. SECTION 8 : CONTACT B2B
   ========================================= */
.contact-dark {
  padding: 100px 8%;
  background-color: #0f172a;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-subtitle {
  color: #94a3b8;
  margin-bottom: 40px;
  font-size: 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  background-color: #020617;
  border: 1px solid #1e293b;
  color: #f8fafc;
  font-size: 16px;
  outline: none;
  transition: all 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: #4ade80;
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

/* =========================================
   11. PIED DE PAGE (FOOTER)
   ========================================= */
.footer-dark {
  text-align: center;
  padding: 60px 20px;
  background-color: #020617;
  color: #64748b;
  border-top: 1px solid #1e293b;
  user-select: none; /* Empêche la sélection du texte en cliquant vite */
}

/* L'EASTER EGG : Lien secret stylisé comme du texte normal */
.secret-link-hidden {
  color: #64748b;
  text-decoration: none;
  font-weight: inherit;
  cursor: default; /* Masque le curseur de lien */
}

/* =========================================
   12. PAGE DE CONNEXION CLIENT (LOGIN)
   ========================================= */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #020617;
}

.login-box {
  background: #0f172a;
  width: 100%;
  max-width: 450px;
  margin: auto;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid #1e293b;
  text-align: center;
}

.login-box h1 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #f8fafc;
}

.login-warning {
  color: #ef4444 !important;
  font-size: 13px !important;
  background: rgba(239, 68, 68, 0.1);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  margin-bottom: 25px !important;
  line-height: 1.5;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.login-box input {
  padding: 16px;
  border-radius: 8px;
  background-color: #020617;
  border: 1px solid #334155;
  color: #f8fafc;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.login-box input:focus {
  border-color: #4ade80;
}

/* =========================================
   13. TABLEAU DE BORD (DASHBOARD)
   ========================================= */
.dashboard-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background-color: #020617;
}

.sidebar {
  width: 260px;
  background-color: #0f172a;
  color: white;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1e293b;
}

.sidebar-header {
  padding: 24px;
  border-bottom: 1px solid #1e293b;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #4ade80;
  text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.brand-subtitle {
  font-size: 12px;
  color: #94a3b8;
}

.nav-menu {
  flex: 1;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.nav-menu a {
  padding: 16px 24px;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-menu a:hover, .nav-menu a.active {
  background-color: #1e293b;
  color: #4ade80;
  border-left: 4px solid #4ade80;
}

.sidebar-footer {
  padding: 24px;
}

.logout-btn {
  color: #ef4444;
  text-decoration: none;
  font-weight: bold;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: #020617;
}

.topbar {
  background-color: #0f172a;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
}

.topbar h1 {
  font-size: 22px;
  color: #f8fafc;
}

.user-profile {
  font-weight: bold;
  color: #4ade80;
  background: #1e293b;
  padding: 8px 16px;
  border-radius: 20px;
}

.dashboard-grid {
  padding: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: #0f172a;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.card h3 {
  font-size: 16px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.progress-bar-bg {
  height: 12px;
  background-color: #1e293b;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #4ade80, #16a34a);
  border-radius: 10px;
  transition: width 0.8s ease-in-out;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.quota-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-text {
  font-size: 24px;
  font-weight: 900;
  color: #f8fafc;
}

.status-green {
  color: #4ade80;
  font-weight: bold;
  background: rgba(74, 222, 128, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.status-red {
  color: #ef4444;
  font-weight: bold;
  background: rgba(239, 68, 68, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.stat-list {
  list-style: none;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
  font-weight: 500;
}

.stat-list li:last-child {
  border-bottom: none;
}

.badge-blue { background: rgba(56, 189, 248, 0.1); color: #38bdf8; padding: 4px 12px; border-radius: 12px; }
.badge-grey { background: #1e293b; color: #94a3b8; padding: 4px 12px; border-radius: 12px; }
.badge-green { background: rgba(74, 222, 128, 0.1); color: #4ade80; padding: 4px 12px; border-radius: 12px; }

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  background: #1e293b;
  border: 1px solid #334155;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
}

/* =========================================
   14. MEDIA QUERIES (RESPONSIVE)
   ========================================= */
@media (max-width: 900px) {
  .impact-section, .offline-tech-section {
    flex-direction: column;
  }
  .tech-header {
    flex-direction: column;
    gap: 15px;
  }
  .tech-h1 {
    font-size: 42px;
  }
}