/* ============================================================
   LAKAY-EVENTS.CSS — v3.0 (Mode clair forcé)
   ------------------------------------------------------------
   The Events Calendar — dark mode désactivé.
   Toutes les pages Tribe restent en clair, même quand
   html[data-theme="dark"] est actif.

   Couvre : archive, single, catégories, vues jour/mois/liste,
            datepicker, dropdowns, notices, meta, subscribe.

   Principe : on ne touche QUE les couleurs.
   Aucun impact sur la structure, les marges, les grilles.
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABLES TRIBE — forcées en clair
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-common,
html[data-theme="dark"] .tribe-events,
html[data-theme="dark"] .tribe-events-view,
html[data-theme="dark"] .tribe-events-calendar-list,
html[data-theme="dark"] .tribe-events-calendar-latest-past,
html[data-theme="dark"] .tribe-events-calendar-month,
html[data-theme="dark"] .tribe-events-calendar-day,
html[data-theme="dark"] .tribe-events-single,
html[data-theme="dark"] #tribe-events-pg-template,
html[data-theme="dark"] #tribe-events-content,
html[data-theme="dark"] .tribe-events-pg-template {
    --tec-color-background: #FFFFFF;
    --tec-color-background-events: #FFFFFF;
    --tec-color-background-events-bar: #FFFFFF;
    --tec-color-background-secondary: #FFFFFF;
    --tec-color-background-tertiary: #E2E8F0;
    --tec-color-background-events-bar-input: #FFFFFF;
    --tec-color-background-events-bar-input-hover: #FFFFFF;
    --tec-color-text-primary: #0F172A;
    --tec-color-text-secondary: #475569;
    --tec-color-text-events-bar-input: #0F172A;
    --tec-color-text-events-bar-input-placeholder: #94A3B8;
    --tec-color-border-default: #E2E8F0;
    --tec-color-border-secondary: #CBD5E1;
    --tec-color-border-active: #00209F;
    --tec-color-link-primary: #00209F;
    --tec-color-link-accent: #D21034;
    --tec-color-link-accent-hover: #A50D28;
    --tec-color-button-primary: #FFFFFF;
    --tec-color-button-primary-background: #00209F;
    --tec-color-button-primary-hover: #001580;
    --tec-color-icon-primary: #475569;
    --tec-color-icon-secondary: #94A3B8;
    --tec-color-icon-active: #00209F;
    --tec-color-accent-primary: #00209F;
    --tec-color-accent-secondary: #D21034;

    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

body {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

/* ------------------------------------------------------------
   2. WRAPPERS
   ------------------------------------------------------------ */
html[data-theme="dark"] #tribe-events-pg-template,
html[data-theme="dark"] .tribe-events-view,
html[data-theme="dark"] .tribe-events-single,
html[data-theme="dark"] #tribe-events-content,
html[data-theme="dark"] .tribe-common-l-container {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

/* ------------------------------------------------------------
   3. MESSAGES / NOTICES
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-c-messages__message,
html[data-theme="dark"] .tribe-events-notices,
html[data-theme="dark"] .tribe-events-notices ul,
html[data-theme="dark"] .tribe-events-notices li {
    background-color: #FEF3C7 !important;
    border-color: #F59E0B !important;
    color: #78350F !important;
}
html[data-theme="dark"] .tribe-events-notices a {
    color: #B45309 !important;
}

/* ------------------------------------------------------------
   4. BARRE D'ÉVÉNEMENTS (recherche, filtres, view selector)
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-c-events-bar,
html[data-theme="dark"] .tribe-events-c-events-bar__search-container,
html[data-theme="dark"] .tribe-events-c-events-bar__views,
html[data-theme="dark"] .tribe-events-c-view-selector__content {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

/* Bouton loupe de recherche */
html[data-theme="dark"] .tribe-events-c-events-bar__search-button,
html[data-theme="dark"] .tribe-events-c-events-bar__search-button-icon-svg {
    color: #0F172A !important;
    fill: #0F172A !important;
}
html[data-theme="dark"] .tribe-events-c-events-bar__search-button:hover {
    background-color: #FFFFFF !important;
}

/* Champ de recherche */
html[data-theme="dark"] .tribe-events-c-search__input,
html[data-theme="dark"] .tribe-common-form-control-text__input {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
}
html[data-theme="dark"] .tribe-events-c-search__input::placeholder {
    color: #94A3B8 !important;
}

/* Bouton Find Events */
html[data-theme="dark"] .tribe-common-c-btn,
html[data-theme="dark"] .tribe-events-c-search__button {
    background-color: #00209F !important;
    color: #FFFFFF !important;
    border-color: #00209F !important;
}
html[data-theme="dark"] .tribe-common-c-btn:hover,
html[data-theme="dark"] .tribe-events-c-search__button:hover {
    background-color: #001580 !important;
    border-color: #001580 !important;
}

/* ------------------------------------------------------------
   5. SÉLECTEUR DE VUE (List / Month / Day) — BOUTON + LISTE
   ------------------------------------------------------------ */
/* Bouton principal (fermé) */
html[data-theme="dark"] .tribe-events-c-view-selector__button,
html[data-theme="dark"] .tribe-events-c-view-selector__button-text,
html[data-theme="dark"] .tribe-events-c-view-selector__button-icon,
html[data-theme="dark"] .tribe-events-c-view-selector__button-icon-caret-svg {
    color: #0F172A !important;
    fill: #0F172A !important;
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

/* Liste déroulante (items) */
html[data-theme="dark"] .tribe-events-c-view-selector__list-item-link {
    background-color: transparent !important;
    color: #0F172A !important;
}
html[data-theme="dark"] .tribe-events-c-view-selector__list-item-link:hover {
    background-color: #FFFFFF !important;
    color: #00209F !important;
}
html[data-theme="dark"] .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
html[data-theme="dark"] .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link {
    background-color: FFFFFF !important;
    color: #00209F !important;
}
html[data-theme="dark"] .tribe-events-c-view-selector__list-item-text {
    color: inherit !important;
}
/* Icônes SVG dans les items */
html[data-theme="dark"] .tribe-events-c-view-selector__list-item-icon svg,
html[data-theme="dark"] .tribe-events-c-view-selector__list-item-icon-svg {
    fill: #475569 !important;
}
html[data-theme="dark"] .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-icon svg {
    fill: #00209F !important;
}

/* Item normal (non actif) */
html[data-theme="dark"] .tribe-events .tribe-events-c-view-selector__list-item-link,
html[data-theme="dark"] .tribe-events-view .tribe-events-c-view-selector__list-item-link {
    background-color: transparent !important;
    color: #0F172A !important;
}

/* Item ACTIF — spécificité renforcée pour battre Tribe */
html[data-theme="dark"] .tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
html[data-theme="dark"] .tribe-events-view .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
html[data-theme="dark"] .tribe-common--breakpoint-medium.tribe-events .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
html[data-theme="dark"] .tribe-common--breakpoint-full.tribe-events .tribe-events-c-view-selector--tabs .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link {
    background-color: FFFFFF !important;
    color: #00209F !important;
    border-color: FFFFFF !important;
}

/* Item actif — forcer aussi les enfants (icône + texte) */
html[data-theme="dark"] .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link .tribe-events-c-view-selector__list-item-text,
html[data-theme="dark"] .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link .tribe-events-c-view-selector__list-item-icon svg {
    color: #00209F !important;
    fill: #00209F !important;
}

/* Item au survol */
html[data-theme="dark"] .tribe-events .tribe-events-c-view-selector__list-item-link:hover,
html[data-theme="dark"] .tribe-events-view .tribe-events-c-view-selector__list-item-link:hover {
    background-color: #FFFFFF !important;
    color: #00209F !important;
}

/* ------------------------------------------------------------
   6. TOP BAR (navigation, datepicker bouton, Today)
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-c-top-bar,
html[data-theme="dark"] .tribe-events-c-top-bar__datepicker,
html[data-theme="dark"] .tribe-events-header {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

html[data-theme="dark"] .tribe-events-c-top-bar__datepicker-button,
html[data-theme="dark"] .tribe-events-c-top-bar__datepicker-time,
html[data-theme="dark"] .tribe-events-c-top-bar__datepicker-mobile,
html[data-theme="dark"] .tribe-events-c-top-bar__datepicker-desktop,
html[data-theme="dark"] .tribe-events-c-top-bar__today-button,
html[data-theme="dark"] .tribe-common-c-btn-border-small,
html[data-theme="dark"] .tribe-events-c-top-bar__nav-link {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
}
html[data-theme="dark"] .tribe-events-c-top-bar__nav-link svg,
html[data-theme="dark"] .tribe-events-c-top-bar__datepicker-button-icon-svg {
    fill: #0F172A !important;
    color: #0F172A !important;
}

/* ------------------------------------------------------------
   7. DATEPICKER (calendrier qui s'ouvre au clic)
   ------------------------------------------------------------ */
html[data-theme="dark"] .datepicker,
html[data-theme="dark"] .datepicker-dropdown,
html[data-theme="dark"] .datepicker .table-condensed,
html[data-theme="dark"] .datepicker table {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .15) !important;
}

html[data-theme="dark"] .datepicker .datepicker-days,
html[data-theme="dark"] .datepicker .datepicker-months,
html[data-theme="dark"] .datepicker .datepicker-years,
html[data-theme="dark"] .datepicker .datepicker-decades,
html[data-theme="dark"] .datepicker .datepicker-centuries {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
}

/* En-tête : mois + flèches prev/next */
html[data-theme="dark"] .datepicker .datepicker-switch,
html[data-theme="dark"] .datepicker .prev,
html[data-theme="dark"] .datepicker .next {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
}
html[data-theme="dark"] .datepicker .datepicker-switch:hover,
html[data-theme="dark"] .datepicker .prev:hover,
html[data-theme="dark"] .datepicker .next:hover {
    background-color: FFFFFF !important;
    color: #00209F !important;
}
html[data-theme="dark"] .datepicker .prev svg,
html[data-theme="dark"] .datepicker .next svg {
    fill: #0F172A !important;
}

/* Jours de la semaine */
html[data-theme="dark"] .datepicker .dow,
html[data-theme="dark"] .datepicker .dow abbr {
    color: #475569 !important;
    border-color: #E2E8F0 !important;
    background-color: #FFFFFF !important;
}

/* Jours / mois / années */
html[data-theme="dark"] .datepicker .day,
html[data-theme="dark"] .datepicker .month,
html[data-theme="dark"] .datepicker .year,
html[data-theme="dark"] .datepicker .decade,
html[data-theme="dark"] .datepicker .century {
    background-color: transparent !important;
    color: #0F172A !important;
    border-color: transparent !important;
}
html[data-theme="dark"] .datepicker .day:hover,
html[data-theme="dark"] .datepicker .month:hover,
html[data-theme="dark"] .datepicker .year:hover,
html[data-theme="dark"] .datepicker .decade:hover,
html[data-theme="dark"] .datepicker .century:hover {
    background-color: FFFFFF !important;
    color: #00209F !important;
}

/* Jours grisés (hors mois) */
html[data-theme="dark"] .datepicker .old,
html[data-theme="dark"] .datepicker .new,
html[data-theme="dark"] .datepicker .past {
    color: #94A3B8 !important;
}

/* Jour actif / sélectionné */
html[data-theme="dark"] .datepicker .active,
html[data-theme="dark"] .datepicker .current,
html[data-theme="dark"] .datepicker .focused {
    background-color: #00209F !important;
    color: #FFFFFF !important;
    border-color: #00209F !important;
}

/* Footer : Jodi a / Efase */
html[data-theme="dark"] .datepicker tfoot th {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}
html[data-theme="dark"] .datepicker tfoot .today,
html[data-theme="dark"] .datepicker tfoot .clear {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
}
html[data-theme="dark"] .datepicker tfoot .today:hover,
html[data-theme="dark"] .datepicker tfoot .clear:hover {
    background-color: #00209F !important;
    color: #FFFFFF !important;
}

/* ------------------------------------------------------------
   8. CARTES D'ÉVÉNEMENTS (liste + latest past)
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-calendar-list__event-row,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-row,
html[data-theme="dark"] .tribe-events-calendar-day__event-row {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

html[data-theme="dark"] .tribe-events-calendar-list__event-title-link,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-title-link,
html[data-theme="dark"] .tribe-events-calendar-day__event-title-link,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-title,
html[data-theme="dark"] .tribe-events-calendar-list__event-title {
    color: #0F172A !important;
}
html[data-theme="dark"] .tribe-events-calendar-list__event-title-link:hover,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-title-link:hover {
    color: #00209F !important;
}

html[data-theme="dark"] .tribe-events-calendar-list__event-datetime,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-datetime,
html[data-theme="dark"] .tribe-events-calendar-list__event-venue,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-venue,
html[data-theme="dark"] .tribe-events-calendar-list__event-venue-title,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-venue-title,
html[data-theme="dark"] .tribe-events-calendar-list__event-venue-address,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-venue-address,
html[data-theme="dark"] .tribe-events-calendar-list__event-description,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-description,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-description p {
    color: #475569 !important;
}

html[data-theme="dark"] .tribe-events-calendar-list__event-date-tag-datetime,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-date-tag-datetime {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
}
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-date-tag-month,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-date-tag-daynum,
html[data-theme="dark"] .tribe-events-calendar-latest-past__event-date-tag-year {
    color: inherit !important;
}

html[data-theme="dark"] .tribe-events-c-small-cta__price,
html[data-theme="dark"] .tribe-events-c-small-cta {
    color: #00209F !important;
}

html[data-theme="dark"] .tribe-events-calendar-latest-past__heading {
    color: #0F172A !important;
}

/* ------------------------------------------------------------
   9. PAGE SINGLE ÉVÉNEMENT — DÉTAILS, META, VENUE, ORGANISATEURS
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-single-event-title,
html[data-theme="dark"] .tribe-events-schedule,
html[data-theme="dark"] .tribe-events-schedule h2,
html[data-theme="dark"] .tribe-events-single-event-description,
html[data-theme="dark"] .tribe-events-single-event-description p,
html[data-theme="dark"] .tribe-events-single-event-description li,
html[data-theme="dark"] .tribe-events-single-section-title,
html[data-theme="dark"] .tribe-events-meta-group,
html[data-theme="dark"] .tribe-events-meta-list,
html[data-theme="dark"] .tribe-events-meta-label,
html[data-theme="dark"] .tribe-events-meta-value,
html[data-theme="dark"] .tribe-organizer,
html[data-theme="dark"] .tribe-venue,
html[data-theme="dark"] .tribe-venue-location,
html[data-theme="dark"] .tribe-events-abbr {
    color: #0F172A !important;
}

html[data-theme="dark"] .tribe-events-single-event-description a,
html[data-theme="dark"] .tribe-events-meta-group a,
html[data-theme="dark"] .tribe-events-event-categories a,
html[data-theme="dark"] .tribe-events-gmap {
    color: #00209F !important;
}
html[data-theme="dark"] .tribe-events-single-event-description a:hover,
html[data-theme="dark"] .tribe-events-meta-group a:hover,
html[data-theme="dark"] .tribe-events-event-categories a:hover,
html[data-theme="dark"] .tribe-events-gmap:hover {
    color: #D21034 !important;
}

html[data-theme="dark"] .tribe-events-single-section-title {
    color: #00209F !important;
    border-color: #E2E8F0 !important;
}

html[data-theme="dark"] .tribe-events-address,
html[data-theme="dark"] .tribe-address,
html[data-theme="dark"] .tribe-street-address,
html[data-theme="dark"] .tribe-locality,
html[data-theme="dark"] .tribe-region,
html[data-theme="dark"] .tribe-postal-code,
html[data-theme="dark"] .tribe-country-name {
    color: #475569 !important;
}

/* ------------------------------------------------------------
   10. NAVIGATION (prev/next, back, pagination)
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-back a,
html[data-theme="dark"] .tribe-events-nav-pagination a,
html[data-theme="dark"] .tribe-events-sub-nav li a,
html[data-theme="dark"] .tribe-events-sub-nav li a span {
    color: #00209F !important;
}
html[data-theme="dark"] .tribe-events-back a:hover,
html[data-theme="dark"] .tribe-events-nav-pagination a:hover,
html[data-theme="dark"] .tribe-events-sub-nav li a:hover {
    color: #D21034 !important;
}

/* ------------------------------------------------------------
   11. ADD TO CALENDAR (dropdown)
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown,
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__container,
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__content {
    background-color: #FFFFFF !important;
    border-color: #E2E8F0 !important;
}

html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__button,
html[data-theme="dark"] .tribe-common-c-btn-border,
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__button-text {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
}
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__button:hover,
html[data-theme="dark"] .tribe-common-c-btn-border:hover {
    background-color: #FFFFFF !important;
    border-color: #00209F !important;
}

html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__list-item,
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__list-item-link {
    background-color: transparent !important;
    color: #00209F !important;
    border-color: #E2E8F0 !important;
}
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__list-item:hover,
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__list-item-link:hover {
    background-color: #FFFFFF !important;
    color: #D21034 !important;
}

html[data-theme="dark"] .tribe-common-c-svgicon--cal-export,
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__export-icon,
html[data-theme="dark"] .tribe-events-c-subscribe-dropdown__button-icon {
    fill: #0F172A !important;
    color: #0F172A !important;
}

/* ------------------------------------------------------------
   12. TABLEAU DES DATES (vues mois, jour)
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-calendar-month__header,
html[data-theme="dark"] .tribe-events-calendar-month__header-column,
html[data-theme="dark"] .tribe-events-calendar-month__day,
html[data-theme="dark"] .tribe-events-calendar-month__day-cell,
html[data-theme="dark"] .tribe-events-calendar-month__day-date,
html[data-theme="dark"] .tribe-events-calendar-day__time-separator {
    background-color: #FFFFFF !important;
    color: #0F172A !important;
    border-color: #E2E8F0 !important;
}

html[data-theme="dark"] .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date {
    color: #00209F !important;
    font-weight: 700 !important;
}
html[data-theme="dark"] .tribe-events-calendar-month__day--past .tribe-events-calendar-month__day-date {
    color: #94A3B8 !important;
}

/* ------------------------------------------------------------
   13. LOADER
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-common-c-loader__dot circle {
    fill: #00209F !important;
}

/* ------------------------------------------------------------
   14. FILTRE ANTI-HÉRITAGE
   ------------------------------------------------------------
   Empêche le thème parent (dark mode) d'appliquer ses couleurs
   sombres aux textes génériques à l'intérieur des pages Tribe.
   ------------------------------------------------------------ */
html[data-theme="dark"] .tribe-events-view h1,
html[data-theme="dark"] .tribe-events-view h2,
html[data-theme="dark"] .tribe-events-view h3,
html[data-theme="dark"] .tribe-events-view h4,
html[data-theme="dark"] .tribe-events-view h5,
html[data-theme="dark"] .tribe-events-view h6,
html[data-theme="dark"] .tribe-events-view p,
html[data-theme="dark"] .tribe-events-view li,
html[data-theme="dark"] .tribe-events-view span:not([class*="svg"]),
html[data-theme="dark"] .tribe-events-view div:not([class*="background"]):not([class*="button"]),
html[data-theme="dark"] #tribe-events-content h1,
html[data-theme="dark"] #tribe-events-content h2,
html[data-theme="dark"] #tribe-events-content h3,
html[data-theme="dark"] #tribe-events-content p,
html[data-theme="dark"] #tribe-events-content li {
    color: #0F172A;
}

html[data-theme="dark"] .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link {
    background-color: FFFFFF !important;
    color: #00209F !important;
}