/* Parcours membre : le cuivre de l'accueil, le lichen du planning et le prune de la boutique. */
body.theme-client {
  --action-membre: #593b2e;
  --action-survol: #422e25;
  --reflet-cuivre: radial-gradient(ellipse at 100% 0%, #dfb79a 0, transparent 53%),
    linear-gradient(125deg, #f3eee4, #fbf5eb 55%, #efd6c2);
  --reflet-boutique: radial-gradient(ellipse at 100% 0%, #d7bbcf, transparent 58%),
    linear-gradient(115deg, #f1e6e8, #faf0e6 62%, #ebdbe5);
  --ombre-papier: 0 10px 32px #4832250e, inset 0 1px 0 #ffffffba;
}
.theme-client :is(.parcours-achat, #panneau-reservation) { --action-membre: #604355; --action-survol: #483240; }
.theme-client :is(#choix-source, #detail-seance, .popup) { --action-membre: #445949; --action-survol: #314236; }

body.theme-client main:is(.parcours-achat, .parcours-compte) {
  box-sizing: border-box; width: 100%; max-width: 48rem; margin: 0 auto;
  padding: clamp(16px, 3vw, 36px) clamp(16px, 4vw, 40px) 3rem; overflow-wrap: anywhere;
}
body.theme-client main.parcours-compte { max-width: 40rem; }
.theme-client .parcours-compte > .entete-membre,
.theme-client .parcours-achat :is(.entete-commande, .entete-checkout-express),
.theme-client .parcours-achat > h1 {
  padding: clamp(20px, 4vw, 36px); border: 1px solid #ded2c5; border-radius: 24px;
  background: var(--reflet-cuivre); box-shadow: var(--ombre-papier);
}
.theme-client .parcours-achat :is(.entete-commande, .entete-checkout-express),
.theme-client .parcours-achat > h1 { background: var(--reflet-boutique); border-color: #dfcfd8; }
.theme-client .parcours-compte h1, .theme-client .parcours-achat h1,
body.theme-client .connexion-entete h1 {
  margin: 0; color: var(--ink); font: 400 clamp(2rem, 5vw, 3.15rem)/1.08 var(--serif); letter-spacing: -.045em;
}
.theme-client :is(.parcours-compte, .parcours-achat) :is(.tunnel, .mfa-carte, .form-identifiants, .panier-checkout-express) {
  min-width: 0; padding: clamp(18px, 4vw, 30px); border: 1px solid var(--line);
  border-radius: 22px; background: var(--paper); box-shadow: var(--ombre-papier);
}
.theme-client :is(.parcours-compte, .parcours-achat) :is(.tunnel, .form-identifiants) { gap: 1rem; }
.theme-client :is(.parcours-achat, .parcours-compte) h2 {
  font: 400 clamp(1.45rem, 3vw, 1.85rem)/1.16 var(--serif); color: var(--ink); letter-spacing: -.025em;
}
.theme-client .parcours-achat .badge-checkout-express { color: #603e55; background: #fffcf7c2; }
.theme-client .parcours-achat .recap-commande .infos strong { color: var(--ink); }
.theme-client .parcours-achat .quantite button { width: 44px; height: 44px; padding: 0; border-radius: 50%; background: var(--paper); }
body.theme-client .parcours-achat .quantite button { color: var(--action-membre); }
.theme-client .parcours-achat .total-panier strong { color: var(--action-membre); }
.theme-client .parcours-achat .ligne-identification { flex-wrap: wrap; gap: .4rem 1rem; }

body.theme-client main.parcours-connexion { display: grid; width: 100%; max-width: none; margin: 0; padding: 0; }
body.theme-client:has(.parcours-connexion) {
  background: radial-gradient(ellipse at 80% 5%, #ebd2bc, transparent 54%), var(--linen);
}
body.theme-client .connexion-page {
  display: grid; place-items: center; min-height: auto; padding: clamp(18px, 5vw, 64px) clamp(12px, 3vw, 32px); background: transparent;
}
body.theme-client .connexion-cadre {
  width: min(100%, 31rem); border: 1px solid #dfd3c6; border-radius: 26px;
  background: radial-gradient(ellipse 78% 14rem at 102% -3%, #e6c6ab, transparent 90%), var(--paper);
  box-shadow: 0 14px 50px #48322512, inset 0 1px 0 #fff;
}
body.theme-client :is(.connexion-marque, .connexion-entete) { margin-bottom: 1.5rem; }
body.theme-client .connexion-sur-titre { color: var(--clay); }
body.theme-client .connexion-inscription { border: 1px solid var(--line); border-radius: 14px; background: #f4eee5; }
body.theme-client .parcours-connexion :is(.connexion-voir, .connexion-ligne-label a, .connexion-inscription, .connexion-inscription svg),
body.theme-client .connexion-champ:focus-within > svg { color: var(--action-membre); }
body.theme-client .parcours-connexion .connexion-voir { background: #f4eee5; }
body.theme-client .connexion-inscription:hover { background: #efe6d9; border-color: #ab8c73; }
body.theme-client :is(.parcours-achat, .parcours-compte, .parcours-connexion) :is(input:not([type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
  box-sizing: border-box; min-width: 0; max-width: 100%; min-height: 48px;
  background-color: #fffefa; border: 1px solid #bcb3a6; border-radius: 13px; color: var(--ink); font-size: 1rem;
}
body.theme-client :is(.parcours-achat, .parcours-compte, .parcours-connexion) :is(input, select, textarea):focus {
  outline: 2px solid var(--action-membre); outline-offset: 2px; box-shadow: none;
}
body.theme-client :is(.parcours-achat, .parcours-compte, .parcours-connexion) input[aria-invalid="true"] { border-color: #913f32; }
.theme-client .parcours-connexion .connexion-alerte, .theme-client .parcours-achat :is(.erreur-commande, .erreur-tunnel) {
  padding: .8rem 1rem; border: 1px solid #e5c5b9; border-radius: 14px; background: #fbede6; color: #823e31;
}
.theme-client :is(.parcours-compte, .parcours-achat) :is(.erreur-champ, .erreur-mfa) { color: #8a3e30; }
.theme-client .parcours-compte .mfa-carte h1 { margin-bottom: 1rem; }

body.theme-client :is(.parcours-achat :is(.valider, .action-finalisation), .parcours-compte .valider, .mfa-carte button[type="submit"]:not(.secondaire),
  .mfa-carte .bouton-mfa, .connexion-valider, [data-choix-source] > button, #popup-fermer, .action-retour-reservation,
  #panneau-reservation .valider-panneau, .confirmation-actions [data-role="valider"]) {
  min-height: 48px; border: 1px solid transparent; border-radius: 15px;
  background: var(--fond-action-membre, var(--action-membre)); color: #fffaf4; box-shadow: inset 0 1px 0 #ffffff26;
  font-family: var(--sans); font-weight: 600; line-height: 1.35; text-decoration: none;
}
body.theme-client :where(button, a):hover:not(:disabled) { --fond-action-membre: var(--action-survol); }
.theme-client :is(.parcours-achat, .parcours-compte, .parcours-connexion) button:disabled { opacity: .55; cursor: not-allowed; }
body.theme-client dialog:has(.resultat-reservation) {
  --action-membre: #445949; --action-survol: #314236;
  background: radial-gradient(ellipse at top right, #dce6d9, transparent 64%), var(--paper);
}
body.theme-client dialog:has(.resultat-reservation.refus) {
  --action-membre: #784537; --action-survol: #60362b;
  background: radial-gradient(ellipse at top right, #efd6c8, transparent 64%), var(--paper);
}
.theme-client :is(#detail-seance, #choix-source) .action-retour-reservation { width: 100%; }
.theme-client .actions-confirmation-creneau a { color: var(--action-membre); }
.theme-client .resultat-reservation + p { line-height: 1.55; color: var(--muted); }
.theme-client .parcours-achat a.valider { display: inline-flex; align-items: center; justify-content: center; }
.theme-client .action-retour-reservation { padding: .7rem 1.2rem; }
.theme-client .parcours-achat .choix-paiement .valider { padding-inline-start: 3.4rem; }
.theme-client .parcours-achat .choix-paiement .valider:not(:has(.picto-moyen)) { padding-inline-start: 1rem; }

body.theme-client :is(dialog.popup, dialog.confirmation) {
  --teinte-resultat: #e1e9dc; --encre-resultat: #405644;
  max-width: calc(100% - 1.5rem); padding: clamp(22px, 4vw, 32px); text-align: start;
  background: radial-gradient(ellipse at top right, var(--teinte-resultat), transparent 68%), var(--paper);
  border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 20px 65px #30291e30;
}
body.theme-client :is(dialog.popup.refus, dialog.confirmation.danger, dialog.confirmation-annulation) {
  --teinte-resultat: #f2ded1; --encre-resultat: #803f31;
}
body.theme-client dialog.popup.refus { --action-membre: #784537; --action-survol: #60362b; }
body.theme-client .confirmation-actions .danger { --action-membre: #873d32; --action-survol: #683027; }
.theme-client :is(.popup .popup-icone, .confirmation-annulation .confirmation-icone) {
  width: 46px; height: 46px; margin: 0 0 1rem; color: var(--encre-resultat); background: var(--teinte-resultat);
}
body.theme-client :is(dialog.popup, dialog.confirmation) h2 { font: 400 1.85rem/1.1 var(--serif); letter-spacing: -.035em; }
.theme-client .popup p, .theme-client .confirmation p { color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.theme-client .confirmation-actions { flex-wrap: wrap; }
.theme-client .confirmation-actions button { min-height: 44px; }
.theme-client .confirmation-actions [data-role="retour"] {
  border: 1px solid #c3b7a8; border-radius: 15px; background: var(--paper); color: var(--ink);
}
.theme-client .messages-membre button[hidden], .theme-client .messages-membre:not(:has(li)) { display: none; }
.theme-client .messages-membre { width: min(100%, 28rem); }
.theme-client .messages-membre:has(button:not([hidden])) {
  position: fixed; z-index: 35; inset-inline: 0; bottom: max(14px, env(safe-area-inset-bottom));
  padding: 4px 12px; max-height: 45dvh; overflow-y: auto; pointer-events: none;
}
.theme-client:has(#barre-panier:not([hidden])) .messages-membre { bottom: calc(86px + env(safe-area-inset-bottom)); }
.theme-client .messages-membre li {
  --marque-message: var(--clay); display: flex; align-items: center; gap: .75rem; pointer-events: auto;
  margin: .3rem 0; padding: .45rem .55rem .45rem 1rem; border: 1px solid var(--line); border-radius: 17px;
  background: var(--paper); color: var(--ink); box-shadow: 0 5px 16px #382c201a; overflow-wrap: anywhere;
}
.theme-client .messages-membre li::before { content: ""; width: 4px; height: 1.6rem; flex: none; border-radius: 2px; background: var(--marque-message); }
.theme-client .messages-membre li.success { --marque-message: #526a53; background: #f1f5ec; }
.theme-client .messages-membre li.warning { --marque-message: #896324; background: #fcf2dc; }
.theme-client .messages-membre li.error { --marque-message: #943f32; background: #fbede6; }
.theme-client .messages-membre button {
  flex: none; width: 44px; height: 44px; margin-inline-start: auto; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.35rem; box-shadow: none;
}
.theme-client .messages-membre button:hover { background: #39291d0c; }

@media (max-width: 719px) {
  body.theme-client :is(dialog.popup, dialog.confirmation) {
    margin: auto auto max(10px, env(safe-area-inset-bottom)); max-height: calc(100dvh - 30px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-client .messages-membre li { transition: none; }
}
@media print {
  .theme-client .messages-membre { display: none; }
}
