:root {
  --primary-color: #A8FF00; /* Vert fluo principal */
  --secondary-color: #7CC000; /* Vert fluo plus sombre */
  --background-dark: #F5F5F5; /* Fond clair (blanc cassé) */
  --background-medium: #E0E0E0; /* Gris clair pour contraste */
  --background-light: #FFFFFF; /* Blanc pur */
  --text-dark: #1C2526; /* Gris foncé pour texte */
  --text-light: #E0E0E0; /* Texte clair */
  --text-secondary: #666666; /* Texte secondaire (gris moyen) */
  --shadow-color: rgba(0, 0, 0, 0.2); /* Ombre */
  --border-color: rgba(0, 0, 0, 0.1); /* Bordure */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--background-light) 0%, var(--background-dark) 100%);
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  padding: 10px;
}

.logo-img {
  width: auto;
  height: 60px;
  filter: drop-shadow(0 0 10px rgba(196, 238, 111, 0.5));
  transition: filter 0.3s ease, transform 0.3s ease;
  /*animation: fadeInZoom 1s ease forwards;*/
}

.logo-img:hover {
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
  transform: scale(1.1);
}

@keyframes fadeInZoom {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.connect-btn,
.start-btn,
#invest-btn,
#confirm-invest-btn {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--text-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.3s;
}

.connect-btn:hover,
.start-btn:hover,
#invest-btn:hover,
#confirm-invest-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(168, 255, 0, 0.3);
}

.connect-btn:disabled {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  cursor: not-allowed;
}

.hero {
  padding: 0px 20px 50px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 10vh;
}

.hero-content {
  text-align: center;
  max-width: 700px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  line-height: 1.2;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.dashboard {
  padding: 60px 20px;
  text-align: center;
}

.dashboard h2 {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 30px;
}

.action-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 8px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
}

.action-box label {
  font-size: 16px;
  color: var(--text-dark);
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.action-box select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-medium);
  color: var(--text-dark);
  font-size: 16px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.3s;
}

.action-box select:focus {
  outline: none;
  border-color: var(--primary-color);
}

#range-display,
#efficiency-display {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

#range-display span,
#efficiency-display span {
  color: var(--secondary-color);
  font-weight: 600;
}

.info {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 15px;
}

footer {
  padding: 30px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  width: 100%;
}

footer p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

footer a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: var(--secondary-color);
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content,
.beta-modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 8px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  position: relative;
}

.close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.close:hover {
  color: var(--text-dark);
}

.modal-content h3,
.beta-modal-content h3 {
  font-size: 24px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.modal-content label {
  font-size: 16px;
  color: var(--text-dark);
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--background-medium);
  color: var(--text-dark);
  font-size: 16px;
  transition: border-color 0.3s;
}

.modal-content input::-webkit-inner-spin-button,
.modal-content input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.modal-content input:focus,
.modal-content select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.beta-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  padding: 20px 20px 20px 20px;
  height: 100%;
  overflow-y: auto;
}

.beta-modal-content {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 10px;
  max-width: 600px;
  margin: 60px auto 20px;
  box-shadow: 0 8px 30px var(--shadow-color);
  border: 1px solid var(--border-color);
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.beta-modal-content h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.beta-modal-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.beta-modal .close {
  position: absolute;
  top: 15px;
  right: 15px;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.3s;
}

.beta-modal .close:hover {
  color: var(--text-dark);
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Carousel */
.carousel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.8); /* semi-transparent overlay */
}

.carousel-box {
  width: 50vw;
  height: 50vh;
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-slide {
  display: none;
  font-size: 1.2rem;
}

.carousel-slide.active {
  display: block;
}

.carousel-controls {
  margin-top: 1rem;
}

.carousel-controls button {
  font-size: 1.5rem;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

#start-btn {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.close-carousel {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

.carousel-btn {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  color: var(--text-dark);
  border: none;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  box-shadow: 0 4px 15px rgba(168, 255, 0, 0.3);
  transform: translateY(-2px);
}

.carousel-slide.fade-in {
  animation: fadeInSlide 0.6s ease;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.carousel-controls button {
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: var(--text-dark);
  border-radius: 25px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-controls button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 255, 0, 0.4);
}

.welcome-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  color: var(--text-dark);
}

.welcome-logo {
  margin-bottom: 20px;
  /*animation: fadeInZoom 1s ease forwards;*/
}

.welcome-slide-content h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.welcome-slide-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.welcome-slide-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.automation-slide-content {
  text-align: center;
  padding: 20px;
  color: var(--text-dark);
}

.automation-slide-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.automation-slide-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.automation-slide-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.engage-slide-content {
  text-align: center;
  padding: 20px;
  color: var(--text-dark);
}

.engage-slide-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.engage-slide-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.engage-slide-content strong {
  color: var(--primary-color);
  font-weight: 600;
}