
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0c111b;
  color: #f5f7fb;
  font-family: Arial, Helvetica, sans-serif;
}

.Generateur {
  width: 100%;
  max-width: 600px;
  padding: 42px;
  background: #171e2b;
  border: 1px solid #30394b;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

h2 {
  margin: 0 0 12px;
  font-size: 30px;
  text-align: center;
}

.subtitle {
  margin: 0 0 32px;
  color: #9da9bd;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

.output {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

#password {
  flex: 1;
  min-width: 0;
  padding: 18px;
  font-size: 19px;
  color: #ffffff;
  background: #0e1522;
  border: 1px solid #354157;
  border-radius: 12px;
  outline: none;
}

#password:focus {
  border-color: #00ca72;
}

button {
  border: none;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

button:active {
  transform: scale(0.98);
}

#copy {
  padding: 16px 22px;
  background: #303b4f;
  color: white;
  font-size: 16px;
}

#copy:hover {
  background: #41516a;
}

.length {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 18px;
}

#lengthValue {
  color: #00ca72;
  font-size: 22px;
}

#length {
  width: 100%;
  margin: 0 0 32px;
  accent-color: #00ca72;
  cursor: pointer;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 32px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 18px;
  cursor: pointer;
}

.option input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: #00ca72;
  cursor: pointer;
}

.strength-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 16px;
}

#strengthText {
  color: #aab5c7;
}

.strength {
  width: 100%;
  height: 12px;
  background: #30394b;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 30px;
}

#bar {
  width: 0;
  height: 100%;
  background: #00ca72;
  border-radius: 20px;
  transition: width 0.3s, background 0.3s;
}

#generate {
  width: 100%;
  padding: 20px;
  background: #00ca72;
  color: #08140e;
  font-size: 19px;
}

#generate:hover {
  background: #00e483;
}

.message {
  min-height: 20px;
  margin: 16px 0 0;
  color: #aab5c7;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 600px) {
  .Generateur {
    padding: 25px;
  }

  h2 {
    font-size: 24px;
  }

  #password {
    font-size: 15px;
    padding: 13px;
  }

  #copy {
    padding: 12px;
    font-size: 14px;
  }

  .option {
    font-size: 16px;
  }
}
