/* =====================================================================
 * Gholami CRM — alertes sur les appareils : bandeau d'invitation, page Mon profil › Alertes, mode d'emploi iPhone.
 * ===================================================================== */

/* Bandeau « Ne manquez plus aucun lead — Activer » */
.alertes-bandeau {
  display: flex; align-items: center; gap: 16px; margin: 0 0 18px; padding: 14px 18px;
  border-radius: 14px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--primary, #0A1D3A) 0%, #12305c 70%, #1b3f73 100%);
  box-shadow: 0 10px 30px -14px rgba(10, 29, 58, .7);
  animation: alertes-entree .45s cubic-bezier(.2, .8, .2, 1);
}
.alertes-bandeau::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 164, 79, .35), transparent 70%); pointer-events: none;
}
.alertes-bandeau-ico {
  position: relative; flex: 0 0 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold, #C9A44F); color: var(--primary, #0A1D3A); font-size: 20px;
}
.alertes-bandeau-ico i { animation: alertes-cloche 2.4s ease-in-out infinite; transform-origin: 50% 10%; }
.alertes-onde {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold, #C9A44F);
  animation: alertes-onde 2.4s ease-out infinite;
}
.alertes-bandeau-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; position: relative; z-index: 1; }
.alertes-bandeau-txt strong { font-size: 15px; }
.alertes-bandeau-txt span { font-size: 13px; color: rgba(255, 255, 255, .82); }
.alertes-bandeau-act { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.alertes-bandeau .btn-ghost { color: rgba(255, 255, 255, .85); }
.alertes-bandeau .btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.alertes-bandeau .btn-soft { background: rgba(255, 255, 255, .14); color: #fff; border-color: transparent; }

@media (max-width: 720px) {
  .alertes-bandeau { flex-wrap: wrap; padding: 14px; }
  .alertes-bandeau-txt { flex-basis: calc(100% - 64px); }
  .alertes-bandeau-act { width: 100%; }
  .alertes-bandeau-act .btn { flex: 1 1 auto; justify-content: center; }
}

@keyframes alertes-entree { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes alertes-cloche { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(14deg); } 80% { transform: rotate(-12deg); } 85% { transform: rotate(8deg); } 90% { transform: rotate(-5deg); } }
@keyframes alertes-onde { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .alertes-bandeau, .alertes-bandeau-ico i, .alertes-onde { animation: none; }
}

/* Page Mon profil › Alertes */
.alertes-etat {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--bg-soft, rgba(10, 29, 58, .05)); border: 1px solid var(--border, rgba(10, 29, 58, .1));
}
.alertes-etat > i { font-size: 22px; width: 28px; text-align: center; color: var(--muted, #6C7788); }
.alertes-etat > div { display: flex; flex-direction: column; gap: 2px; }
.alertes-etat.ok { background: rgba(22, 163, 74, .08); border-color: rgba(22, 163, 74, .3); }
.alertes-etat.ok > i { color: #16a34a; }
.alertes-etat.attente { background: rgba(201, 164, 79, .1); border-color: rgba(201, 164, 79, .4); }
.alertes-etat.attente > i { color: var(--gold-d, #8A6B2E); }
.alertes-etat.ko { background: rgba(220, 38, 38, .07); border-color: rgba(220, 38, 38, .3); }
.alertes-etat.ko > i { color: #dc2626; }

.alertes-choix { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.alertes-choix-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border, rgba(10, 29, 58, .12)); transition: border-color .15s, background .15s;
}
.alertes-choix-item:hover { border-color: var(--gold, #C9A44F); }
.alertes-choix-item:has(input:checked) { background: rgba(201, 164, 79, .08); border-color: rgba(201, 164, 79, .55); }
.alertes-choix-item input { margin-top: 3px; }
.alertes-choix-item > i { margin-top: 3px; width: 18px; text-align: center; color: var(--gold-d, #8A6B2E); }
.alertes-choix-item > span { display: flex; flex-direction: column; gap: 2px; }

/* Mode d'emploi iPhone et réautorisation */
.alertes-ios { list-style: none; counter-reset: etape; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.alertes-ios li {
  counter-increment: etape; display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg-soft, rgba(10, 29, 58, .05)); position: relative;
}
.alertes-ios li::before {
  content: counter(etape); position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold, #C9A44F); color: var(--primary, #0A1D3A); font-weight: 800; font-size: 12px; display: grid; place-items: center;
}
.alertes-ios li > div { display: flex; flex-direction: column; gap: 2px; }
.alertes-ios li small { color: var(--muted, #6C7788); }
.alertes-ios-ico {
  flex: 0 0 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: #fff; color: #0a84ff; box-shadow: 0 2px 8px rgba(10, 29, 58, .12);
}
.alertes-ios-app { background: transparent; box-shadow: none; }
.alertes-ios-app img { width: 46px; height: 46px; border-radius: 11px; }
.alertes-etapes-liste { padding-left: 20px; display: grid; gap: 6px; }
