/* ==========================================================================
   rcf-events — Frontend Styles
   Base partagée : rcf-common.css (variables, boutons, inputs, notices, etc.)
   ========================================================================== */

/* Variables et classes de couleurs par type : générées dynamiquement via rcf_events_dynamic_css() */

/* --------------------------------------------------------------------------
   Toolbar
   -------------------------------------------------------------------------- */

.rcf-events__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 1em;
}

.rcf-events__toolbar-left {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

/* ⭐ Calendrier + Liste + l'espace qui les sépare = la largeur d'« Ajouter un événement »
   (2 × 92 + 6 = 190 px). En PIXELS, et c'est voulu : l'espace (`gap`) et les boutons
   n'ont pas la même taille de police, un calcul en `em` ne tomberait pas juste. */
.rcf-events__views {
    display: flex;
    gap: 6px;
}

.rcf-events__views .rcf-btn,
#rcf-evt-add-btn {
    text-align: center;
    justify-content: center;
    white-space: nowrap;
}

.rcf-events__views .rcf-btn {
    width: 92px;
}

/* Sur la ligne des filtres Région / Registre, calé à GAUCHE : les filtres restent à droite. */
#rcf-evt-add-btn {
    width: 190px;
    margin-right: auto;
}

.rcf-events__filters {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-left: auto;
}

.rcf-events__filters select,
.rcf-events__filters-secondary select {
    min-width: 160px;
}

/* Régions et registres : leur propre ligne — à côté des autres filtres, la rangée débordait —
   calée à DROITE, sous « À venir / Passés » et la nature. */
.rcf-events__filters-secondary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5em;
    flex-basis: 100%;
}

/* « À venir / Passés » et les années ne portent que des mots courts ou des nombres : à leur largeur propre. */
.rcf-events__filters #rcf-evt-filter-when,
.rcf-events__filters #rcf-evt-filter-year {
    min-width: 0;
}


/* --------------------------------------------------------------------------
   Tags (types d'événement)
   -------------------------------------------------------------------------- */

[class*="rcf-tag--evt"] {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--rcf-white);
}

.rcf-tag--large {
    padding: 4px 12px;
    font-size: 12px;
}

/* --------------------------------------------------------------------------
   Calendar
   -------------------------------------------------------------------------- */

.rcf-cal__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rcf-cal__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--rcf-text);
    min-width: 200px;
    text-align: center;
}

.rcf-cal__nav,
.rcf-cal__today {
    background: var(--rcf-white);
    border: 1px solid var(--rcf-border);
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    color: var(--rcf-text);
    transition: all 0.15s;
}

.rcf-cal__nav:hover,
.rcf-cal__today:hover {
    border-color: var(--rcf-blue);
    color: var(--rcf-blue);
}

.rcf-cal__today {
    margin-left: auto;
    font-size: 13px;
}

.rcf-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 1px;
    background: var(--rcf-border);
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    overflow: hidden;
}

.rcf-cal__dow {
    background: var(--rcf-blue);
    color: var(--rcf-white);
    text-align: center;
    padding: 8px 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.rcf-cal__day {
    background: var(--rcf-white);
    min-height: 90px;
    padding: 4px 6px;
    overflow: visible;
    min-width: 0;
}

.rcf-cal__day--empty {
    background: var(--rcf-bg);
    min-height: 90px;
}

.rcf-cal__day--today {
    background: var(--rcf-blue-pale);
}

.rcf-cal__day--past .rcf-cal__day-num,
.rcf-cal__day--past .rcf-cal__event-link,
.rcf-cal__day--past .rcf-cal__more {
    opacity: 0.6;
}

.rcf-cal__day-num {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--rcf-text);
    margin-bottom: 4px;
}

.rcf-cal__day--today .rcf-cal__day-num {
    color: var(--rcf-blue);
}

.rcf-cal__events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rcf-cal__event-link {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    text-decoration: none;
    color: var(--rcf-text);
    font-size: 11px;
    min-width: 0;
    line-height: 1.3;
    padding: 1px 2px;
    border-radius: 2px;
    transition: background 0.1s;
}

.rcf-cal__event-link:hover {
    background: var(--rcf-bg);
}

.rcf-cal__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--rcf-text-light);
    margin-top: 3px;
}

.rcf-cal__event-title {
    overflow: hidden;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.3;
}

.rcf-cal__lock {
    font-size: 10px;
    margin-right: 2px;
}

.rcf-cal__more {
    font-size: 10px;
    color: var(--rcf-text-light);
    font-style: italic;
}

/* --- Barres multi-jours --- */

.rcf-cal__bar {
    display: block;
    height: 18px;
    line-height: 18px;
    font-size: 10px;
    padding: 0 4px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 1px 0;
    position: relative;
}

.rcf-cal__bar--hover,
.rcf-cal__bar:hover {
    background-image: linear-gradient(rgba(255,255,255,0.18), rgba(255,255,255,0.18));
    color: #fff;
}

.rcf-cal__bar--start {
    border-radius: 3px 0 0 3px;
    margin-right: -7px;
    overflow: visible;
    z-index: 2;
}

.rcf-cal__bar--mid {
    border-radius: 0;
    margin-left: -7px;
    margin-right: -7px;
}

.rcf-cal__bar--end {
    border-radius: 0 3px 3px 0;
    margin-left: -7px;
}

.rcf-cal__bar--solo {
    border-radius: 3px;
}

.rcf-cal__bar--start .rcf-cal__bar-label {
    display: inline-block;
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(var(--bar-span, 1) * (100% + 13px) - 13px);
    pointer-events: none;
}

/* Texte masqué sur les segments intermédiaires et fin */
.rcf-cal__bar--mid .rcf-cal__bar-label,
.rcf-cal__bar--end .rcf-cal__bar-label {
    visibility: hidden;
}

/* Placeholder invisible pour maintenir l'alignement vertical */
.rcf-cal__bar-placeholder {
    height: 18px;
    margin: 1px 0;
    visibility: hidden;
}

/* --------------------------------------------------------------------------
   Event Card (vue liste)
   -------------------------------------------------------------------------- */

.rcf-event-card {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: var(--rcf-text);
    background: var(--rcf-bg);
    border-radius: var(--rcf-radius);
    overflow: hidden;
    margin-bottom: 8px;
    transition: box-shadow 0.15s, transform 0.15s;
}

.rcf-event-card:hover {
    box-shadow: var(--rcf-shadow);
    transform: translateY(-1px);
}

.rcf-event-card--past {
    opacity: 0.6;
}

/* Bloc date (gauche) */

.rcf-event-card__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 10px 8px;
    background: var(--rcf-blue);
    color: var(--rcf-white);
    flex-shrink: 0;
}

.rcf-event-card__day {
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
}

.rcf-event-card__month {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1px;
}

.rcf-event-card__year {
    font-size: 11px;
    opacity: 0.8;
}

.rcf-event-card__time-badge {
    display: block;
    margin-top: 6px;
    padding: 2px 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    line-height: 1.3;
}

/* Zone centrale (image + infos) */

.rcf-event-card__center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
}

.rcf-event-card__image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.rcf-event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rcf-event-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
}

.rcf-event-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--rcf-text);
    line-height: 1.3;
}

.rcf-event-card__lock {
    font-size: 12px;
}

.rcf-event-card__meta {
    font-size: 13px;
    font-weight: 600;
    color: var(--rcf-text);
    line-height: 1.3;
}

.rcf-event-card__type {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lieu (droite) */

.rcf-event-card__location {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 12.5px;
    color: var(--rcf-text-light);
    text-align: right;
    max-width: 200px;
    line-height: 1.4;
}

.rcf-event-card__pin {
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   Widget — Prochains événements
   -------------------------------------------------------------------------- */

.rcf-ew {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rcf-ew__card {
    display: flex;
    align-items: stretch;
    text-decoration: none;
    color: var(--rcf-text);
    background: var(--rcf-bg);
    border-radius: var(--rcf-radius);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
}

.rcf-ew__card:hover {
    box-shadow: var(--rcf-shadow);
    transform: translateY(-1px);
}

.rcf-ew__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 8px 6px;
    background: var(--rcf-blue);
    color: var(--rcf-white);
    flex-shrink: 0;
}


.rcf-ew__day {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.rcf-ew__month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.rcf-ew__info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 8px 10px;
    min-width: 0;
    flex: 1;
}

.rcf-ew__title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--rcf-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rcf-ew__lock {
    font-size: 10px;
}

.rcf-ew__location {
    font-size: 11.5px;
    color: var(--rcf-text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rcf-ew__all {
    display: block;
    text-align: center;
    margin-top: 4px;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rcf-blue);
    background: var(--rcf-bg);
    border-radius: var(--rcf-radius);
    text-decoration: none;
    transition: background 0.15s;
}

.rcf-ew__all:hover {
    background: var(--rcf-blue-pale);
    color: var(--rcf-blue);
}

/* --------------------------------------------------------------------------
   Single Event
   -------------------------------------------------------------------------- */

.rcf-event-single {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 16px;
}

.rcf-event-single__image {
    margin-bottom: 20px;
    border-radius: var(--rcf-radius);
    overflow: hidden;
}

.rcf-event-single__image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.rcf-event-single__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rcf-event-single__confidential {
    font-size: 13px;
    color: var(--rcf-danger);
    font-weight: 600;
}

.rcf-event-single__description {
    margin: 24px 0;
    padding: 20px 24px;
    background: var(--rcf-bg);
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
}
.rcf-event-single__description-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--rcf-blue);
}
.rcf-event-single__description-body {
    line-height: 1.7;
    color: var(--rcf-text);
}
.rcf-event-single__description-body p:last-child {
    margin-bottom: 0;
}

.rcf-event-single__pdf {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 14px 20px;
    background: var(--rcf-bg);
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
}

.rcf-event-single__pdf-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.rcf-event-single__pdf a {
    font-size: 14px;
    font-weight: 600;
    color: var(--rcf-blue);
    text-decoration: none;
}

.rcf-event-single__pdf a:hover {
    text-decoration: underline;
}

.rcf-event-single__pdf-hint {
    font-size: 12px;
    color: var(--rcf-text-light);
    margin-left: auto;
}

.rcf-event-single__map {
    width: 100%;
    height: 300px;
    margin: 20px 0;
    border-radius: var(--rcf-radius);
    border: 1px solid var(--rcf-border);
}

/* Shared from rcf-cars */
.rcf-single__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--rcf-blue);
    margin: 0 0 6px;
}

.rcf-single__content {
    margin-top: 20px;
}

.rcf-single__details {
    margin-bottom: 20px;
}

.rcf-event-single .rcf-single__back {
    margin-top: 24px;
}

/* --------------------------------------------------------------------------
   ACTIONS DE LA FICHE — trois rangées espacées
   --------------------------------------------------------------------------
   ⚠️ Aucune largeur fixe : c'est le conteneur qui impose, et les boutons
   s'enroulent seuls sur un téléphone.
   ⛔ Une première version encadrait les gestes destructifs d'un filet coloré
   surmonté d'une phrase explicative. Sur un événement NON récurrent, ça faisait
   deux blocs pour deux boutons et triplait la hauteur — l'inverse de l'aération
   demandée. La distinction annuler / supprimer est portée par le bouton et par
   la confirmation, pas par de la prose.
   -------------------------------------------------------------------------- */

.rcf-event-single .rcf-single__back {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
}

.rcf-evt-actions__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.rcf-evt-follow-hint {
    flex-basis: 100%;
    margin: 0;
    font-size: 13px;
    color: var(--rcf-neutral-text);
}


/* --------------------------------------------------------------------------
   Form (inline dans le shortcode)
   -------------------------------------------------------------------------- */

.rcf-evt-form {
    margin-bottom: 20px;
}

/* Sections du formulaire : cartes `.rcf-card` (rcf-common), comme la fiche de profil.
   Le cadre bleu du conteneur est retiré — un cadre autour des cartes en ferait deux. */
.rcf-evt-form .rcf-card > .rcf-evt-form__row:last-child {
    margin-bottom: 0;
}

.rcf-evt-form__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--rcf-blue);
    margin: 0 0 16px;
}

.rcf-evt-form__row {
    margin-bottom: 14px;
}

.rcf-evt-form__row > label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--rcf-text);
    margin-bottom: 4px;
}

.rcf-evt-form__row--dates,
.rcf-evt-form__row--two-col {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

/* Deux champs de hauteurs différentes (description sous l'un, bouton contre sélecteur de fichier) : on aligne les libellés, pas le bas. */
.rcf-evt-form__row--top {
    align-items: flex-start;
}

.rcf-evt-form__field--spacer {
    visibility: hidden;
}

.rcf-evt-form textarea.rcf-input {
    height: auto;
    padding: 8px 0.8em;
}

/* Trumbowyg (éditeur riche description) */
.rcf-evt-form .trumbowyg-box {
    border: 1px solid var(--rcf-border);
    border-radius: var(--rcf-radius);
    min-height: 160px;
}
.rcf-evt-form .trumbowyg-box .trumbowyg-button-pane {
    background: var(--rcf-bg);
    border-bottom: 1px solid var(--rcf-border);
}
.rcf-evt-form .trumbowyg-editor {
    font-family: inherit;
    font-size: 0.95em;
    padding: 10px 14px;
}

.rcf-evt-form__row--recurrence-params {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rcf-evt-form__field {
    flex: 1;
    min-width: 0;
}

.rcf-evt-form__field > label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--rcf-text);
    margin-bottom: 4px;
}

.rcf-evt-form__field--checkbox {
    display: flex;
    align-items: center;
    padding-bottom: 6px;
    white-space: nowrap;
}

.rcf-input--wide {
    width: 100%;
    font-size: 15px;
    padding: 8px 12px;
}

.rcf-evt-form__thumb-preview {
    margin-bottom: 8px;
}

.rcf-evt-form__thumb-preview img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--rcf-border);
    display: block;
    margin-bottom: 4px;
}

.rcf-evt-form__thumb-preview .rcf-btn {
    margin-top: 4px;
}

.rcf-evt-form__pdf-preview {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: var(--rcf-bg);
    border: 1px solid var(--rcf-border);
    border-radius: 4px;
    min-width: 0;
    overflow: hidden;
}

.rcf-evt-form__pdf-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.rcf-evt-form__pdf-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--rcf-blue);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 0;
    min-width: 0;
}

.rcf-evt-form__pdf-preview .rcf-btn {
    flex-shrink: 0;
}

/* Documents par rubrique (Q16) */
.rcf-evt-form__doc-add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.rcf-evt-form__doc-add select {
    width: auto;
}

.rcf-evt-form__doc-rubric,
.rcf-evt-form__doc-reserved {
    flex-shrink: 0;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
    background: var(--rcf-border);
}

.rcf-evt-form__doc-reserved {
    color: var(--rcf-blue);
}

.rcf-evt-form__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.rcf-save-status {
    font-size: 13px;
    color: var(--rcf-text-light);
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.rcf-no-results {
    text-align: center;
    color: var(--rcf-text-light);
    padding: 24px;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .rcf-events__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .rcf-events__toolbar-left {
        flex-wrap: wrap;
        gap: 0.3em;
    }

    .rcf-events__filters {
        flex-wrap: wrap;
        margin-left: 0;
    }

    .rcf-events__filters select,
    .rcf-events__filters-secondary select {
        width: 100%;
        min-width: 0;
    }

    .rcf-cal__day {
        min-height: 60px;
        padding: 2px 3px;
    }

    .rcf-cal__day-num {
        font-size: 12px;
    }

    .rcf-cal__event-link {
        font-size: 9px;
    }

    .rcf-cal__dot {
        width: 6px;
        height: 6px;
    }

    .rcf-cal__event-title {
        display: none;
    }

    .rcf-cal__bar {
        height: 14px;
        line-height: 14px;
        font-size: 0;
        padding: 0 2px;
    }

    .rcf-cal__bar-placeholder {
        height: 14px;
    }

    .rcf-cal__title {
        font-size: 16px;
        min-width: 150px;
    }

    .rcf-event-card {
        flex-wrap: wrap;
    }

    .rcf-event-card__date {
        min-width: 58px;
        padding: 8px 6px;
    }

    .rcf-event-card__day {
        font-size: 22px;
    }

    .rcf-event-card__time-badge {
        font-size: 12px;
        padding: 1px 6px;
    }

    .rcf-event-card__center {
        padding: 8px 10px;
    }

    .rcf-event-card__image {
        width: 52px;
        height: 52px;
    }

    .rcf-event-card__title {
        font-size: 14px;
    }

    .rcf-event-card__location {
        width: 100%;
        max-width: none;
        padding: 4px 10px 8px;
        text-align: left;
        font-size: 12px;
    }

    .rcf-evt-form__row--dates,
    .rcf-evt-form__row--two-col,
    .rcf-evt-form__row--recurrence-params {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .rcf-evt-form__field--spacer {
        display: none;
    }

    .rcf-event-single {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    .rcf-cal__dow {
        font-size: 10px;
        padding: 4px 2px;
    }

    .rcf-cal__day {
        min-height: 44px;
    }

    .rcf-cal__events .rcf-cal__event-link {
        display: none;
    }

    .rcf-cal__bar {
        height: 4px;
        font-size: 0;
        padding: 0;
        border-radius: 2px !important;
    }

    .rcf-cal__bar-placeholder {
        height: 4px;
    }

    .rcf-cal__more {
        display: none;
    }

    .rcf-cal__day--has-events .rcf-cal__day-num::after {
        content: '';
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--rcf-blue);
        margin-left: 3px;
        vertical-align: middle;
    }
}

/* Mobile : vue calendrier illisible sur 7 colonnes, on force la vue liste */
@media (max-width: 600px) {
    .rcf-events__calendar {
        display: none !important;
    }
    .rcf-events__list {
        display: block !important;
    }
    .rcf-events__views {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   ÉTIQUETTES D'ÉTAT (Q11) — deux niveaux d'importance, deux teintes
   --------------------------------------------------------------------------
   ⛔⛔ CHAQUE NIVEAU SERVI PAR LE PHP DOIT AVOIR SA RÈGLE ICI. La classe est
   construite par concaténation (`rcf-evt-label--{level}`) : un niveau sans règle
   sort en texte noir sur fond blanc, indistinguable de la prose — défaut payé le
   2026-09-06 et fermé depuis par `tools/verifier-types-messages.sh`.

   ⭐ Les teintes RÉEMPLOIENT les tokens de message du socle plutôt que d'en
   inventer (arbitrage du 2026-09-21) : `high` = le ton « erreur » (rouge),
   `low` = le ton « neutre » relevé de la couleur du club. Deux palettes pour
   dire la même importance divergeraient.
   -------------------------------------------------------------------------- */

.rcf-event-single__labels,
.rcf-event-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.rcf-evt-label {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--rcf-radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.6;
}

.rcf-evt-label--high {
    background: var(--rcf-error-bg);
    color: var(--rcf-error-text);
}

.rcf-evt-label--low {
    background: var(--rcf-neutral-bg);
    color: var(--rcf-blue);
}

/* Un événement annulé reste LISIBLE et BARRÉ — il ne disparaît pas (Q10). */
.rcf-single__title--cancelled,
.rcf-event-card__title--cancelled {
    text-decoration: line-through;
    opacity: 0.7;
}

.rcf-event-single__teaser,
.rcf-event-card__teaser {
    margin: 4px 0 8px;
    font-style: italic;
    color: var(--rcf-text);
}

/* L'en-tête de fiche est un flex en ligne : l'accroche prend sa propre ligne, les étiquettes passent dessous. */
.rcf-event-single__teaser {
    flex-basis: 100%;
}

.rcf-event-single__pdf-rubric {
    font-weight: 600;
    margin-right: 6px;
}

.rcf-evt-form__check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 16px;
}

/* D19 — boutons Publier / Refuser sous le bandeau d'une proposition, et file « À valider ». */
.rcf-evt-moderation {
    margin-top: 0.6em;
}

.rcf-evt-pending-queue ul {
    margin: 0.4em 0 0 1.2em;
}
