/**
 * Page profil utilisateur - L'Atelier de la Basket
 */
.profile-page {
  --profile-primary: #2d5a27;
  --profile-primary-hover: #234a1f;
  --profile-border: #e0e0e0;
  --profile-bg: #f8f9fa;
  --profile-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  font-size: 1rem;
}

.profile-page .container {
  max-width: 1400px;
}

/* Titre principal */
.profile-page h2 {
  color: #333;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--profile-primary);
  display: inline-block;
}

/* Cartes */
.profile-page .card {
  border: 1px solid var(--profile-border);
  border-radius: 10px;
  box-shadow: var(--profile-card-shadow);
  overflow: hidden;
}

.profile-page .card-header {
  font-weight: 600;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--profile-border);
  background: var(--profile-bg);
  color: #333;
}

.profile-page .card-body {
  padding: 1.25rem 1.5rem;
}

/* Bloc infos personnelles - lignes lisibles */
.profile-page .card-body .row.mb-2 {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.profile-page .card-body .row.mb-2:last-child {
  border-bottom: none;
}

.profile-page .card-body .col-sm-4 {
  color: #666;
  font-size: 0.95em;
}

.profile-page .card-body .col-sm-8 {
  color: #333;
}

/* Formulaires */
.profile-page .form-label {
  font-weight: 500;
  color: #444;
  margin-bottom: 0.35rem;
  text-transform: none;
  font-size: 0.95rem;
}

.profile-page .form-control {
  border-radius: 6px;
  border: 1px solid var(--profile-border);
  padding: 0.6rem 0.85rem;
}

.profile-page .form-control:focus {
  border-color: var(--profile-primary);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.15);
}

/* Boutons - style cohérent vert */
.profile-page .btn-primary {
  background-color: var(--profile-primary);
  border-color: var(--profile-primary);
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
}

.profile-page .btn-primary:hover {
  background-color: var(--profile-primary-hover);
  border-color: var(--profile-primary-hover);
}

.profile-page .btn-outline-primary {
  border-color: var(--profile-primary);
  color: var(--profile-primary);
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
}

.profile-page .btn-outline-primary:hover {
  background-color: var(--profile-primary);
  border-color: var(--profile-primary);
  color: #fff;
}

.profile-page .btn-outline-secondary {
  border-radius: 6px;
  padding: 0.6rem 1.25rem;
  font-weight: 500;
}

/* Groupe de boutons en bas */
.profile-page .mb-4 > .btn {
  min-width: 140px;
}

/* Flash messages */
.profile-page .alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.25rem;
  font-weight: 500;
}

.profile-page .alert-success {
  background-color: #d4edda;
  color: #155724;
}

.profile-page .alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.profile-page .alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Formulaire connexion / inscription (vue non connecté) */
.profile-page .card-header.bg-primary {
  background-color: var(--profile-primary) !important;
  border: none;
}

.profile-page .card-header.bg-success {
  background-color: var(--profile-primary) !important;
  border: none;
}

.profile-page .btn-success {
  background-color: var(--profile-primary);
  border-color: var(--profile-primary);
  border-radius: 6px;
  font-weight: 500;
}

.profile-page .btn-success:hover {
  background-color: var(--profile-primary-hover);
  border-color: var(--profile-primary-hover);
}

.profile-page .form-check-label {
  font-size: 0.95rem;
  color: #555;
}

.profile-page a.text-decoration-none {
  color: var(--profile-primary);
  font-weight: 500;
}

.profile-page a.text-decoration-none:hover {
  text-decoration: underline !important;
}
