/* « Mon Club » : la fête en haut, la carte et le solde au centre, des onglets dessous. */
.cjb {
	--b-encre: #1d1d1f; --b-texte: #424245; --b-doux: #6e6e73; --b-trait: #e7e4ee; --b-gris: #f5f5f7; --b-blanc: #fff;
	--b-violet: #7211cc; --b-violet-vif: #8f15ff; --b-pale: #f3eafe; --b-ok: #17794a; --b-alerte: #9a5b00;
	--b-degrade: linear-gradient(100deg, #7211cc 0%, #a246ff 55%, #d36bff 100%);
	display: flex; flex-direction: column; gap: 22px; color: var(--b-texte); min-width: 0;
}
.cjb p { margin: 0; }
.cjb h3 { font-size: 18px !important; font-weight: 700 !important; color: var(--b-encre); margin: 8px 0 12px !important; letter-spacing: -.01em; }
.cjb-note { font-size: 14px; color: var(--b-doux); margin-top: 10px !important; }
.cjb-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--b-violet); color: #fff !important; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none !important; cursor: pointer; }
.cjb-bouton:hover { background: var(--b-violet-vif); }
.cjb-bouton-petit { min-height: 36px; padding: 0 16px; font-size: 14px; }
.cjb-bouton-second { background: var(--b-blanc); color: var(--b-violet) !important; border: 1px solid var(--b-violet); }
.cjb-bouton-second:hover { background: var(--b-pale); }
.cjb button:focus-visible, .cjb a:focus-visible { outline: 3px solid var(--b-violet-vif); outline-offset: 2px; }

/* La fête */
.cjb-fete { position: relative; overflow: hidden; text-align: center; padding: 30px 20px 26px; border-radius: 26px; background: radial-gradient(600px 220px at 50% 0%, rgba(162, 70, 255, .35), rgba(162, 70, 255, 0) 70%), #120c1d; color: #d9d4e6; }
.cjb-fete-sur { font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #c7b3ff; }
.cjb-fete-plus { margin-top: 6px !important; font-size: clamp(46px, 9vw, 68px); line-height: 1; font-weight: 700; letter-spacing: -.045em; background: var(--b-degrade); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cjb-fete-plus span { font-size: .42em; letter-spacing: -.01em; }
.cjb-fete-quoi { margin-top: 10px !important; font-size: 16px; color: #fff; }
.cjb-fete-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px !important; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; }
.cjb-fete-badge svg { width: 20px; height: 20px; color: #d6b8ff; }
.cjb-confettis i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; }
.cjb-confettis i:nth-child(odd) { background: #a246ff; } .cjb-confettis i:nth-child(even) { background: #ffd166; } .cjb-confettis i:nth-child(3n) { background: #7ee3c2; }
.cjb-confettis i:nth-child(1) { left: 8%; } .cjb-confettis i:nth-child(2) { left: 18%; } .cjb-confettis i:nth-child(3) { left: 29%; } .cjb-confettis i:nth-child(4) { left: 40%; } .cjb-confettis i:nth-child(5) { left: 51%; }
.cjb-confettis i:nth-child(6) { left: 61%; } .cjb-confettis i:nth-child(7) { left: 70%; } .cjb-confettis i:nth-child(8) { left: 79%; } .cjb-confettis i:nth-child(9) { left: 88%; } .cjb-confettis i:nth-child(10) { left: 95%; }
@media (prefers-reduced-motion: no-preference) {
	.cjb-confettis i { animation: cjb-tombe 2.6s cubic-bezier(.2, .6, .4, 1) forwards; }
	.cjb-confettis i:nth-child(2n) { animation-delay: .15s; animation-duration: 2.9s; } .cjb-confettis i:nth-child(3n) { animation-delay: .3s; animation-duration: 2.4s; }
	@keyframes cjb-tombe { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(240px) rotate(540deg); } }
	.cjb-fete-plus { animation: cjb-pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
	@keyframes cjb-pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
}
.cjb-bandeau { padding: 12px 16px; border-radius: 14px; background: var(--b-pale); color: var(--b-encre); font-size: 15px; }

/* Carte + solde */
.cjb-coeur { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; border-radius: 26px; background: var(--b-gris); }
@media (max-width: 760px) { .cjb-coeur { grid-template-columns: minmax(0, 1fr); padding: 16px; } }
.cjb-carte { all: unset; box-sizing: border-box; cursor: pointer; aspect-ratio: 1.586 / 1; width: 100%; border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: linear-gradient(135deg, #5b0ba8 0%, #7211cc 35%, #8f15ff 70%, #b45cff 100%); box-shadow: 0 20px 40px -24px rgba(91, 11, 168, .7); transition: transform .2s; }
.cjb-carte:hover { transform: translateY(-2px); }
.cjb-carte:focus-visible { outline: 3px solid var(--b-violet-vif); outline-offset: 3px; }
.cjb-carte-l1 { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 700; }
.cjb-carte-l1 em { font-style: normal; font-weight: 500; opacity: .85; }
.cjb-carte-voir { font-weight: 600; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.cjb-carte-nom { font-weight: 600; font-size: 16px; }
.cjb-carte-code { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; color: #111; border-radius: 9px; padding: 8px 10px 6px; }
.cjb-carte-code .cjc-code-barres { width: 100%; height: 42px; display: block; }
.cjb-carte-code > span { font: 600 11.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.cjb-solde { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cjb-solde-sur { font-size: 14px; font-weight: 600; color: var(--b-doux); }
.cjb-solde-pts { line-height: 1; }
.cjb-compteur { font-size: clamp(48px, 7vw, 64px); font-weight: 700; letter-spacing: -.045em; color: var(--b-encre); font-variant-numeric: tabular-nums; }
.cjb-unite { font-size: 18px; font-weight: 600; color: var(--b-doux); }
.cjb-objectif { font-size: 16px; color: var(--b-texte); }
.cjb-objectif.is-ok { color: var(--b-encre); }
.cjb-solde .cjb-bouton { align-self: flex-start; }
.cjb-jauge { height: 12px; border-radius: 99px; background: #e4ddf2; overflow: hidden; }
.cjb-jauge > span { display: block; height: 100%; border-radius: 99px; background: var(--b-degrade); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.cjb-jauge-legende { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--b-doux); font-variant-numeric: tabular-nums; }
.cjb-alerte { font-size: 14px; color: var(--b-alerte); font-weight: 500; }

/* Raccourcis */
.cjb-raccourcis { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.cjb-raccourcis a, .cjb-raccourcis button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: 18px; background: var(--b-blanc); border: 1px solid var(--b-trait); color: var(--b-encre) !important; font-weight: 600; font-size: 14.5px; line-height: 1.3; text-decoration: none !important; transition: border-color .2s, box-shadow .2s; }
.cjb-raccourcis a:hover, .cjb-raccourcis button:hover { border-color: var(--b-violet); box-shadow: 0 8px 22px -14px rgba(114, 17, 204, .6); }
.cjb-raccourcis svg { width: 24px; height: 24px; color: var(--b-violet); }

/* Onglets */
.cjb-onglets { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--b-gris); overflow-x: auto; scrollbar-width: none; }
.cjb-onglets::-webkit-scrollbar { display: none; }
.cjb-onglets button { all: unset; box-sizing: border-box; cursor: pointer; flex: 1 0 auto; text-align: center; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--b-doux); white-space: nowrap; }
.cjb-onglets button b { display: inline-block; min-width: 20px; margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: var(--b-violet); color: #fff; font-size: 12px; }
.cjb-onglets button small { margin-left: 4px; font-size: 12px; font-weight: 500; }
.cjb-onglets button[aria-selected="true"] { background: var(--b-blanc); color: var(--b-encre); box-shadow: 0 2px 8px rgba(29, 29, 31, .08); }
.cjb-onglets button:focus-visible { outline: 2px solid var(--b-violet-vif); }
.cjb.is-js .cjb-panneau[hidden] { display: none !important; }
.cjb-panneau { padding: 4px 2px 0; }

/* Récompenses */
.cjb-bons, .cjb-recompenses, .cjb-historique, .cjb-filleuls, .cjb-actions-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cjb-bons li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--b-violet); background: var(--b-pale); }
.cjb-bon-quoi { flex: 1 1 180px; font-weight: 700; color: var(--b-encre); display: flex; flex-direction: column; gap: 2px; }
.cjb-bon-quoi small { font-weight: 400; font-size: 13px; color: var(--b-doux); }
.cjb-bons code { font: 700 17px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; color: var(--b-violet); background: var(--b-blanc); padding: 8px 12px; border-radius: 8px; }
.cjb-recompenses li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nom pts" "jauge jauge" "action action"; gap: 8px 12px; padding: 16px; border-radius: 16px; background: var(--b-blanc); border: 1px solid var(--b-trait); }
.cjb-recompenses li.is-ok { border-color: var(--b-violet); box-shadow: 0 10px 24px -18px rgba(114, 17, 204, .8); }
.cjb-r-nom { grid-area: nom; font-weight: 600; color: var(--b-encre); }
.cjb-r-pts { grid-area: pts; font-weight: 700; color: var(--b-violet); font-variant-numeric: tabular-nums; }
.cjb-recompenses .cjb-r-jauge { grid-area: jauge; }
.cjb-recompenses form, .cjb-r-manque { grid-area: action; margin: 0; }
.cjb-r-manque { font-size: 13.5px; color: var(--b-doux); }
.cjb-r-jauge { display: block; height: 6px; border-radius: 99px; background: var(--b-gris); overflow: hidden; width: 100%; }
.cjb-r-jauge > span { display: block; height: 100%; border-radius: 99px; background: var(--b-degrade); }
.cjb-actions-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--b-gris); }
.cjb-actions-liste strong { color: var(--b-violet); white-space: nowrap; }

/* Badges */
.cjb-badges { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cjb-badges li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px; padding: 18px 12px 14px; border-radius: 18px; border: 1px solid var(--b-trait); background: var(--b-gris); color: var(--b-doux); font-size: 13px; }
.cjb-badges li strong { color: var(--b-texte); font-size: 14.5px; }
.cjb-badges li.is-obtenu { background: var(--b-blanc); }
.cjb-badges li.is-obtenu strong { color: var(--b-encre); }
.cjb-badges .cjb-badge-icone { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; border: 2px dashed #cfc7dd; color: #a49cb4; background: var(--b-blanc); margin-bottom: 4px; }
.cjb-badges li.is-obtenu .cjb-badge-icone { border: 0; color: #fff; background: linear-gradient(135deg, #7211cc, #b45cff); box-shadow: 0 8px 18px -10px rgba(114, 17, 204, .8); }
.cjb-badges em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--b-violet); background: var(--b-pale); padding: 2px 8px; border-radius: 99px; }
.cjb-badges small { font-size: 12px; }

/* Parrainage */
.cjb-gros { font-size: 17px; line-height: 1.5; color: var(--b-encre); }
.cjb-code-parrain, .cjb-lien-parrain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.cjb-code-parrain > span { color: var(--b-doux); font-size: 14px; }
.cjb-code-parrain code { font: 700 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; color: var(--b-violet); }
.cjb-lien-parrain input { flex: 1 1 220px; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--b-trait); background: var(--b-gris); font: inherit; font-size: 13.5px; color: var(--b-texte); }
.cjb-partage { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px !important; }
.cjb-filleuls li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--b-gris); font-weight: 500; color: var(--b-encre); }
.cjb-filleuls span { font-size: 13px; font-weight: 400; color: var(--b-doux); }
.cjb-filleuls span.is-ok { color: var(--b-ok); font-weight: 600; }

/* Historique */
.cjb-historique { gap: 0; }
.cjb-historique li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--b-trait); }
.cjb-h-quoi { display: flex; flex-direction: column; gap: 2px; color: var(--b-encre); font-size: 15px; min-width: 0; }
.cjb-h-quoi small { font-size: 12.5px; color: var(--b-doux); }
.cjb-h-pts { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cjb-historique .is-plus .cjb-h-pts { color: var(--b-ok); }
.cjb-historique .is-moins .cjb-h-pts { color: var(--b-doux); }

/* Plein écran « Présenter ma carte » */
.cjb-plein { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(18, 12, 29, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cjb-plein[hidden] { display: none !important; }
.cjb-plein-boite { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 28px; padding: 30px 24px 24px; text-align: center; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.cjb-plein-fermer { all: unset; cursor: pointer; position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--b-gris); color: var(--b-encre); font-size: 22px; line-height: 36px; text-align: center; }
.cjb-plein-marque { font-weight: 700; color: var(--b-violet); letter-spacing: .02em; }
.cjb-plein-marque em { font-style: normal; font-weight: 500; }
.cjb-plein-nom { font-size: 20px; font-weight: 700; color: var(--b-encre); }
.cjb-plein-code { padding: 14px 6px 6px; }
.cjb-plein-code .cjc-code-barres { width: 100%; height: 110px; display: block; }
.cjb-plein-numero { font: 700 22px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; color: var(--b-encre); }
.cjb-plein-pts { font-size: 15px; color: var(--b-doux); }
.cjb-plein-aide { font-size: 13px; color: var(--b-doux); }

/* Encart du Club sur l'accueil de Mon compte */
.cja-club { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 22px 24px; border-radius: 20px; color: #fff; background: radial-gradient(520px 200px at 100% 0%, rgba(214, 107, 255, .45), rgba(214, 107, 255, 0) 70%), linear-gradient(135deg, #3d0874 0%, #7211cc 60%, #8f15ff 100%); }
.cja-club p { margin: 0 !important; color: inherit; }
.cja-club-texte { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cja-club-sur { font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #e3d0ff !important; }
.cja-club-sur em { font-style: normal; font-weight: 500; display: inline; margin: 0; font-size: inherit; color: inherit; }
.cja-club-solde { font-size: 17px; }
.cja-club-solde strong { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.cja-club-titre { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; text-wrap: balance; }
.cja-club-quoi { font-size: 15px; color: #f1e8ff !important; }
.cja-club-jauge { display: block; height: 8px; max-width: 360px; border-radius: 99px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.cja-club-jauge > span { display: block; height: 100%; border-radius: 99px; background: #fff; }
.cja-club-avantages { list-style: none; margin: 4px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 18px; font-size: 14.5px; color: #f1e8ff; }
.cja-club-avantages li { margin: 0; padding-left: 20px; position: relative; }
.cja-club-avantages li::before { content: "✓"; position: absolute; left: 0; color: #fff; font-weight: 700; }
.cja-club-avantages strong { color: #fff; }
.cjm .cja-club-bouton, .cja-club-bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #5b0ba8 !important; font-weight: 700; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.cja-club-bouton:hover { background: #f3eafe; }
.cja-club-bouton:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Lien de connexion sous l'écran de connexion */
.cja-lien { max-width: 460px; margin: 0 auto 32px; padding: 14px 18px; border: 1px solid #e6e3ee; border-radius: 14px; background: #fff; font-size: 14.5px; }
.cja-lien summary { cursor: pointer; font-weight: 600; color: #7211cc; }
.cja-lien .cjc-form { margin-top: 12px; }

/* Mon niveau (02/10/2026) */
.cjb-niveau-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 20px; border-radius: 20px; background: var(--b-gris); }
.cjb-niveau-tete > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cjb-niveaux { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .cjb-niveaux { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cjb-niveaux li { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 8px 14px; border-radius: 18px; border: 1px solid var(--b-trait); text-align: center; font-size: 13px; color: var(--b-doux); }
.cjb-niveaux li.is-courant { border-color: var(--b-violet); box-shadow: 0 10px 24px -18px rgba(114, 17, 204, .8); color: var(--b-encre); font-weight: 600; }
.cjb-niveaux .cjn-grande { width: 84px; height: 84px; font-size: 11px; }
.cjb-carte-l1 .cjn { font-size: 10px; padding: 2px 9px; }
.cjb-fete-badge .cjn { margin-left: 4px; }

/* La feuille du compte (compte.css) fait de tout <em> un bloc gris (« .cjm em ») :
   dans Mon Club, « Club » doit rester à côté de CYBER-JAY. */
.cjm .cjb em, .cjm .cja-club em { display: inline; margin: 0; font-size: inherit; color: inherit; }

/* Badge officiel « Ajouter à Apple Wallet » sous la carte (proportions d'origine, pas de recoloration). */
.cjb-carte-col { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.cjb-wallet { display: inline-block; line-height: 0; border-radius: 8px; }
.cjb-wallet img { display: block; height: 48px; width: auto; }
.cjb-wallet:focus-visible { outline: 3px solid var(--b-violet-vif); outline-offset: 3px; }
/* Accueil du compte : le badge Apple Wallet sous le bouton de l'encart du Club. */
.cja-club-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cja-club .cjb-wallet:focus-visible { outline-color: #fff; }

/* ── Cagnotte et statuts (refonte du 08/10/2026) ─────────────────────── */
.cjb-utiliser { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: var(--b-gris); }
.cjb-utiliser label { font-weight: 600; color: var(--b-encre); }
.cjb-utiliser-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cjb-utiliser-ligne input { width: 120px; min-height: 44px; padding: 0 12px; border: 1px solid var(--b-filet, #e2d9f3); border-radius: 12px; font: inherit; font-size: 18px; font-weight: 700; color: var(--b-encre); font-variant-numeric: tabular-nums; }
.cjb-utiliser-ligne > span { font-size: 18px; font-weight: 700; color: var(--b-encre); }
.cjb-utiliser small { color: var(--b-doux); font-size: 13px; }
.cjb-statuts { list-style: none; margin: 18px 0 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cjb-statuts > li { margin: 0 !important; padding: 16px 14px; border-radius: 18px; background: var(--b-gris); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cjb-statuts > li.is-courant { background: var(--b-blanc); box-shadow: 0 0 0 2px var(--b-violet) inset; }
.cjb-statut-tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cjb-statut-tete strong { font-size: 22px; font-weight: 800; color: var(--b-violet); font-variant-numeric: tabular-nums; }
.cjb-statut-seuil { font-size: 13px; color: var(--b-doux); }
.cjb-statuts ul { margin: 0 !important; padding: 0 0 0 16px !important; font-size: 13.5px; color: var(--b-texte); }
.cjb-statuts ul li { margin: 0 0 4px !important; list-style: disc; }
@media (max-width: 760px) { .cjb-statuts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .cjb-statuts { grid-template-columns: 1fr; } }
