/* flasher.css */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --error: #ef4444;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #1e293b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --transition: all 0.3s ease;
}

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

body {
   font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

/* ============== PROGRESS BAR STYLE "STRIPED" (INSPIRÉE) ============== */
.progress-striped-wrapper {
  margin: 20px;
  height: 40px; /* un peu plus imposant */
  background: rgba(64, 83, 121, 0.12); /* fond subtil basé sur --accent */
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    inset 0 2px 4px rgba(2, 132, 199, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.06);
}

.progress-bar-striped {
  height: 100%;
  width: 0%;
  /* Dégradé riche : du profond au vif */
  background: linear-gradient(
    to right,
    var(--accent),           /* #405379 – sérieux, stable */
    var(--accent-dark)       /* #0284c7 – énergique, clair */
  );
  /* Rayures brillantes avec transparence ajustée */
  background-image: linear-gradient(
    45deg,
    rgba(0, 119, 255, 0.512) 25%,
    transparent 25%,
    transparent 50%,
    rgba(0, 119, 255, 0.512) 50%,
    rgba(0, 119, 255, 0.512) 75%,
    transparent 75%,
    transparent
  );
  background-size: 28px 28px;
  animation: progressStripeMove 2.5s linear infinite;
  transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-radius: 14px;
  position: relative;
}

/* Optionnel : lueur subtile en fin de progression */
.progress-bar-striped::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8px;
  height: 100%;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.progress-bar-striped.full::after {
  opacity: 1;
}

@keyframes progressStripeMove {
  0% { background-position: 0 0; }
  100% { background-position: 28px 0; }
}
.step-titles {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  margin: 16px auto 40px;
  padding: 0 24px;
  gap: 8px;
}

.step-title {
  flex: 1;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-muted);
  transition: color 0.3s ease, font-weight 0.3s ease;
  padding: 0 4px;
  line-height: 1.4;
}

.step-title.active {
  color: var(--accent-dark);
  font-weight: 700;
}

.step-title.completed {
  color: var(--accent);
}
/* Contenu principal */
.container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 24px;
}

.step-content {
  display: none;
  animation: fadeIn 0.4s ease;
}

.step-content.active {
  display: block;
}

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

h1 {
  font-size: 2rem;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--text);
}

p {
  margin-bottom: 24px;
  color: var(--secondary);
}

textarea,
input[type="text"] {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Consolas', monospace;
  font-size: 14px;
  margin-bottom: 20px;
  background-color: #f1f5f9;
  transition: var(--transition);
}

textarea:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background-color: var(--primary);
  color: white;
}

.btn.primary:hover {
  background-color: var(--primary-dark);
}

.btn.secondary {
  background-color: #f1f5f9;
  color: var(--text);
}

.btn.secondary:hover {
  background-color: #e2e8f0;
}

.btn-group {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.status {
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius);
  font-weight: 500;
}

.status.success {
  background-color: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.status.error {
  background-color: #fef2f2;
  color: var(--error);
  border: 1px solid #fecaca;
}

.hidden {
  display: none !important;
}

/* Spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(37, 99, 235, 0.2);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 24px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    margin: 24px auto;
    padding: 0 16px;
  }

  .btn-group {
    flex-direction: column;
  }

  h1 {
    font-size: 1.6rem;
  }
}
/* ============== FORMULAIRE ÉTAPE 2 ============== */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text);
  font-size: 15px;
}

.form-group input[type="password"] {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  background-color: var(--bg);
  transition: var(--transition);
}

.form-group input[type="password"]:focus {
  outline: none;
  border-color: var(--accent-dark);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.char-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.password-strength {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  min-height: 18px;
}

.password-strength.weak { color: var(--error); }
.password-strength.medium { color: #f59e0b; } /* orange */
.password-strength.strong { color: var(--success); }

.btn.tertiary {
  background-color: #f1f5f9;
  color: var(--accent-dark);
  border: 1px solid var(--border);
  font-weight: 600;
  padding: 8px 16px;
  font-size: 14px;
}

.btn.tertiary:hover {
  background-color: #e2e8f0;
  border-color: #cbd5e1;
}