.sm-install-overlay[hidden], .sm-install-ios-steps[hidden], .sm-install-benefits[hidden] { display: none !important; }

.sm-install-overlay {
  position: fixed;
  z-index: 100500;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(4, 35, 25, .48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: sm-install-fade .2s ease-out both;
}
.sm-install-card {
  position: relative;
  width: min(100%, 410px);
  max-height: min(86vh, 650px);
  overflow: auto;
  padding: 28px 24px 22px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 26px;
  background: radial-gradient(circle at 100% 0, rgba(255,205,25,.15), transparent 36%), linear-gradient(155deg, #fff 0%, #f5faf6 100%);
  box-shadow: 0 24px 80px rgba(0,35,23,.28);
  color: #15382b;
  font-family: inherit;
  animation: sm-install-rise .25s cubic-bezier(.2,.8,.2,1) both;
}
.sm-install-close {
  position: absolute; top: 13px; right: 13px; display: grid; width: 38px; height: 38px;
  place-items: center; border: 0; border-radius: 50%; background: #eaf2ed; color: #164e38;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.sm-install-brand { display: flex; align-items: center; gap: 12px; margin: 0 42px 20px 0; }
.sm-install-brand img {
  width: 54px; height: 54px; flex: 0 0 auto; border-radius: 15px; object-fit: cover;
  box-shadow: 0 5px 16px rgba(0,89,54,.16);
}
.sm-install-brand span {
  display: block; color: #087447; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.sm-install-card h2 {
  margin: 0 0 9px; color: #064b35; font-size: clamp(22px, 6vw, 27px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.12;
}
.sm-install-card p { margin: 0; color: #65736b; font-size: 15px; line-height: 1.55; }
.sm-install-benefits { display: grid; gap: 9px; margin: 18px 0; padding: 0; list-style: none; }
.sm-install-benefits li { display: flex; align-items: center; gap: 9px; color: #294c3b; font-size: 14px; font-weight: 650; }
.sm-install-benefits li::before {
  display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; border-radius: 50%;
  background: #e1f5e9; color: #087c49; content: "✓"; font-size: 12px; font-weight: 900;
}
.sm-install-ios-steps {
  margin: 18px 0 4px; padding: 14px 15px; border: 1px solid #dcebe1;
  border-radius: 16px; background: rgba(232,246,237,.82);
}
.sm-install-ios-steps strong { display: block; margin-bottom: 5px; color: #075d3c; font-size: 14px; }
.sm-install-actions { display: grid; gap: 9px; margin-top: 20px; }
.sm-install-action {
  display: flex; min-height: 49px; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 16px; border: 1px solid transparent; border-radius: 15px; font: inherit;
  font-size: 15px; font-weight: 800; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.sm-install-action:active { transform: scale(.985); }
.sm-install-action--primary { background: linear-gradient(100deg,#087b49,#0ca45b); box-shadow: 0 9px 20px rgba(8,126,73,.2); color: #fff; }
.sm-install-action--secondary { background: transparent; color: #62746a; }
.sm-install-action:focus-visible, .sm-install-close:focus-visible { outline: 3px solid #edc61c; outline-offset: 3px; }
@keyframes sm-install-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sm-install-rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 520px) {
  .sm-install-overlay { align-items: center; padding: max(16px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom)); }
  .sm-install-card { width: min(100%,440px); max-height: min(78vh,600px); padding: 23px 20px 18px; border-radius: 24px; }
  .sm-install-brand { justify-content: center; margin: 0 36px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-install-overlay, .sm-install-card { animation: none; }
  .sm-install-action { transition: none; }
}
/* Centrage et lecture nette de la fenêtre d'installation sur mobile. */
.sm-install-card { border-top: 4px solid #f1c51a; overscroll-behavior: contain; }
.sm-install-card h2, .sm-install-intro { text-align: center; }
.sm-install-ios-steps { text-align: left; }
@media (max-width: 520px) {
  .sm-install-card { max-height: 84svh; }
}