/* Alertes sur le telephone (WP-P) : cloche de l'entete + page #/notifications. Variables de couleur de app.css. */

/* ---------- cloche de l'entete ---------- */
.bouton-cloche { position: relative; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cloche-pastille {
  position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--marque); border: 2px solid var(--surface); box-sizing: content-box;
}
.cloche-pastille[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cloche-pastille:not([hidden]) { animation: cloche-pouls 2.4s ease-in-out infinite; }
}
@keyframes cloche-pouls { 0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55); } 50% { box-shadow: 0 0 0 5px rgba(249, 115, 22, 0); } }

/* ---------- etat de l'appareil ---------- */
.push-etat { display: flex; align-items: center; gap: 14px; }
.push-etat-texte { min-width: 0; }
.push-etat-texte .sous-titre { margin: 0 0 4px; }
.push-etat-texte p { margin: 0; }
.push-etat-icone {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--neutre-fond); color: var(--neutre);
}
.push-etat-ok { background: var(--ok-fond); color: var(--ok); }
.push-etat-grave { background: var(--grave-fond); color: var(--grave); }
.push-etat-attention { background: var(--attention-fond); color: var(--attention); }
.push-etat-neutre { background: var(--marque-douce); color: var(--marque-fonce); }
:root[data-theme="dark"] .push-etat-neutre { color: var(--lien); }

/* ---------- grand interrupteur ---------- */
.push-interrupteur {
  display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 16px; min-height: 64px; padding: 12px 16px;
  border-radius: var(--rayon); border: 2px solid var(--marque); background: var(--marque); color: #1c1511;
  font: inherit; font-weight: 700; font-size: 1.05rem; text-align: left; cursor: pointer;
}
.push-interrupteur:hover { background: var(--marque-fonce); border-color: var(--marque-fonce); color: #fff; }
.push-interrupteur:focus-visible { outline: 3px solid var(--marque-fonce); outline-offset: 3px; }
.push-interrupteur-actif { background: var(--ok-fond); border-color: var(--ok-bord); color: var(--ok); }
.push-interrupteur-actif:hover { background: var(--ok-fond); border-color: var(--ok); color: var(--ok); }
.push-interrupteur[disabled] { opacity: .55; cursor: not-allowed; }
.push-interrupteur-piste {
  flex: none; position: relative; width: 56px; height: 32px; border-radius: 999px;
  background: rgba(0, 0, 0, .22); transition: background .2s;
}
.push-interrupteur-bouton {
  position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s;
}
.push-interrupteur-actif .push-interrupteur-piste { background: var(--ok); }
:root[data-theme="dark"] .push-interrupteur-actif .push-interrupteur-piste { background: #16a34a; }
.push-interrupteur-actif .push-interrupteur-bouton { transform: translateX(24px); }
.push-interrupteur-libelle { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .push-interrupteur-piste, .push-interrupteur-bouton { transition: none; } }

/* ---------- appareils ---------- */
.push-appareils { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.push-appareil {
  display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--bordure);
  border-radius: var(--rayon-petit); background: var(--surface);
}
.push-appareil-icone { flex: none; color: var(--texte-doux); display: grid; place-items: center; }
.push-appareil-corps { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.push-appareil-corps .badge { align-self: flex-start; margin-top: 2px; }
.push-retirer { flex: none; color: var(--grave); }
.push-retirer:hover { background: var(--grave-fond); color: var(--grave); }

/* ---------- aide ---------- */
.push-aide { margin-top: 10px; }
.push-etapes { margin: 4px 0 8px; padding-left: 22px; line-height: 1.5; }
.push-etapes li { margin: 6px 0; }
.push-etapes-puces { list-style: disc; }
