/* Page téléchargement — /apps */
.apps-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, #392800 0%, #aa6900 55%, #ffae00 100%);
  color: #fdf8f0;
  min-height: 220px;
}

.apps-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem 1.75rem;
}

.apps-hero__copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.apps-hero__tagline {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.apps-hero__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(253, 248, 240, 0.92);
}

.apps-hero__hint {
  margin: 1rem 0 0;
  max-width: 34rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(253, 248, 240, 0.78);
}

.apps-hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.apps-hero__logo {
  width: clamp(96px, 14vw, 140px);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  background: #fff;
  padding: 0.65rem;
}

.apps-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
}

.apps-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.45rem 0.95rem;
  border-radius: 10px;
  background: #111;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.apps-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  color: #fff;
}

.apps-badge[hidden] {
  display: none !important;
}

.apps-badge__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.apps-badge__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.apps-badge__text {
  line-height: 1.2;
  text-align: left;
}

.apps-badge__text small {
  display: block;
  font-size: 0.58rem;
  opacity: 0.85;
}

.apps-badge__text strong {
  display: block;
  font-size: 0.92rem;
}

.apps-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.apps-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(4px);
}

.apps-stat__icon {
  display: flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  opacity: 0.92;
}

.apps-stat__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.apps-features-section {
  margin-top: 0.5rem;
}

.apps-features__header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.apps-features__header h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  color: var(--primary, #392800);
}

.apps-features__header p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--text-muted, #6b5d4a);
  font-size: 0.98rem;
  line-height: 1.6;
}

.apps-features {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.apps-feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 14px;
  background: #fdf8f0;
  border: 1px solid rgba(57, 40, 0, 0.08);
  box-shadow: 0 2px 10px rgba(57, 40, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.apps-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(57, 40, 0, 0.08);
  border-color: rgba(170, 105, 0, 0.18);
}

.apps-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  color: var(--primary, #392800);
}

.apps-feature__icon svg {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.apps-feature--restaurants .apps-feature__icon {
  background: linear-gradient(135deg, #fff3d6, #ffe4a8);
  color: #8a5a00;
}

.apps-feature--payment .apps-feature__icon {
  background: linear-gradient(135deg, #e8f4ec, #c8e6d0);
  color: #1f6b3a;
}

.apps-feature--tracking .apps-feature__icon {
  background: linear-gradient(135deg, #e8eef8, #c9d8f0);
  color: #2a5080;
}

.apps-feature--rewards .apps-feature__icon {
  background: linear-gradient(135deg, #fce8ef, #f5c8d8);
  color: #8a3050;
}

.apps-feature__body {
  min-width: 0;
}

.apps-feature__body h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--primary, #392800);
}

.apps-feature__body p {
  margin: 0;
  color: var(--text-muted, #6b5d4a);
  font-size: 0.95rem;
  line-height: 1.55;
}

.apps-showcase {
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(57, 40, 0, 0.08);
  box-shadow: 0 8px 28px rgba(57, 40, 0, 0.08);
}

.apps-showcase__img {
  display: block;
  width: 100%;
  height: clamp(220px, 42vw, 450px);
  object-fit: cover;
  object-position: center;
}

@media (min-width: 640px) {
  .apps-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .apps-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 1.25rem;
  }

  .apps-hero__lead,
  .apps-hero__hint {
    margin-inline: auto;
  }

  .apps-badges,
  .apps-stats {
    justify-content: center;
  }
}

@media (min-width: 960px) {
  .apps-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .apps-feature {
    padding: 1.25rem 1.35rem;
  }
}
