/* PEREL — module Tessera. Pages publiques (achat, remerciement). */
:root { --accent: #1f6fd1; --ink: #1d2430; --muted: #667085; --line: #e3e7ee; --bg: #f4f6fa; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); }
.tes-wrap { max-width: 1040px; margin: 0 auto; padding: 28px 18px 40px; }
.tes-wrap.narrow { max-width: 680px; }
.tes-back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-size: 14px; color: var(--muted); }
.tes-back:hover { color: var(--accent); }
.tes-card { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(20, 30, 50, .06); }
.tes-card.single { display: block; padding: 34px 32px; }
.tes-offer { padding: 30px; border-right: 1px solid var(--line); }
.tes-img { margin: -30px -30px 22px; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f6; }
.tes-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tes-offer h1, .tes-card h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
.tes-desc { color: #3b4454; }
.tes-unit { margin-top: 20px; font-size: 22px; font-weight: 700; }
.tes-unit small { font-size: 13px; font-weight: 400; color: var(--muted); }
.tes-form { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.tes-form h2 { margin: 0 0 4px; font-size: 19px; }
.tes-f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.tes-f em { font-style: normal; font-weight: 400; color: var(--muted); }
.tes-f small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.tes-f input, .tes-f select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid #cfd6e1; border-radius: 10px; background: #fff; color: var(--ink); }
.tes-f input:focus, .tes-f select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.tes-f select { max-width: 120px; }
.tes-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #3b4454; cursor: pointer; }
.tes-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.tes-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tes-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 2px; border-top: 1px solid var(--line); margin-top: 4px; }
.tes-total b { font-size: 24px; }
.tes-vat { margin: 2px 0 0; text-align: right; font-size: 12px; color: var(--muted, #6f7f8d); }
.tes-btn { display: inline-block; text-align: center; border: 0; border-radius: 12px; padding: 14px 20px; background: var(--accent); color: #fff; font: 600 16px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.tes-btn:hover { filter: brightness(1.08); }
.tes-btn:active { transform: translateY(1px); }
.tes-btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; white-space: nowrap; }
.tes-btn.ghost { background: #fff; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, #fff); font-size: 14px; padding: 10px 14px; }
.tes-secure { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.tes-note { padding: 10px 12px; border-radius: 10px; background: #eef4ff; color: #24427a; font-size: 14px; }
.tes-note.ko { background: #fdecec; color: #8a1f1f; }
.tes-eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tes-lead { color: #3b4454; margin: 0 0 18px; }
.tes-items { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 18px; }
.tes-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfd; }
.tes-item span { display: block; color: var(--muted); font-size: 13.5px; }
.tes-code { font: 700 20px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.tes-dl { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tes-foot { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.tes-foot a { color: var(--muted); }
/* Choix du moyen de paiement */
.tes-pay { display: flex; flex-direction: column; gap: 8px; }
.tes-pay[hidden] { display: none; }
.tes-pay-title { font-size: 14px; font-weight: 600; }
.tes-radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #cfd6e1; border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.tes-radio:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); }
.tes-radio input { margin-top: 3px; accent-color: var(--accent); }
.tes-radio b { display: block; font-size: 14.5px; }
.tes-radio small { display: block; color: var(--muted); font-size: 12.5px; }
/* Coordonnées de virement */
.tes-bank { border: 1px solid #f1cda9; background: #fffaf3; border-radius: 14px; overflow: hidden; margin: 6px 0 14px; }
.tes-bank div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px; border-bottom: 1px solid #f6e2cf; font-size: 14.5px; }
.tes-bank div:last-child { border-bottom: 0; }
.tes-bank span { color: #8a6a45; }
.tes-bank b { text-align: right; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .02em; }
.tes-secure.left { text-align: left; margin-bottom: 14px; }
@media (max-width: 760px) {
	.tes-card { grid-template-columns: 1fr; }
	.tes-offer { border-right: 0; border-bottom: 1px solid var(--line); padding: 22px; }
	.tes-img { margin: -22px -22px 18px; }
	.tes-form { padding: 22px; }
	.tes-card.single { padding: 26px 20px; }
	.tes-offer h1, .tes-card h1 { font-size: 24px; }
	.tes-item { flex-direction: column; align-items: flex-start; }
}
