/* =====================================================================
   YOCOLO — module Événements
   L'affiche est la star : grandes images au format paysage, date en « ticket » détachable,
   prix et places restantes toujours visibles. Couleur propre à chaque type d'événement (--t).
   ===================================================================== */
.evx-hero { background: radial-gradient(120% 140% at 0% 0%, #4c1d95 0%, #1e1b4b 55%, #0b1020 100%); color: #fff; padding: 34px 0 28px; }
.evx-hero h1 { color: #fff; font-size: clamp(28px, 4.6vw, 46px); margin: 6px 0 6px; letter-spacing: -.01em; }
.evx-hero p { color: #d7d3f5; max-width: 640px; margin: 0; }
.evx-hero .tx-crumbs a, .evx-hero .tx-crumbs { color: #c4b5fd; }
.evx-hero-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; }
.evx-search { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.evx-search .in { min-height: 46px; border-radius: 14px; border: 0; }
.evx-search .in[name=q] { flex: 1; min-width: 220px; }
.evx-search .btn { min-height: 46px; }

.evx-types { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 6px; scrollbar-width: thin; }
.evx-type { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; text-decoration: none !important; }
.evx-type.on { background: var(--indigo-d, #1e1b4b); color: #fff; border-color: transparent; }
.evx-when { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 0 14px; }
.evx-when a { padding: 6px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; color: var(--text); }
.evx-when a.on { background: #ede9fe; border-color: #c4b5fd; color: #4c1d95; text-decoration: none; }
.evx-type:focus-visible, .evx-when a:focus-visible, .evx-card:focus-visible { outline: 3px solid #8b5cf6; outline-offset: 2px; }

/* Cartes */
.evx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.evx-card { background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); color: var(--text); text-decoration: none !important; display: flex; flex-direction: column; transition: box-shadow .2s; }
.evx-card:hover { box-shadow: 0 10px 28px rgba(30,27,75,.12); }
.evx-pic { position: relative; aspect-ratio: 2 / 1; background: linear-gradient(135deg, var(--t, #4f46e5), #1e1b4b); display: grid; place-items: center; }
.evx-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.evx-pic .emo { font-size: 46px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.25)); }
.evx-date { position: absolute; left: 12px; bottom: -18px; background: #fff; border-radius: 12px; padding: 6px 10px 5px; text-align: center; box-shadow: 0 6px 16px rgba(0,0,0,.15); min-width: 52px; line-height: 1.05; }
.evx-date b { display: block; font-size: 22px; color: #1e1b4b; }
.evx-date small { font-size: 11.5px; font-weight: 800; color: var(--t, #6d28d9); text-transform: uppercase; }
.evx-flag { position: absolute; top: 10px; left: 10px; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.evx-flag span { background: rgba(15,23,42,.78); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.evx-flag .live { background: #dc2626; }
.evx-flag .warn { background: #b45309; }
.evx-body { padding: 26px 14px 14px; display: grid; gap: 4px; flex: 1; }
.evx-body .kind { font-size: 12.5px; font-weight: 800; color: var(--t, #6d28d9); }
.evx-body b { font-size: 16.5px; line-height: 1.25; color: #111827; }
.evx-body .meta { color: var(--muted); font-size: 13.5px; }
.evx-body .price { margin-top: auto; padding-top: 8px; font-weight: 900; color: #1e1b4b; }
.evx-body .price small { font-weight: 700; color: #b45309; margin-left: 6px; }

.evx-feat { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 18px 0 8px; }
.evx-feat .evx-card { flex-direction: row; min-height: 150px; }
.evx-feat .evx-pic { aspect-ratio: auto; width: 46%; flex: 0 0 46%; }
.evx-feat .evx-date { bottom: 10px; }
.evx-feat .evx-body { padding: 14px; }
@media (max-width: 560px) { .evx-feat .evx-card { flex-direction: column; } .evx-feat .evx-pic { width: 100%; aspect-ratio: 2/1; } }
.evx-sec-h { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin: 26px 0 12px; }
.evx-sec-h h2 { margin: 0; font-size: 22px; }

/* Page d'un événement */
.evd-hero { position: relative; background: #0b1020; color: #fff; overflow: hidden; }
.evd-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(26px) saturate(1.2); opacity: .45; transform: scale(1.15); }
.evd-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; padding: 28px 0 30px; align-items: center; }
@media (max-width: 900px) { .evd-in { grid-template-columns: 1fr; } }
.evd-poster { border-radius: 18px; overflow: hidden; aspect-ratio: 2 / 1; background: linear-gradient(135deg, var(--t), #1e1b4b); display: grid; place-items: center; box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.evd-poster img { width: 100%; height: 100%; object-fit: cover; }
.evd-poster .emo { font-size: 80px; }
.evd-kind { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; color: #e9d5ff; font-size: 14px; }
.evd-hero h1 { color: #fff; font-size: clamp(26px, 4vw, 42px); line-height: 1.12; margin: 8px 0 6px; }
.evd-sub { color: #d7d3f5; margin: 0 0 14px; font-size: 17px; }
.evd-facts { display: grid; gap: 10px; margin: 14px 0; }
.evd-facts div { display: flex; gap: 10px; align-items: flex-start; }
.evd-facts svg { flex: 0 0 auto; margin-top: 2px; color: #c4b5fd; }
.evd-facts b { display: block; } .evd-facts small { color: #c7c9e8; }
.evd-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.evd-acts .btn-ghost-w { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.evd-state { display: inline-block; padding: 6px 12px; border-radius: 10px; font-weight: 900; background: #b45309; color: #fff; margin-bottom: 8px; }
.evd-state.annule { background: #b91c1c; }
.evd-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding: 24px 0 40px; align-items: start; }
@media (max-width: 960px) { .evd-cols { grid-template-columns: 1fr; } }
.evd-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.evd-box h2 { font-size: 19px; margin: 0 0 12px; }
.evd-desc { font-size: 16.5px; line-height: 1.7; white-space: pre-line; }
.evd-dl { display: grid; grid-template-columns: 180px 1fr; gap: 8px 14px; margin: 0; }
.evd-dl dt { color: var(--muted); font-weight: 700; } .evd-dl dd { margin: 0; }
@media (max-width: 560px) { .evd-dl { grid-template-columns: 1fr; } .evd-dl dt { margin-top: 6px; } }
.evd-list { margin: 0; padding-left: 18px; line-height: 1.8; }
.evd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.evd-chips span { background: #f5f3ff; color: #4c1d95; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: 14px; }
.evd-map { height: 240px; border-radius: 14px; overflow: hidden; margin-top: 12px; }

/* Billetterie (colonne de droite, collante) */
.evd-buy { position: sticky; top: 84px; background: #fff; border: 2px solid #ddd6fe; border-radius: 20px; padding: 18px; box-shadow: 0 14px 40px rgba(76,29,149,.10); }
.evd-buy h2 { margin: 0 0 4px; font-size: 20px; }
.evd-tk { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 10px; cursor: pointer; position: relative; }
.evd-tk::before, .evd-tk::after { content: ""; position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 1px solid var(--line); transform: translateY(-50%); }
.evd-tk::before { left: -8px; border-left-color: transparent; border-bottom-color: transparent; transform: translateY(-50%) rotate(45deg); }
.evd-tk::after { right: -8px; border-right-color: transparent; border-top-color: transparent; transform: translateY(-50%) rotate(45deg); }
.evd-tk:has(input:checked) { border-color: #7c3aed; background: #faf5ff; }
.evd-tk input { width: 20px; height: 20px; accent-color: #7c3aed; }
.evd-tk b { display: block; } .evd-tk small { color: var(--muted); }
.evd-tk .p { font-weight: 900; color: #1e1b4b; text-align: right; }
.evd-tk .p small { display: block; color: #b45309; font-weight: 700; }
.evd-tk.off { opacity: .5; cursor: not-allowed; }
.evd-qty { display: flex; gap: 10px; align-items: center; margin: 14px 0; }
.evd-qty select { width: auto; }
.evd-total { display: flex; justify-content: space-between; font-weight: 900; font-size: 18px; margin: 6px 0 12px; }
.evd-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.evd-mine { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }

/* Choix du type et formulaire */
.evf-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.evf-type { display: grid; gap: 4px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none !important; border-top: 5px solid var(--t); }
.evf-type:hover { box-shadow: 0 8px 22px rgba(0,0,0,.08); }
.evf-type .emo { font-size: 30px; }
.evf-type b { font-size: 16px; } .evf-type small { color: var(--muted); }
.evf-steps { display: grid; gap: 16px; }
.evf-sec { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.evf-sec > h2 { font-size: 18px; margin: 0 0 4px; display: flex; gap: 10px; align-items: center; }
.evf-sec > h2 i { width: 28px; height: 28px; border-radius: 50%; background: var(--t); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.evf-sec > p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.evf-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.evf-g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 680px) { .evf-g2, .evf-g3 { grid-template-columns: 1fr; } }
.evf-err { color: #b91c1c; font-size: 13px; font-weight: 700; display: block; margin-top: 4px; }
.f.has-err .in { border-color: #f87171; background: #fff7f7; }
.evf-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.evf-opts label { display: grid; gap: 3px; border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: #fff; position: relative; }
.evf-opts label:has(input:checked) { border-color: var(--t); background: color-mix(in srgb, var(--t) 8%, #fff); }
.evf-opts input { position: absolute; opacity: 0; }
.evf-opts label:focus-within { outline: 3px solid var(--t); outline-offset: 2px; }
.evf-opts small { color: var(--muted); }
.evf-bt { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr 1.2fr 34px; gap: 8px; align-items: end; margin-bottom: 8px; }
.evf-bt .in { min-height: 42px; }
@media (max-width: 760px) { .evf-bt { grid-template-columns: 1fr 1fr; } }
.evf-bt-h { font-size: 12.5px; color: var(--muted); font-weight: 800; }
.evf-map { height: 260px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.evf-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 10px; justify-content: flex-end; z-index: 5; }

/* Gestion (organisateur) */
.evm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 14px 0; }
.evm-kpis div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.evm-kpis b { display: block; font-size: 26px; color: #1e1b4b; }
.evm-kpis span { color: var(--muted); font-size: 13px; font-weight: 700; }
.evm-scan { display: flex; gap: 8px; flex-wrap: wrap; }
.evm-scan .in { flex: 1; min-width: 200px; font-size: 18px; letter-spacing: .05em; text-transform: uppercase; }
.evm-res { padding: 14px; border-radius: 14px; font-weight: 800; font-size: 17px; margin-top: 10px; }
.evm-res.ok { background: #dcfce7; color: #14532d; } .evm-res.error { background: #fee2e2; color: #7f1d1d; }
.evm-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.evm-tbl th, .evm-tbl td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .evx-card { transition: none; } }
