/* KenhoWeb GSP Notifications — guideeparsaparole.com.
   TOUT est inerte sans la classe « kwapp » sur <html> (mode
   application, même détection que les modules frères) : hors mode
   appli, les éléments du module n'existent pas visuellement.
   Palette du ministère : bleu nuit #0b1c33, doré #c9a227, crème #faf7f0. */

/* ── Hors mode application ─────────────────────────────────────── */
#kwgn-zone {
    display: none !important;
}

/* ── Zone et cloche ────────────────────────────────────────────── */
html.kwapp #kwgn-zone {
    display: block !important;
}
#kwgn-cloche {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(201, 162, 39, 0.65);
    border-radius: 10px;
    background: transparent;
    color: #c9a227;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
/* Repli si la barre de l'application (module Navigation Appli) est absente :
   pastille flottante en haut à droite. */
html.kwapp #kwgn-zone > #kwgn-cloche {
    position: fixed;
    top: 5px;
    right: 8px;
    z-index: 99995;
    background: #0b1c33;
    box-shadow: 0 2px 10px rgba(3, 9, 18, 0.35);
}
html.kwapp body.admin-bar #kwgn-zone > #kwgn-cloche {
    top: 37px;
}
@media (max-width: 782px) {
    html.kwapp body.admin-bar #kwgn-zone > #kwgn-cloche {
        top: 51px;
    }
}
/* Dans la barre de l'application : simple bouton de la barre. */
#kwgn-cloche.kwgn-dans-barre {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    background: transparent !important;
    box-shadow: none !important;
}
#kwgn-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    border: 2px solid #0b1c33;
    background: #d92b20;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
}
#kwgn-badge[hidden] {
    display: none !important;
}

/* ── Panneau des nouveautés ────────────────────────────────────── */
html.kwapp #kwgn-panneau {
    position: fixed;
    top: 60px;
    right: 8px;
    z-index: 99995;
    width: min(92vw, 380px);
    max-height: 72dvh;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid rgba(11, 28, 51, 0.18);
    border-top: 3px solid #c9a227;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(3, 9, 18, 0.4);
    color: #2b2b2b;
}
html.kwapp body.admin-bar #kwgn-panneau {
    top: 92px;
}
@media (max-width: 782px) {
    html.kwapp body.admin-bar #kwgn-panneau {
        top: 106px;
    }
}
#kwgn-panneau[hidden] {
    display: none !important;
}
.kwgn-p-entete {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: #0b1c33;
    border-radius: 11px 11px 0 0;
}
.kwgn-p-titre {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 700;
    color: #c9a227;
}
#kwgn-tout-lire {
    border: 1px solid rgba(201, 162, 39, 0.6);
    border-radius: 8px;
    background: transparent;
    color: #faf7f0;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 9px;
    cursor: pointer;
}

/* ── Zone push (dans le panneau) ───────────────────────────────── */
#kwgn-push-zone {
    padding: 12px 14px;
    background: #faf7f0;
    border-bottom: 1px solid rgba(11, 28, 51, 0.1);
    font-size: 14px;
}
#kwgn-push-zone p {
    margin: 0 0 8px;
}
.kwgn-push-bouton {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #c9a227;
    color: #0b1c33;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}
.kwgn-push-secondaire {
    display: inline-block;
    margin-top: 8px;
    margin-right: 10px;
    border: none;
    background: none;
    color: #0b5cad;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

/* ── Liste des nouveautés ──────────────────────────────────────── */
#kwgn-liste {
    list-style: none;
    margin: 0;
    padding: 0;
}
.kwgn-item {
    border-bottom: 1px solid rgba(11, 28, 51, 0.08);
}
.kwgn-item a {
    display: block;
    padding: 12px 14px 12px 18px;
    text-decoration: none;
    color: #2b2b2b;
    position: relative;
}
.kwgn-item a:active {
    background: rgba(201, 162, 39, 0.15);
}
.kwgn-item .kwgn-i-titre {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #16233f;
    margin-bottom: 2px;
}
/* Étiquette des annonces de méditation dans le panneau (v1.2.0). */
.kwgn-item .kwgn-i-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #8a6d14;
    background: rgba(201, 162, 39, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.5);
    border-radius: 999px;
    padding: 1px 8px;
    margin-bottom: 4px;
}
.kwgn-item .kwgn-i-texte {
    display: block;
    font-size: 13px;
    color: #5a6472;
}
.kwgn-item .kwgn-i-date {
    display: block;
    font-size: 12px;
    color: #8a94a3;
    margin-top: 3px;
}
.kwgn-item.kwgn-nonlu a {
    background: rgba(201, 162, 39, 0.07);
}
.kwgn-item.kwgn-nonlu a::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c9a227;
}
.kwgn-item.kwgn-nonlu .kwgn-i-titre {
    font-weight: 800;
}
#kwgn-vide {
    padding: 18px 14px;
    margin: 0;
    font-size: 14px;
    color: #5a6472;
    text-align: center;
}
