/**
 * AIFORYA Event Tickets — public. Tout scopé sous .et-restricted / .et-plans-wrap / .et-account.
 */
.et-restricted, .et-plans-wrap, .et-account { --et-accent: #6d3bd4; --et-ink: #26222e; --et-muted: #6b6b74; --et-line: #e8e5ef; }
.et-restricted *, .et-plans-wrap *, .et-account * { box-sizing: border-box; }

.et-restricted { text-align: center; border: 1px solid var(--et-line); border-radius: 16px; padding: 32px 24px; background: #faf9fd; max-width: 780px; margin: 20px auto; color: var(--et-ink); }
.et-restricted__lock { color: var(--et-accent); margin-bottom: 8px; }
.et-restricted__msg { font-size: 17px; font-weight: 600; margin: 0 0 18px; }
.et-restricted__login { margin-top: 14px; font-size: 14px; }
.et-restricted__login a, .et-account a { color: var(--et-accent); }

.et-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 0 auto; max-width: 720px; }
.et-plans-wrap .et-plans { max-width: 100%; }
.et-plan { border: 1px solid var(--et-line); border-radius: 14px; padding: 20px 18px; background: #fff; text-align: center; }
.et-plan__title { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.et-plan__price { font-size: 26px; font-weight: 800; color: var(--et-accent); margin: 0 0 10px; }
.et-plan__price span { font-size: 13px; font-weight: 500; color: var(--et-muted); }
.et-plan__desc { font-size: 14px; color: var(--et-muted); line-height: 1.5; text-align: left; }
.et-plan__trial { margin-top: 10px; font-size: 12px; font-weight: 600; color: #1e7d43; }

.et-account { border: 1px solid var(--et-line); border-radius: 14px; padding: 22px 24px; background: #fff; max-width: 520px; color: var(--et-ink); }
.et-account__title { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.et-account__note { color: var(--et-muted); }
.et-account__list { list-style: none; margin: 0; padding: 0; }
.et-account__list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--et-line); }
.et-account__list li span { color: var(--et-muted); }
.et-account__logout { margin-top: 16px; font-size: 14px; }

/* =====================================================================
 * Billetterie publique — [aiforya_event_list] & [aiforya_event_details]
 * ===================================================================== */
.et-public { --et-accent: #6d3bd4; --et-ink: #26222e; --et-muted: #6b6b74; --et-line: #e8e5ef; color: var(--et-ink); }
.et-public * { box-sizing: border-box; }
.et-empty { text-align: center; padding: 28px 20px; color: var(--et-muted); border: 1px dashed var(--et-line); border-radius: 14px; background: #faf9fd; }

/* Grille d'événements */
.et-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.et-card { border: 1px solid var(--et-line); border-radius: 16px; overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(38,34,46,.04); }
.et-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f2f0f8; }
.et-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.et-card__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.et-card__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; }
.et-card__title a { color: var(--et-ink); text-decoration: none; }
.et-card__title a:hover { color: var(--et-accent); }
.et-card__meta { margin: 0; font-size: 13px; color: var(--et-muted); }
.et-card__price { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--et-accent); }
.et-card .et-btn { margin-top: auto; }

/* Boutons */
.et-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: var(--et-accent); color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; text-align: center; border: 0; cursor: pointer; transition: filter .15s ease; }
.et-btn:hover { filter: brightness(1.08); color: #fff; }
.et-btn:disabled { opacity: .55; cursor: not-allowed; }
.et-btn--ghost { background: transparent; color: var(--et-muted); border: 1px solid var(--et-line); }

/* Badges de disponibilité */
.et-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.et-badge--ok { background: #e6f4ea; color: #1e7d43; }
.et-badge--warn { background: #fbf1e0; color: #a9741f; }
.et-badge--full { background: #fbeaea; color: #b32d2e; }

/* Détail d'un événement */
.et-details { max-width: 820px; margin: 0 auto; }
.et-details__media { border-radius: 16px; overflow: hidden; margin-bottom: 18px; }
.et-details__media img { width: 100%; height: auto; display: block; }
.et-details__title { margin: 0 0 14px; font-size: 26px; font-weight: 800; line-height: 1.2; }
.et-details__facts { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.et-details__facts a { color: var(--et-accent); }
.et-details__desc { font-size: 15px; line-height: 1.65; margin-bottom: 20px; }
.et-notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.et-notice--cancel { background: #fbeaea; color: #b32d2e; }

/* Billets */
.et-tickets h3 { margin: 0 0 12px; font-size: 18px; font-weight: 700; }
.et-ticket-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--et-line); }
.et-ticket-row:last-child { border-bottom: 1px solid var(--et-line); }
.et-ticket-row__info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.et-ticket-row__name { font-weight: 600; font-size: 15px; }
.et-ticket-row__price { font-weight: 700; color: var(--et-accent); white-space: nowrap; }
.et-ticket-row__note { font-size: 13px; color: var(--et-muted); }

/* Formulaire de réservation */
.et-reserve-form { margin-top: 20px; border: 1px solid var(--et-line); border-radius: 14px; padding: 18px 20px; background: #faf9fd; max-width: 460px; }
.et-reserve-form__for { font-weight: 700; margin: 0 0 12px; }
.et-reserve-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.et-reserve-form input[type="text"], .et-reserve-form input[type="email"] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #c8c3d6; border-radius: 8px; font-size: 15px; background: #fff; }
.et-reserve-form p { margin: 0 0 12px; }
.et-reserve-form__msg { font-size: 14px; margin: 0; }
.et-reserve-form__msg--ok { color: #1e7d43; font-weight: 600; }
.et-reserve-form__msg--err { color: #b32d2e; font-weight: 600; }

@media (max-width: 560px) {
	.et-ticket-row { grid-template-columns: 1fr; align-items: flex-start; }
	.et-details__title { font-size: 22px; }
}
