/* Ayoka Events – pop-up sur le site WordPress (styles isolés, préfixe .aep). */
.aep { position: fixed; inset: 0; z-index: 999999; display: grid; place-items: center; padding: 16px; font-family: "Montserrat", "Gotham", system-ui, sans-serif; }
.aep[hidden] { display: none; }
.aep * { box-sizing: border-box; }
.aep-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 5, .72); backdrop-filter: blur(5px); opacity: 0; transition: opacity .35s; }
.aep-box { position: relative; display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 360px); width: min(100%, 720px); max-height: calc(100vh - 32px); overflow: auto; background: var(--ae-bg, #12100B); color: var(--ae-text, #F5F1EA); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .08); transform: translateY(24px) scale(.97); opacity: 0; transition: all .45s cubic-bezier(.2, .8, .2, 1); }
.aep.in .aep-backdrop { opacity: 1; }
.aep.in .aep-box { transform: none; opacity: 1; }
.aep-x { position: absolute; top: 8px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.aep-media { position: relative; overflow: hidden; background: #000; border-radius: 20px 0 0 20px; aspect-ratio: 4 / 5; }
.aep-track { display: flex; height: 100%; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.aep-slide { position: relative; flex: 0 0 100%; height: 100%; display: block; overflow: hidden; }
.aep-slide > img { position: relative; width: 100%; height: 100%; object-fit: contain; display: block; }
.aep-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(22px) brightness(.5); }
.aep-symbol { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle, rgba(210, 57, 32, .25), transparent 70%), var(--ae-bg, #12100B); }
.aep-symbol img { width: 58%; height: auto; aspect-ratio: 1; animation: aep-rot 40s linear infinite; }
@keyframes aep-rot { to { transform: rotate(360deg); } }
.aep-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .5); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.aep-nav.prev { left: 10px; }
.aep-nav.next { right: 10px; }
.aep-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; }
.aep-dots button { width: 8px; height: 8px; padding: 0; border-radius: 8px; border: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: all .3s; }
.aep-dots button.on { width: 22px; background: var(--ae-primary, #D23920); }
.aep-body { position: relative; padding: 34px 28px 28px; display: flex; flex-direction: column; justify-content: center; }
.aep-band { position: absolute; top: 0; left: 0; right: 0; height: 7px; background: var(--ae-texture) center / 420px auto repeat-x; }
.aep-logo { width: 150px; height: auto; margin: 0 0 6px; }
.aep-brandsub { display: block; width: 150px; text-align: center; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; margin-bottom: 20px; opacity: .85; }
.aep-eyebrow { margin: 0 0 6px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ae-primary, #D23920); font-weight: 600; }
.aep h2 { margin: 0 0 8px; font-size: 24px; line-height: 1.15; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: inherit; font-family: inherit; }
.aep-sub { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: #E27F0C; }
.aep-text { margin: 0 0 20px; font-size: 14px; line-height: 1.55; opacity: .78; }
.aep-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.aep-btn { display: inline-block; padding: 14px 26px; border-radius: 999px; background: linear-gradient(135deg, #E27F0C, var(--ae-primary, #D23920) 50%, #601735); color: #fff !important; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-decoration: none !important; box-shadow: 0 10px 28px rgba(210, 57, 32, .35); transition: transform .15s; }
.aep-btn:hover { transform: translateY(-1px); }
.aep-link { color: inherit !important; opacity: .7; font-size: 13px; text-decoration: none !important; }
.aep-link:hover { opacity: 1; }
@media (max-width: 640px) {
  .aep { place-items: end center; padding: 0; }
  .aep-box { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 92vh; }
  .aep-media { border-radius: 22px 22px 0 0; aspect-ratio: auto; height: min(52vh, 440px); }
  .aep-symbol img { width: 140px; }
  .aep-logo { width: 120px; margin-bottom: 12px; }
  .aep h2 { font-size: 20px; }
  .aep-body { padding: 28px 22px calc(26px + env(safe-area-inset-bottom, 0px)); }
  .aep-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .aep-box, .aep-backdrop, .aep-symbol img { transition: none; animation: none; } }
