/*
 * e-Tijara — pop-ups automatiques (produit, ticket à gratter, roue de la fortune). Chargé seulement s'il y a un pop-up à montrer.
 * Couleur et forme des boutons, police des titres : lues sur la boutique par tc-pu.js (--pu-acc, --pu-acc-on, --pu-br, --pu-hf).
 */
:root { --pu-acc: var(--tc-c-main, var(--main, #1a1a1a)); --pu-acc-on: #fff; --pu-br: 999px; --pu-hf: inherit; }
.tc-pu { --pu-paper: var(--tc-c-hbg, #fff); --pu-ink: var(--tc-c-hink, #1a1a1a); --pu-r: 22px; --pu-clip: none;
  --pu-paper2: color-mix(in srgb, var(--pu-acc) 10%, var(--pu-paper)); --pu-acc2: color-mix(in srgb, var(--pu-acc) 72%, #000); --pu-acc3: color-mix(in srgb, var(--pu-acc) 55%, var(--pu-paper));
  --pu-line: color-mix(in srgb, var(--pu-ink) 14%, transparent); --pu-mute: color-mix(in srgb, var(--pu-ink) 62%, transparent); --pu-foil: #c3c7cd;
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; color: var(--pu-ink); font-size: 15px; line-height: 1.5; }
html.tc-pu-open { overflow: hidden; scrollbar-gutter: stable; }
html.tc-pu-open #lang-switcher, html.tc-pu-open #etStaffBar, html.tc-pu-open .tf-toolbar-bottom, html.tc-pu-open #goTop { visibility: hidden; }
.tc-pu-bg { position: absolute; inset: 0; background: rgba(12, 14, 18, .55); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.tc-pu-box { position: relative; width: min(100%, 860px); max-height: calc(100dvh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1fr; background: var(--pu-paper); border-radius: var(--pu-r); clip-path: var(--pu-clip);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .28s, transform .35s cubic-bezier(.2, .9, .3, 1.15); overscroll-behavior: contain; scrollbar-width: none; }
.tc-pu-box::-webkit-scrollbar { display: none; }
.tc-pu.is-on .tc-pu-bg { opacity: 1; }
.tc-pu.is-on .tc-pu-box { opacity: 1; transform: none; }
.tc-pu-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; width: 38px; height: 38px; padding: 9px; border: 0; border-radius: var(--pu-br); background: color-mix(in srgb, var(--pu-paper) 85%, transparent); color: var(--pu-ink); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.tc-pu-x svg { width: 100%; height: 100%; display: block; }
.tc-pu-x:hover { transform: rotate(90deg); transition: transform .2s; }
.tc-pu-k { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pu-acc2); }
.tc-pu-h { margin: 0 0 8px; font-family: var(--pu-hf); font-size: clamp(24px, 3.2vw, 32px); line-height: 1.12; font-weight: 700; color: var(--pu-ink); }
.tc-pu-s { margin: 0 0 18px; color: var(--pu-mute); font-size: 14.5px; }
.tc-pu-go { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 12px 22px; border: 0; border-radius: var(--pu-br); background: var(--pu-acc); color: var(--pu-acc-on) !important;
  font: inherit; font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none !important; cursor: pointer; transition: transform .15s, filter .15s; }
.tc-pu-go:hover { filter: brightness(1.08); transform: translateY(-1px); }
.tc-pu-go:disabled { opacity: .6; cursor: wait; }
.tc-pu-later { display: block; margin: 10px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--pu-mute); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.tc-pu-go:focus-visible, .tc-pu-later:focus-visible, .tc-pu-x:focus-visible, .tc-pu-copy:focus-visible, .tc-pu-ticket:focus-visible { outline: 3px solid color-mix(in srgb, var(--pu-acc) 55%, transparent); outline-offset: 3px; }

/* ---------- Produit ---------- */
.tc-pu-product .tc-pu-box { width: min(100%, 780px); }
.tc-pu-pimg { position: relative; display: block; min-height: 100%; background: color-mix(in srgb, var(--pu-ink) 4%, var(--pu-paper)); overflow: hidden; }
.tc-pu-pimg img { width: 100%; height: 100%; min-height: 360px; max-height: 560px; object-fit: cover; display: block; transition: transform .6s; }
.tc-pu-pimg:hover img { transform: scale(1.04); }
.tc-pu-pct { position: absolute; top: 16px; inset-inline-start: 16px; padding: 6px 12px; border-radius: var(--pu-br); background: var(--tc-c-sale, #c62828); color: #fff; font-weight: 800; font-size: 14px; }
.tc-pu-pinfo { display: flex; flex-direction: column; justify-content: center; padding: 44px 36px 34px; }
.tc-pu-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 12px; }
.tc-pu-price b { font-size: 24px; color: var(--tc-c-sale, var(--pu-ink)); }
.tc-pu-price s { color: var(--pu-mute); font-size: 15px; }
[dir=rtl] .tc-pu-price { justify-content: flex-end; }

/* ---------- Jeux : en-tête, formulaire, lot ---------- */
.tc-pu-scratch .tc-pu-box { grid-template-columns: 1fr; width: min(100%, 460px); padding: 34px 30px 28px; text-align: center; }
.tc-pu-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: var(--pu-br); background: var(--pu-paper2); color: var(--pu-acc); }
.tc-pu-ic svg { width: 30px; height: 30px; }
.tc-pu-form { display: grid; gap: 10px; text-align: start; }
.tc-pu-ph span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; }
.tc-pu-ph input { width: 100%; height: 50px; padding: 0 16px; border: 1.5px solid var(--pu-line); border-radius: calc(var(--pu-r) * .5); background: var(--pu-paper); color: var(--pu-ink); font: inherit; font-size: 17px; letter-spacing: .06em; outline: 0; transition: border-color .15s, box-shadow .15s; }
.tc-pu-ph input:focus { border-color: var(--pu-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pu-acc) 18%, transparent); }
.tc-pu-ph input[aria-invalid=true] { border-color: #c62828; }
.tc-pu-hint { color: var(--pu-mute); font-size: 12.5px; text-align: center; }
.tc-pu-err { min-height: 0; color: #c62828; font-size: 13px; font-style: normal; text-align: center; }
.tc-pu-err:empty { display: none; }
.tc-pu-form.is-wait .tc-pu-go { position: relative; color: transparent !important; }
.tc-pu-form.is-wait .tc-pu-go::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--pu-acc-on); border-inline-end-color: transparent; animation: tcPuSpin .7s linear infinite; }
@keyframes tcPuSpin { to { transform: rotate(360deg); } }
.tc-pu-res { text-align: center; animation: tcPuIn .45s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes tcPuIn { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.tc-pu-prize { margin: 0 0 14px; font-family: var(--pu-hf); font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--pu-acc2); }
.tc-pu-code { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 10px 10px 16px; border: 2px dashed color-mix(in srgb, var(--pu-acc) 50%, transparent); border-radius: calc(var(--pu-r) * .5); background: var(--pu-paper2); text-align: start; }
[dir=rtl] .tc-pu-code { padding: 10px 16px 10px 10px; }
.tc-pu-code small { display: block; font-size: 11px; color: var(--pu-mute); text-transform: uppercase; letter-spacing: .1em; }
.tc-pu-code b { flex: 1; font-size: 20px; letter-spacing: .14em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.tc-pu-copy { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 78px; height: 38px; margin: 0; line-height: 1; padding: 0 14px; border: 0; border-radius: var(--pu-br); background: var(--pu-ink); color: var(--pu-paper); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tc-pu-copy.is-ok { background: #2e7d32; color: #fff; }
.tc-pu-info { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--pu-mute); }
.tc-pu-info li { display: flex; align-items: center; justify-content: center; gap: 6px; }
.tc-pu-info li.is-ok { color: #2e7d32; font-weight: 600; }
.tc-pu-info svg { width: 15px; height: 15px; }

/* ---------- Ticket ---------- */
.tc-pu-ticket { position: relative; margin: 6px auto 18px; width: 100%; height: 132px; border-radius: 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--pu-acc) 14%, var(--pu-paper)), var(--pu-paper2));
  -webkit-mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.tc-pu-ticket::before { content: ""; position: absolute; inset: 8px 18px; border: 1.5px dashed color-mix(in srgb, var(--pu-acc) 40%, transparent); border-radius: 8px; pointer-events: none; }
.tc-pu-under { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tc-pu-under small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pu-mute); }
.tc-pu-lot { font-family: var(--pu-hf); font-size: 36px; line-height: 1.1; font-weight: 800; color: var(--pu-acc2); }
.tc-pu-cv { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; touch-action: none; cursor: not-allowed; }
.tc-pu-ticket.is-ready .tc-pu-cv { cursor: crosshair; }
.tc-pu-do { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; opacity: 0; transition: opacity .2s; }
.tc-pu-ticket.is-ready:not(.is-on) .tc-pu-do { opacity: 1; animation: tcPuWiggle 1.4s ease-in-out infinite; }
.tc-pu-ticket.is-done .tc-pu-do { display: none; }
.tc-pu-ticket.is-done .tc-pu-lot { animation: tcPuIn .5s both; }
@keyframes tcPuWiggle { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(-50%, -50%) rotate(-3deg); } 75% { transform: translate(-50%, -50%) rotate(3deg); } }

/* ---------- Roue ---------- */
.tc-pu-wheel .tc-pu-box, .tc-pu-box:has(.tc-pu-wheelwrap) { width: min(100%, 880px); }
.tc-pu-wheelwrap { display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--pu-acc) 18%, var(--pu-paper)), var(--pu-paper2) 70%); }
.tc-pu-whl { position: relative; width: min(100%, 360px); aspect-ratio: 1; }
.tc-pu-rot { position: absolute; inset: 0; border-radius: 50%; padding: 8px; background: var(--pu-ink); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5), inset 0 0 0 3px color-mix(in srgb, var(--pu-acc) 70%, #fff); will-change: transform; }
.tc-pu-rot svg { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: visible; }
.tc-pu-rot path { stroke: color-mix(in srgb, var(--pu-paper) 70%, transparent); stroke-width: 1.5; }
.tc-pu-wt { font: 700 13px/1 var(--pu-hf), system-ui, sans-serif; letter-spacing: .02em; }
.tc-pu-wt.is-ship { font-size: 10.5px; }
.tc-pu-bulb { fill: #fff6c9; animation: tcPuBulb 1s ease-in-out infinite alternate; }
@keyframes tcPuBulb { from { opacity: .35; } to { opacity: 1; filter: drop-shadow(0 0 3px #ffe58a); } }
.tc-pu.is-spin .tc-pu-bulb { animation-duration: .25s; }
.tc-pu-hub { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: var(--pu-paper); color: var(--pu-acc);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3), inset 0 0 0 4px color-mix(in srgb, var(--pu-acc) 30%, transparent); }
.tc-pu-hub svg { width: 46%; height: 46%; }
.tc-pu-ptr { position: absolute; top: -10px; left: 50%; width: 34px; height: 42px; margin-left: -17px; background: var(--pu-acc2); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .3)); z-index: 2; }
.tc-pu-ptr::after { content: ""; position: absolute; left: 50%; top: 6px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--pu-paper); }
.tc-pu.is-spin .tc-pu-ptr { animation: tcPuTick .12s ease-in-out infinite alternate; transform-origin: 50% 0; }
@keyframes tcPuTick { from { transform: rotate(-6deg); } to { transform: rotate(5deg); } }
.tc-pu-side { display: flex; flex-direction: column; justify-content: center; padding: 40px 34px 26px; }
.tc-pu-odds { margin-top: 14px; font-size: 13px; color: var(--pu-mute); }
.tc-pu-odds summary { cursor: pointer; text-align: center; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.tc-pu-odds summary::-webkit-details-marker { display: none; }
.tc-pu-odds ul { list-style: none; margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--pu-paper2); display: grid; gap: 4px; }
.tc-pu-odds li { display: flex; justify-content: space-between; gap: 10px; }
.tc-pu-odds b { color: var(--pu-ink); font-variant-numeric: tabular-nums; }

/* ---------- Confettis ---------- */
.tc-pu-conf { position: absolute; left: 50%; top: 45%; width: 0; height: 0; z-index: 6; pointer-events: none; }
.tc-pu-conf i { position: absolute; width: 8px; height: 13px; border-radius: 2px; animation: tcPuConf 1.6s cubic-bezier(.15, .7, .3, 1) both; }
@keyframes tcPuConf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), calc(var(--y) + 160px)) rotate(var(--r)); } }

/* ---------- Bouton « Tentez votre chance » ---------- */
.tc-pu-launch { position: fixed; z-index: 1035; inset-inline-start: 16px; bottom: calc(var(--tc-tb-h, 0px) + 16px); display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 12px; border: 0; border-radius: var(--pu-br);
  background: var(--pu-acc); color: var(--pu-acc-on); font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); cursor: pointer; opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .3s; }
[dir=rtl] .tc-pu-launch { padding: 0 12px 0 18px; }
.tc-pu-launch.is-on { opacity: 1; transform: none; }
.tc-pu-launch svg { width: 24px; height: 24px; animation: tcPuGift 2.4s ease-in-out infinite; }
.tc-pu-launch.is-won svg { animation: none; }
@keyframes tcPuGift { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } 95% { transform: rotate(-6deg); } }
html.tc-pu-open .tc-pu-launch { opacity: 0; pointer-events: none; }

/* ---------- Téléphone : fenêtre en tiroir (bas de l'écran) ---------- */
@media (max-width: 767px) {
  .tc-pu { align-items: flex-end; padding: 0; }
  .tc-pu-box { width: 100% !important; max-height: 92dvh; grid-template-columns: 1fr; border-radius: var(--pu-r) var(--pu-r) 0 0; transform: translateY(40px); }
  .tc-pu-pimg img { min-height: 0; max-height: 34dvh; aspect-ratio: 4 / 3; }
  .tc-pu-pinfo, .tc-pu-side { padding: 22px 20px 24px; }
  .tc-pu-scratch .tc-pu-box { padding: 28px 20px 22px; }
  .tc-pu-wheelwrap { padding: 22px 20px 6px; }
  .tc-pu-whl { width: min(72vw, 290px); }
  .tc-pu-h { font-size: 24px; }
  .tc-pu-prize { font-size: 28px; }
  .tc-pu-launch { height: 42px; font-size: 13px; inset-inline-start: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tc-pu-box, .tc-pu-bg { transition: none; } .tc-pu-bulb, .tc-pu-launch svg, .tc-pu-do { animation: none !important; } }

/* ======================================================================================================================
 * Touches propres à chaque template payant
 * ==================================================================================================================== */
/* Djerba : angles nets, majuscules */
body.tc-djerba .tc-pu { --pu-r: 0px; }
body.tc-djerba .tc-pu-h { text-transform: uppercase; letter-spacing: .04em; }
body.tc-djerba .tc-pu-ticket, body.tc-djerba .tc-pu-code, body.tc-djerba .tc-pu-ph input { border-radius: 0; }
/* Sousse : néo-brutaliste — gros contours, ombres franches, jaune */
body.tc-sousse .tc-pu { --pu-paper: #fff; --pu-ink: var(--k, #0F0F12); --pu-r: 18px; --pu-acc: var(--y, #FFD400); --pu-acc-on: var(--k, #0F0F12); --pu-acc2: var(--b, #1E5BFF); }
body.tc-sousse .tc-pu-box { border: 3px solid var(--k, #0F0F12); box-shadow: 10px 10px 0 var(--k, #0F0F12); }
body.tc-sousse .tc-pu-go, body.tc-sousse .tc-pu-launch { border: 2.5px solid var(--k, #0F0F12); box-shadow: 4px 4px 0 var(--k, #0F0F12); }
body.tc-sousse .tc-pu-ph input, body.tc-sousse .tc-pu-code { border: 2.5px solid var(--k, #0F0F12); }
body.tc-sousse .tc-pu-rot { box-shadow: 8px 8px 0 var(--k, #0F0F12); }
/* Monastir : salle de jeux — pastel, formes douces */
body.tc-monastir .tc-pu { --pu-r: 34px; --pu-acc2: var(--m-ink, #183B4A); }
body.tc-monastir .tc-pu-pimg { margin: 14px; border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; }
body.tc-monastir .tc-pu-ic { border-radius: 42% 58% 55% 45% / 50% 45% 55% 50%; }
/* Kairouan : arches, encre et terre cuite */
body.tc-kairouan .tc-pu { --pu-acc2: var(--k8-acc, #a9573a); }
body.tc-kairouan .tc-pu-pimg { margin: 18px; border-radius: 999px 999px 6px 6px; }
body.tc-kairouan .tc-pu-ic { border-radius: 999px 999px 6px 6px; }
body.tc-kairouan .tc-pu-wheelwrap { border-radius: 999px 999px 0 0; }
/* Mahdia : écrin — ivoire, encre et or, coins « taille émeraude » */
body.tc-mahdia .tc-pu { --pu-r: 0px; --pu-acc: var(--m9-ink, #1f1c16); --pu-acc-on: var(--m9-ivory, #fffdf9); --pu-acc2: var(--m9-gold, #a8842f); --pu-acc3: var(--m9-gold, #a8842f); --pu-foil: #c8a85a;
  --pu-clip: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
body.tc-mahdia .tc-pu-h, body.tc-mahdia .tc-pu-prize, body.tc-mahdia .tc-pu-lot { font-style: italic; font-weight: 500; }
body.tc-mahdia .tc-pu-go, body.tc-mahdia .tc-pu-launch, body.tc-mahdia .tc-pu-copy, body.tc-mahdia .tc-pu-ic, body.tc-mahdia .tc-pu-x, body.tc-mahdia .tc-pu-pct { border-radius: 0; clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
body.tc-mahdia .tc-pu-go { letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
body.tc-mahdia .tc-pu-rot { box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5), inset 0 0 0 3px var(--m9-gold, #a8842f); }
body.tc-mahdia .tc-pu-code { border-color: var(--m9-gold, #a8842f); border-radius: 0; }
@media (max-width: 767px) { body.tc-mahdia .tc-pu { --pu-clip: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px); } }
/* Bizerte : médailles — indigo, orange, crème */
body.tc-bizerte .tc-pu { --pu-r: 28px; --pu-acc2: var(--b10-act, #2a1b6e); --pu-acc3: var(--b10-acc, #f29a2e); }
body.tc-bizerte .tc-pu-ic { border-radius: 50%; box-shadow: 0 0 0 3px var(--pu-paper), 0 0 0 5px var(--b10-acc, #f29a2e); }
body.tc-bizerte .tc-pu-pimg { margin: 16px; border-radius: 22px; }
/* Kélibia : bord de mer — turquoise, sable, bord festonné */
body.tc-kelibia .tc-pu { --pu-r: 26px; --pu-acc2: var(--k11-act, #0b5f6b); --pu-acc3: var(--k11-aqua, #2ec4c6); --pu-foil: #9fdfe0; }
body.tc-kelibia .tc-pu-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: radial-gradient(circle at 10px 10px, var(--k11-aqua, #2ec4c6) 9px, transparent 9.5px) 0 0 / 20px 10px repeat-x; opacity: .7; pointer-events: none; }
/* Tozeur : oasis — vert, sauge, formes de feuille */
body.tc-tozeur .tc-pu { --pu-r: 40px 10px 40px 10px; --pu-acc2: var(--g12-act, #1f3d2b); --pu-acc3: var(--g12-aqua, #7f9d68); }
body.tc-tozeur .tc-pu-pimg { margin: 16px; border-radius: 60% 12px 60% 12px; }
body.tc-tozeur .tc-pu-ic { border-radius: 60% 8px 60% 8px; }
@media (max-width: 767px) { body.tc-tozeur .tc-pu-box { border-radius: 34px 8px 0 0; } }
/* Tabarka et Hammamet : arrondis doux */
body.tc-tabarka .tc-pu, body.tc-cosmetique .tc-pu { --pu-r: 28px; }
body.tc-cosmetique .tc-pu-pimg, body.tc-tabarka .tc-pu-pimg { margin: 14px; border-radius: 20px; }
.tc-pu-box:focus { outline: 0; }
.tc-pu-wt { unicode-bidi: isolate; }
.tc-pu-wt[direction=ltr] { direction: ltr; }

/* Lot du ticket : déjà lisible sur le ticket gratté (pas répété dessous) */
.tc-pu-scratch .tc-pu-res .tc-pu-prize { display: none; }
/* Photo du pop-up produit : toujours à la hauteur de l'écran (pas de barre de défilement) */
.tc-pu-pimg img { max-height: min(560px, calc(100dvh - 60px)); }
/* Écrans peu hauts (ordinateur portable, fenêtre réduite) : tout tient sans défiler */
@media (min-width: 768px) and (max-height: 760px) {
  .tc-pu-box { max-height: calc(100dvh - 24px); }
  .tc-pu-pinfo, .tc-pu-side { padding: 26px 28px 20px; }
  .tc-pu-pimg img { min-height: 0; }
  .tc-pu-h { font-size: 24px; margin-bottom: 4px; }
  .tc-pu-s { margin-bottom: 12px; font-size: 13.5px; }
  .tc-pu-scratch .tc-pu-box { padding: 22px 26px 18px; }
  .tc-pu-ic { width: 42px; height: 42px; margin-bottom: 4px; } .tc-pu-ic svg { width: 24px; height: 24px; }
  .tc-pu-ticket { height: 100px; margin-bottom: 12px; } .tc-pu-lot { font-size: 30px; }
  .tc-pu-go { min-height: 44px; } .tc-pu-ph input { height: 44px; }
  .tc-pu-wheelwrap { padding: 18px; } .tc-pu-whl { width: min(100%, calc(100dvh - 120px), 340px); }
  .tc-pu-prize { font-size: 28px; margin-bottom: 8px; } .tc-pu-code { margin-bottom: 8px; } .tc-pu-info { margin-bottom: 10px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .tc-pu-whl { width: min(60vw, 230px); }
  .tc-pu-ticket { height: 104px; }
  .tc-pu-pimg img { max-height: 28dvh; }
}
.tc-pu .tc-pu-copy { padding: 0 14px !important; line-height: 1 !important; height: 38px !important; min-height: 0 !important; vertical-align: middle; }
.tc-pu-res:focus { outline: 0; }

/* Indicatif du pays (intl-tel-input, comme le formulaire de commande) : aux couleurs et à l'arrondi du champ */
.tc-pu-ph .intl-tel-input { display: block; width: 100%; }
.tc-pu-ph .intl-tel-input input[type=tel] { width: 100%; }
.tc-pu .intl-tel-input .flag-container { border-radius: calc(var(--pu-r) * .5) 0 0 calc(var(--pu-r) * .5); }
.tc-pu .intl-tel-input .selected-flag { background: transparent !important; border-inline-end: 1px solid var(--pu-line); }
.tc-pu .intl-tel-input .selected-dial-code { font-size: 15px; color: var(--pu-ink); }
.tc-pu .intl-tel-input .country-list { z-index: 2100; max-height: 220px; border-radius: 10px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .35); color: #1a1a1a; text-align: left; }
.tc-pu[dir=rtl] .intl-tel-input, .tc-pu[dir=rtl] .tc-pu-ph input { direction: ltr; }
body.tc-mahdia .tc-pu .intl-tel-input .flag-container, body.tc-djerba .tc-pu .intl-tel-input .flag-container { border-radius: 0; }
html body.tc-body .tc-pu.tc-pu .tc-pu-ph.tc-pu-ph input[type=tel][type=tel] { height: 50px !important; border: 1.5px solid var(--pu-line) !important; border-radius: calc(var(--pu-r) * .5) !important; background: var(--pu-paper) !important; color: var(--pu-ink) !important; box-shadow: none; }
html body.tc-body .tc-pu.tc-pu .tc-pu-ph.tc-pu-ph input[type=tel][type=tel]:focus { border-color: var(--pu-acc) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--pu-acc) 18%, transparent) !important; }
html body.tc-mahdia .tc-pu.tc-pu .tc-pu-ph.tc-pu-ph input[type=tel][type=tel], html body.tc-djerba .tc-pu.tc-pu .tc-pu-ph.tc-pu-ph input[type=tel][type=tel] { border-radius: 0 !important; }
html body.tc-body .tc-pu .tc-pu-ph .intl-tel-input, html body.tc-body .tc-pu .tc-pu-ph input[type=tel] { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; }

/* ---------- Parcours guidé (v1.17.6) : 1. numéro → 2. tourner / gratter → 3. cadeau ---------- */
.tc-pu-steps { list-style: none; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 14px; padding: 0; font-size: 12.5px; font-weight: 700; color: var(--pu-mute); }
.tc-pu-side .tc-pu-steps { justify-content: flex-start; }
.tc-pu-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--pu-paper2); transition: background .25s, color .25s; white-space: nowrap; }
[dir=rtl] .tc-pu-steps li { padding: 4px 4px 4px 10px; }
.tc-pu-steps li + li::before { content: ""; width: 10px; height: 2px; margin-inline: -12px 2px; background: var(--pu-line); order: -1; }
.tc-pu-steps b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pu-line); color: var(--pu-ink); font-size: 12px; }
.tc-pu-steps[data-st="1"] li:nth-child(1), .tc-pu-steps[data-st="2"] li:nth-child(2), .tc-pu-steps[data-st="3"] li:nth-child(3) { background: color-mix(in srgb, var(--pu-acc) 14%, var(--pu-paper)); color: var(--pu-ink); }
.tc-pu-steps[data-st="1"] li:nth-child(1) b, .tc-pu-steps[data-st="2"] li:nth-child(-n+2) b, .tc-pu-steps[data-st="3"] li b { background: var(--pu-acc); color: var(--pu-acc-on); }
.tc-pu-need { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--pu-acc) 14%, var(--pu-paper)); color: var(--pu-ink); font-size: 13.5px; font-weight: 700; animation: tcPuIn .3s both; }
.tc-pu-need[hidden] { display: none; }
.tc-pu-need svg { width: 16px; height: 16px; flex: none; color: var(--pu-acc); animation: tcPuDown 1s ease-in-out infinite; }
@keyframes tcPuDown { 50% { transform: translateY(3px); } }
.tc-pu-ph.is-nudge { animation: tcPuShake .5s; }
@keyframes tcPuShake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Roue : le centre est le bouton « Tourner » ; la roue se balance doucement en attendant */
.tc-pu-whl.is-idle { cursor: pointer; }
.tc-pu-hub.is-btn { width: 27%; padding: 0; border: 0; background: var(--pu-acc); color: var(--pu-acc-on); font: 800 clamp(12px, 3.6vw, 16px)/1 var(--pu-hf), system-ui, sans-serif; text-transform: uppercase; letter-spacing: .04em; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 0 5px var(--pu-paper), 0 0 0 0 color-mix(in srgb, var(--pu-acc) 55%, transparent); animation: tcPuRing 1.8s ease-out infinite; z-index: 1; }
.tc-pu-hub.is-btn:hover { filter: brightness(1.06); }
.tc-pu-hub.is-btn:focus-visible { outline: 3px solid var(--pu-ink); outline-offset: 6px; }
.tc-pu-hub.is-btn:disabled { animation: none; cursor: default; }
.tc-pu-hub.is-btn svg { width: 46%; height: 46%; }
@keyframes tcPuRing { 70%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 0 0 5px var(--pu-paper), 0 0 0 18px color-mix(in srgb, var(--pu-acc) 0%, transparent); } }
.tc-pu-whl.is-idle .tc-pu-rot svg { animation: tcPuRock 3.2s ease-in-out infinite; }
@keyframes tcPuRock { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* Ticket : verrouillé tant qu'il n'y a pas de numéro, puis main animée + « Tout découvrir d'un coup » */
.tc-pu-lock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; max-width: calc(100% - 40px); padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; transition: opacity .2s; }
.tc-pu-lock svg { width: 16px; height: 16px; flex: none; }
.tc-pu-ticket.is-ready .tc-pu-lock, .tc-pu-ticket.is-done .tc-pu-lock { opacity: 0; pointer-events: none; }
.tc-pu-do { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.tc-pu-ticket.is-ready:not(.is-on) .tc-pu-do { animation: none; }
.tc-pu-hand { display: inline-block; width: 26px; height: 26px; animation: tcPuHand 1.3s ease-in-out infinite; }
.tc-pu-hand svg { width: 100%; height: 100%; }
@keyframes tcPuHand { 0%, 100% { transform: translateX(-8px) rotate(-8deg); } 50% { transform: translateX(8px) rotate(8deg); } }
.tc-pu-ticket.is-ready .tc-pu-cv { cursor: grab; }
.tc-pu-all { display: block; width: 100%; min-height: 46px; margin: 0; padding: 0 16px; border: 1.5px solid color-mix(in srgb, var(--pu-acc) 65%, var(--pu-ink)); border-radius: var(--pu-br); background: transparent; color: var(--pu-ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.tc-pu-all:hover { background: color-mix(in srgb, var(--pu-acc) 10%, transparent); }
.tc-pu-all.is-pulse { background: var(--pu-acc); color: var(--pu-acc-on); animation: tcPuPulse 1.2s ease-in-out infinite; }
@keyframes tcPuPulse { 50% { transform: scale(1.03); } }
.tc-pu-test { margin: 0 0 10px; padding: 7px 10px; border-radius: 8px; background: #fff4d6; color: #6b4b00; font-size: 12.5px; font-weight: 600; }
.tc-pu-scratch .tc-pu-head .tc-pu-k { margin-bottom: 2px; }
.tc-pu-scratch .tc-pu-ticket { margin-top: 0; }

/* Téléphone : tout le parcours visible d'un coup d'œil (roue plus petite, champ juste dessous) */
@media (max-width: 767px) {
  .tc-pu-wheelwrap { padding: 18px 16px 4px; }
  .tc-pu-whl { width: min(60vw, 250px); }
  .tc-pu-side { padding: 10px 18px 20px; }
  .tc-pu-side .tc-pu-head { text-align: center; }
  .tc-pu-side .tc-pu-steps { justify-content: center; }
  .tc-pu-head .tc-pu-k { font-size: 12.5px; margin-bottom: 2px; }
  .tc-pu-h { font-size: 22px; margin-bottom: 0; }
  .tc-pu-steps { margin: 8px 0 10px; font-size: 11.5px; gap: 4px; }
  .tc-pu-steps li { padding: 3px 8px 3px 3px; }
  [dir=rtl] .tc-pu-steps li { padding: 3px 3px 3px 8px; }
  .tc-pu-steps b { width: 20px; height: 20px; font-size: 11px; }
  .tc-pu-steps li + li::before { width: 6px; margin-inline: -9px 1px; }
  .tc-pu-scratch .tc-pu-box { padding: 22px 18px 20px; }
  .tc-pu-ticket { height: 118px; margin-bottom: 14px; }
  .tc-pu-form { gap: 8px; }
  .tc-pu-ph span { margin-bottom: 4px; }
  .tc-pu-x { top: 8px; inset-inline-end: 8px; }
}
@media (max-width: 767px) and (max-height: 700px) {
  .tc-pu-whl { width: min(50vw, 200px); }
  .tc-pu-hint { display: none; }
}
@media (max-width: 360px) { .tc-pu-steps li span { display: none; } .tc-pu-steps li { padding: 3px !important; } .tc-pu-steps[data-st="1"] li:nth-child(1) span, .tc-pu-steps[data-st="2"] li:nth-child(2) span, .tc-pu-steps[data-st="3"] li:nth-child(3) span { display: inline; padding-inline-end: 6px; } }
@media (prefers-reduced-motion: reduce) { .tc-pu-whl.is-idle .tc-pu-rot svg, .tc-pu-hub.is-btn, .tc-pu-hand, .tc-pu-all.is-pulse, .tc-pu-need svg { animation: none !important; } }
