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

/* Body style */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  display: flex;
  background: linear-gradient(90deg, rgba(22, 24, 28, 1) 0%, rgba(15, 34, 62, 1) var(--scroll-gradient), rgba(24, 26, 27, 1) 100%);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

h1 {
    position: relative;
    left: -166px;
}

form {
    padding: 30px;
    border-radius: 8px;
    background-color: #16181c;
    border: 1px solid #2f3336;
    display: flex;
    min-width: 630px;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

form h2 {
    font-size: 15px;
    text-align: left;
    margin-top: 10px;
    margin-bottom: -5px;
}

form h2 a {
  float: right;
  color: #8899a6;
  text-decoration: none;
}

form h2 a:hover {
  color: #fff;
}

form input {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-weight: 500;
    padding: 8px;
    border-radius: 5px;
    border: none;
    outline: none;
    color: #fff;
    background: #25292b;
    margin-bottom: 5px;
}

form a {
  font-family: 'Roboto Mono', monospace;
  color: #8899a6;
  float: right;
  font-weight: bold;
  text-decoration: none;
}

form a:hover {
  color: #fff;
}

form button {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    font-size: 15px;
    background-color: #16181c;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
    color: #8899a6;
    display: inline-block;
}

form button:hover {
  background-color: #25292b;
  color: #fff;
}


/* Bouton ouvrir le popup */
button[onclick="openPopup()"] {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    margin-top: 15px;
    font-size: 15px;
    background-color: #16181c;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
    color: #8899a6;
    display: inline-block;
}

button[onclick="openPopup()"]:hover {
    background-color: #25292b;
    color: #fff;
}

/* Popup et overlay */
.popup {
    background-color: #16181c;
    border: 1px solid #2f3336;
    color: white;
    min-width: 630px;
    border-radius: 15px;
    padding: 20px;
    z-index: 1000;
}

.overlay {
  z-index: 5;
}

/* Fermeture du popup */
.popup button:last-of-type {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    margin-top: 15px;
    font-size: 15px;
    background-color: #16181c;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
    color: #8899a6;
    display: inline-block;
}

.popup button:last-of-type:hover {
    background-color: #25292b;
    color: #fff;
}

.popup button[onclick="closePopup()"] {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    margin: 15px auto 0 auto;
    font-size: 15px;
    background-color: #16181c;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
    color: #8899a6;
    display: block;
    text-align: center;
}

.popup button[onclick="closePopup()"]:hover {
    color: #fff;
    background-color: #25292b;
}

.msg-alerte {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    margin-top: 15px;
    font-size: 15px;
    background-color: #16181c;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #555;
    color: #8899a6;
    display: inline-block;
}

input:-webkit-autofill {
  -webkit-text-fill-color: #1da1f2 !important;
  -webkit-box-shadow: 0 0 0px 1000px #25292b inset !important; /* fond sombre */
  transition: background-color 5000s ease-in-out 0s;
}

.slogan {
  text-align: center;
  font-size: 16px;
  color: #8899a6;
  margin-bottom: 15px;
  font-style: italic;
}

.avatars-en-ligne {
  display: flex;
  justify-content: center;
  gap: -10px;
  margin-bottom: 20px;
  position: relative;
  margin-top: -15px;
}

.avatars-en-ligne img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -10px;
  margin-bottom: -15px;
  background-color: #0d1117;
  z-index: 1;
  transition: transform 0.2s;
}

.avatars-en-ligne img:hover {
  transform: scale(1.1);
  z-index: 2;
}

#tumtum-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100px;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}



#overlay-terms {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
}
#overlay-terms.active {
  display: block;
}

/* Popup conditions */
#popup-terms {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  max-width: 700px;
  width: 90%;
  background: #16181c;
  border: 1px solid #2f3336;
  border-radius: 8px;
  padding: 20px;
  animation: fadeInUp 0.4s ease;
}
#popup-terms.active {
  display: block;
}

#popup-terms .popup-content {
  max-height: 70vh;
  overflow-y: auto;
  color: white;
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
}

#popup-terms h2 {
  background-color: #0d1117;
  border-radius: 5px;
  border: 1px solid #2f3336;
  color: #fff;
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
}

#popup-terms button {
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    margin: 15px auto 0 auto;
    font-size: 15px;
    background-color: #16181c;
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid #555;
    cursor: pointer;
    color: #8899a6;
    display: block;
    text-align: center;
}
#popup-terms button:hover {
  color: #fff;
    background-color: #25292b;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.popup-content::-webkit-scrollbar {
    width: 3px;
}

.popup-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
    background-color: #25292b;
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background-color: #357ab8;
}

.remember-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: bold;
  color: #8899a6;
  cursor: pointer;
  user-select: none;
}

.remember-switch input {
  display: none;
}

.remember-switch .slider {
  width: 40px;
  height: 20px;
  background-color: #2f3336;
  border-radius: 20px;
  position: relative;
  transition: background 0.3s ease;
}

.remember-switch .slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  top: 1px;
  left: 1px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.remember-switch input:checked + .slider {
  background-color: #1da1f2; /* Couleur style Twitter */
}

.remember-switch input:checked + .slider::before {
  transform: translateX(20px);
}