/* assets/css/front.css */

/* Reset et base */
body.pb-banque {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #F5F7FA;
  color: #333;
}

/* Conteneurs principaux */
.pb-balance-container,
.pb-form,
.pb-history-results,
.pb-dashboard {
  max-width: 500px;
  margin: 1.5rem auto;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
}

/* Titres */
.pb-balance-container .pb-balance-label,
.pb-form p label,
.pb-dashboard h2 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Solde */
.pb-balance-container .pb-balance-value {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #6C5BFF, #B993FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin: 0;
}

/* Formulaires */
.pb-form input[type="text"],
.pb-form input[type="email"],
.pb-form input[type="password"],
.pb-form input[type="date"],
.pb-form input[type="number"],
.pb-form textarea,
.pb-form select {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.pb-form input:focus,
.pb-form textarea:focus,
.pb-form select:focus {
  border-color: #6C5BFF;
  outline: none;
}

.pb-form button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #6C5BFF;
  color: #FFF;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pb-form button:hover {
  background-color: #5B4CD6;
}

/* Barre de progression */
.pb-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.pb-progress .step {
  width: 24%;
  text-align: center;
  position: relative;
}
.pb-progress .step::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -50%;
  width: 100%;
  height: 4px;
  background: #D1D5DB;
  z-index: -1;
}
.pb-progress .step:first-child::before {
  display: none;
}
.pb-progress .step.active .circle {
  background-color: #6C5BFF;
  color: #FFF;
}
.pb-progress .circle {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 50%;
  background: #E5E7EB;
  margin-bottom: 0.5rem;
}

/* Historique */
.pb-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.pb-history-table th,
.pb-history-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #E5E7EB;
}
.pb-history-table th {
  background-color: #F3F4F6;
  font-weight: 600;
}

/* Loader animé */
.pb-loader {
  border: 4px solid #F3F4F6;
  border-top: 4px solid #6C5BFF;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 1s linear infinite;
  margin: 1rem auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Messages d’erreur & succès */
.pb-error {
  color: #E02424;
  font-weight: 500;
}
.pb-success {
  color: #15803D;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 600px) {
  .pb-balance-container,
  .pb-form,
  .pb-history-results {
    margin: 1rem;
    padding: 1rem;
  }
  .pb-balance-container .pb-balance-value {
    font-size: 2rem;
  }
}