/* =====================================================================
   Panneau de la cloche (notifications Premium) — style de la refonte.
   Toutes les couleurs viennent du thème (variables --ih-* de socle.css) :
   le panneau suit les 10 thèmes, Clair compris.
   La cloche elle-même et sa pastille sont stylées dans socle.css.
   ===================================================================== */
.ih-premium-reward-panel[hidden]{display:none!important}
.ih-premium-reward-panel{position:fixed;right:12px;top:calc(var(--ih-top-h) + 6px);z-index:5500;box-sizing:border-box;width:min(400px,calc(100vw - 24px));max-height:min(75dvh,680px);display:flex;flex-direction:column;gap:10px;padding:14px;background:var(--ih-card);color:var(--ih-text);border:1px solid var(--ih-border);border-radius:12px;box-shadow:0 18px 40px rgba(0,0,0,.45);font:400 13px/1.4 var(--ih-font)}
:root[data-theme="clair"] .ih-premium-reward-panel{box-shadow:0 18px 40px color-mix(in srgb,var(--ih-text) 18%,transparent)}
.ih-premium-reward-panel button{font:inherit;margin:0;text-transform:none;letter-spacing:normal;box-shadow:none;min-height:0;filter:none}
.ih-premium-reward-panel button:focus-visible{outline:2px solid var(--ih-accent);outline-offset:2px}

/* En-tête */
.ih-reward-title{display:flex;align-items:center;justify-content:space-between;gap:8px}
.ih-reward-title b{font:700 19px/1.15 var(--ih-font-title);text-transform:uppercase;letter-spacing:.5px;color:var(--ih-text)}
.ih-reward-title button{width:36px;height:36px;display:grid;place-items:center;flex:none;padding:0;border:0;border-radius:9px;background:none;color:var(--ih-muted);cursor:pointer}
.ih-reward-title button:hover{background:var(--ih-inner);color:var(--ih-text)}
.ih-reward-title .ih-ico{width:18px;height:18px}
.ih-reward-subtitle{margin-top:-6px;font-size:12px;color:var(--ih-muted)}
.ih-premium-reward-panel>p{margin:0;color:var(--ih-text2)}

/* Liste : chaque notification garde sa hauteur naturelle (flex:none),
   seule la liste défile. Séparation par une ligne fine, sans cadre. */
.ih-reward-list{min-height:0;flex:1 1 auto;overflow-y:auto;display:flex;flex-direction:column;gap:0;overscroll-behavior:contain;margin:0 -6px;padding:0 6px;border-top:1px solid var(--ih-border)}
.ih-reward-item{flex:none;position:relative;display:flex;align-items:flex-start;gap:10px;width:100%;box-sizing:border-box;text-align:left;padding:12px 10px 12px 16px;border:0;border-bottom:1px solid var(--ih-border);border-radius:0;background:none;color:var(--ih-muted);cursor:pointer;font-size:12px;line-height:1.4}
.ih-reward-item:last-child{border-bottom:0}
.ih-reward-item:hover{background:var(--ih-inner)}
.ih-reward-dot{flex:none;width:8px;height:8px;margin-top:5px;border-radius:50%;background:transparent}
.ih-reward-body{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.ih-reward-item-top{display:flex;justify-content:space-between;align-items:baseline;gap:10px;min-width:0}
.ih-reward-item-top b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;color:var(--ih-text2)}
.ih-reward-item-top small{flex:none;font-size:11px;color:var(--ih-muted);white-space:nowrap;font-variant-numeric:tabular-nums}
/* Détail : 2 lignes au plus, coupé proprement avec « … » */
.ih-reward-desc{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;color:var(--ih-muted);overflow-wrap:anywhere}
.ih-reward-go{display:inline-flex;align-items:center;gap:4px;align-self:flex-end;margin-top:2px;font-size:11px;font-weight:600;color:var(--ih-muted)}
.ih-reward-go .ih-ico{width:13px;height:13px}
.ih-reward-item:hover .ih-reward-go{color:var(--ih-accent)}
/* Non lue : liseré droit à gauche et point dans la couleur d'accent, titre en gras */
.ih-reward-item.unread::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;background:var(--ih-accent)}
.ih-reward-item.unread .ih-reward-dot{background:var(--ih-accent)}
.ih-reward-item.unread .ih-reward-item-top b{font-weight:700;color:var(--ih-text)}
.ih-reward-item.unread .ih-reward-desc{color:var(--ih-text2)}
.ih-reward-item.unread .ih-reward-go{color:var(--ih-accent)}
.ih-reward-empty{margin:0;padding:16px 8px;color:var(--ih-muted);text-align:center;font-size:12px}

/* Pied et boutons */
.ih-reward-footer{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;border-top:1px solid var(--ih-border);padding-top:10px}
.ih-reward-footer button,.ih-reward-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px;padding:8px 12px;border:1px solid var(--ih-border);border-radius:10px;background:var(--ih-inner);color:var(--ih-text);font:600 13px/1.2 var(--ih-font);cursor:pointer;white-space:nowrap}
.ih-reward-footer button:hover,.ih-reward-action:hover{border-color:color-mix(in srgb,var(--ih-text) 30%,var(--ih-border))}
.ih-reward-action{align-self:flex-start}
/* ◆ du Journal Premium : couleur Premium du thème, comme le reste du jeu */
.ih-reward-premium-ico{color:var(--ih-sector-premium)}
:root[data-theme="clair"] .ih-reward-premium-ico{color:color-mix(in srgb,var(--ih-sector-premium) 70%,var(--ih-text))}
.ih-reward-footer .ih-ico,.ih-reward-action .ih-ico{width:16px;height:16px}

/* Téléphone : toute la largeur, liste qui défile, zones faciles à toucher */
@media(max-width:760px){
  .ih-premium-reward-panel{top:calc(var(--ih-top-h) + 6px + env(safe-area-inset-top,0px));right:8px;left:8px;width:auto;max-height:min(72dvh,610px);padding:12px}
  .ih-reward-item{padding:14px 8px 14px 16px}
  .ih-reward-footer button{flex:1 1 auto;min-height:42px}
}
