/* pages.css - style commun des pages utilisateur (utilise les couleurs de theme.css) */

.pg-entete {
  text-align: center;
  margin: 0.5rem 0 1.25rem;
}

.pg-entete h1 {
  font-size: 1.8rem; /* CHANGÉ (design) : 1.6rem avant */
  line-height: 1.2;
  margin: 0 0 0.5rem;
}

.pg-entete p {
  color: var(--texte-doux);
  margin: 0;
}

.pg-carte {
  background: var(--carte);
  border: 1px solid var(--bordure);
  border-top: 6px solid var(--bleu); /* AJOUT (design) : liseré bleu */
  border-radius: 20px; /* CHANGÉ (design) : var(--rayon) avant */
  box-shadow: var(--ombre);
  padding: 1.25rem 1.1rem;
  margin: 0 0 1.25rem;
}

.pg-carte h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.pg-carte label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.pg-carte input {
  width: 100%;
  margin: 0 0 1rem;
}

.pg-carte .bouton {
  width: 100%;
}

.pg-carte label.pg-case {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: normal;
  margin: 0 0 1rem;
}

.pg-carte label.pg-case input {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}

.pg-carte .pg-aide {
  display: block;
  margin: -0.6rem 0 1rem;
  font-size: 0.9rem;
  color: var(--texte-doux);
}

/* AJOUT (correction liste de cartes) : une carte dans une liste garde sa marge intérieure et son espace du bas (theme.css les retirait) */
.liste-propre li.pg-carte {
  padding: 1.25rem 1.1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--bordure);
}

.pg-liens {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: center;
  margin: 0 0 1rem;
}

.pg-liens p {
  margin: 0;
}

/* AJOUT (design) : liens plus faciles à toucher au doigt */
.pg-liens a {
  display: inline-block;
  padding: 0.4rem 0.5rem;
  font-weight: 600;
}

.pg-message {
  margin: 0 0 1rem;
}

/* AJOUT (largeur PC) : PC et tablette, ces pages restent à 480 px, centrées */
@media (min-width: 700px) {
  .pg-entete,
  .pg-carte,
  .pg-liens,
  .pg-message {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  /* AJOUT (correction liste de cartes) : cartes d'une liste centrées sur PC et tablette */
  .liste-propre li.pg-carte {
    margin-left: auto;
    margin-right: auto;
  }
}
