/* Ayda — pages de téléchargement officielles (ayda.app).
   Identité du brief fondateur : fond blanc, violet Ayda #4C35DE,
   Helvetica, simple, aéré, marges généreuses. */
:root {
  --ayda: #4C35DE;
  --ink: #17141F;
  --muted: #6E6880;
  --line: #E7E2F5;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: #FFFFFF;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 24px 32px;
}
main {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
}
.logo {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  display: block;
}
.signature {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ayda);
  letter-spacing: 0.01em;
}
h1 {
  margin-top: 34px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}
.pitch {
  margin-top: 14px;
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 440px;
}
.badges {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.badge-link {
  display: inline-block;
  border-radius: 10px;
  line-height: 0;
}
.badge-link img {
  height: 58px;
  width: auto;
  display: block;
}
.badge-link.recommended {
  outline: 3px solid var(--ayda);
  outline-offset: 3px;
}
.reco {
  display: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--ayda);
  margin-top: -6px;
}
.reco.visible { display: block; }
.others {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.others h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.others nav {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.others a {
  color: var(--ayda);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  border: 1.5px solid var(--ayda);
  border-radius: 999px;
  padding: 10px 20px;
}
.others a:active { background: var(--ayda); color: #FFFFFF; }
footer {
  margin-top: 48px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 420px) {
  body { padding-top: 36px; }
  h1 { font-size: 26px; }
  .badge-link img { height: 54px; }
}

/* Écran de transition avant la redirection automatique vers le
   store de l'appareil (mobile uniquement, affiché par le script de
   la page) : fond blanc, logo en fondu doux, fine barre violette
   qui se remplit pendant le délai de 3 secondes. */
.redirect {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #FFFFFF;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}
.redirect.on { display: flex; }
.redirect-logo {
  width: 124px;
  height: 124px;
  border-radius: 28px;
  display: block;
  opacity: 0;
  transform: scale(0.94);
}
.redirect.on .redirect-logo { animation: ayda-in 900ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.redirect .signature { margin-top: 18px; }
.redirect-text {
  margin-top: 30px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  opacity: 0;
}
.redirect.on .redirect-text { animation: ayda-in 900ms cubic-bezier(0.22, 1, 0.36, 1) 150ms forwards; }
.redirect-bar {
  margin-top: 22px;
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.redirect-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--ayda);
}
.redirect.on .redirect-fill { animation: ayda-fill 2900ms cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes ayda-in { to { opacity: 1; transform: scale(1); } }
@keyframes ayda-fill { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .redirect.on .redirect-logo, .redirect.on .redirect-text { animation-duration: 1ms; }
  .redirect.on .redirect-fill { animation-duration: 2900ms; }
}

/* Pages légales (Politique de confidentialité, Conditions) :
   même identité, colonne de lecture plus large, texte aligné
   à gauche. */
body.legal-page main { max-width: 760px; }
.legal { width: 100%; text-align: left; margin-top: 34px; }
.legal h2 { font-size: 20px; line-height: 1.3; margin: 30px 0 10px; }
.legal p { font-size: 15.5px; line-height: 1.65; color: var(--ink); margin: 10px 0; }
.legal .term { font-weight: 700; margin-top: 18px; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { font-size: 15.5px; line-height: 1.65; margin: 6px 0; }
.legal a { color: var(--ayda); }
.legal .maj { color: var(--muted); font-size: 14.5px; }
