/* ATTPS • PWA Banner & iOS Badge */
:root {
  --attps-club: rgb(33, 42, 60); /* sera écrasé depuis PHP */
  --attps-bg: var(--attps-club);
  --attps-text: #fff;
  --attps-pill: 9999px;
  --attps-rounded: 16px;
  --attps-gap: 10px;
  --attps-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --attps-tr: 0.28s ease;
  --attps-arrow-size: 12px;
}

/* Fallback minimal si le JS change la visibilité */
#attps-pwa-banner {
  display: none;
}
#attps-pwa-banner.attps--visible {
  display: flex;
}

#attps-pwa-banner {
  position: fixed;
  top: 28px;
  left: 100px;
  right: 90px;
  z-index: 999999;
  display: none;
  background: var(--attps-bg);
  color: var(--attps-text);
  border-radius: var(--attps-pill);
  padding: 6px 10px 6px 20px;
  box-shadow: var(--attps-shadow);
  font-family: inherit;
  line-height: 1.35;
  min-height: 52px;
  align-items: center;
  gap: 12px;
}
#attps-pwa-banner.attps--expanded {
  border-radius: var(--attps-rounded);
}
#attps-pwa-banner .attps-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
#attps-pwa-banner .attps-flexcol {
  display: flex;
  flex-direction: column;
  gap: 0px;
  min-width: 0;
  width: 100%;
}
#attps-pwa-banner .attps-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
#attps-pwa-banner .attps-sub {
  font-size: 14px;
  opacity: 0.95;
}
#attps-pwa-banner .attps-close {
  cursor: pointer;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff !important;
  border: 1px solid #fff;
  transition: transform var(--attps-tr);
}
#attps-pwa-banner .attps-close:hover {
  transform: rotate(90deg);
}
#attps-pwa-banner .attps-close i {
  color: var(--attps-club);
  font-size: 14px;
  line-height: 1;
}
#attps-pwa-banner .attps-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
#attps-pwa-banner .attps-arrow svg {
  width: var(--attps-arrow-size);
  height: var(--attps-arrow-size);
  transform: rotate(0);
  transition: transform var(--attps-tr);
}
#attps-pwa-banner.attps--expanded .attps-arrow svg {
  transform: rotate(45deg);
}
#attps-pwa-banner .attps-ios-expand {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--attps-tr), opacity var(--attps-tr);
}
#attps-pwa-banner.attps--expanded .attps-ios-expand {
  max-height: 240px;
  opacity: 1;
}
#attps-pwa-banner .attps-ios-steps {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: 0.95;
  padding-top: 6px;
}
#attps-pwa-banner .attps-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
#attps-pwa-banner .attps-chip svg {
  width: 16px;
  height: 16px;
  color: #fff;
}
#attps-pwa-banner .attps-btn {
  cursor: pointer;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform var(--attps-tr), opacity var(--attps-tr);
  will-change: transform;
}
#attps-pwa-banner .attps-btn:hover {
  transform: translateY(-1px);
}
#attps-pwa-banner .attps-btn-primary {
  background: #fff;
  color: var(--attps-club);
}
html.attps-can-install #attps-pwa-banner {
  cursor: pointer;
}
#attps-pwa-banner.attps--disabled {
  opacity: 0.9;
  cursor: default;
}

/* Accessibilité : réduit les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  #attps-pwa-banner,
  #attps-pwa-banner * {
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 768px) {
  #attps-pwa-banner {
    left: 20px;
  }
}


