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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: transparent;
  color: white;
  height: 100vh;
  padding: 0;
}

.container {
  max-width: 90%;
  width: 100%;
}

.logo {
  width: 100%;
  height: auto;
  margin: 0 auto 10px;
  animation: popIn 0.8s ease-out;
}

.tagline {
  font-size: 2.5vw;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f7c40f;
}

.presale {
  font-size: 2vw;
  color: #ffffffcc;
}

/* Responsive fallback for very small screens */
@media (max-width: 500px) {
  .tagline {
    font-size: 5vw;
  }

  .presale {
    font-size: 4vw;
  }

  .logo {
    max-width: 280px;
    margin-bottom: 10px;
  }
}

/* Animation douce */
@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

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

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #0a0f1c;
  color: white;
  line-height: 1.6;
  scroll-behavior: smooth;
  display: block; /* important pour Ã©viter layout horizontal */
}
html{
  scroll-behavior: smooth;
}

/* HEADER */
header {
  background-color: #0a0f1c;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 999;
  border-bottom: 1px solid #222;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.logo img {
  height: 90px;
  width: auto;
  display: block;
}

/* NAVIGATION */
.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  padding-bottom: 4px;
  transition: all 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #f7c40f;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #f7c40f;
}

.nav-links a.active {
  color: #f7c40f;
}

.nav-links a.active::after {
  width: 100%;
}

/* MENU BURGER */
.menu-icon {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

#menu-toggle {
  display: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    background-color: #0a0f1c;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
    gap: 15px;
  }

  #menu-toggle:checked + .menu-icon + .nav-links {
    display: flex;
  }

  .logo img {
    height: 70px;
  }
}

/* SECTION */
.section {
  display: block;
  width: 100%;
  padding: 50px 20px;
  text-align: center;
  min-height: 100vh;
}

.section h1,
.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #f7c40f;
}

/* BUY FORM */
.price {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.buy-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #0a0f1c;
  padding: 50px 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px #00000088;
}

.buy-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.currency-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
  gap: 10px;
}

.currency-buttons button img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  margin-right: 6px;
  vertical-align: middle;
}

.currency-buttons button {
  display: flex;
  flex: 1;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.95rem;
  line-height: 1.1;
  font-weight: 600;
}

.currency-buttons button {
  background-color: #0a0f1c;
  border: 2px solid #f7c40f;
  color: white;
  padding: 10px 20px;
  margin: 0 5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.currency-buttons button.selected {
  background-color: #f7c40f;
  color: #000;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(247, 196, 15, 0.6);
}

.currency-buttons button:hover {
  background-color: #f7c40f;
  color: #0a0f1c;
}

/* Supprimer les flÃ¨ches de l'input number */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield; /* Firefox */
  -webkit-appearance: none;
}

#connect-wallet-btn {
  background-color: #0a0f1c;
  color: white;
  padding: 10px 20px;
  font-size: 1rem;
  border: 2px solid #f7c40f;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
}

#connect-wallet-btn:hover {
  background-color: #333;
}

.buy-btn:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}

.big-timer {
  text-align: center;
  margin-top: 40px;
  font-size: 1.4rem;
  color: #f7c40f;
  font-weight: bold;
}

.buy-form input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 6px;
  border: none;
  background-color: #c5c4c7;
  color: white;
  font-size: 1rem;
}

.buy-form .buy-btn {
  background-color: #f7c40f;
  color: #0a0f1c;
  font-weight: bold;
  padding: 12px;
  width: 100%;
  margin-top: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.buy-form .buy-btn:hover {
  background-color: #d6a700;
}



/* DARK SECTION */
.dark {
  background-color: #0a0f1c;
}

/* TOKENOMICS */
.token-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.token-list li {
  font-size: 1.2rem;
  margin-bottom: 10px;
  font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  header nav {
    margin-top: 10px;
  }

  header nav a {
    margin: 10px 10px 0 0;
  }

  .buy-form {
    padding: 20px;
  }

  .section h1,
  .section h2 {
    font-size: 1.5rem;
  }

  .currency-buttons {
    flex-direction: column;
  }

  .currency-buttons button {
    margin: 5px 0;
    width: 100%;
  }
}

/* Background image for BUY section */
#buy {
  width: 100vw;
  margin: 0;
  padding: 100 px 0;
  background-image: url("/assets/buy-bg.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  max-height: 100vh;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

#buy .buy-form{
  margin: 0 auto;
}
body, html{
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.timer-container {
  margin: 20px auto;
  padding: 12px 24px;
  border: 2px solid #FFD700; /* Jaune */
  border-radius: 15px;
  background-color: rgba(0, 0, 0, 0.4); /* Transparent foncé */
  width: 400px;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

.timer-title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.countdown {
  font-size: 28px;
  color: #FFD700;
  font-weight: bold;
}