/* ===== INSTALLER L'APPLICATION ===== */

.install-section {
  background: var(--green-dark);
  color: #fff;
  padding: 96px 0;
  overflow: hidden;
  scroll-margin-top: 90px;
}

.install-container {
  width: 92%;
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 64px;
  align-items: center;
}

.install-copy h2 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  max-width: 17ch;
  margin-bottom: 20px;
}

.install-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  max-width: 52ch;
  margin-bottom: 32px;
}

/* Onglets appareil */
.install-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 40px;
  background: rgba(0,0,0,0.22);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.install-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 40px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.install-tabs button:hover { color: #fff; }

.install-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--green-dark);
}

.install-tabs button:focus-visible,
.install-steps a:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 3px;
}

.install-panel { min-height: 150px; }

/* Étapes d'installation : une vraie séquence */
.install-steps {
  list-style: none;
  counter-reset: install;
  display: grid;
  gap: 16px;
  max-width: 50ch;
}

.install-steps li {
  counter-increment: install;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: baseline;
  color: rgba(255,255,255,0.9);
}

.install-steps li::before {
  content: counter(install);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-light);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-2px);
}

.install-steps a {
  color: #fff;
  font-weight: 700;
  text-underline-offset: 3px;
}

.install-steps i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.14);
  font-size: 0.8rem;
  vertical-align: middle;
}

/* Téléphone illustratif */
.install-visual {
  display: flex;
  justify-content: center;
}

.install-phone {
  position: relative;
  width: 270px;
  aspect-ratio: 9 / 18.5;
  border-radius: 44px;
  background: #003d1e;
  padding: 14px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.12), 0 40px 80px rgba(0,0,0,0.35);
  transform: rotate(-4deg);
}

.install-phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  border-radius: 20px;
  background: #002613;
  z-index: 2;
}

.install-phone-screen {
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(170deg, #0d7a42 0%, #004a24 100%);
  padding: 64px 20px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 72px;
  gap: 14px 16px;
  align-content: start;
}

.install-app-ghost {
  width: 52px;
  height: 52px;
  justify-self: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
}

.install-app-real {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.install-app-real img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(89,174,52,0.55), 0 8px 18px rgba(0,0,0,0.3);
  animation: install-pop .7s cubic-bezier(.34,1.56,.64,1) .3s both;
}

.install-app-real small {
  font-size: 0.62rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

@keyframes install-pop {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .install-app-real img { animation: none; }
  .install-tabs button { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .install-section { padding: 64px 0; }

  .install-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .install-copy h2 { font-size: 1.9rem; }

  .install-visual { order: -1; }

  .install-phone {
    width: 200px;
    border-radius: 34px;
    padding: 10px;
  }

  .install-phone-notch { top: 18px; width: 56px; height: 16px; }

  .install-phone-screen {
    border-radius: 26px;
    padding: 48px 12px 12px;
    grid-auto-rows: 56px;
    gap: 10px;
  }

  .install-app-ghost,
  .install-app-real img { width: 40px; height: 40px; border-radius: 11px; }
}

@media (max-width: 480px) {
  .install-tabs { display: flex; }
  .install-tabs button { flex: 1; justify-content: center; padding: 10px 12px; }
}
