/* ======================================================
   GLOBAL BACKGROUND
====================================================== */
:root {
  --max: 1100px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* ======================================================
   RESET
====================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ======================================================
   TOPBAR
====================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 9999;

  background: rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.back-arrow {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.12);
}

/* ======================================================
   LAYOUT
====================================================== */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 20px 56px;
}

.top {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

/* ======================================================
   TITLE
====================================================== */
.title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
}

h1 {
  font-size: 44px;
  margin: 0;
}

p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 18px;
  color: rgba(255,255,255,.78);
}

/* ======================================================
   APP STORE BADGE (NEW)
====================================================== */
.buttons {
  display: flex;
  margin-top: 28px;
}

.appstore-badge {
  display: inline-flex;
  text-decoration: none;
}

.appstore-badge img {
  height: 66px;
  width: auto;
  display: block;
  transition: opacity .15s ease, transform .12s ease;
}

.appstore-badge:hover img {
  opacity: .9;
}

.appstore-badge:active img {
  transform: translateY(1px);
}

.note {
  font-size: 13px;
  margin-top: 12px;
  color: rgba(255,255,255,.6);
}

/* ======================================================
   IPHONE MOCKUP
====================================================== */
.phone {
  width: 320px;
  height: 660px;
  border-radius: 44px;
  background: #000;
  padding: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  margin-left: auto;
  position: relative;
}

.notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  border-radius: 0 0 18px 18px;
  background: #000;
}

.screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #111;
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ======================================================
   QUOTE
====================================================== */
.quote {
  margin-top: 26px;
  padding: 16px 18px;
  background: rgba(255,255,255,.95);
  border-radius: 12px;
  color: #333;

  text-align: center;
  margin-left: auto;  /* optionnel */
  margin-right: auto; /* optionnel */
}

/* ======================================================
   FEATURES
====================================================== */
.section-title {
  margin: 48px 0 14px;
  font-size: 18px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}

/* ======================================================
   FOOTER
====================================================== */
footer {
  margin-top: 56px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 13px;
  color: rgba(255,255,255,.6);
}

/* ======================================================
   MOBILE
====================================================== */
@media (max-width: 880px) {

  .top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* icône au-dessus */
  .title {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .app-icon {
    width: 64px;
    height: 64px;
  }

  /* badge centré */
  .buttons {
    justify-content: center;
    padding-top: 28px;
  }

  /* phone centré */
  .phone {
    margin: 24px auto 0;
  }

  .features {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 36px;
  }
}
