/* ============================================================
   PRIVATE EVENTS V99.40 — LIGHT CATALOGUE HEADER PARITY
   Le thème clair reprend exactement la géométrie du thème sombre
   pour les hauts de pages Membres / Événements.
   ============================================================ */

/* Géométrie commune : même structure verticale que Velvet. */
html[data-theme="light"] body.members-index-page .members-catalogue-hero,
html[data-theme="light"] body.events-index-page .events-catalogue-hero {
    display: block !important;
    margin: 0 !important;
    padding: 20px 0 14px !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.members-index-page .members-catalogue-hero > div,
html[data-theme="light"] body.events-index-page .events-catalogue-heading-block,
html[data-theme="light"] body.members-index-page .members-catalogue-title-row,
html[data-theme="light"] body.events-index-page .events-catalogue-title-row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light"] body.members-index-page .members-catalogue-title-row h1,
html[data-theme="light"] body.events-index-page .events-catalogue-title-row h1 {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.08 !important;
}

/* Le compteur ne doit jamais dessiner de bande horizontale en clair. */
html[data-theme="light"] body.members-index-page .catalogue-total-count,
html[data-theme="light"] body.events-index-page .catalogue-total-count,
html[data-theme="light"] body.members-index-page .members-catalogue-count,
html[data-theme="light"] body.events-index-page .events-catalogue-count {
    display: block !important;
    width: auto !important;
    margin: 3px 0 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    line-height: 1.25 !important;
}

html[data-theme="light"] body.members-index-page .catalogue-total-count::before,
html[data-theme="light"] body.events-index-page .catalogue-total-count::before {
    content: none !important;
    display: none !important;
}

/* Les outils restent exactement à la même distance du compteur. */
html[data-theme="light"] body.members-index-page .v9845-member-toolbar,
html[data-theme="light"] body.events-index-page .v9843-event-toolbar,
html[data-theme="light"] body.events-index-page .v9841-event-toolbar {
    margin-top: 6px !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* V99.55 — parité exacte avec Velvet : les outils de la page Membres
   restent centrés en thème clair, sans décalage vers la droite. */
html[data-theme="light"] body.members-index-page .v9845-member-toolbar .v9841-event-tool-actions {
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* V99.54 — parité exacte avec Velvet : les boutons de tri/vue
   de la page Événements restent centrés en thème clair. */
html[data-theme="light"] body.events-index-page .v9841-event-toolbar .v9841-event-tool-actions {
    margin-left: 0 !important;
    margin-right: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

@media (min-width: 701px) {
    html[data-theme="light"] body.members-index-page .members-catalogue-hero,
    html[data-theme="light"] body.events-index-page .events-catalogue-hero {
        padding: 28px 0 18px !important;
    }

    html[data-theme="light"] body.members-index-page .v9845-member-toolbar,
    html[data-theme="light"] body.events-index-page .v9843-event-toolbar,
    html[data-theme="light"] body.events-index-page .v9841-event-toolbar {
        margin-top: 8px !important;
    }
}
