/*
 * OFQD V264 — Liste des événements Premium
 * Portée volontairement limitée à .ofqd-events-premium-v264.
 * Ne modifie ni le moteur d'images, ni Pexels, ni le cache, ni l'anti-doublons.
 */

.ofqd-events-premium-v264 {
  --ofqd-v264-navy: #0d1b2a;
  --ofqd-v264-blue: #1e3a8a;
  --ofqd-v264-blue-bright: #2563eb;
  --ofqd-v264-blue-soft: #eff6ff;
  --ofqd-v264-border: #dbe7f4;
  --ofqd-v264-muted: #64748b;
  --ofqd-v264-orange: #ff8a00;
  --ofqd-v264-red: #ff3d3d;
}

.ofqd-events-premium-v264 .ofqd-icon,
.ofqd-events-premium-v264 .ofqd-nav-svg {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  line-height: 0;
}

.ofqd-events-premium-v264 .ofqd-icon svg,
.ofqd-events-premium-v264 .ofqd-nav-svg svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hero et navigation d'univers */
.ofqd-events-premium-v264 .ofqd-events-v50-hero {
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.ofqd-events-premium-v264 .ofqd-unified-city-tabs,
.ofqd-events-premium-v264 .ofqd-universe-switcher {
  align-items: center;
}

.ofqd-events-premium-v264 .ofqd-unified-city-tabs a,
.ofqd-events-premium-v264 .ofqd-universe-switcher a {
  border-radius: 999px !important;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.ofqd-events-premium-v264 .ofqd-unified-city-tabs a:focus-visible,
.ofqd-events-premium-v264 .ofqd-universe-switcher a:focus-visible {
  outline: 3px solid rgba(255,138,0,.92);
  outline-offset: 2px;
}

/* Filtres actifs */
.ofqd-events-premium-v264 .ofqd-active-filters-v9 {
  border-color: var(--ofqd-v264-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(13,27,42,.07) !important;
}

.ofqd-events-premium-v264 .ofqd-filter-chip-v9 {
  min-height: 32px;
  padding: 5px 9px;
  color: var(--ofqd-v264-blue);
  border-color: #cbdcf0;
  background: #f8fbff;
}

.ofqd-events-premium-v264 .ofqd-filter-chip-v9:hover {
  color: #fff;
  border-color: var(--ofqd-v264-blue-bright);
  background: var(--ofqd-v264-blue-bright);
}

.ofqd-events-premium-v264 .ofqd-filter-chip-v9 b {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 1px;
  border-radius: 50%;
  background: rgba(13,27,42,.08);
}

.ofqd-events-premium-v264 .ofqd-filter-chip-v9:hover b {
  background: rgba(255,255,255,.2);
}

.ofqd-events-premium-v264 .ofqd-results-badge-v9 {
  background: var(--ofqd-v264-navy);
  box-shadow: 0 5px 14px rgba(13,27,42,.16);
}

.ofqd-events-premium-v264 .ofqd-share-universes,
.ofqd-events-premium-v264 .ofqd-clear-all-v9 {
  gap: 6px;
  border-radius: 999px !important;
}

.ofqd-events-premium-v264 .ofqd-share-universes .ofqd-icon {
  width: 16px;
  height: 16px;
}

/* Raccourcis d'inspiration */
.ofqd-events-premium-v264 .ofqd-inspiration-v7 {
  gap: 10px;
}

.ofqd-events-premium-v264 .ofqd-inspiration-card {
  min-height: 58px;
  border-color: var(--ofqd-v264-border);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(13,27,42,.06);
}

.ofqd-events-premium-v264 .ofqd-inspiration-card:hover {
  border-color: #9ebee6;
  box-shadow: 0 12px 26px rgba(13,27,42,.1);
}

.ofqd-events-premium-v264 .ofqd-inspiration-icon {
  width: 36px;
  height: 36px;
  color: var(--ofqd-v264-blue-bright);
  background: var(--ofqd-v264-blue-soft);
}

.ofqd-events-premium-v264 .ofqd-inspiration-icon svg {
  width: 20px;
  height: 20px;
}

.ofqd-events-premium-v264 .ofqd-inspiration-card.is-active .ofqd-inspiration-icon {
  color: #fff;
  background: var(--ofqd-v264-blue-bright);
}

/* Résumé */
.ofqd-events-premium-v264 .ofqd-results-summary-v10 {
  border-color: var(--ofqd-v264-border) !important;
  border-radius: 13px !important;
  box-shadow: 0 7px 20px rgba(13,27,42,.06) !important;
}

.ofqd-events-premium-v264 .ofqd-results-summary-main,
.ofqd-events-premium-v264 .ofqd-results-summary-actions,
.ofqd-events-premium-v264 .ofqd-results-place,
.ofqd-events-premium-v264 .ofqd-results-summary-actions a {
  display: flex;
  align-items: center;
}

.ofqd-events-premium-v264 .ofqd-results-place,
.ofqd-events-premium-v264 .ofqd-results-summary-actions a {
  gap: 5px;
}

.ofqd-events-premium-v264 .ofqd-results-summary-main .ofqd-icon,
.ofqd-events-premium-v264 .ofqd-results-summary-actions .ofqd-icon {
  width: 15px;
  height: 15px;
  color: var(--ofqd-v264-blue-bright);
}

.ofqd-events-premium-v264 .ofqd-results-summary-actions a {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #cbdcf0;
  border-radius: 999px;
  color: var(--ofqd-v264-blue);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}

.ofqd-events-premium-v264 .ofqd-results-summary-actions a:hover {
  color: #fff;
  border-color: var(--ofqd-v264-blue-bright);
  background: var(--ofqd-v264-blue-bright);
}

.ofqd-events-premium-v264 .ofqd-results-summary-actions a:hover .ofqd-icon {
  color: inherit;
}

/* Recherche principale */
.ofqd-events-premium-v264 .ofqd-events-v50-panel {
  border-color: var(--ofqd-v264-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 30px rgba(13,27,42,.075) !important;
}

.ofqd-events-premium-v264 .ofqd-events-v50-search {
  align-items: end;
  gap: 8px;
}

.ofqd-events-premium-v264 .ofqd-smart-search-field {
  min-width: 0;
}

.ofqd-events-premium-v264 .ofqd-smart-search-field .field-label {
  gap: 7px;
  color: var(--ofqd-v264-navy);
  font-weight: 850;
}

.ofqd-events-premium-v264 .ofqd-smart-search-field .field-label .ofqd-icon {
  width: 17px;
  height: 17px;
  color: var(--ofqd-v264-blue-bright);
}

.ofqd-events-premium-v264 .ofqd-events-v50-search input[type="search"] {
  min-height: 44px;
  border-color: #cbdcf0;
  border-radius: 12px;
  background: #fbfdff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}

.ofqd-events-premium-v264 .ofqd-events-v50-search input[type="search"]:focus {
  border-color: var(--ofqd-v264-blue-bright);
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
  outline: none;
}

.ofqd-events-premium-v264 .ofqd-events-v50-search > button[type="submit"] {
  min-height: 44px;
  padding-inline: 18px;
  border: 0;
  border-radius: 999px;
  color: var(--ofqd-v264-navy);
  background: linear-gradient(135deg,#ffc857,#ff9f1c);
  box-shadow: 0 8px 18px rgba(255,138,0,.22);
  font-weight: 900;
}

.ofqd-events-premium-v264 .ofqd-events-v50-search > button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px rgba(255,138,0,.28);
}

.ofqd-events-premium-v264 .ofqd-search-reset {
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 50% !important;
  color: var(--ofqd-v264-blue);
  background: var(--ofqd-v264-blue-soft);
}

/* Puces de période et catégories */
.ofqd-events-premium-v264 .ofqd-events-v50-chips {
  gap: 7px;
}

.ofqd-events-premium-v264 .ofqd-events-v50-chips a,
.ofqd-events-premium-v264 .ofqd-events-v50-chips button {
  min-height: 35px;
  padding: 7px 11px;
  border-color: #cdddf0;
  border-radius: 999px !important;
  color: var(--ofqd-v264-blue);
  background: #fff;
  font-weight: 800;
}

.ofqd-events-premium-v264 .ofqd-events-v50-chips a:hover,
.ofqd-events-premium-v264 .ofqd-events-v50-chips button:hover {
  border-color: #9dbce2;
  background: var(--ofqd-v264-blue-soft);
  transform: translateY(-1px);
}

.ofqd-events-premium-v264 .ofqd-events-v50-chips a.is-active,
.ofqd-events-premium-v264 .ofqd-events-v50-chips button.is-active {
  color: #fff;
  border-color: var(--ofqd-v264-blue-bright);
  background: linear-gradient(135deg,var(--ofqd-v264-blue),var(--ofqd-v264-blue-bright));
  box-shadow: 0 7px 16px rgba(37,99,235,.2);
}

.ofqd-events-premium-v264 .ofqd-events-v50-chips .ofqd-icon {
  width: 16px;
  height: 16px;
}

/* Cartes : finition, sans toucher aux images ni à la grille officielle */
.ofqd-events-premium-v264 .ofqd-events-v50-card {
  overflow: hidden;
  border-color: #d9e4f1 !important;
  border-radius: 11px !important;
  background: #fff;
  box-shadow: 0 7px 18px rgba(13,27,42,.085) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ofqd-events-premium-v264 .ofqd-events-v50-card:hover {
  border-color: #b9cce4 !important;
  box-shadow: 0 13px 27px rgba(13,27,42,.14) !important;
}

.ofqd-events-premium-v264 .ofqd-events-v50-card:focus-visible {
  outline: 3px solid var(--ofqd-v264-orange);
  outline-offset: 3px;
}

.ofqd-events-premium-v264 .ofqd-events-v50-media > span {
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 3px 10px rgba(13,27,42,.14);
}

.ofqd-events-premium-v264 .ofqd-events-v50-body h2 {
  color: var(--ofqd-v264-navy);
  font-weight: 750 !important;
}

.ofqd-events-premium-v264 .ofqd-event-date-line,
.ofqd-events-premium-v264 .ofqd-event-place-line {
  color: var(--ofqd-v264-muted);
}

.ofqd-events-premium-v264 .ofqd-event-date-line .ofqd-icon,
.ofqd-events-premium-v264 .ofqd-event-place-line .ofqd-icon {
  color: var(--ofqd-v264-blue-bright);
}

.ofqd-events-premium-v264 .ofqd-favorite-btn {
  border-color: #d1dfed;
  color: var(--ofqd-v264-blue);
  background: #fff;
  box-shadow: 0 3px 9px rgba(13,27,42,.08);
}

.ofqd-events-premium-v264 .ofqd-favorite-btn:hover,
.ofqd-events-premium-v264 .ofqd-favorite-btn.is-active {
  color: #fff;
  border-color: var(--ofqd-v264-red);
  background: var(--ofqd-v264-red);
}

/* Pagination officielle */
.ofqd-events-premium-v264 .ofqd-pagination-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--ofqd-v264-border);
}

.ofqd-events-premium-v264 .ofqd-pagination-summary {
  color: #475569;
  font-weight: 650;
}

.ofqd-events-premium-v264 .ofqd-events-pagination {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.ofqd-events-premium-v264 .ofqd-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ofqd-events-premium-v264 .ofqd-page-nav,
.ofqd-events-premium-v264 .ofqd-page-number {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid #ccdced;
  border-radius: 9px;
  color: var(--ofqd-v264-blue);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
}

.ofqd-events-premium-v264 .ofqd-page-nav:hover,
.ofqd-events-premium-v264 .ofqd-page-number:hover,
.ofqd-events-premium-v264 .ofqd-page-number.is-current {
  color: #fff;
  border-color: var(--ofqd-v264-blue-bright);
  background: var(--ofqd-v264-blue-bright);
}

.ofqd-events-premium-v264 .ofqd-page-nav.is-disabled {
  color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
}

/* État vide et bouton mobile de géolocalisation */
.ofqd-events-premium-v264 .ofqd-empty-smart-icon {
  color: var(--ofqd-v264-blue-bright);
}

.ofqd-events-premium-v264 .ofqd-empty-smart-icon svg {
  width: 27px;
  height: 27px;
}

.ofqd-events-premium-v264 .ofqd-featured-locate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.ofqd-events-premium-v264 .ofqd-featured-locate .ofqd-icon {
  width: 16px;
  height: 16px;
}

/* Mode nuit */
html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-active-filters-v9,
html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-inspiration-card,
html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-results-summary-v10,
html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-events-v50-panel,
html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-events-v50-card,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-active-filters-v9,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-inspiration-card,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-results-summary-v10,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-events-v50-panel,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-events-v50-card {
  border-color: rgba(148,163,184,.25) !important;
  background: #0f2347 !important;
}

html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-events-v50-body h2,
html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-active-filters-title,
html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-inspiration-copy strong,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-events-v50-body h2,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-active-filters-title,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-inspiration-copy strong {
  color: #f8fafc !important;
}

html[data-theme="dark"] .ofqd-events-premium-v264 .ofqd-inspiration-copy small,
body.ofqd-night-mode .ofqd-events-premium-v264 .ofqd-inspiration-copy small {
  color: #b9c8dd !important;
}

@media (max-width: 760px) {
  .ofqd-events-premium-v264 .ofqd-results-summary-v10 {
    align-items: stretch;
    gap: 8px;
  }

  .ofqd-events-premium-v264 .ofqd-results-summary-main {
    flex-wrap: wrap;
  }

  .ofqd-events-premium-v264 .ofqd-results-summary-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    width: 100%;
  }

  .ofqd-events-premium-v264 .ofqd-results-summary-actions a {
    justify-content: center;
  }

  .ofqd-events-premium-v264 .ofqd-events-v50-search {
    align-items: stretch;
  }

  .ofqd-events-premium-v264 .ofqd-events-v50-search > button[type="submit"] {
    min-height: 42px;
  }

  .ofqd-events-premium-v264 .ofqd-events-pagination {
    justify-content: center;
  }

  .ofqd-events-premium-v264 .ofqd-page-nav {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ofqd-events-premium-v264 *,
  .ofqd-events-premium-v264 *::before,
  .ofqd-events-premium-v264 *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
