/* ==========================================================================
   PWC Theme — compatibilité Chapter Tools
   Le plugin est stylé pour un thème clair et un rouge bordeaux (Rushless).
   Ici : palette PWC (noir / orange) et contrastes lisibles sur fond sombre.
   ========================================================================== */

:root {
    --color-primary-red: #F25822;
    --color-primary-red-dark: #C9441A;
    --color-chapter-gold: #F25822;
    --site-primary-color: #F25822;
    --pwc-text-muted: #b8b8b8;
}

/* --- Boutons du plugin (bordeaux codé en dur) -------------------------- */
.button.button-primary,
a.button.button-primary,
button.button-primary,
.chapter-routes-filter-btn,
.chapter-file-input-btn,
.chapter-event-submission-form .chapter-file-input-btn,
.chapter-profile-form .form-row .chapter-file-input-btn,
.chapter-garage-form .chapter-file-input-btn,
.chapter-route-submission-form .chapter-file-input-btn,
.cd-btn-danger,
.chapter-my-garage .cd-btn-danger,
.chapter-garage-add-form .cd-btn-danger,
.chapter-garage-item .cd-btn-danger {
    background: var(--pwc-orange, #F25822) !important;
    background-color: var(--pwc-orange, #F25822) !important;
    border-color: var(--pwc-orange, #F25822) !important;
    color: #fff !important;
}

.button.button-primary:hover,
a.button.button-primary:hover,
button.button-primary:hover,
.chapter-routes-filter-btn:hover,
.chapter-file-input-btn:hover,
.cd-btn-danger:hover,
.chapter-my-garage .cd-btn-danger:hover,
.chapter-garage-add-form .cd-btn-danger:hover,
.chapter-garage-item .cd-btn-danger:hover {
    background: #C9441A !important;
    background-color: #C9441A !important;
    border-color: #C9441A !important;
    color: #fff !important;
}

/* Calendrier FullCalendar : bouton actif lisible */
.chapter-calendar-container .fc .fc-button-primary:not(:disabled).fc-button-active,
.chapter-calendar-container .fc .fc-button-primary:not(:disabled):active {
    background: #1a1a1a !important;
    border-color: var(--pwc-orange, #F25822) !important;
    color: #fff !important;
}

/* --- Textes sombres hérités du thème clair ----------------------------- */
.chapter-calendar-cards-heading,
.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-MyAccount-content legend,
.chapter-profile-form h2,
.chapter-profile-form h3 {
    color: #fff !important;
}

.woocommerce-MyAccount-content label,
.chapter-profile-form label,
.chapter-garage-form label,
.chapter-event-submission-form label,
.chapter-route-submission-form label,
.woocommerce form .form-row label {
    color: #e6e6e6 !important;
}

/* Les formulaires sur carte blanche gardent un texte sombre */
.chapter-event-submission-form label,
.chapter-route-submission-form label {
    color: #222 !important;
}

.chapter-calendar-no-events,
.woocommerce-MyAccount-content .description,
.woocommerce-MyAccount-content small,
.chapter-profile-form .description,
.chapter-profile-form small {
    color: var(--pwc-text-muted) !important;
}

.woocommerce form .required,
.chapter-profile-form .required,
span.required {
    color: #ff7a4d !important;
}

/* Bouton fichier sur fond clair : on garde l'orange avec texte blanc */
label.chapter-file-input-btn {
    color: #fff !important;
}

/* Portail concessionnaire */
.dealership-portal-nav a.active,
.portal-nav a.active {
    background: var(--pwc-orange, #F25822) !important;
    color: #fff !important;
}

/* Liens et accents */
.chapter-calendar-container a:not(.button):not(.fc-event),
.chapter-events-list a:not(.button) {
    color: var(--pwc-orange, #F25822);
}
