/* =========================================================
   CandyShop — Itération 2 : styles des pages membres
   (s'ajoute à /style.css, mêmes variables de couleur)
   ========================================================= */

.entete-conteneur { gap: 2rem; }
.menu-principal { display: flex; align-items: center; gap: 2rem; }
.menu-compte { display: flex; align-items: center; gap: 1rem; }
.lien-connexion { font-weight: 600; }
.bouton-inscription {
  padding: 0.55rem 1.2rem; border-radius: 999px;
  background: var(--bubblegum); color: var(--plum); font-weight: 700;
}
.puce-membre {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem; border-radius: 999px;
  background: rgba(255, 246, 233, 0.12); font-weight: 700;
}
.puce-membre svg { width: 30px; height: 30px; border-radius: 50%; background: var(--cream); }
.lien-deconnexion { font-size: 0.9rem; opacity: 0.8; }

/* ---------- Gabarit des pages de formulaire ---------- */
.page-formulaire { max-width: 720px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.page-formulaire h1 { color: var(--plum); font-size: 2rem; margin: 0 0 0.5rem; }
.sous-titre { margin: 0 0 2rem; font-size: 1.05rem; }

.carte {
  background: #fff; border-radius: 16px; padding: 2rem;
  box-shadow: 0 8px 20px var(--ombre); margin-bottom: 1.5rem;
}
.carte h2 { font-size: 1.25rem; color: var(--plum); margin: 0 0 1.2rem; }

.champ { margin-bottom: 1.1rem; }
.champ label, .champ legend { display: block; font-weight: 700; margin-bottom: 0.4rem; color: var(--plum); }
.champ input[type=text], .champ input[type=email], .champ input[type=password], .champ select {
  width: 100%; padding: 0.75rem 0.9rem; border: 2px solid #f0e2cf; border-radius: 10px;
  font: inherit; background: var(--cream); color: var(--cocoa);
}
.aide-champ { font-size: 0.85rem; margin-top: 0.35rem; opacity: 0.8; }
.champ-erreur input { border-color: #D6336C !important; background: #FFF0F3 !important; }
.message-erreur { color: #D6336C; font-size: 0.88rem; font-weight: 700; margin-top: 0.4rem; }
.bandeau-erreur {
  background: #FFF0F3; border: 2px solid #D6336C; color: #A61E4D;
  border-radius: 12px; padding: 0.9rem 1.2rem; font-weight: 700; margin-bottom: 1.5rem;
}
.bandeau-succes {
  background: #F4F9DC; border: 2px solid var(--citron); color: var(--plum);
  border-radius: 12px; padding: 0.9rem 1.2rem; font-weight: 700; margin-bottom: 1.5rem;
}
.grille-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.actions-formulaire { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.bouton-secondaire {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px;
  border: 2px solid var(--plum); color: var(--plum); font-weight: 700; background: transparent;
}
.lien-discret { font-weight: 700; color: var(--bubblegum); }

/* ---------- Règles du mot de passe ---------- */
.regles-mdp { margin: 0.6rem 0 0; display: grid; gap: 0.25rem; font-size: 0.88rem; }
.regles-mdp li::before { content: "○ "; }
.regles-mdp .regle-ok { color: #5A7D1A; }
.regles-mdp .regle-ok::before { content: "✓ "; }

/* ---------- Progression du wizard (cercles numérotés) ---------- */
.progression-wizard { display: flex; justify-content: space-between; margin: 0 0 2.2rem; position: relative; }
.progression-wizard::before {
  content: ""; position: absolute; top: 19px; left: 8%; right: 8%;
  height: 4px; background: #f0e2cf; border-radius: 2px;
}
.etape-progression { position: relative; z-index: 1; flex: 1; text-align: center; font-size: 0.85rem; font-weight: 700; color: #b9a39a; }
.etape-progression span {
  display: flex; align-items: center; justify-content: center; margin: 0 auto 0.4rem;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid #f0e2cf;
  font-family: 'Fredoka', sans-serif; font-size: 1.05rem; color: #b9a39a;
}
.etape-faite { color: var(--plum); }
.etape-faite span { background: var(--citron); border-color: var(--citron); color: var(--plum); }
.etape-courante { color: var(--plum); }
.etape-courante span { background: var(--bubblegum); border-color: var(--bubblegum); color: #fff; }

/* ---------- Choix des goûts ---------- */
.choix-gouts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; border: 0; padding: 0; margin: 0; }
.choix-gout {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.8rem 1rem; border-radius: 12px;
  border: 2px solid #f0e2cf; background: var(--cream); font-weight: 700;
}
.choix-gout.choisi { border-color: var(--bubblegum); background: #FFE8EF; }
.choix-avatar { display: flex; gap: 1rem; align-items: center; }
.choix-avatar svg { width: 72px; height: 72px; border-radius: 16px; background: var(--cream); padding: 6px; border: 3px solid #f0e2cf; }
.choix-avatar svg.choisi { border-color: var(--bubblegum); }
.case { display: flex; gap: 0.6rem; align-items: center; font-weight: 600; }

/* ---------- Récapitulatif ---------- */
.recap dl { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.recap dt { font-weight: 700; color: var(--plum); }
.recap dd { margin: 0; }
.recap h2 { display: flex; justify-content: space-between; align-items: baseline; }
.recap h2 a { font-size: 0.9rem; color: var(--bubblegum); font-family: 'Nunito Sans', sans-serif; }

/* ---------- Espace membre ---------- */
.espace-membre { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.menu-membre { background: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: 0 8px 20px var(--ombre); align-self: start; }
.menu-membre .identite { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; margin-bottom: 1.2rem; }
.menu-membre .identite svg { width: 84px; height: 84px; border-radius: 20px; background: var(--cream); padding: 8px; }
.menu-membre .identite strong { font-family: 'Fredoka', sans-serif; color: var(--plum); font-size: 1.2rem; }
.menu-membre ul { display: grid; gap: 0.3rem; }
.menu-membre a { display: block; padding: 0.6rem 0.9rem; border-radius: 10px; font-weight: 700; }
.menu-membre a.lien-actif-membre { background: var(--plum); color: var(--cream); }
.contenu-membre h1 { color: var(--plum); font-size: 2rem; margin: 0 0 0.4rem; }

.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.5rem 0 2rem; }
.tuile { background: #fff; border-radius: 16px; padding: 1.4rem; box-shadow: 0 8px 20px var(--ombre); }
.tuile strong { display: block; font-family: 'Fredoka', sans-serif; font-size: 2rem; color: var(--bubblegum); }
.tuile a { font-weight: 700; color: var(--plum); }

table.historique { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 20px var(--ombre); }
.historique th { background: var(--plum); color: var(--cream); text-align: left; padding: 0.9rem 1rem; font-family: 'Fredoka', sans-serif; font-weight: 600; }
.historique td { padding: 0.9rem 1rem; border-bottom: 1px solid #f5ebdd; }
.historique tr.nouvel-achat td { background: #FFF6CC; }
.statut { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.statut-payee { background: var(--bubblegum); color: #fff; }
.statut-attente { background: var(--citron); color: var(--plum); }
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.pagination a { padding: 0.4rem 0.85rem; border-radius: 8px; background: #fff; font-weight: 700; box-shadow: 0 4px 10px var(--ombre); }
.pagination a[aria-current] { background: var(--plum); color: var(--cream); }

/* ---------- Paiement prérempli ---------- */
.resume-commande { display: flex; gap: 1.2rem; align-items: center; }
.resume-commande img { width: 70px; height: 70px; border-radius: 12px; object-fit: cover; }
.resume-commande h2 { margin: 0 0 0.2rem; }
.prix-resume { font-family: 'Fredoka', sans-serif; color: var(--bubblegum); font-size: 1.15rem; }
.adresse-compte { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; background: var(--cream); border-radius: 12px; padding: 1rem 1.2rem; }
.adresse-compte address { font-style: normal; line-height: 1.6; }
.options-preference { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.bouton-paiement { display: block; width: 100%; background: var(--tangerine); color: var(--plum); font-weight: 700; font-size: 1.1rem; padding: 1rem; border-radius: 999px; border: none; text-align: center; }

/* ---------- Bienvenue / confirmation ---------- */
.message-centre { text-align: center; max-width: 640px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.message-centre .grande-icone { font-size: 4rem; line-height: 1; margin-bottom: 1rem; }
.message-centre h1 { color: var(--plum); font-size: 2.3rem; margin: 0 0 0.8rem; }
.message-centre p { font-size: 1.1rem; }
.boutons-centre { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

@media (max-width: 760px) {
  .espace-membre { grid-template-columns: 1fr; }
  .grille-deux, .choix-gouts, .tuiles { grid-template-columns: 1fr; }
  .menu-principal ul { display: none; }
  .entete-conteneur { flex-wrap: wrap; }
  .recap dl { grid-template-columns: 1fr; }
}
ol.progression-wizard { list-style: none; padding: 0; }
.carte fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
button { font-family: inherit; }
.contenu-membre { min-width: 0; }
@media (max-width: 760px) {
  table.historique { display: block; overflow-x: auto; white-space: nowrap; }
}

/* =========================================================
   Centre d'aide (volet AIDE) · Profil · Options
   ========================================================= */
.recherche-aide { background: var(--plum); color: var(--cream); border-radius: 20px; padding: 2.2rem 2rem; margin-bottom: 2rem; }
.recherche-aide h1 { color: var(--cream); margin: 0 0 1rem; }
.barre-recherche { display: flex; gap: 0.6rem; }
.barre-recherche input { flex: 1; padding: 0.9rem 1.2rem; border-radius: 999px; border: 0; font: inherit; font-size: 1.05rem; }
.barre-recherche button { padding: 0.9rem 1.6rem; border-radius: 999px; border: 0; background: var(--bubblegum); color: var(--plum); font-weight: 700; font-size: 1rem; }
.exemples-questions { margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; }
.exemples-questions a { padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(255, 246, 233, 0.15); }

.grille-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.2rem; }
.carte-categorie { background: #fff; border-radius: 16px; padding: 1.2rem; box-shadow: 0 8px 20px var(--ombre); }
.carte-categorie strong { display: block; font-family: 'Fredoka', sans-serif; color: var(--plum); font-size: 1.1rem; }
.carte-categorie span { font-size: 0.88rem; opacity: 0.8; }
.pastille { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 0.4rem; }

.titre-section { font-size: 1.4rem; color: var(--plum); margin: 0 0 1rem; }
.faq details { background: #fff; border-radius: 14px; margin-bottom: 0.7rem; box-shadow: 0 4px 12px var(--ombre); }
.faq summary { cursor: pointer; padding: 1rem 1.3rem; font-weight: 700; color: var(--plum); list-style: none; display: flex; justify-content: space-between; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: 'Fredoka', sans-serif; font-size: 1.3rem; line-height: 1; color: var(--bubblegum); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { outline: 2px solid var(--bubblegum); }
.faq details p { margin: 0; padding: 0 1.3rem 1.1rem; }

.encart-question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #FFE8EF; border-radius: 16px; padding: 1.3rem 1.6rem; margin-top: 2rem; }
.encart-question p { margin: 0; font-weight: 700; color: var(--plum); }

.resultats { display: grid; gap: 0.9rem; }
.resultat { background: #fff; border-radius: 14px; padding: 1.1rem 1.4rem; box-shadow: 0 4px 12px var(--ombre); }
.resultat h2 { font-size: 1.1rem; margin: 0 0 0.3rem; }
.resultat h2 a { color: var(--plum); }
.resultat p { margin: 0; font-size: 0.95rem; }
.resultat mark { background: var(--citron); color: var(--plum); padding: 0 0.15rem; border-radius: 3px; }
.etiquette-categorie { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; background: var(--cream); margin-bottom: 0.4rem; }
.compte-resultats { margin: 0 0 1rem; font-weight: 700; }

.fil-aide { font-size: 0.9rem; margin: 0 0 1rem; }
.fil-aide a { color: var(--bubblegum); font-weight: 700; }
.article-aide { background: #fff; border-radius: 16px; padding: 2rem 2.2rem; box-shadow: 0 8px 20px var(--ombre); }
.article-aide h1 { margin: 0 0 0.5rem; }
.meta-article { font-size: 0.85rem; opacity: 0.75; margin: 0 0 1.5rem; }
.article-aide h2 { font-size: 1.15rem; color: var(--plum); margin: 1.5rem 0 0.5rem; }
.article-aide ul { list-style: disc; padding-left: 1.4rem; display: grid; gap: 0.3rem; }
.articles-lies { margin-top: 1.5rem; }
.articles-lies ul { display: grid; gap: 0.4rem; }
.articles-lies a { font-weight: 700; color: var(--plum); }

.champ textarea { width: 100%; min-height: 140px; padding: 0.75rem 0.9rem; border: 2px solid #f0e2cf; border-radius: 10px; font: inherit; background: var(--cream); color: var(--cocoa); resize: vertical; }
.liste-questions { display: grid; gap: 0.8rem; }
.ma-question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #fff; border-radius: 14px; padding: 1rem 1.3rem; box-shadow: 0 4px 12px var(--ombre); }
.ma-question strong { color: var(--plum); }
.ma-question small { display: block; opacity: 0.75; }
.statut-reponse { background: var(--citron); color: var(--plum); }

.options-liste { display: grid; gap: 1rem; }
.option-ligne { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid #f5ebdd; }
.option-ligne:last-child { border-bottom: 0; }
.option-ligne strong { display: block; color: var(--plum); }
.option-ligne small { opacity: 0.75; }
.choix-segmente { display: inline-flex; border: 2px solid var(--plum); border-radius: 999px; overflow: hidden; }
.choix-segmente label { padding: 0.45rem 1rem; font-weight: 700; font-size: 0.9rem; }
.choix-segmente label.choisi { background: var(--plum); color: var(--cream); }
.choix-segmente input { position: absolute; opacity: 0; }
.note-appareil { font-size: 0.85rem; background: var(--cream); border-radius: 10px; padding: 0.7rem 1rem; margin-top: 1rem; }
.avatar-profil { display: flex; align-items: center; gap: 1.2rem; }
.avatar-profil svg { width: 84px; height: 84px; border-radius: 20px; background: var(--cream); padding: 8px; }

@media (max-width: 760px) {
  .grille-categories { grid-template-columns: 1fr 1fr; }
  .barre-recherche { flex-direction: column; }
  .encart-question, .ma-question, .option-ligne { flex-direction: column; align-items: flex-start; }
}
.case input[type=checkbox], .case input[type=radio] { width: auto; flex: none; margin: 0; }
.case { justify-content: flex-start; text-align: left; }
