/* Composants réutilisables : boutons, badges stores, cartes, étapes, FAQ, téléphone. */

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease,
    transform 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--ink-faint);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

/* ---------- Badges stores ---------- */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Les deux badges officiels n'ont pas la même marge optique interne : on cale
   sur la hauteur et on laisse la largeur suivre le ratio de chacun. */
.stores a {
  display: block;
  transition: transform 140ms ease;
}

.stores a:hover {
  transform: translateY(-1px);
}

.stores img {
  height: 52px;
  width: auto;
}

/* Le badge Google porte plus de marge interne que celui d'Apple : à hauteur
   égale il paraît plus gros, on le rattrape de quelques pixels. */
.stores img[src$='.svg'] {
  height: 48px;
}

/* ---------- Cartes de contenu ---------- */

.feature-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
}

.feature-card p:not([class]) {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- Étapes ---------- */

.step {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.step__num {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.step p:not([class]) {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink-faint);
  transition: transform 160ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p:not([class]) {
  padding-bottom: 1.2rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---------- Téléphone ---------- */

/* La coque est dessinée ici, pas découpée dans la capture : elle reste nette à
   toute taille et aucun pixel du fond d'origine ne subsiste dans les coins.
   Le rayon est exprimé en pourcentages horizontal / vertical pour rester
   circulaire quelle que soit la taille rendue (12 % de la largeur = 6,4 % de la
   hauteur, au ratio du device). L'arrondi de la dalle, lui, est porté par le
   canal alpha de l'image (cf. tools/gen-assets.sh). */
.device {
  padding: 3.4%;
  background: linear-gradient(160deg, #262f33 0%, #0b1012 100%);
  border-radius: 12% / 6.4%;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.device__screen {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Notification (réplique) ---------- */

/* Gabarit d'une bannière push : coins très arrondis, fond clair, ombre portée
   marquée — reconnaissable sans imiter précisément iOS ou Android. */
.notif {
  max-width: 360px;
  margin-inline: auto;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.notif__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.notif__head img {
  border-radius: 5px;
}

.notif__app {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.notif__time {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.notif__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.notif__body {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .stores a,
  .faq-item summary::after {
    transition: none;
  }
}
