/* ============================================================
   PRIVATE EVENTS V99.46 — LIGHT HEADER CANVAS UNIFICATION

   En thème clair, les zones structurelles de haut de page ne doivent
   plus repeindre une bande d'une teinte différente. Elles révèlent le
   canevas global V99.45 ; seules les vraies cartes / champs / boutons
   conservent leur surface propre.
   ============================================================ */

html[data-theme="light"] {
    --pe46-header-separator: rgba(108, 67, 84, .18);
}

/* ------------------------------------------------------------
   En-têtes structurels : même canevas que le fond général.
   ------------------------------------------------------------ */
html[data-theme="light"] body:not(.admin-body):not(.landing-body) :is(
    .v9898-search-header,
    .v9855-messages-hero,
    .events-catalogue-hero,
    .members-catalogue-hero,
    .participants-catalogue-hero,
    .v74-settings-header,
    .v9894-settings-header,
    .v9894-settings-detail-header,
    .v75-gallery-header,
    .v72-library-page-header,
    .v88-backup-header,
    .profile-header
) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Les anciens contours de cartes d'en-tête créaient encore une bande. */
html[data-theme="light"] body:not(.admin-body):not(.landing-body) :is(
    .v9898-search-header,
    .v9855-messages-hero,
    .events-catalogue-hero,
    .members-catalogue-hero,
    .participants-catalogue-hero,
    .v74-settings-header,
    .v9894-settings-header,
    .v9894-settings-detail-header,
    .v75-gallery-header,
    .v72-library-page-header,
    .v88-backup-header,
    .profile-header
) {
    border-color: transparent !important;
}

/* ------------------------------------------------------------
   Créer / modifier un événement : le grand panneau racine n'est pas
   une carte fonctionnelle. Il devient donc le canevas de page lui-même.
   Les champs, localisation, fichiers et actions restent différenciés.
   ------------------------------------------------------------ */
html[data-theme="light"] body.create-event-body .create-event-card {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

/* ------------------------------------------------------------
   Conversations : le bandeau identité reprend aussi le canevas global.
   On garde seulement un séparateur discret avec l'historique.
   ------------------------------------------------------------ */
html[data-theme="light"] body.v71-chat-body:not(.admin-body) .v71-chat-header {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-color: transparent !important;
    border-bottom-color: var(--pe46-header-separator) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* ------------------------------------------------------------
   Cockpit / barre membre visible : même fond que le canevas clair.
   Les boutons de navigation gardent leurs propres surfaces.
   ------------------------------------------------------------ */
html[data-theme="light"] body:not(.admin-body):not(.landing-body) > .member-topbar,
html[data-theme="light"] body:not(.admin-body):not(.landing-body) > .v73-member-topbar {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border-bottom-color: var(--pe46-header-separator) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Les blocs internes d'en-tête ne doivent pas réintroduire un aplat. */
html[data-theme="light"] body:not(.admin-body):not(.landing-body) :is(
    .members-catalogue-hero > div,
    .events-catalogue-heading-block,
    .members-catalogue-title-row,
    .events-catalogue-title-row,
    .v9855-messages-title-row,
    .profile-header-copy
) {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

/* Mobile : pas de liseré clair au bord supérieur du contenu. */
@media (max-width: 700px) {
    html[data-theme="light"] body:not(.admin-body):not(.landing-body) :is(
        .v9898-search-header,
        .v9855-messages-hero,
        .events-catalogue-hero,
        .members-catalogue-hero,
        .participants-catalogue-hero,
        .v74-settings-header,
        .v9894-settings-header,
        .v9894-settings-detail-header,
        .v75-gallery-header,
        .v72-library-page-header,
        .v88-backup-header,
        .profile-header,
        .create-event-card
    ) {
        box-shadow: none !important;
    }
}
