/* LesVraisRabais — bouton « Installer l'application » et guide d'installation (12 nov. 2026) */

.bouton-installer {
  width: 100%; font: inherit; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, #1F8F4E 0%, #157A3F 100%);
  border-color: #2FBF6B; color: #FFFFFF;
}
.bouton-installer .icone { color: #FFFFFF; }
.bouton-installer .sous-titre { color: #E3F7EA; font-weight: 600; }
.bouton-installer .fleche { background: #FFFFFF; color: #157A3F; border-color: #FFFFFF; }
.bouton-installer:hover { transform: translateY(-2px); border-color: #FFFFFF; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); }
.bouton-installer:active { transform: translateY(0); }
.bouton-installer[hidden] { display: none; }

/* ---------- Feuille du guide ---------- */
.inst-fond {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(5, 9, 18, .72);
  display: flex; align-items: flex-end; justify-content: center;
  animation: inst-fondu .2s ease both;
}
.inst-fond[hidden] { display: none; }
@keyframes inst-fondu { from { opacity: 0; } to { opacity: 1; } }

.inst-feuille {
  position: relative; width: min(560px, 100%); max-height: 92vh; overflow: auto;
  background: var(--carte-2, #1E2637); color: var(--texte, #FFF);
  border: 1.5px solid var(--bordure, #2C3650); border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  animation: inst-monte .28s cubic-bezier(.2, .8, .2, 1) both;
}
/* place pour la flèche du bas */
.inst-fond.fleche-bas .inst-feuille { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
@media (min-width: 700px) {
  .inst-fond { align-items: center; }
  .inst-feuille { border-radius: 22px; border-bottom: 1.5px solid var(--bordure, #2C3650); }
}
@keyframes inst-monte { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

.inst-fermer {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--bordure, #2C3650); background: var(--fond, #101725); color: #FFF;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.inst-tete { display: flex; align-items: center; gap: 14px; margin: 0 44px 16px 0; }
.inst-tete img { width: 58px; height: 58px; border-radius: 14px; background: #FFF; flex: 0 0 auto; }
.inst-tete h2 { margin: 0; font-size: 1.3rem; line-height: 1.2; }
.inst-tete p { margin: 3px 0 0; color: var(--texte-2, #A9B8D3); font-size: .98rem; }

.inst-principal {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  padding: 16px; border: 0; border-radius: 14px; cursor: pointer; text-decoration: none;
  background: #1F8F4E; color: #FFF; font: inherit; font-size: 1.15rem; font-weight: 800;
  box-shadow: 0 6px 18px rgba(31, 143, 78, .35);
}
.inst-principal svg { width: 24px; height: 24px; }
.inst-principal:active { transform: scale(.98); }
.inst-ou { text-align: center; color: var(--texte-2, #A9B8D3); margin: 16px 0 10px; font-size: .95rem; }

.inst-etapes { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: etape; }
.inst-etapes li {
  counter-increment: etape;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center;
  background: var(--fond, #101725); border: 1px solid var(--bordure, #2C3650); border-radius: 14px; padding: 12px 14px;
  font-size: 1.05rem; line-height: 1.35;
}
.inst-etapes li::before {
  content: counter(etape);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--or, #FFBE00); color: var(--fond, #101725); font-weight: 800;
}
.inst-ico {
  display: inline-grid; place-items: center; vertical-align: -6px;
  width: 30px; height: 30px; margin: 0 3px; border-radius: 8px; background: #FFFFFF; color: #0A84FF;
}
.inst-ico svg { width: 20px; height: 20px; }
.inst-note { margin: 14px 0 0; color: var(--texte-2, #A9B8D3); font-size: .92rem; line-height: 1.4; }

/* flèche animée qui montre où se trouve le bouton du navigateur */
.inst-indice {
  position: fixed; z-index: 9001; pointer-events: none;
  width: 54px; height: 54px; color: var(--or, #FFBE00);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6));
}
.inst-indice svg { width: 100%; height: 100%; }
.inst-indice.bas { bottom: calc(6px + env(safe-area-inset-bottom)); left: calc(50% - 27px); animation: inst-bas 1s ease-in-out infinite; }
.inst-indice.haut-droite { top: 6px; right: 10px; animation: inst-haut 1s ease-in-out infinite; }
.inst-indice.haut-droite svg { transform: rotate(180deg); }
@keyframes inst-bas { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes inst-haut { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.inst-merci {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 9002; background: #1F8F4E; color: #FFF; padding: 12px 18px; border-radius: 12px;
  font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); animation: inst-fondu .2s ease both;
}
@media (prefers-reduced-motion: reduce) {
  .inst-fond, .inst-feuille, .inst-indice, .inst-merci { animation: none; }
}
