/* Hypervisible : démonstration publique /demo/ (site/captures/exemple-page.mjs). Le tableau de bord vient de
   tableau.css et accueil.css ; ce fichier ne porte que le bandeau « données d'exemple », la recommandation et la
   lecture. Aucune couleur littérale : jetons de tokens-marque.css, dérivés par color-mix(). */

/* ---------- Bandeau : la démonstration se dit avant tout chiffre ---------- */
.demo-bandeau {
  border-bottom: 1px solid color-mix(in srgb, var(--attention) 30%, transparent);
  background: color-mix(in srgb, var(--attention-fond) 70%, var(--fond));
}
.demo-bandeau-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 12px; font-size: 14px; line-height: 1.5; }
.demo-bandeau-in > .ic { width: 18px; height: 18px; color: var(--attention); }
.demo-bandeau-in p { flex: 1 1 32ch; color: var(--encre-2); }
.demo-bandeau-in strong { color: var(--encre); font-weight: var(--graisse-forte); }
.demo-bandeau .lien-fleche { white-space: nowrap; }

/* ---------- En-tête ---------- */
.demo-resume {
  margin-top: 20px; max-width: 64ch; padding: 16px 20px; border-radius: 0 var(--rayon-2) var(--rayon-2) 0;
  background: var(--voile-1); border-left: 2px solid var(--bleu); font-size: 16px; line-height: 1.6; color: var(--encre-lecture); text-wrap: pretty;
}
.demo-tableau .tete-section .chapeau { max-width: 62ch; }

/* ---------- Recommandation ---------- */
.reco { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: clamp(32px, 4vw, 48px); }
.reco-pages { display: grid; gap: 12px; counter-reset: page; }
.reco-page {
  position: relative; display: grid; gap: 8px; padding: 18px 20px 18px 56px; border-radius: var(--rayon-4);
  background: var(--panneau); border: 1px solid var(--trait); box-shadow: var(--trait-lumiere);
  counter-increment: page; transition: border-color var(--duree-rapide) var(--courbe), transform var(--duree-rapide) var(--courbe);
}
.reco-page::before {
  content: counter(page); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 50%; background: var(--voile-3); color: var(--encre); font-size: 12px; font-weight: var(--graisse-forte); font-variant-numeric: tabular-nums;
}
.reco-page:hover { border-color: var(--trait-fort); transform: translateY(-1px); }
.reco-page-titre { font-size: 16.5px; font-weight: var(--graisse-moyenne); line-height: 1.35; color: var(--encre); }
.reco-page-adresse { font-family: var(--police-mono); font-size: 12.5px; color: var(--encre-2); overflow-wrap: anywhere; }
.reco-page-adresse span { color: var(--encre-3); }
.reco-page-lue { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--encre-2); }
.reco-pastilles { display: inline-flex; gap: 5px; }
.reco-page-nomme .jeton { white-space: normal; height: auto; min-height: 26px; padding-block: 3px; }

.reco-faire {
  align-self: start; padding: 24px; border-radius: var(--rayon-4);
  background: color-mix(in srgb, var(--panneau) 90%, var(--bleu)); border: 1px solid var(--bleu-bord); box-shadow: var(--trait-lumiere);
}
.reco-faire ol { display: grid; gap: 14px; margin-top: 16px; counter-reset: etape; }
.reco-faire li { position: relative; padding-left: 34px; font-size: 15px; line-height: 1.6; color: var(--encre-lecture); counter-increment: etape; }
.reco-faire li::before {
  content: counter(etape); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px;
  border-radius: 50%; background: var(--bleu); color: var(--encre); font-size: 11.5px; font-weight: var(--graisse-forte);
}
.reco-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--trait); font-size: 13.5px; line-height: 1.55; color: var(--encre-2); }

/* ---------- Lecture ---------- */
.demo-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: clamp(28px, 4vw, 44px); }
.demo-points li { padding: 22px; border-radius: var(--rayon-4); background: var(--voile-1); border: 1px solid var(--trait); }
.demo-points p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--encre-2); }
.demo-methode { margin-top: 24px; }

@media (min-width: 900px) {
  .reco { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }
  .demo-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width: 560px) {
  .reco-page { padding: 16px 16px 16px 50px; }
  .reco-page::before { left: 14px; top: 16px; }
  .reco-faire { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .reco-page { transition: none; }
  .reco-page:hover { transform: none; }
}
