/* Styles générfunction refreshUIaux et variables de thème */
:root {
  --primary-color: #905de8;
  --second-color : #56378b;
  --success-color: #4caf50;
  --danger-color: #f44336;
  --text-color: #333;
  --bg-color: #f9f9fc;
}
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
}

/* Empêche tout débordement */
*, *::before, *::after {
  box-sizing: border-box;
}

.modal-content.card {
  width: 100%;
  max-width: 100vw;
  padding: 1rem;
  display: flex;
  justify-content: center;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0;
  font-size: 0.8rem;
  color: var(--text-color);
  text-align: left;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.form-consent a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.form-consent a:hover {
  color: var(--second-color);
}


.form-card {
  width: 100%;
  max-width: 320px;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  margin: auto;
}

.form-card h2 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.4rem;
}

.form-card input,
.form-card button {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

.form-card input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.form-card button {
  background: var(--primary-color);
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.form-card button:hover {
  background: var(--second-color);
}

.form-switch {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-switch a {
  color: var(--primary-color);
  text-decoration: none;
}


/* Barre de navigation supérieure */
.topbar {
  background: var(--primary-color);
  color: #fff;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  
}
.topbar .user-info {
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-logo img {
  display: block;
  height: 32px;
  width: auto;
  margin-right: 2rem;
}

@media (max-width: 480px) {
  .app-logo img {
    height: 26px;
  }
}

.topbar .app-title {
  font-size: 1.2rem;
  margin: 0;
}

.topbar #user-status {
  margin-right: 1rem;
}
.topbar #login-btn-top,
.topbar #logout-btn {
  background: #fff;
  color: var(--primary-color);
  padding: 0.3rem 0.6rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.topbar #login-btn-top:hover,
.topbar #logout-btn:hover {
  background: #eee;
}

/* Contenu principal */
.content {
  padding: 1rem;
}
.page {
  margin-bottom: 2rem;
}

/* Section Accueil (Bonus quotidien, Jeu, Actions, Coupons) */
#game-section {
  text-align: center;
  margin-bottom: 1rem;
}
#play-game {
  max-width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
}
#play-game:hover {
  transform: scale(1.02);
}
.game-note {
  font-size: 0.9rem;
  color: #555;
}
#actions-list .action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 6px;
  padding: 0.5rem;
  margin: 0.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
#actions-list .action-text {
  font-size: 0.95rem;
}
#actions-list .action-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  margin-bottom:5px;
  font-size: 0.9rem;
}
#actions-list .action-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

/* Bouton "Voir plus" de l'historique */
#show-more-history {
  margin: 0.75rem auto 0;
  display: none;               /* affiché en JS si besoin */
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

#show-more-history:hover:not(:disabled) {
  background: rgba(144, 93, 232, 0.12);
  transform: translateY(-1px);
}

#show-more-history:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}


/* Coupon card */
.coupon-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary-color);
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  margin: 0.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Infos à gauche */
.coupon-info {
  flex: 1;
}
.coupon-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.coupon-expiry {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* QR à droite */
.coupon-qr-wrapper {
  flex-shrink: 0;
  margin-left: 1rem;
}
.coupon-qr {
  width: 80px;
  height: 80px;
  border: 3px solid #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}
.coupon-qr:hover {
  transform: scale(1.05);
}

/* Centre tout le contenu du modal */
#qr-modal .modal-content {
  text-align: center;
}

.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* clic arrière-plan détectable */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}


/* Transforme le badge code en block et centre-le */
.modal-code-box {
  display: block;
  margin: 0.5rem auto 1rem; /* 0.5 rem en haut, auto à gauche/droite, 1 rem en bas */
  color: var(--primary-color);         /* couleur principale */
  font-weight: 600;
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Modal plein écran QR */
#qr-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background: rgba(0,0,0,0.6);
  z-index: 2000;
}
#qr-modal .modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 90%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
#qr-modal .modal-content h2 {
  margin-top: 0;
  color: var(--primary-color);
}
#qr-modal .modal-content img {
  max-width: 300px;
  max-height: 300px;
  margin: 1rem 0;
}
#qr-modal .modal-content .modal-expiry {
  font-size: 0.9rem;
  color: #555;
}


/* Section Historique */
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  margin: 0.3rem 0;
  padding: 0.4rem 0.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.history-list li .value {
  font-weight: bold;
}
.history-amount.positive {
  color: var(--success-color);
}
.history-amount.negative {
  color: var(--danger-color);
}
#offers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.card {
  background: white;
}

.offer.card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.offer.card:hover {
  transform: translateY(-4px);
}

.offer.card img {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s;
  border-radius: 16px;
}

.offer.card .cost-circle {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: white;
  color: var(--primary-color);
  font-weight: bold;
  border-radius: 10%;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.offer.card .redeem-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.offer.card .redeem-btn:hover:not(:disabled) {
  background: #7d4be1;
}

.offer.card .redeem-btn:disabled {
  background: #ddd;
  color: #888;
  cursor: not-allowed;
}


/* Section Profil */
.profile-field {
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
}
.profile-field label {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.profile-field input,
.profile-field select {
  padding: 0.4rem;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.profile-field input:disabled {
  background: #eee;
}
#profile-page button {
  margin: 0.5rem 0.2rem 0.5rem 0;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#save-profile-btn {
  background: var(--primary-color);
  color: #fff;
}
#prefs-btn,
#toggle-password-section {
  background: #ddd;
}
#password-section input {
  display: block;
  margin: 0.3rem 0;
  padding: 0.4rem;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#password-section button {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin-top: 0.3rem;
  cursor: pointer;
}

/* Barre de navigation inférieure */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  border-top: 1px solid #ccc;
  z-index:999;
}
.bottom-nav .nav-btn {
  flex: 1;
  padding: 0.7rem 0;
  font-size: 0.9rem;
  background: none;
  border: none;
  cursor: pointer;
}
.bottom-nav .nav-btn.active {
  background: var(--primary-color);
  color: #fff;
}

/* Cartes (notifications, etc.) */
.card {
  border-radius: 8px;
  }
.card.message-card {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  max-width: 90%;
  padding: 0.75rem 1rem;
  z-index: 100000;
  display: none;
  animation: fadeSlide 0.5s ease-out;
}
@keyframes fadeSlide {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.message-card.success {
  border-left: 5px solid var(--success-color);
}
.message-card.error {
  border-left: 5px solid var(--danger-color);
}

/* Modals génériques */
.modal-content {
  width: 90%;
  max-width: 300px;
  padding: 1rem;
  text-align: center;
}
.modal-content h4 {
  margin-top: 0;
  color: var(--primary-color);
}
.modal-content .modal-note {
  font-size: 0.8rem;
  color: #555;
}
.modal-content button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
#save-prefs-btn,
#stay-connected-btn {
  background: var(--primary-color);
  color: #fff;
}
#close-prefs-btn,
#logout-session-btn {
  background: #ccc;}

/* Popup préférences e-mails / notifications */
#prefs-modal .prefs-modal-card {
  max-width: 380px;
  width: 100%;
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  gap: 0.75rem;
}

#prefs-modal h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--primary-color);
}

/* Lignes checkbox */
#prefs-modal .prefs-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color);
}

#prefs-modal .prefs-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Texte d’info */
#prefs-modal .modal-note {
  font-size: 0.8rem;
  color: #666;
  margin: 0.5rem 0 0.25rem;
}

/* Boutons en colonne (vertical) */
#prefs-modal .prefs-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

#prefs-modal #save-prefs-btn,
#prefs-modal #close-prefs-btn {
  width: 100%;
}

/* Optionnel : sur écran large, boutons côte à côte */
@media (min-width: 600px) {
  #prefs-modal .prefs-actions {
    flex-direction: row;
  }

  #prefs-modal #save-prefs-btn,
  #prefs-modal #close-prefs-btn {
    width: auto;
    flex: 1;
  }
}

/* ─── APERÇU COMPACT ─── */

.bonus-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  aspect-ratio: 4 / 1;
  background: transparent; /* pas de fond gris/blanc */
}

/* Slide */
.bonus-slide {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px) scale(0.98);
  transition:
    opacity 0.55s ease-in-out,
    transform 0.55s ease-in-out,
    box-shadow 0.3s ease;
  background: transparent; /* pas de fond gris/blanc */
}

/* Slide actif */
.bonus-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0) scale(1);
  
}

/* Image du slide : occupe 100 % du bloc */
.bonus-slide-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;   /* remplit complètement sans bande blanche */
}
#daily-bonus-container {
  margin: 0;
  padding: 0;
  background: transparent;
}


.bonus-dots {
  position: absolute;
  bottom: 0.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
}

.bonus-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.3);
  padding: 0;
}

.bonus-dots .dot.active {
  width: 16px;
  background: #fff;
}


@keyframes zoomFade {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.zoom-in {
  animation: zoomFade 0.3s ease-out;
}

#daily-bonus-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  padding: 1rem;
}

/* Pop-up parrainage */
#referral-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  padding: 1rem;
}

/* ===========================
   Parrainage (referral modal)
   =========================== */
/* Pop-up parrainage */
#referral-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  padding: 1rem;
}

/* ===========================
   Parrainage (referral modal)
   =========================== */

.referral-modal {
  background: var(--bg-color);
  padding: 2rem 1rem;
  border-radius: 16px;
  text-align: left;
  width: 100%;
  max-width: 320px;
  margin-left: -20px;
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: zoomFade 0.3s ease-out;
  max-height: 90vh;
  overflow-y: auto;
}


.referral-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.referral-form label {
  font-size: 0.9rem;
  text-align: left;
  color: var(--text-color);
}

.referral-form input {
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--second-color);
  background: rgba(86, 55, 139, 0.08);
  color: var(--text-color);
  font-size: 0.95rem;
}

.referral-form input::placeholder {
  color: var(--second-color);
}

.referral-my-btn {
  margin-top: 0.75rem;
  width: 100%;
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 0.95rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
}

.secondary-btn:hover {
  background: rgba(144, 93, 232, 0.15);
}

.referral-conditions {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--second-color);
  line-height: 1.4;
}

.referral-summary {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-color);
}

.referral-summary strong {
  color: var(--primary-color);
}

.referral-list {
  margin-top: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.referral-item {
  background: rgba(86, 55, 139, 0.12);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(4px);
}

.referral-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.referral-email {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-color);
}

.referral-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--second-color);
}

.status-badge {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-in-progress {
  background: rgba(144, 93, 232, 0.15);
  color: var(--primary-color);
}

.status-expired {
  background: rgba(244, 67, 54, 0.12);
  color: var(--danger-color);
}

.status-completed {
  background: rgba(76, 175, 80, 0.12);
  color: var(--success-color);
}

.referral-see-btn {
  border: none;
  background: rgba(86, 55, 139, 0.15);
  color: var(--text-color);
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.referral-see-btn:hover {
  background: rgba(144, 93, 232, 0.18);
}

.referral-tracking {
  margin-top: 1rem;
  padding: 0.75rem 0.5rem 0.25rem;
  border-radius: 12px;
  background: radial-gradient(circle at top left, rgba(144, 93, 232, 0.25), rgba(86, 55, 139, 0.15));
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.referral-tracking.active {
  display: flex;
}

.referral-tracking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-color);
}

.referral-tracking-email {
  font-weight: 600;
}

.tracking-bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: rgba(86, 55, 139, 0.15);
  overflow: hidden;
  margin: 0.25rem 0 0.5rem;
}

.tracking-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary-color), var(--second-color));
  transition: width 0.45s ease-out;
}

.referral-tracking[data-progress="0"] .tracking-bar-fill { width: 0%; }
.referral-tracking[data-progress="1"] .tracking-bar-fill { width: 33%; }
.referral-tracking[data-progress="2"] .tracking-bar-fill { width: 66%; }
.referral-tracking[data-progress="3"] .tracking-bar-fill { width: 100%; }

.tracking-steps {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.tracking-step {
  flex: 1;
  text-align: center;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 auto 0.2rem;
  border: 2px solid var(--second-color);
  background: transparent;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.tracking-step.done .step-dot {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.15);
}

.step-label {
  font-size: 0.7rem;
  color: var(--text-color);
}

.step-date {
  font-size: 0.65rem;
  color: var(--second-color);
}



.bonus-modal {
  background: var(--bg-color);
  padding: 2rem 1rem;
  border-radius: 16px;
  text-align: center;
  width: 100%;
  margin-left:-20px;/* ← prend toute la largeur dispo dans le parent flex */
  max-width: 300px;         /* ← limite à 300px */
  box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: zoomFade 0.3s ease-out;
}



.bonus-grid {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  margin: 1rem auto 1.5rem;
  overflow-x: auto;
  padding: 0 1.5rem 0 0.5rem; /* ← plus de marge à droite */
  scroll-snap-type: x mandatory;
  justify-content: flex-start;
  max-width: 90%;
  box-sizing: border-box;
}

.bonus-title {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.6rem;
  font-weight: bold;
}
.bonus-subtitle {
  color: var(--text-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.bonus-grid::-webkit-scrollbar {
  height: 6px;
}
.bonus-grid::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
}

.bonus-cell {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 0.5rem;
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  scroll-snap-align: start;
  align-self: stretch;      /* ← occupe toute la hauteur disponible */
  height: 90%;             /* ← hauteur complète dans la ligne */
  box-sizing: border-box;
}

.bonus-cell img {
  width: 48px;
  height: 48px;
  margin-bottom: 0.5rem;
}
.day-label {
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-color);
}

.bonus-cell.done::after {
  content: '✔';
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--success-color);
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.75rem;
}
.bonus-cell.highlight {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  transform: scale(0.9);
}

/* Bouton Obtenir */
.claim-btn {
  background: var(--primary-color);
  border: none;
  color: white;
  font-size: 1.1rem;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
}
.claim-btn:hover {
  background: #7d48d8;
}

/* Croix de fermeture */
.close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
}

/* Overlay de chargement */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  display: none; /* Caché par défaut */
  pointer-events: all;
}
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cost-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--second-color);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.remember-me {
  display: flex;
  justify-content: center;
  text-align:center;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

/* POPUP DE VÉRIFICATION AVIS */
#review-check-popup {
  animation: fadeIn 0.3s ease;
}

#review-check-popup .popup-box {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.3s ease;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}

#review-check-popup h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: #333;
}

#review-check-popup p {
  color: #555;
  margin-bottom: 20px;
  font-size: 1rem;
}

#review-check-popup .action-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: var(--primary-color);
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 5px;
}

#review-check-popup .action-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

#review-check-popup .action-btn:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
}

#hidden{display:none;}

/* Texte machine à écrire animé */
#review-typewriter {
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  display: inline-block;
  font-size: 1rem;
  color: #333;
  margin-top: 15px;
  display: none;
}


@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Superposition floutée */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease-in-out;
}

/* Boîte centrale */
.popup-box {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.3s ease-out;
  font-family: "Segoe UI", sans-serif;
}

/* Titre */
.popup-box h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--primary-color);
}

/* Texte */
.popup-box p {
  margin-bottom: 1.5rem;
  color: #555;
}

/* Bouton d'action */
.popup-box .action-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.popup-box .action-btn:hover:not(:disabled) {
  background: #7e49d3;
  transform: scale(1.05);
}

.popup-box .action-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.loading-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: rgba(0,0,0,0.6);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 0.5em;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ads-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ads-box {
  position: relative;
  width: 95vw;
  max-width: 410px;
  aspect-ratio: 9/16;
  background: #fff;
  border-radius: 2.2em;
  box-shadow: 0 8px 32px rgba(0,0,0,0.23);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  margin: 2vw;
  padding: 0;
}

.ads-bg-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.ads-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  background: linear-gradient(to top, rgba(20,0,50,0.55) 60%, rgba(0,0,0,0.04) 100%);
  padding: 2em 1.5em 1.5em 1.5em;
  border-bottom-left-radius: 2.2em;
  border-bottom-right-radius: 2.2em;
}

#ads-title {
  color: #fff;
  font-size: 1.4em;
  margin-bottom: 1.5em;
  font-weight: bold;
  text-shadow: 0 2px 12px rgba(0,0,0,0.34);
}

#ads-cta-btn {
  display: inline-block;
  width: 85%;
  font-size: 1.16rem;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 1em;
  padding: 0.8em 0;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.17);
  cursor: pointer;
  margin-bottom: 0.3em;
  transition: background 0.2s;
}
#ads-cta-btn:hover {
  background: #7d48d8;
}
.progress-container {
  width: 100%;
  background-color: #eee;
  border-radius: 5px;
  height: 20px;
  overflow: hidden;
  margin: 10px 0;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background-color: var(--primary-color, #0D509F);
  text-align: center;
  line-height: 20px;
  color: white;
  font-size: 12px;
  transition: width 0.2s ease;
}

.scanner-card {
  cursor: pointer;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.scanner-card:hover {
  transform: scale(1.02);
}
.card-item {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 7 / 2; /* carré responsive */
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  margin: 10px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
}

.card-item.card-disabled {
  opacity: 0.6;
  pointer-events: auto;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255,255,255,0.75);
  backdrop-filter: blur(4px);
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  z-index: 3;
}
.loyalty-card-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
  margin-top: 16px;
}

.loyalty-card-horizontal {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--primary-color), var(--second-color));
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  color: white;
  padding: 20px;
  width: 100%;
  max-width: 380px;
  min-height: 180px;
  position: relative;
  flex-wrap: wrap;
}

/* Côtés */
.loyalty-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.left {
  flex: 1.5;
}

.right {
  flex: 1;
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.loyalty-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 12px;
}

/* Tampons */
.loyalty-stamps {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 10px;
  margin-bottom: 5px;
}

.stamp {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 6px rgba(255,255,255,0.2);
}

.stamp.filled {
  background-color: white;
}

.stamp-icon {
  width: 16px;
  height: 16px;
  background-size: cover;
  background-position: center;
  filter: invert(1);
}

.stamp.filled .stamp-icon {
  filter: none;
}

.stamp-date {
  font-size: 9px;
  margin-top: 1px;
  color: #333;
}

/* QR Code */
.loyalty-qr-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: white;
  padding: 4px;
  box-shadow: 0 0 6px rgba(0,0,0,0.2);
}

.qr-label {
  font-size: 11px;
  margin-top: 6px;
  text-align: center;
  color: #eee;
}

/* Texte récompense */
.loyalty-reward-text {
  margin-top: 12px;
  font-size: 14px;
  text-align: center;
  color: #333;
}

.loyalty-reward-text strong {
  color: var(--primary-color);
  font-weight: bold;
}

/* Bouton */
.loyalty-refresh {
  margin-top: 8px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.loyalty-refresh:hover {
  background-color: var(--primary-hover);
}

/* 🔄 Loader */
.button-loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* 🌀 Animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes tada {
  0% { transform: scale(1); }
  10%, 20% { transform: scale(0.9) rotate(-3deg); }
  30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
  40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
  100% { transform: scale(1); }
}

/* 🔍 Zoom QR overlay */
#qr-zoom-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--bg-color, white);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#qr-zoom-overlay img {
  max-width: 90vw;
  max-height: 90vh;
}

/* 🔒 Placeholder de connexion */
.loyalty-placeholder {
  padding: 24px;
  background: white;
  border-radius: 12px;
  text-align: center;
  color: #444;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.loyalty-placeholder:hover {
  background: #f3f3f3;
}

@keyframes stampPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}
@keyframes slideUpFade {
  0% {
    transform: translateY(40px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
#loyalty-wrapper {
  display: block;
}

.loyalty-claim-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 18px;
  margin-top: 12px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  animation: tada 0.4s ease;
}
.loyalty-claim-btn:hover {
  background-color: var(--primary-hover);
}


/* ===== POPUP CONFIRM — mobile first, vertical ===== */
#confirm-required.modal{
  position: fixed; inset: 0;
  display: none;
  align-items: flex-end;         /* bottom-sheet sur mobile */
  justify-content: stretch;
  background: color-mix(in srgb, var(--background, #0b0b0b) 35%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 200001;
  padding: 0;
}
#confirm-required.open{ display: flex !important; }

/* Carte */
#confirm-required .modal-content{
  width: 100%;
  background: var(--surface, #fff);
  border-radius: 16px 16px 0 0;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;        /* empile tout en vertical */
  gap: 12px;
  box-shadow: 0 -2px 18px rgba(0,0,0,.18);
  animation: cr-slide-up .22s cubic-bezier(.2,.7,.2,1);
  position: relative;
}

/* poignée style bottom-sheet */
#confirm-required .modal-content::before{
  content:"";
  position:absolute; top:8px; left:50%; transform:translateX(-50%);
  width: 38px; height: 4px; border-radius: 999px;
  background: color-mix(in srgb, var(--primary-color) 14%, #999);
  opacity:.8;
}

/* Titre et texte */
#confirm-required h4{
  margin: 14px 0 2px; padding-top: 10px;  /* espace à cause de la poignée */
  font-size: 1.05rem; font-weight: 800; text-align: center;
  color: var(--primary-color);
}
#confirm-required p{
  margin: 0; text-align: center;
  font-size: 0.98rem; line-height: 1.5;
  color: var(--text-muted, #5b5b5b);
}

/* Boutons — 100% largeur, touch targets confortables */
#resend-confirm-btn,
#close-confirm-required{
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  padding: 12px 14px;
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

/* Primaire */
#resend-confirm-btn{
  background: var(--primary-color);
  color: var(--on-primary, #fff);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 28%, transparent);
}
#resend-confirm-btn:hover{ transform: translateY(-1px); }
#resend-confirm-btn:active{ transform: translateY(0); }

/* Secondaire */
#close-confirm-required{
  background: color-mix(in srgb, var(--primary-color) 6%, transparent);
  color: var(--primary-color);
  border: 1px solid color-mix(in srgb, var(--primary-color) 26%, transparent);
}

/* Focus accessible */
#resend-confirm-btn:focus-visible,
#close-confirm-required:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--primary-color) 55%, #fff);
  outline-offset: 2px;
}

/* Desktop: fenêtre centrée et plus compacte */
@media (min-width: 480px){
  #confirm-required.modal{ align-items: center; justify-content: center; padding: 16px; }
  #confirm-required .modal-content{
    width: min(420px, 92vw);
    border-radius: 16px;
  }
}

/* Réduction d’animation si demandée par l’utilisateur */
@media (prefers-reduced-motion: reduce){
  #confirm-required .modal-content{ animation: none; }
}

/* Animation d’apparition */
@keyframes cr-slide-up{
  from{ transform: translateY(14px); opacity: 0; }
  to  { transform: translateY(0);    opacity: 1; }
}

/* Etat de chargement pendant l’envoi du lien */
#resend-confirm-btn.loading {
  position: relative;
  pointer-events: none;
  opacity: .9;
}

#resend-confirm-btn.loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 2px solid color-mix(in srgb, var(--on-primary, #fff) 30%, transparent);
  border-top-color: var(--on-primary, #fff);
  animation: confirm-spin .7s linear infinite;
}

#close-confirm-required:disabled {
  opacity: .7;
  pointer-events: none;
}

@keyframes confirm-spin { to { transform: translateY(-50%) rotate(360deg); } }

/* Pop up confirmation email */
#email-confirm-modal {
  position: fixed;
  inset: 0;
  display: none;               /* montré en JS */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  padding: 1rem;
}

#email-confirm-modal .email-confirm-card {
  background: var(--bg-color);
  border-radius: 18px;
  max-width: 360px;
  width: 100%;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  /* override éventuels de .modal-content / .card */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
}

.email-confirm-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: var(--primary-color);
}

.email-confirm-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-color);
}

.email-confirm-text {
  font-size: 0.85rem;
  line-height: 1.4;
  margin: 0.3rem 0 0.9rem;
  color: var(--text-color);
}

.email-confirm-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

#email-confirm-modal .claim-btn,
#email-confirm-modal .secondary-btn {
  width: 100%;
  justify-content: center;
}

/* Un peu plus compact sur les grands écrans si tu veux */
@media (min-width: 480px) {
  #email-confirm-modal .email-confirm-card {
    max-width: 380px;
  }
}

/* Cercle avatar topbar / profil */
/* Cercle avatar topbar / profil */
.avatar-circle {
  border-radius: 50%;
  background: var(--second-color);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;        /* ne se comprime jamais */
}

.avatar-circle.small {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.avatar-circle.medium {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
}

/* Image dans l’avatar : toujours centrée et carrée */
#user-avatar-circle img,
#profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* Ligne avatar dans le profil */
.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

/* Pop up avatar */
#avatar-modal {
  position: fixed;
  inset: 0;
  display: none; /* montré en JS */
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  padding: 1rem;
}


#avatar-modal .avatar-modal-card {
  max-width: 360px;
  width: 100%;
  padding: 1.6rem 1.2rem 1.2rem;
  border-radius: 16px;
  background: var(--bg-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.avatar-modal-title {
  font-size: 1.1rem;
  margin: 0;
  color: var(--primary-color);
}

.avatar-modal-subtitle {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  color: var(--text-color);
}

/* Grille d’icones dans le pop up */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.avatar-choice {
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--second-color);
  padding: 0;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.avatar-choice img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.avatar-choice.selected {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(144, 93, 232, 0.25);
  transform: scale(1.05);
}

@media (max-width: 480px) {
  .avatar-circle.small {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }
}

/* Carte "Install" dans le corps */
.pwa-card {
  margin: 1rem 0;
  background: var(--primary-color);
  color: #fff;
  border-radius: 20px;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.pwa-card-left h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.pwa-card-left p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
}

.pwa-card-right {
  flex-shrink: 0;
}

.pwa-card-install-btn {
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-color);
  padding: 0.4rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.pwa-card-install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
}

/* Responsive: carte en colonne sur mobile */
@media (max-width: 480px) {
  .pwa-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .pwa-card-right {
    align-self: flex-end;
  }
}

/* Bannière pied de page */
.pwa-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  padding: 0.75rem 0.9rem;
  display: none; /* contrôlé en JS */
  justify-content: center;
  pointer-events: none; /* laisse cliquer sous la zone hors carte */
}

.pwa-banner-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 520px;
  background: var(--primary-color);
  border-radius: 20px 20px 0 0;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  color: #fff;
}

.pwa-banner-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.pwa-banner-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.pwa-banner-link {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  cursor: pointer;
}

.pwa-banner-install-btn {
  border: none;
  border-radius: 999px;
  background: #ffffff;
  color: var(--primary-color);
  padding: 0.35rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* Sur écran large, forme "pill" comme la maquette */
@media (min-width: 600px) {
  .pwa-banner-inner {
    border-radius: 20px;
    flex-direction: row;
    align-items: center;
  }

  .pwa-banner-text {
    flex: 1;
  }
}

/* Popup aide installation PWA */
.pwa-help-card {
  max-width: 360px;
  width: 100%;
  padding: 1.2rem 1rem 1rem;
  border-radius: 16px;
  background: var(--bg-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.pwa-help-card h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.pwa-help-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

.pwa-help-card button {
  margin-top: 0.5rem;
  width: 100%;
  font-size: 0.9rem;
}
