/* Aide & tutoriels — styles pages (hub + installation PWA).
   Tokens --ef-* / --sm-* / --nav-* uniquement : AUCUN hex, aucune couleur en dur.
   Réutilise .about-card et .btn-getstarted (shared-components.css, chargé
   globalement). Le pattern d'onglets .match-tabs (match-detail.css) n'étant PAS
   chargé sur ces pages, il est réécrit ici en version tokenisée (.aide-tabs).
   RTL arabe : propriétés logiques (inline-start/end), aucune direction en dur. */

.aide-page {
  max-width: 900px;
}
.aide-tuto {
  max-width: 780px;
}

/* ─── En-tête commun ─── */
.aide-header {
  margin-bottom: var(--ef-space-5);
}
.aide-title {
  font-size: var(--ef-fs-h);
  font-weight: 700;
  color: var(--ef-text);
  margin: 0 0 var(--ef-space-2);
}
.aide-subtitle {
  font-size: var(--ef-fs-body);
  color: var(--ef-text-muted);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   HUB — cartes tutoriels (base .about-card)
   ═══════════════════════════════════════════════════════════════ */
.aide-card {
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
  color: var(--ef-text);
}
.aide-card--live {
  cursor: pointer;
}
/* Carte « bientôt » : atténuée, non cliquable, hover neutralisé. */
.aide-card--soon,
.aide-card.is-soon {
  opacity: .68;
  cursor: not-allowed;
}
.aide-card--soon:hover,
.aide-card.is-soon:hover {
  transform: none;
  box-shadow: var(--ef-shadow); /* neutralise le lift .about-card */
}

/* Badge d'état (l'état est porté par le TEXTE, jamais la couleur seule). */
.aide-badge {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: var(--ef-space-1);
  padding: var(--ef-space-1) var(--ef-space-3);
  border-radius: 20px;
  font-size: var(--ef-fs-meta);
  font-weight: 600;
  margin-bottom: var(--ef-space-3);
}
.aide-badge--live {
  background: var(--ef-success-soft);
  color: var(--ef-success);
}
.aide-badge--soon {
  background: var(--ef-surface-alt);
  color: var(--ef-text-muted);
}

.aide-card-icon {
  margin-bottom: var(--ef-space-3);
}
.aide-card-title {
  font-size: var(--ef-fs-title);
  font-weight: 700;
  color: var(--ef-text);
  margin: 0 0 var(--ef-space-2);
}
.aide-card-resume {
  font-size: var(--ef-fs-body);
  color: var(--ef-text-muted);
  margin: 0 0 var(--ef-space-4);
}
.aide-card-cta {
  margin-block-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ef-space-2);
  font-weight: 600;
  color: var(--ef-primary);
}
.aide-card-cta-icon {
  transition: transform 0.2s ease;
}
.aide-card--live:hover .aide-card-cta-icon,
.aide-card--live:focus-visible .aide-card-cta-icon {
  transform: translateX(var(--ef-space-1));
}
.aide-card--live:focus-visible {
  outline: none;
  box-shadow: var(--nav-focus-ring);
}

/* ═══════════════════════════════════════════════════════════════
   PAGE INSTALLATION (Tuto 3)
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fil d'Ariane ─── */
.aide-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--ef-space-2);
  font-size: var(--ef-fs-meta);
  color: var(--ef-text-muted);
  margin-bottom: var(--ef-space-4);
}
.aide-breadcrumb a {
  color: var(--ef-primary);
  text-decoration: none;
}
.aide-breadcrumb a:hover {
  text-decoration: underline;
}
.aide-breadcrumb-sep {
  font-size: .75em;
  color: var(--ef-text-faint);
}
[dir="rtl"] .aide-breadcrumb-sep {
  transform: scaleX(-1);
}

/* ─── Onglets plateforme (pattern .match-tabs tokenisé) ─── */
.aide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ef-space-2);
  background: var(--ef-surface-alt);
  padding: var(--ef-space-2);
  border-radius: var(--ef-radius);
  margin-bottom: var(--ef-space-4);
}
.aide-tab {
  flex: 1 1 0;
  min-height: 44px; /* cible tactile AA */
  border: none;
  border-radius: var(--ef-radius-sm);
  padding: var(--ef-space-2) var(--ef-space-4);
  background: transparent;
  color: var(--ef-text-muted);
  font-family: var(--ef-font);
  font-weight: 600;
  font-size: var(--ef-fs-body);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ef-space-2);
  transition: all 0.25s ease;
}
.aide-tab:hover {
  color: var(--ef-text);
  background: var(--ef-surface);
}
.aide-tab.active {
  background: var(--ef-surface);
  color: var(--ef-primary);
  box-shadow: var(--ef-shadow);
}
.aide-tab:focus-visible {
  outline: none;
  box-shadow: var(--nav-focus-ring);
}

/* ─── Zone bouton « Installer l'app » ─── */
.aide-install-cta {
  text-align: center;
  margin-bottom: var(--ef-space-4);
}
.aide-install-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--ef-space-2);
}
/* État « déjà installé » : succès, non cliquable. */
.aide-install-btn.is-installed {
  background: var(--ef-success-soft);
  border-color: var(--ef-success);
  color: var(--ef-success);
  cursor: default;
  pointer-events: none;
}
.aide-install-msg {
  margin: var(--ef-space-2) 0 0;
  font-size: var(--ef-fs-meta);
  color: var(--ef-text-muted);
}
.aide-install-hint {
  font-size: var(--ef-fs-meta);
  color: var(--ef-text-muted);
  margin-bottom: var(--ef-space-5);
}

/* ─── Panneau plateforme ─── */
.aide-panel {
  background: var(--ef-surface);
  border: 1px solid var(--ef-border);
  border-radius: var(--ef-radius);
  padding: var(--ef-space-5);
  margin-bottom: var(--ef-space-5);
}
.aide-panel-title {
  font-size: var(--ef-fs-title);
  font-weight: 700;
  color: var(--ef-text);
  margin: 0 0 var(--ef-space-4);
  display: flex;
  align-items: center;
  gap: var(--ef-space-2);
}

/* ─── Étapes numérotées ─── */
.aide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.aide-step {
  display: flex;
  align-items: flex-start;
  gap: var(--ef-space-3);
  padding: var(--ef-space-3) 0;
  border-block-end: 1px solid var(--ef-border-soft);
}
.aide-step:last-child {
  border-block-end: none;
}
.aide-step-num {
  flex-shrink: 0;
  inline-size: 1.6rem;
  block-size: 1.6rem;
  border-radius: 50%;
  background: var(--ef-primary);
  color: var(--ef-surface);
  font-size: var(--ef-fs-meta);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.aide-step-icon {
  flex-shrink: 0;
  color: var(--ef-primary);
  font-size: 1.15rem;
  line-height: 1.4;
}
.aide-step-text {
  font-size: var(--ef-fs-body);
  color: var(--ef-text);
  line-height: 1.5;
}

/* ─── Slot capture (placeholder neutre, jamais d'image cassée) ─── */
.aide-shot {
  margin-top: var(--ef-space-4);
}
.aide-shot--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ef-space-2);
  aspect-ratio: 16 / 9;
  border: 1px dashed var(--ef-border-strong);
  border-radius: var(--ef-radius-sm);
  color: var(--ef-text-faint);
  background: var(--ef-surface-alt);
}
.aide-shot--empty > i {
  font-size: 2rem;
}
.aide-shot-label {
  font-size: var(--ef-fs-meta);
}

/* ─── Pourquoi installer ? ─── */
.aide-why {
  margin-top: var(--ef-space-6);
  padding-top: var(--ef-space-5);
  border-block-start: 1px solid var(--ef-border);
}
.aide-why-title {
  font-size: var(--ef-fs-title);
  font-weight: 700;
  color: var(--ef-text);
  margin: 0 0 var(--ef-space-4);
}
.aide-why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--ef-space-4);
}
.aide-why-item {
  display: flex;
  align-items: flex-start;
  gap: var(--ef-space-3);
}
.aide-why-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--ef-primary);
}
.aide-why-item-title {
  font-size: var(--ef-fs-body);
  font-weight: 700;
  color: var(--ef-text);
  margin: 0 0 var(--ef-space-1);
}
.aide-why-item-text {
  font-size: var(--ef-fs-meta);
  color: var(--ef-text-muted);
  margin: 0;
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
  .aide-why-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── Réduction de mouvement ─── */
@media (prefers-reduced-motion: reduce) {
  .aide-card,
  .aide-card-cta-icon,
  .aide-tab {
    transition: none;
  }
}
