* {
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
}

body {
  margin: 0;
  height: 100vh;
  background: radial-gradient(circle at top, #d5d6df, #000);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
}

.app {
  width: 100%;
  max-width: 70%;
  padding: 20px;
}

.card {
  background: #003057;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 10px;
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255,255,255,0.03);
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
}

.subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 20px;
}

/* L'INPUT */
.input-wrapper {
  position: relative;
}

input {
  width: 100%;
  padding: 14px 44px 14px 14px;
  border-radius: 500px;
  border: 1px solid rgba(148,163,184,0.25);
  background: #d5d6df;
  color: #02061799;
  font-size: 12px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.25);
}

.toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 13px;
  color: #94a3b8;
  user-select: none;
}

/* LE STRENGTH BAR */
.strength-bar {
  height: 8px;
  background: rgba(148,163,184,0.15);
  border-radius: 6px;
  margin: 16px 0;
  overflow: hidden;
}

#strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 6px;
  transition: width 0.4s ease, background 0.4s ease;
}

/* STATS */
.stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
}

.stat {
  flex: 1;
  background: #02061799;
  color: #fff;
  border: 1px solid rgba(148,163,184,0.15);
  padding: 14px;
  border-radius: 7px;
  text-align: center;
}

.stat span {
  font-size: 12px;
  color: #94a3b8;
}

.stat strong {
  display: block;
  font-size: 12px;
  margin-top: 4px;
}

/* L'AVERTISSEMENT */
.warning {
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.4);
  color: #fecaca;
  padding: 10px;
  border-radius: 10px;
  font-size: 12px;
  margin-bottom: 12px;
  display: none;
}

/* SUGGESTIONS + CONSEILS  */
.suggestions-box {
  margin-top: 18px;
}

.suggestions-box h3 {
  font-size: 12px;
  margin-bottom: 8px;
  color: #e5e7eb;
}

ul {
  padding-left: 18px;
  margin: 0;
}

li {
  font-size: 12px;
  color: #cbd5f5;
  margin-bottom: 6px;
  line-height: 1.4;
  animation: listFade 0.25s ease;
}

@keyframes listFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}