/* ============================================================
   BB Site — retouches globales du site (ex-« CSS additionnel » du Customizer)

   Sortie de la base le 29/11/2026 : le CSS additionnel de Kadence vivait dans
   `mod34_posts` (type `custom_css`), hors du dépôt et hors de `livrer.sh`. Il
   est désormais ici, versionné, et le champ du Customizer est vide.

   ⚠️ **Servie au même endroit que l'ancien CSS additionnel** : `wp_head`,
   priorité 101 (`bb_site_feuille_globale()`, bb-site.php), donc après toutes
   les feuilles du `<head>`. Plusieurs règles n'ont pas d'`!important` et ne
   gagnent que par cet ordre ; l'enfiler comme une feuille ordinaire changerait
   la cascade.

   Rangée par thème ; dans un thème, l'ordre d'origine des règles est gardé
   (vérifié : aucune règle ne passe devant une autre qui vise le même élément et
   la même propriété). Retirées le 29/11 car sans cible — extension désinstallée,
   aucune trace dans le code ni dans les contenus : Swiper, l'ancienne galerie
   Instagram (`instagram-gallery-*`), `#mtbb-*`, Contact Form 7, elFinder
   (`#file-manager`), `.fas.fa-xmark`.
   ============================================================ */


/* ------------------------------------------------------------ menus, en-tête */

/* Menu mobile : le libellé des entrées à icône reste lu et affiché. */
div.drawer-menu-container span.visuallyhidden {
    display: inline !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    margin-left: 10px;
    overflow: visible;
}

.mobile-navigation ul ul {
    padding-left: 3em;
}

.kadence-breadcrumbs {
    display: none;
}


/* ------------------------------------------------------------ pied de page */

.site-footer-row-container-inner {
    margin-left: 30px;
}


/* ------------------------------------------------------------ agenda (The Events Calendar) */

/*
 * Couleur par catégorie : TEC pose `cat_<slug>` sur l'événement, et
 * bb-evenements (`tec-fixes.php`) la recopie sur le `<h1>` du titre.
 * « Répétitions » et « Réunion-repas » sont vides aujourd'hui, mais existent.
 */
.cat_stages a,
.tribe-events-single .cat_stages .tribe-events-event-categories a,
h1.cat_stages {
    color: #3366ff !important;
}
.cat_stages a:hover,
.cat_stages a:focus {
    color: #3366ff !important;
    border-bottom-color: #3366ff !important;
}

.cat_reunion-repas a,
.tribe-events-single .cat_reunion-repas .tribe-events-event-categories a,
h1.cat_reunion-repas {
    color: #009933 !important;
}
.cat_reunion-repas a:hover,
.cat_reunion-repas a:focus {
    color: #009933 !important;
    border-bottom-color: #009933 !important;
}

.cat_sorties a,
.tribe-events-single .cat_sorties .tribe-events-event-categories a,
h1.cat_sorties {
    color: var(--global-palette1, #ff0099) !important;
}
.cat_sorties a:hover,
.cat_sorties a:focus {
    color: var(--global-palette1, #ff0099) !important;
    border-bottom-color: var(--global-palette1, #ff0099) !important;
}

.cat_repetitions a,
.tribe-events-single .cat_repetitions .tribe-events-event-categories a,
h1.cat_repetitions {
    color: #ff6600 !important;
}
.cat_repetitions a:hover,
.cat_repetitions a:focus {
    color: #ff6600 !important;
    border-bottom-color: #ff6600 !important;
}

#primary .tribe-common {
    padding: 2rem;
}

/* Image d'un événement : centrée, 600 px au plus. */
div.tribe-events-event-image img {
    display: initial;
    max-width: 600px;
    width: 100%;
    height: auto;
}

div.tribe-events-event-image {
    text-align: center;
}

.tribe-common-h7 a {
    color: #fff !important;
}

.tribe-event-date-start,
.tribe-event-time {
    color: #fff;
}

/* Bouton « S'abonner au calendrier » et sa liste. */
ul.tribe-events-c-subscribe-dropdown__list {
    background-color: #eee !important;
}
.tribe-events-c-subscribe-dropdown__list-item a {
    color: black !important;
}
.tribe-events-c-subscribe-dropdown__button-text {
    outline: none !important;
}
.tribe-common-h8 a {
    font-size: 14px;
    font-weight: 600;
}
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__list-item a:active,
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__list-item a:focus,
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__list-item a:focus-within,
.tribe-events .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__list-item a:hover {
    color: var(--global-palette1, #ff0099) !important;
    background-color: #222222 !important;
}

/* Événement : liens « précédent / suivant ». */
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-next a,
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-previous a {
    color: white !important;
}
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-next a:after,
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-previous a:before {
    display: none;
}
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-next a span,
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-previous a span {
    display: inline;
}
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-next a span:hover,
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-previous a span:hover,
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-next a:hover,
.tribe-events-single .tribe-events-sub-nav .tribe-events-nav-previous a:hover {
    color: var(--global-palette1, #ff0099) !important;
}

/* Agenda : flèches de navigation, bouton d'abonnement à droite. */
li.tribe-events-c-nav__list-item--prev a path,
li.tribe-events-c-nav__list-item--next a path {
    fill: white !important;
}
.tribe-events-c-subscribe-dropdown {
    margin: 0 !important;
    float: right;
    margin-left: auto !important;
}
.tribe-events-c-nav {
    padding-bottom: var(--tec-spacer-7) !important;
}
.tribe-events-back a:hover {
    color: var(--global-palette1, #ff0099);
}

.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-month {
    margin: 0 0 2rem 0;
}
.tribe-events-single-event-title,
.tribe-events-schedule {
    text-align: center;
}
.tribe-events-single-event-title {
    margin: .5em 0 .5em !important;
}

.tribe-events-schedule {
    display: block;
}

/* Page d'un événement : marges du gabarit de Kadence. */
body.single-tribe_events div.single-content {
    margin-top: 0;
}
body.single-tribe_events header.entry-header {
    margin: 0;
}
body.single-tribe_events div.entry-content-wrap {
    padding-top: 20px;
}

@media (max-width: 767px) {
    body.single-tribe_events .entry-content-wrap {
        padding: 1.8rem;
    }
}

div.tribe-events-c-top-bar__datepicker button {
    font-size: 18px !important;
}

/* Vue mois : un seul trait en haut de la grille. */
@media (min-width: 783px) {
    table.tribe-events-calendar-month tbody.tribe-events-calendar-month__body tr.tribe-events-calendar-month__week:first-child {
        border-top: 1px solid #fff;
    }
}
table.tribe-events-calendar-month tbody.tribe-events-calendar-month__body {
    border-top: 0px !important;
}


/* ------------------------------------------------------------ forum (bbPress) */

#bbpress-forums p.bbp-topic-meta span {
    white-space: wrap;
}
#bbpress-forums #favorite-toggle {
    display: none;
}

.bbp-head-area {
    margin-bottom: 20px;
    padding-bottom: 5px;
    border-bottom: 1px solid #444;
}
.bbpress-admin-settings-container .kadence-svg-iconset {
    display: none;
}
span.bbp-admin-links {
    display: block;
    text-align: center;
    float: none;
}
.bbp-topic-started-by a.bbp-author-link {
    margin-left: 5px;
}
.bbpress-topic-meta.entry-meta {
    display: none;
}

/* Listes déroulantes des formulaires (statut, épingle, forum, sondage, réponse). */
#bbp_topic_status_select, #bbp_topic_status_select option,
#bbp_stick_topic_select, #bbp_stick_topic_select option,
#bbp_forum_id, #bbp_forum_id option,
#gdpol_poll_show, #gdpol_poll_show option,
#gdpol_poll_close, #gdpol_poll_close option,
#gdpol_poll_choice, #gdpol_poll_choice option,
#bbp_reply_status_select, #bbp_reply_status_select option,
#bbp_reply_to, #bbp_reply_to option {
    font-size: 12px;
    color: white;
}

fieldset.bbp-form {
    min-inline-size: auto;
}

/* Sujet en tête de page : seulement si bbp Style Pack l'active (éteint au 29/11). */
div#bbpress-forums ul.bbp-lead-topic li.bbp-body div.bbp-topic-header {
    color: black;
}

/* Messages non approuvés, spam, corbeille : texte lisible (classes `status-*` du cœur). */
#bbpress-forums .status-pending.even,
#bbpress-forums .status-pending.odd,
#bbpress-forums ul.status-pending,
#bbpress-forums ul.status-pending a {
    background-color: #2f3640 !important;
    color: #ffffff !important;
}
#bbpress-forums .status-spam.even,
#bbpress-forums .status-spam.odd,
#bbpress-forums .status-trash.even,
#bbpress-forums .status-trash.odd,
#bbpress-forums ul.status-spam,
#bbpress-forums ul.status-trash,
#bbpress-forums ul.status-spam a,
#bbpress-forums ul.status-trash a {
    background-color: #3a2b2b !important;
    color: #ffffff !important;
}
#bbpress-forums .status-pending .bbp-reply-content,
#bbpress-forums .status-pending .bbp-reply-content *,
#bbpress-forums .status-pending .bbp-topic-content,
#bbpress-forums .status-pending .bbp-topic-content *,
#bbpress-forums .status-spam .bbp-reply-content,
#bbpress-forums .status-spam .bbp-reply-content *,
#bbpress-forums .status-spam .bbp-topic-content,
#bbpress-forums .status-spam .bbp-topic-content *,
#bbpress-forums .status-trash .bbp-reply-content,
#bbpress-forums .status-trash .bbp-reply-content *,
#bbpress-forums .status-trash .bbp-topic-content,
#bbpress-forums .status-trash .bbp-topic-content * {
    color: #ffffff !important;
}

/* Compteur des réactions (Da Reactions, posé par son script). */
div.da-reactions-container .count {
    font-size: 10px !important;
    color: black;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Fenêtre « Insérer un lien » de l'éditeur du forum (TinyMCE, posée par script). */
.wp-link-input label,
#wp-link,
#wp-link h1,
.mce-container.mce-panel.mce-floatpanel.mce-window.mce-in {
    color: black !important;
}


/* ------------------------------------------------------------ popup de l'accueil (Popup Maker) */

/*
 * Classes posées sur `<html>` à l'ouverture de la popup. Voir aussi le correctif
 * de la barre de défilement, dans bb-site.php (« POPUP MAKER »).
 */
html.pum-open.pum-open-overlay.pum-open-scrollable body > :not([aria-modal=true]) {
    padding-right: 0px;
}


/* ------------------------------------------------------------ contenus */

/* Classe à poser dans l'éditeur : texte lisible sur une photo (pages « Qui sommes-nous ? »). */
.bbx-text-shadow-black-4px {
    text-shadow: 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000, 0 0 4px #000;
}

/* Messages de « Mes instruments » (bb-repertoire). */
.ipm-notice {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.ipm-success {
    background: #155724;
    border-left: 6px solid #28a745;
    color: #d4edda;
}

.ipm-error {
    background: #721c24;
    border-left: 6px solid #dc3545;
    color: #f8d7da;
}
