:root {
  --font-primary: 'Satoshi', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  /* Harmonious color scheme */
  --bg-color: #0e0e0e;
  --primary-color: #1e90ff;
  --accent-color: #00f7ff;
  --text-color: #f0f0f0;
  --text-muted: #999;
  --secondary-color: #38bdf8;
  --dark-bg: #0f172a;
  --light-bg: #e2e8f0;
  --text-dark: #0f172a;
  --text-light: #e2e8f0;
  /* Custom variables for overlay and menu */
  --overlay-bg: rgba(0, 0, 0, 0.4);
  --menu-bg: var(--light-bg);
  --menu-radius: 22px;
  --menu-width: 80%;
  --menu-max-width: 300px;
  --menu-gap: 1.5rem;
  --menu-shadow: 0 4px 12px rgba(0,0,0,0.2);
  --menu-transition: right 0.35s ease, opacity 0.3s ease, transform 0.25s ease;
}

body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
  background-image: url('./assets/bg-dark.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body.dark-mode a {
  color: #38bdf8;
}

body.dark-mode header,
body.dark-mode footer {
  background-color: #1e293b;
}

body.dark-mode header {
  background: radial-gradient(circle at top left, #1e3a8a, #0f172a);
  border-bottom: 4px solid #3b82f6;
}

body.dark-mode section {
  background: #1e293b;
  color: #e2e8f0;
}

body.dark-mode nav {
  background: rgba(30, 41, 59, 0.95);
}

body.dark-mode nav a {
  color: #2470ea;
}

body.dark-mode nav a:hover,
body.dark-mode nav a:focus {
  color: #3b82f6;
  text-shadow: 0 0 6px #3b82f6;
}

body.dark-mode .cta {
  background: linear-gradient(to right, #3b82f6, #2563eb);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

body.dark-mode footer {
  background: #1e293b;
  border-top: 4px solid #3b82f6;
}
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Satoshi:wght@400;700&family=JetBrains+Mono:wght@400;700&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease-in-out;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-color);
  color: var(--text-color);
  background-image: none;
  line-height: 1.6;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header {
  background: radial-gradient(circle at top left, #0ea5e9, #0f172a);
  background-size: cover;
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  border-bottom: 4px solid #38bdf8;
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

.header-banner-text {
  font-size: 2.6rem;
  font-weight: 900;
  color: black;
  text-shadow:
    0 0 5px #0ea5e9,
    0 0 10px #38bdf8,
    0 0 15px #7c3aed,
    0 0 20px #8b5cf6;
  letter-spacing: -0.5px;
  line-height: 1.3;
  /* background: linear-gradient(90deg, #0ea5e9, #38bdf8); */
  /* -webkit-background-clip: text; */
  /* background-clip: text; */
  /* -webkit-text-fill-color: transparent; */
}

body:not(.dark-mode) .header-banner-text::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: #0ea5e9;
  z-index: -1;
  pointer-events: none;
}


/* Style spécifique pour le texte de la bande bleue dans le header */
.header-tagline {
  font-size: 1.8rem;
  font-weight: 600;
  margin-top: 1rem;
  color: black;
  text-shadow:
    0 0 5px #0ea5e9,
    0 0 10px #38bdf8,
    0 0 15px #7c3aed,
    0 0 20px #8b5cf6;
}

body.dark-mode .header-tagline {
  font-size: 1.8rem;
  color: #e2e8f0;
  text-shadow:
    0 0 5px #3b82f6,
    0 0 10px #2563eb,
    0 0 15px #1e3a8a;
}


/* Désactivation temporaire des animations invisibles si JS n’est pas prêt */
/*
section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}
*/

section {
  padding: 5rem 2rem;
  background: rgba(255, 255, 255, 0.97);
  color: #0f172a;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 1000px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.03);
  text-align: center;
  backdrop-filter: blur(6px) saturate(180%);
  border: 1px solid rgba(14, 165, 233, 0.08);
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-family: var(--font-primary);
  font-size: 2rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  font-weight: 700;
}


.hero h1 {
  font-family: var(--font-primary);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.hero p {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  margin-top: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.cta {
  font-family: var(--font-primary);
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: linear-gradient(to right, #0ea5e9, #38bdf8);
  border-radius: 50px;
  color: white;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.3);
  transition: transform 0.3s ease;
}

.cta:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

/* Sections */

.services-list {
  list-style: none;
  padding: 0;
}

.services-list li {
  font-size: 1.2rem;
  margin: 1rem 0;
}

blockquote {
  font-style: italic;
  margin: 1rem auto;
  max-width: 600px;
}

cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #475569;
}

/* Formulaire */
form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 0 auto;
}

form input,
form textarea {
  padding: 0.75rem;
  margin: 0.5rem 0;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 1rem;
}

form button {
  background-color: #0f172a;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background-color: #1e293b;
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 4px solid #0ea5e9;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
}

footer .socials {
  margin-top: 1rem;
}



#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
  top: 0;
  left: 0;
  background-color: #e2e8f0; /* blanc plus foncé */
}
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  border: 6px solid #0ea5e9;
  border-top: 6px solid transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#darkModeToggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  background: linear-gradient(to right, #3b82f6, #0ea5e9);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
  transition: all 0.3s ease;
}

#darkModeToggle:hover {
  transform: scale(1.05);
  background: linear-gradient(to right, #0ea5e9, #3b82f6);
}

/* Hero section styles */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(226, 232, 240, 0.85)),
              url('./assets/bg-light.png') center/cover no-repeat;
  backdrop-filter: blur(6px);
  text-align: center;
  z-index: 10;
  padding: 4rem 2rem;
  gap: 1.5rem;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  color: #334155;
  margin-bottom: 2rem;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(30, 41, 59, 0.6)),
              url('./assets/bg-dark.png') center/cover no-repeat;
}

body.dark-mode .hero h1 {
  color: #e2e8f0;
}

body.dark-mode .hero p {
  color: #cbd5e1;
}

.hero .cta {
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
  transition: all 0.3s ease;
}

.hero .cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* Animations spécifiques pour les nouveaux effets au scroll */
.scroll-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.zoom-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in {
  opacity: 0;
  transition: opacity 1s ease;
}

.scroll-left.visible,
.scroll-right.visible,
.zoom-in.visible,
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* --------- Sticky, Blurred Navigation --------- */
.main-nav {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 0.75rem 2rem;
  transition: background 0.3s ease;
}

.main-nav .menu-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav .menu-list li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.3s, color 0.3s;
}

.main-nav .menu-list li a:hover,
.main-nav .menu-list li a.active {
  background: var(--primary-color);
  color: #ffffff;
}
/* Welcome section - alignement et style harmonisé */
#welcome {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  background: transparent;
  color: inherit;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 1000px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.03);
  text-align: center;
  backdrop-filter: blur(6px) saturate(180%);
  border: 1px solid rgba(14, 165, 233, 0.08);
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode #welcome {
  background: #1e293b;
  color: #e2e8f0;
}
/* Ensure heading and text in welcome section are visible in light mode */
#welcome h1 {
  color: #0f172a;
  font-weight: 700;
}

#welcome p {
  color: #334155;
  font-weight: 600;
}
/* Stats Section */
.stats-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 5rem 2rem;
  background: var(--welcome-bg, rgba(255, 255, 255, 0.9));
  text-align: center;
  flex-wrap: wrap;
  border-radius: 20px;
  margin: 3rem auto;
  max-width: 1000px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(4px);
}

.stat {
  min-width: 120px;
}

.counter {
  font-size: 3rem;
  font-weight: bold;
  color: var(--text-color, #0f172a);
}

.counter-label {
  font-size: 1rem;
  color: var(--text-color, #0f172a);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

/* Dark mode override */
body.dark-mode .stats-section {
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

body.dark-mode .counter,
body.dark-mode .counter-label {
  color: #000000;
}

/* Aurion toggle button and notification bubble */
.aurion-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #38bdf8;
  color: white;
  font-size: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.aurion-toggle:hover {
  transform: scale(1.1);
  background: #0ea5e9;
}

.notif-bubble {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  background: red;
  border-radius: 50%;
  border: 2px solid white;
  z-index: 10000;
}

.hidden {
  display: none !important;
}

/* --- Aurion Panel Enhancements --- */
.aurion-panel {
  position: fixed;
  bottom: calc(2rem + 50px); /* sits just above the toggle button */
  right: 2rem;
  max-width: 360px;
  width: 100%;
  padding: 1rem;
  background: var(--menu-bg);
  color: var(--text-dark);
  border-radius: 0.75rem;
  border: 1px solid rgba(14,165,233,0.3);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10008;
}

/* --- Agrandissement du panneau Aurion pour plus de contenu --- */
.aurion-panel {
  /* largeur plus grande, max 90% sur petits écrans */
  width: 400px;
  max-width: 90%;
  /* hauteur fixe pour contenir plusieurs bulles */
  height: 500px;
  /* passe en container flex vertical pour gérer le scroll du corps */
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.aurion-body {
  /* prends tout l’espace restant entre header et input */
  flex: 1;
  overflow-y: auto;
  /* facultatif : un peu d’espacement intérieur */
  padding: 0.5rem 0;
}

/* Ajuste la zone de saisie en bas pour rester visible */
.chat-input {
  flex-shrink: 0;
}

/* Si tu veux augmenter encore, joue sur width/height */

.aurion-panel.show {
  transform: translateY(0);
  opacity: 1;
}

/* Aurion display toggles */
.aurion-panel.hidden { display: none !important; }
.aurion-panel.show   { display: block !important; }

.aurion-overlay      { display: none !important; } 
.aurion-overlay.show { display: block !important; }

/* Dark mode override for Aurion panel */
body.dark-mode .aurion-panel {
  background: var(--dark-bg);
  color: var(--text-light);
  border-color: #3b82f6;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}

/* Texte blanc pour Aurion en mode sombre */
body.dark-mode .chat-message.user,
body.dark-mode .chat-message.bot {
  color: #ffffff !important;
}
body.dark-mode .chat-input input {
  color: #ffffff;
  background: #1e293b;
  border-color: #3b82f6;
}
/* --- Aurion Chat Bubbles & Layout --- */
.aurion-body {
  display: flex;
  flex-direction: column;
  height: 320px; /* Total panel height minus header */
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-y: auto;
  scrollbar-width: thin;
}
.chat-messages::-webkit-scrollbar {
  width: 6px;
}
.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}
.chat-messages::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 3px;
}

.chat-message.user {
  align-self: flex-end;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 1rem 1rem 0.5rem 1rem;
  padding: 0.5rem 1rem;
  max-width: 80%;
  position: relative;
}
.chat-message.bot {
  align-self: flex-start;
  background: rgba(0,0,0,0.05);
  color: var(--text-dark);
  border-radius: 1rem 1rem 1rem 0.5rem;
  padding: 0.5rem 1rem;
  max-width: 80%;
  position: relative;
}

.chat-message .timestamp {
  display: block;
  font-size: 0.65rem;
  color: rgba(0,0,0,0.4);
  margin-top: 0.25rem;
  text-align: right;
}

.chat-input {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.chat-input input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 20px;
  font-size: 0.95rem;
  margin-right: 0.5rem;
}
.chat-input button {
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-input button:hover {
  background: #0284c7;
}
/* Options select styles */
.options-select label {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  display: block;
  background: rgba(14, 165, 233, 0.05);
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.options-select label:hover {
  background: rgba(14, 165, 233, 0.1);
  transform: scale(1.02);
}

.options-select input[type="checkbox"]:checked + label,
.options-select input[type="radio"]:checked + label {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}

@media screen and (max-width: 768px) {
  header .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  header .main-nav ul li a {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.2rem;
  }

  .cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .welcome-content h1 {
    font-size: 2rem;
  }

  .welcome-content p {
    font-size: 1.1rem;
  }

  section h2 {
    font-family: var(--font-primary);
    font-size: 1.6rem !important;
  }

  section p {
    font-size: 1rem !important;
  }

  .stats-section {
    gap: 2rem;
    flex-direction: column;
  }

  .stat .counter {
    font-size: 2rem;
  }

  .aurion-toggle {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem;
    font-size: 1.2rem;
  }

  .aurion-panel {
    bottom: 5rem;
    right: 1rem;
    width: 90%;
    max-width: 320px;
  }

  footer.site-footer {
    font-size: 0.9rem;
    padding: 1rem;
  }

  .cta-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .options-select {
    font-size: 1rem;
  }

  .options-select label {
    padding: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    margin-bottom: 0.4rem;
    display: block;
    background: rgba(255,255,255,0.03);
  }
}

/* Masquage progressif du contenu principal jusqu'à interaction */
#page-content.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

/* Affichage progressif du contenu après ouverture du menu */
#page-content.visible {
  display: block;
  opacity: 1;
  animation: fadeIn 0.5s ease;
  pointer-events: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Correction menu mobile flottant qui masque le contenu sur mobile */
body.menu-open {
  overflow: hidden;
}

#page-content {
  transition: opacity 0.3s ease;
}

body.menu-open #page-content {
  opacity: 0.2;
  pointer-events: none;
  filter: blur(2px);
}
/* Effet néon bleu-violet avec texte noir */
.full-gradient-text {
  font-size: 2.2rem;
  font-weight: 800;
  color: black;
  text-shadow:
    0 0 5px #0ea5e9,
    0 0 10px #38bdf8,
    0 0 15px #7c3aed,
    0 0 20px #8b5cf6;
}

/* -------------------------------------------------
   Force menu horizontal sur mobile (annule le burger)
--------------------------------------------------- */
@media (max-width: 768px) {
  /* On masque le bouton burger */
  .menu-toggle {
    display: none !important;
  }

  .main-nav {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 2px solid var(--primary-color);
  }

  .main-nav .menu-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .main-nav .menu-list li a {
    font-size: 1.1rem;
    padding: 0.6rem 1.2rem;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 10px;
    color: #fff;
  }

  .main-nav .menu-list li a:hover {
    background: var(--primary-color);
    color: #fff;
  }
 
  /* On affiche toujours la liste de nav en ligne */
  .menu-list {
    display: flex !important;
    flex-direction: row !important;
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    background: transparent !important;
    height: auto !important;
    gap: var(--menu-gap);
    padding: 0 !important;
    margin: 0 !important;
  }

  /* On désactive l’overlay mobile */
  .menu-overlay {
    display: none !important;
  }
}

/* Suggestions rapides dans Aurion */
.aurion-suggestions {
  background: rgba(14,165,233,0.05);
  border-radius: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.aurion-suggestions .suggestion {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}
.aurion-suggestions .suggestion:hover {
  background: #0284c7;
}

/* Améliorations visuelles supplémentaires pour Aurion */
.aurion-panel {
  backdrop-filter: blur(8px) saturate(150%);
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(226,232,240,0.9));
}

body.dark-mode .aurion-panel {
  background: linear-gradient(135deg, rgba(15,23,42,0.9), rgba(30,41,59,0.9));
}

.chat-message.user,
.chat-message.bot {
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  font-family: var(--font-mono);
}

.chat-message.user::before {
  content: "👤 ";
  font-size: 0.9rem;
  margin-right: 0.2rem;
}

.chat-message.bot::before {
  content: "🤖 ";
  font-size: 0.9rem;
  margin-right: 0.2rem;
}

.aurion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(14,165,233,0.1);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.aurion-header h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.aurion-header .close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  color: #94a3b8;
  cursor: pointer;
}

.aurion-header .close-btn:hover {
  color: #0ea5e9;
}

.chat-input input::placeholder {
  color: #94a3b8;
  font-style: italic;
}

.chat-input button {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

body.dark-mode .chat-message.bot {
  background: rgba(255, 255, 255, 0.08);
}
/* Force update - Aurion visual tweak */
/* 🔄 Commit déclenché - Sync Aurion design */
/* Sidenav menu */
.sidenav {
  height: 100%;
  width: 250px;
  position :fixed;
  z-index: 1;
  top: 0;
  left: -250px;
  background-color:#ececf2;
  padding-top: 60px;
  transition: left 0.5s ease;
}

/* Sidenav menu links */
.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #0237f6;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover { 
  color: #111;
}

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

/* Active class */
.sidenav.active { 
  left: 0;
}

/* Close btn */
.sidenav .close { 
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

/* Icône burger */

/* --- Correction bouton burger et barre noire étrange --- */
#openBtn {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  cursor: pointer;
  background: transparent;
  border: none;
}

.burger-icon {
  display: inline-block;
  padding: 0.5rem;
  background-color: transparent;
}

.burger-icon span {
  display: block;
  width: 35px;
  height: 4px;
  background-color: black;
  margin: 6px 0;
  border-radius: 3px;
  transition: all 0.3s ease;
}

body.dark-mode .burger-icon span {
  background-color: #e2e8f0;
}
/* Global link styles for simplicity and harmony */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: white;
}

/* Force le texte en blanc */
.text-white {
  color: white !important;
}
/* ----------- Stats Explanation Section ----------- */
.stats-explanation {
  background: #1e293b;
  color: #e2e8f0;
  padding: 4rem 2rem;
  border-radius: 20px;
  margin: 4rem auto;
  max-width: 1000px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.stats-explanation h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: white;
}

.stats-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  min-width: 240px;
  max-width: 300px;
  flex: 1 1 240px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-item h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #38bdf8;
}

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

.stat-item ul li {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: #cbd5e1;
}