/**
 * Page profil utilisateur - L'Atelier de la Basket
 * Charte : noir #151515, cadres 2px + ombre décalée (titres du site), angles droits, Stratos.
 */
.profile-page {
  --profile-ink: #151515;
  --profile-muted: #6b6b6b;
  --profile-line: #d9d9d9;
  --profile-soft: #f1f1f1;
  --profile-accent: #f78e21;
  font-size: 1rem;
  color: var(--profile-ink);
}

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

/* Largeur fixe : le bloc mot de passe déplié ne doit pas élargir la page */
.profile-page .container.profile-account {
  width: 720px;
  max-width: 100%;
}

/* Titres */
.profile-page .profile-title {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.profile-page .profile-title h1,
.profile-page h2 {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 1.5rem;
  border: 2px solid var(--profile-ink);
  box-shadow: 5px 5px 0 var(--profile-ink);
  font-family: Stratos, Roboto, Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--profile-ink);
}

.profile-page h2 {
  font-size: 1.5rem;
}

.profile-page .profile-intro {
  margin: -1.25rem auto 2.5rem;
  max-width: 36rem;
  text-align: center;
  color: var(--profile-muted);
}

/* Cartes */
.profile-page .card {
  border: 2px solid var(--profile-ink);
  border-radius: 0;
  box-shadow: 5px 5px 0 var(--profile-ink);
  background: #fff;
  overflow: visible;
}

.profile-page .card-header,
.profile-page .card-header.bg-primary,
.profile-page .card-header.bg-success {
  padding: 1rem 1.5rem;
  border: 0;
  border-bottom: 2px solid var(--profile-ink);
  border-radius: 0;
  background: var(--profile-ink) !important;
  color: #fff !important;
}

.profile-page .card-header h3,
.profile-page .card-header .h5 {
  margin: 0;
  font-family: Stratos, Roboto, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

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

/* Changement de mot de passe : bouton qui déplie le formulaire */
.profile-page .profile-password {
  display: block;
  width: 100%;
}

.profile-page .profile-password > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
  border-bottom: 0;
  background: #fff !important;
  transition: background 0.15s, color 0.15s;
}

.profile-page .profile-password > summary::-webkit-details-marker {
  display: none;
}

.profile-page .profile-password > summary h3.h5 {
  color: var(--profile-ink);
}

.profile-page .profile-password > summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--profile-ink);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.profile-page .profile-password > summary:hover,
.profile-page .profile-password[open] > summary {
  background: var(--profile-ink) !important;
}

.profile-page .profile-password > summary:hover h3.h5,
.profile-page .profile-password > summary:hover::after,
.profile-page .profile-password[open] > summary h3.h5,
.profile-page .profile-password[open] > summary::after {
  color: #fff;
}

.profile-page .profile-password[open] > summary {
  border-bottom: 2px solid var(--profile-ink);
}

.profile-page .profile-password[open] > summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.profile-page .profile-password > summary:focus-visible {
  outline: 3px solid #f78e21;
  outline-offset: 2px;
}

.profile-page .profile-password__hint {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--profile-muted);
}

.profile-page .profile-password__hint a {
  font-weight: 700;
  color: var(--profile-ink);
  text-decoration: underline;
  text-decoration-color: #f78e21;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* Bloc infos personnelles */
.profile-page .card-body .row.mb-2 {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--profile-soft);
}

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

.profile-page .card-body .col-sm-4 {
  color: var(--profile-muted);
  font-size: 0.95em;
}

.profile-page .card-body .col-sm-8 {
  color: var(--profile-ink);
}

/* Formulaires */
.profile-page .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--profile-ink);
}

.profile-page .form-control {
  height: 46px;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--profile-line);
  border-radius: 0;
  background: #fff;
  color: var(--profile-ink);
}

.profile-page .form-control:focus {
  border-color: var(--profile-ink);
  box-shadow: 0 0 0 1px var(--profile-ink);
}

.profile-page .form-text {
  font-size: 0.8rem;
  color: var(--profile-muted) !important;
}

.profile-page .profile-optional {
  margin: 1.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--profile-line);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--profile-muted);
}

/* Boutons : noirs, inversés au survol (comme le reste du site) */
.profile-page .btn {
  height: auto;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--profile-ink);
  border-radius: 0;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.profile-page .btn-primary,
.profile-page .btn-success {
  background: var(--profile-ink);
  border-color: var(--profile-ink);
  color: #fff;
}

.profile-page .btn-primary:hover,
.profile-page .btn-primary:focus,
.profile-page .btn-success:hover,
.profile-page .btn-success:focus {
  background: #fff;
  border-color: var(--profile-ink);
  color: var(--profile-ink);
}

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

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

.profile-page .mb-4 > .btn {
  min-width: 140px;
}

/* Liens */
.profile-page a:not(.btn) {
  color: var(--profile-ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--profile-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.profile-page a:not(.btn):hover,
.profile-page a:not(.btn):focus {
  color: var(--profile-accent);
}

/* Case à cocher */
.profile-page .form-check-input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  border: 2px solid var(--profile-ink);
  border-radius: 0;
  accent-color: var(--profile-ink);
}

.profile-page .form-check-label {
  font-size: 0.95rem;
  text-transform: none;
  color: var(--profile-ink);
}

/* Messages */
.profile-page .alert {
  border: 2px solid var(--profile-ink);
  border-left-width: 6px;
  border-radius: 0;
  padding: 1rem 1.25rem;
  background: #fff;
  color: var(--profile-ink);
  font-weight: 500;
}

.profile-page .alert-success {
  border-left-color: #28a745;
}

.profile-page .alert-danger {
  border-left-color: #dc3545;
}

.profile-page .alert-info {
  border-left-color: var(--profile-accent);
}

/* Connexion Google / Facebook */
.profile-page .pjx-social-login {
  max-width: none;
  margin-bottom: 2.5rem !important;
  padding: 1.5rem;
  border: 2px solid var(--profile-ink);
  background: var(--profile-soft);
}

.profile-page .pjx-social-login__title {
  font-family: Stratos, Roboto, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-page .pjx-social-btn {
  min-width: 15rem;
}

@media (max-width: 767.98px) {
  .profile-page .profile-title h1 {
    font-size: 1.5rem;
  }

  .profile-page .card {
    box-shadow: 4px 4px 0 var(--profile-ink);
  }

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

  .profile-page .pjx-social-btn {
    width: 100%;
  }
}
