/* Finitions visuelles du site (chargées après app.css). */

/* ── Attente du paiement : un cercle qui tourne, peu de texte ─────────────── */
.wait-card { max-width: 420px; width: 100%; padding: 36px 24px 26px; text-align: center; border-radius: 24px; }
.wait-ring { position: relative; width: 136px; height: 136px; margin: 0 auto 22px; }
.wait-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wait-ring-track { fill: none; stroke: #ede9fe; stroke-width: 8; }
.wait-ring-spin { fill: none; stroke: url(#waitGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 96 244; transform-origin: 60px 60px; animation: waitSpin 1.3s linear infinite; }
@keyframes waitSpin { to { transform: rotate(360deg); } }
.wait-time { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.65rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #5b21b6; }
.wait-title { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; color: #1f2937; }
.wait-sub { margin: 0 0 22px; font-size: .95rem; color: #6b7280; }
.wait-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; margin-bottom: 10px; border: 0; border-radius: 14px; font-size: .95rem; font-weight: 700; cursor: pointer; }
.wait-btn.primary { background: linear-gradient(135deg, #7c3aed, #c026d3); color: #fff; box-shadow: 0 8px 20px rgba(124, 58, 237, .28); }
.wait-btn.secondary { background: #f3e8ff; color: #6d28d9; }
.wait-btn:disabled { opacity: .6; cursor: default; }
.wait-link { border: 0; background: none; padding: 8px 12px; font-size: .88rem; font-weight: 600; color: #9ca3af; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .wait-ring-spin { animation-duration: 3.5s; } }

/* Événement sans photo (ou photo introuvable) : fond dégradé de la marque au lieu de l'icône « image cassée » */
.item-image.noimg, .cart-item-image.noimg { background: linear-gradient(135deg, #ede9fe 0%, #fce7f3 100%); }

/* ── Logos des moyens de paiement : une rangée propre ─────────────────────── */
.pm-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.pm-logo { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 34px; padding: 0 12px; border-radius: 9px; font-size: .82rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.pm-logo b { font-weight: 900; }
.pm-logo.om { background: #000; color: #fff; }
.pm-logo.om b { color: #ff6600; }
.pm-logo.mtn { background: #ffc300; color: #0077cc; }
.pm-logo.mtn b { color: #222; }
.pm-logo.visa { background: #1a1f71; color: #fff; font-style: italic; font-size: .95rem; letter-spacing: -.4px; }
.pm-logo.mc { padding: 0 10px; background: #fff; border: 1px solid #e5e7eb; }
.pm-logo.mc i { display: block; width: 20px; height: 20px; border-radius: 50%; background: #eb001b; }
.pm-logo.mc i + i { margin-left: -8px; background: #f79e1b; opacity: .95; }
.pm-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .78rem; color: #6b7280; }
.pm-reco { padding: 3px 9px; border-radius: 999px; background: #6f42c1; color: #fff; font-size: .7rem; font-weight: 700; }
@media (max-width: 420px) { .pm-logo { height: 32px; padding: 0 9px; font-size: .78rem; } }

/* ── Page Événements : bascule À venir / Passés (tous écrans) ── */
.ep-seg { display: flex; gap: 4px; padding: 4px; margin: 0 0 16px; background: #f3f0fa; border-radius: 14px; }
.ep-seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border: 0; border-radius: 11px; background: transparent; color: #5b4b8a; font-weight: 600; font-size: .95rem; }
.ep-seg button.on { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; box-shadow: 0 2px 8px rgba(124, 58, 237, .3); }
@media (min-width: 992px) { .ep-seg { display: inline-flex; min-width: 300px; } }

/* ── Page Événements (téléphone) : recherche, bouton Filtres, tri ── */
.ep-filters { display: flex; gap: 8px; padding: 0 16px 8px; }
.ep-filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid #ddd6f3; border-radius: 12px; background: #fff; color: #4c1d95; font-weight: 600; white-space: nowrap; }
.ep-filter-btn.has { border-color: #7c3aed; background: #f5f0ff; }
.ep-filter-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #7c3aed; color: #fff; font-size: .75rem; }
.ep-sort-select { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1.5px solid #ddd6f3; border-radius: 12px; background: #fff; color: #333; font-size: .95rem; }
.ep-result-count { padding-left: 16px !important; padding-right: 16px !important; }

/* Panneau de filtres (feuille du bas) */
.ep-sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 10, 40, .5); z-index: 1990; }
.ep-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000; display: flex; flex-direction: column; max-height: 88vh; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
.ep-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; font-size: 1.1rem; }
.ep-sheet-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3f0fa; color: #4c1d95; }
.ep-sheet-body { flex: 1; overflow-y: auto; padding: 4px 20px 12px; }
.ep-sheet-group { padding: 12px 0; border-bottom: 1px solid #eee; }
.ep-sheet-group:last-child { border-bottom: 0; }
.ep-sheet-title { margin-bottom: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6b5f8f; }
.ep-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ep-pill { min-height: 38px; padding: 0 14px; border: 1.5px solid #ddd6f3; border-radius: 19px; background: #fff; color: #3b2a6b; font-size: .92rem; }
.ep-pill.on { border-color: #7c3aed; background: #7c3aed; color: #fff; font-weight: 600; }
.ep-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.ep-dates label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: #6b5f8f; }
.ep-dates input { min-height: 42px; padding: 0 10px; border: 1.5px solid #ddd6f3; border-radius: 10px; }
.ep-sheet-foot { display: flex; gap: 10px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid #eee; }
.ep-sheet-reset { min-height: 48px; padding: 0 18px; border: 1.5px solid #ddd6f3; border-radius: 12px; background: #fff; color: #4c1d95; font-weight: 600; }
.ep-sheet-ok { flex: 1; min-height: 48px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; font-weight: 700; }
