/* =============================================================
   affiliate/css/aff.css — habillage du programme d'affiliation.

   Repris de /pc5/ : même palette, mêmes arrondis, mêmes chats. Un
   affilié qui passe du site à son tableau de bord reste chez lui.

   Rien de distant : l'ancienne version chargeait jQuery et deux
   feuilles Bootstrap depuis trois CDN pour afficher un tableau.
   ============================================================= */
:root {
	--bg:      #0b0910;
	--pan:     #16121c;
	--carte:   #191420;
	--line:    rgba(255,255,255,.065);
	--line-2:  rgba(255,255,255,.12);
	--ink:     #ece6f2;
	--dim:     #9c93a8;
	--faint:   #6e6680;
	--rose:    #e0739f;
	--rose-2:  #c4507f;
	--rose-b:  rgba(224,115,159,.14);
	--vert:    #7ed0a8;
	--r:       14px;
	--r-lg:    20px;
	--hand: "Ink Free", "Segoe Script", "Bradley Hand", "Chalkboard SE", "Comic Sans MS", cursive;
	--ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	--hand-lh: 1.2;
}
html:lang(ja)    { --hand: "UD Digi Kyokasho N-R", "Yu Gothic UI", Meiryo, sans-serif; --ui: "Yu Gothic UI", Meiryo, system-ui, sans-serif; --hand-lh: 1.5; }
html:lang(zh-TW) { --hand: "Microsoft JhengHei UI", "PingFang TC", sans-serif; --ui: "Microsoft JhengHei UI", system-ui, sans-serif; --hand-lh: 1.5; }
html:lang(zh-CN) { --hand: "Microsoft YaHei UI", "PingFang SC", sans-serif; --ui: "Microsoft YaHei UI", system-ui, sans-serif; --hand-lh: 1.5; }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 14.5px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2 { margin: 0; font-weight: 600; }
p { margin: 0 0 .8em; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 8px; }
.chat { display: block; flex: none; }

.app { max-width: 1000px; margin: 0 auto; padding: 16px clamp(14px, 3vw, 24px) 40px; }

/* ---- barre ---- */
.tete {
	display: flex; align-items: center; justify-content: space-between;
	gap: 14px; flex-wrap: wrap;
	padding: 10px 16px; margin-bottom: 20px;
	background: var(--pan); border: 1px solid var(--line); border-radius: 999px;
}
.marque { display: flex; align-items: center; gap: 10px; }
.marque-t { display: flex; flex-direction: column; line-height: 1.15; }
.marque-t b { font-size: 15px; }
.marque-t i { font-style: normal; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.menu { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.menu a { padding: 8px 13px; border-radius: 999px; font-size: 13.5px; color: var(--dim); }
.menu a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.menu a.on { color: var(--rose); background: var(--rose-b); font-weight: 600; }
.menu a.sortie { color: var(--faint); }
.solde { display: flex; align-items: baseline; gap: 6px; padding: 6px 14px; margin-right: 4px; border-radius: 999px; background: rgba(126,208,168,.12); }
.solde i { font-style: normal; font-size: 11px; color: var(--faint); }
.solde b { font-size: 15px; color: var(--vert); }

/* ---- blocs ---- */
.bloc { background: var(--pan); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 24px); margin-bottom: 16px; }
.bloc h2 { margin-bottom: 14px; font: 400 20px/var(--hand-lh) var(--hand); }
.note { font-size: 12.5px; line-height: 1.75; color: var(--faint); }
.note a, .texte a { color: var(--rose); }
.texte { font-size: 14px; line-height: 1.8; color: var(--dim); margin-bottom: 18px; }
.vide { text-align: center; color: var(--faint); padding: 24px 0; }

/* ---- chiffres du mois ---- */
.chiffres { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.chiffre { background: var(--carte); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.chiffre b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.chiffre i { font-style: normal; font-size: 11.5px; color: var(--faint); }
.chiffre.gain b { color: var(--vert); }
.chiffre.grand b { font-size: 38px; }

/* ---- lien de parrainage ---- */
.lien-bloc h2 { margin-bottom: 10px; }
.lien-p { display: flex; gap: 8px; }
.lien-p input {
	flex: 1; min-width: 0; padding: 11px 14px;
	background: rgba(255,255,255,.045); border: 1px solid var(--line-2);
	border-radius: 12px; font-size: 13px; font-family: ui-monospace, Consolas, monospace;
}
.lien-p input:focus { outline: none; border-color: rgba(224,115,159,.55); }

/* ---- boutons ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--rose-2); color: #fff; font-size: 14px; font-weight: 600;
	transition: background .18s, transform .18s, opacity .18s;
}
.btn:hover { background: #d35e8f; transform: translateY(-1px); }
.btn[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.btn-p { background: rgba(255,255,255,.06); color: var(--dim); }
.btn-p:hover { background: rgba(255,255,255,.1); color: var(--ink); }
.btn.copie { background: var(--vert); color: #10251b; }

/* ---- tableau ---- */
.mois { display: flex; gap: 8px; margin-bottom: 16px; }
.mois select {
	padding: 10px 12px; border-radius: 12px;
	background: rgba(255,255,255,.045); border: 1px solid var(--line-2);
}
.tab-w { overflow-x: auto; }
.tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tab th, .tab td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); }
.tab thead th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.tab tbody th, .tab thead th:first-child { text-align: left; font-weight: 500; color: var(--dim); white-space: nowrap; }
.tab tbody tr:hover { background: rgba(255,255,255,.03); }
.tab .g { color: var(--vert); font-weight: 600; }

/* ---- formulaires ---- */
.carte-p {
	position: relative; max-width: 420px; margin: 40px auto;
	background: var(--pan); border: 1px solid var(--line);
	border-radius: var(--r-lg); padding: 34px clamp(20px, 4vw, 30px) 26px;
	text-align: center;
}
.carte-p.large { max-width: 560px; }
.carte-chat { display: grid; place-items: center; margin-bottom: 10px; }
.carte-p h1 { font: 400 24px/var(--hand-lh) var(--hand); margin-bottom: 18px; }
.form { text-align: left; }
.form label { display: block; margin: 0 0 6px; font-size: 12px; color: var(--faint); }
.form input {
	width: 100%; margin: 0 0 15px; padding: 12px 14px;
	background: rgba(255,255,255,.045); border: 1px solid var(--line-2);
	border-radius: 12px; font-size: 14.5px;
}
.form input:focus { outline: none; border-color: rgba(224,115,159,.55); }
.form .btn { width: 100%; }
.form-2 { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form-a { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.form-a .btn { width: auto; flex: 1 1 160px; }
.liens { margin: 18px 0 0; font-size: 13px; }
.liens a { color: var(--rose); }

.ok, .ko { padding: 13px 16px; border-radius: 12px; font-size: 13.5px; margin: 0 0 16px; }
.ok { background: rgba(126,208,168,.12); border: 1px solid rgba(126,208,168,.3); color: #a6e2c2; }
.ko { background: rgba(224,115,159,.12); border: 1px solid rgba(224,115,159,.32); color: #ff9ec8; }

/* ---- bannières ---- */
.bans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ban { background: var(--pan); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.ban img { margin: 0 auto 14px; border-radius: 8px; }
.ban .lien-p input { font-size: 11px; }

/* ---- pied ---- */
.pied { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 30px 0 10px; color: var(--faint); font-size: 12px; }
.pied p { margin: 0; }
.pied-chat { opacity: .5; }

@media (max-width: 560px) {
	.tete { border-radius: var(--r-lg); }
	.menu { width: 100%; justify-content: center; }
	.form-a .btn { flex: 1 1 100%; }
}
