/* === Reset + global === */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #f0f0f0;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

small {
  display: block;
  color: #ffffff; /* Amélioration de la lisibilité */
  font-size: 14px;
}

/* === Header === */
header {
  background-color: #1e1e1e;
  padding: 20px 40px;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-container {
  flex-shrink: 0;
}

.logo-img {
  height: 120px;
  width: auto;
}

/* Menu centré */
.nav-center {
  display: flex;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 25px;
  transform: translateX(-50px);
}

.nav-btn {
  background-color: #1e1e1e !important;
  color: white !important;
  padding: 18px 36px !important;
  border-radius: 10px !important;
  font-weight: bold !important;
  font-size: 20px !important;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4) !important;
  border: 2px solid #00ff80 !important;
}

.nav-btn:hover {
  background-color: #00ff80;
  color: #000;
  transform: scale(1.05);
}

/* === Hero Section === */
.hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to bottom, #1e1e1e, #121212);
 

}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 30px;
  margin-bottom: 30px;
  color: #ccc;
}

.cta-button {
  display: inline-block;
  background-color: #00ff80;
  color: #000;
  padding: 20px 40px;
  border-radius: 150px;
  font-weight: bold;
  font-size: 25px;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.05);
}

/* === Features Section === */
.features {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 60px 20px;
}

.feature-card {
  background-color: #1e1e1e;
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: transform 0.3s ease;
  z-index: 2;

}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card h2 {
  color: #00ff80;
  margin-bottom: 15px;
}

/* === Footer === */
footer {
  background-color: #1e1e1e;
  text-align: center;
  padding: 20px;
  color: #888;
  border-top: 1px solid #333;
}

.news {
  padding: 50px 20px;
  background-color: #121212;
  color: #fff;
}

.news h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 30px;
  color: #00ff80;
}

.news-grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 20px;
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.news-item:hover {
  transform: translateY(-5px);
}

.news-img {
  width: 40%;
}

.news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #00ff80;
}

.news-desc {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}

.news-meta {
  font-size: 12px;
  color: #888;
}

.news-item-link {
  display: flex;
  gap: 20px;
  background-color: #1e1e1e;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
  z-index: 1;

}

.news-item-link:hover {
  transform: translateY(-5px);
}

.nav-center {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.nav-btn {
  background-color: #1e1e1e;
  color: #00ff80;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-btn:hover {
  background-color: #00ff80;
  color: #000;
  transform: scale(1.05);
}

.logo-img {
  height: 120px;
  width: auto;
}

#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}


#chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1e1e1e;
  color: white;
  width: 300px;
  border-radius: 10px;
  border: 1px solid #00ff80;
  overflow: hidden;
  font-family: Arial, sans-serif;
  z-index: 1000;
}

#chat-messages {
  max-height: 200px;
  overflow-y: auto;
  padding: 10px;
  font-size: 14px;
}

#chat-input {
  width: 100%;
  padding: 10px;
  border: none;
  border-top: 1px solid #00ff80;
  outline: none;
  background-color: #222;
  color: white;
}

/* === Nouveau design chatbot ultra stylé === */
#chat-widget {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 340px;
  max-height: 480px;
  background: rgba(18, 18, 18, 0.9);
  border: 2px solid #00ff80;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 255, 128, 0.3);
  animation: fadeInUp 0.4s ease-out;
  z-index: 1000;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  font-size: 15px;
  scroll-behavior: smooth;
}

.chat-bubble {
  margin: 8px 0;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 80%;
  font-size: 15px;
  word-wrap: break-word;
  animation: appear 0.3s ease;
}

@keyframes appear {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.bot-bubble {
  background: #1c1c1c;
  color: #fff;
  align-self: flex-start;
  border: 1px solid #00ff80;
}

.user-bubble {
  background: linear-gradient(145deg, #00ff80, #00cc66);
  color: #000;
  align-self: flex-end;
  font-weight: bold;
}

.chat-option-btn {
  display: block;
  width: 100%;
  text-align: left;
  margin: 4px 0;
  padding: 8px 14px;
  background: transparent;
  border: 1.5px solid #00ff80;
  border-radius: 14px;
  color: #fff; /* ← ici, texte blanc */
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.25s ease;
}

.chat-option-btn:hover {
  background: #00ff80;
  color: #000;
  transform: scale(1.02);
}



#chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: radial-gradient(circle at center, #00ff80, #00cc66);
  color: white;
  font-size: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 255, 128, 0.6);
  cursor: pointer;
  z-index: 1001;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(0, 255, 128, 0.8);
}

#chat-options {
  padding: 12px;
  background: #121212;
  border-top: 1px solid #00ff80;
}

.hidden {
  display: none !important;
}

@media screen and (max-width: 768px) {
  #chat-widget {
    width: 95vw !important;
    max-height: 85vh !important;
    font-size: 18px !important;
    right: 10px !important;
    bottom: 80px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .chat-bubble {
    font-size: 17px !important;
    padding: 14px 18px !important;
    border-radius: 18px !important;
  }

  .chat-option-btn {
    font-size: 17px !important;
    padding: 14px 18px !important;
    margin: 8px 0 !important;
    width: 100% !important;
    border-radius: 16px !important;
  }

  #chat-toggle {
    width: 64px !important;
    height: 64px !important;
    font-size: 30px !important;
    bottom: 12px !important;
    right: 12px !important;
  }

  #chat-messages {
    max-height: 60vh !important;
    font-size: 16px !important;
  }

  #chat-options {
    padding: 10px 12px !important;
  }
}

