/* GRFTSH_EVENTS_MEMBER_UX_V4 — module isolé */
.grftsh-em-root{margin:20px 0;max-width:1100px}
.grftsh-em-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:17px}
.grftsh-em-tabs button,.grftsh-em-dialog button{cursor:pointer;border:1px solid var(--border,#555);background:var(--surface,#222);color:var(--text,#fff);border-radius:12px;padding:11px 16px;font:inherit}
.grftsh-em-tabs button[aria-pressed="true"]{border-color:#c39d62;background:#6c502b;color:white}
.grftsh-em-status:not(:empty){padding:12px 0}.grftsh-em-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:15px}
.grftsh-em-tile{background:transparent;border:0;padding:0;display:block;color:inherit;text-align:center;cursor:pointer;min-width:0}
.grftsh-em-tile:focus-visible{outline:3px solid #d9b178;outline-offset:4px;border-radius:12px}
.grftsh-em-poster{aspect-ratio:3/4;border-radius:13px;overflow:hidden;background:#262423;display:flex;align-items:center;justify-content:center;border:1px solid rgba(150,150,150,.25)}
.grftsh-em-poster img{display:block;width:100%;height:100%;object-fit:cover}
.grftsh-em-poster.is-placeholder{background:linear-gradient(150deg,#241f1b,#70522f);padding:15px;text-align:center}
.grftsh-em-poster span{font-weight:900;letter-spacing:.04em;font-size:1.1rem;overflow-wrap:anywhere;color:white}
.grftsh-em-date{display:block;margin-top:10px;font-size:.93rem;font-weight:700;line-height:1.35}
.grftsh-em-tile:hover .grftsh-em-poster{border-color:#d5ad70}
.grftsh-em-modal-open{overflow:hidden}
.grftsh-em-overlay[hidden]{display:none!important}
.grftsh-em-overlay{position:fixed;inset:0;z-index:11000;background:rgba(0,0,0,.82);display:flex;align-items:center;justify-content:center;padding:16px}
.grftsh-em-dialog{position:relative;background:var(--surface,#1c1c1c);color:var(--text,#fff);border:1px solid #555;border-radius:18px;width:min(940px,100%);max-height:min(91dvh,940px);overflow:auto;box-shadow:0 20px 70px #000a;overscroll-behavior:contain}
.grftsh-em-close{position:sticky;top:10px;float:right;z-index:2;margin:10px 12px 0 0;font-size:1.6rem!important;padding:2px 12px!important;background:#171717!important;color:#fff!important}
.grftsh-em-modal-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(245px,.8fr);gap:24px;padding:25px;clear:both}
.grftsh-em-details,.grftsh-em-registration{min-width:0}
.grftsh-em-modal-poster{width:min(230px,100%);margin:0 auto 18px}
.grftsh-em-details h2{margin:6px 0 10px;font-size:1.6rem}.grftsh-em-details p{line-height:1.55;white-space:pre-line}
.grftsh-em-slogan{font-weight:800;letter-spacing:.035em}
.grftsh-em-facts{margin:18px 0}.grftsh-em-facts div{margin:8px 0}.grftsh-em-facts dt{font-size:.8rem;opacity:.7}.grftsh-em-facts dd{margin:3px 0 0;font-weight:650}
.grftsh-em-dresscode{background:rgba(150,150,150,.09);border-radius:12px;padding:14px;margin:14px 0;white-space:pre-line}
.grftsh-em-registration{background:rgba(130,130,130,.09);border-radius:16px;padding:18px;align-self:start;text-align:center}
.grftsh-em-registration h3{margin:0 0 16px}.grftsh-em-registration button{width:100%;margin:8px 0}
.grftsh-em-registration .grftsh-em-primary{background:#84612f;color:#fff;border-color:#cba76a;font-weight:800}
.grftsh-em-qr{display:flex;justify-content:center;background:#fff;width:max-content;max-width:100%;padding:12px;border-radius:10px;margin:15px auto}
.grftsh-em-qr img,.grftsh-em-qr canvas{max-width:100%;height:auto}.grftsh-em-ticket-hint{display:block;font-size:.82rem;line-height:1.4}
.grftsh-em-confirmed{font-weight:750}.grftsh-em-feedback.is-error{color:#ff9999}
@media(max-width:700px){.grftsh-em-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.grftsh-em-overlay{padding:0}.grftsh-em-dialog{border-radius:0;max-height:100dvh;height:100dvh}.grftsh-em-modal-layout{display:flex;flex-direction:column;padding:15px;gap:18px}.grftsh-em-registration{width:100%}.grftsh-em-modal-poster{width:min(180px,75%)}.grftsh-em-details h2{font-size:1.35rem}}

/* GRFTSH_EVENTS_UX_V41 — séparation GRFTSH / soirées partenaires */
.grftsh-em-discover-section{scroll-margin-top:95px}
.grftsh-em-discover-section .grftsh-em-root{margin-top:14px}
.grftsh-em-modal-poster{width:min(275px,100%)}
@media(max-width:700px){
 .grftsh-em-modal-layout.has-ticket .grftsh-em-registration{order:-1}
 .grftsh-em-modal-layout.has-ticket .grftsh-em-details{order:1}
 .grftsh-em-modal-layout.has-ticket .grftsh-em-modal-poster{width:min(150px,65%)}
 .grftsh-em-modal-layout.has-ticket .grftsh-em-registration{padding:15px}
}

/* GRFTSH_EVENT_MODAL_FULL_FLYER_V2 */

/* Conserver les proportions naturelles du flyer. */
.grftsh-em-modal-poster {
  width: min(345px, 100%);
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  overflow: visible;
  padding: 0;
  margin: 0 auto 22px;
  background: transparent;
}

.grftsh-em-modal-poster img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 13px;
}

@media (max-width: 700px) {
  .grftsh-em-modal-poster {
    width: min(260px, 90%);
  }

  .grftsh-em-modal-layout.has-ticket
  .grftsh-em-modal-poster {
    width: min(180px, 70%);
  }
}

/* GRFTSH_EVENTS_CONFIRM_STYLES_V1 */
.grftsh-em-confirm-layer{position:fixed;inset:0;z-index:20020;background:rgba(0,0,0,.78);display:grid;place-items:center;padding:20px;box-sizing:border-box}
.grftsh-em-confirm-box{width:min(430px,100%);box-sizing:border-box;border:1px solid rgba(255,255,255,.17);border-radius:20px;padding:26px;background:#19191d;color:#fff;box-shadow:0 22px 70px rgba(0,0,0,.6)}
.grftsh-em-confirm-message{margin:0 0 24px;font-size:1.12rem;font-weight:650;line-height:1.5}
.grftsh-em-confirm-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.grftsh-em-confirm-actions button{border:1px solid rgba(255,255,255,.22);border-radius:11px;padding:12px 19px;font:inherit;font-weight:700;cursor:pointer}
.grftsh-em-confirm-no{background:#303037;color:#fff}
.grftsh-em-confirm-yes{background:#e53955;color:white;border-color:#e53955!important}
.grftsh-em-confirm-actions button:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* GRFTSH_POINT02 — tarifs entrée événement */
.grftsh-em-entry-price{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;padding:15px 17px;border:1px solid rgba(255,255,255,.17);border-radius:12px;background:rgba(255,255,255,.045)}
.grftsh-em-entry-price strong{font-size:1.6rem;line-height:1.2;color:var(--text-primary,#fff)}
.grftsh-em-entry-price span{font-size:.9rem;line-height:1.4;color:var(--text-muted,#bbb)}
.dashboard-events-prices{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin:12px 0;padding:12px;border:1px solid rgba(128,128,128,.3);border-radius:12px}
.dashboard-events-prices label{display:flex;flex-direction:column;gap:5px;min-width:145px;flex:1}
.dashboard-events-prices input{width:100%;min-height:40px;padding:8px;border-radius:8px}
.dashboard-events-prices button{min-height:40px}
