/*
 * Pages d'exemples (refonte du 16 octobre 2026, demande d'Alexandre : « plus dynamique, simple et accrocheur — télécharger un
 * fichier n'est pas accrocheur »). Mêmes repères que l'accueil (1a-accueil.css) : haut BLEU PROFOND quadrillé (`au-hero`),
 * Inter, boutons `au-button`. Trois pages — la liste (deux grandes cartes), la page d'un exemple (le dossier qui se lit en
 * défilant) et la lecture « comme le client » — et rien d'autre. Les mouvements (apparition, tracé du schéma) sont en CSS pur,
 * déclenchés par le contrôleur `home-stage` de l'accueil (is-waiting → is-playing, UNE fois), et absents sous « mouvement
 * réduit » : la page est alors immobile et complète.
 */

/* ---- Haut bleu ------------------------------------------------------------------------------------------ */

.ex-hero { padding-bottom: 128px; }
.ex-hero h1 { font-size: var(--ln-text-2xl); max-width: 20ch; margin-left: auto; margin-right: auto; }
.ex-hero--example h1 { font-size: var(--ln-text-display); max-width: 26ch; }
.ex-hero--example { padding-bottom: 124px; }
.ex-hero--example .au-hero__lead { max-width: 46rem; font-size: var(--ln-text-md); }
.ex-hero--report { padding-bottom: 56px; }
.ex-hero--report h1 { font-size: var(--ln-text-xl); max-width: 30ch; }
.ex-hero--report .au-hero__lead { font-size: var(--ln-text-base); }
/* Nature et profil de l'exemple : une ligne d'information (jamais un surtitre en capitales, 22 octobre 2026). */
.ex-hero__label { margin: 0 0 var(--sp-3); font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-hero-accent); }
.ex-big-button { min-height: 54px; padding: 12px 28px; font-size: var(--ln-text-md); }
.ex-big-button .ln-icon { width: 18px; height: 18px; }

.ex-paper { padding-bottom: 0; }

/* ---- /exemples : deux grandes cartes ---------------------------------------------------------------------- */

.ex-cards {
  position: relative; max-width: 1160px; margin: -92px auto 0; padding: 0 var(--ln-gutter);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
}
.ex-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 28px;
  background: var(--ln-surface); border: 1px solid var(--ln-line); border-radius: 18px; box-shadow: 0 24px 60px var(--ln-shadow-stage);
}
.ex-card:has(.ex-card__cta:focus-visible) { outline: 3px solid var(--ln-accent); outline-offset: 3px; }
.ex-card__top { display: grid; gap: 6px; }
/* Un TYPE s'écrit, il n'est pas une pastille d'état : pictogramme et mot en gras. */
.ex-card__profile { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ln-text-base); font-weight: 700; color: var(--ln-accent); }
.ex-card__profile .ln-icon { width: 20px; height: 20px; }
/* Nature et « fictif » : une ligne d'information, plus un surtitre en capitales (22 octobre 2026). */
.ex-card__kind { font-size: var(--ln-text-sm); font-weight: 500; color: var(--ln-muted); }
.ex-card h2 { margin: 0; font-size: var(--ln-text-lg); line-height: 1.22; letter-spacing: -0.02em; color: var(--ln-title); }
.ex-card__figure { margin: 6px 0 0; display: grid; gap: 2px; }
.ex-card__figure small { font-size: var(--ln-text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ln-muted); }
.ex-card__figure strong { font-size: var(--ln-text-figure-fluid); line-height: 1.12; letter-spacing: -0.03em; color: var(--ln-accent-strong); font-variant-numeric: tabular-nums; }
.ex-card__facts { margin: 0; font-size: var(--ln-text-base); font-weight: 600; color: var(--ln-ink); font-variant-numeric: tabular-nums; }
.ex-card__schema {
  height: 200px; margin-top: 6px; padding: 14px; border: 1px solid var(--ln-line); border-radius: 12px; overflow: hidden;
  background-color: var(--ln-surface); background-image: linear-gradient(var(--ln-stage-grid-strong) 1px, transparent 1px), linear-gradient(90deg, var(--ln-stage-grid-strong) 1px, transparent 1px); background-size: 22px 22px;
}
.ex-card__schema img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ex-card__old { margin: 0; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.ex-card__cta { align-self: flex-start; min-height: 52px; padding: 12px 28px; font-size: var(--ln-text-md); margin-top: auto; }
/* La carte entière est cliquable : le lien s'étend sur elle. */
.ex-card__cta::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.ex-note { max-width: var(--ln-measure-public); margin: 22px auto 0; padding: 0 var(--ln-gutter); text-align: center; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.ex-empty { max-width: 1160px; margin: 0 auto; padding: 56px var(--ln-gutter) 0; text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .ex-card { transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease; }
  .ex-card:hover { transform: translateY(-4px); border-color: var(--ln-sky-line); box-shadow: 0 30px 70px var(--ln-shadow-stage-lift); }
  .ex-card:hover .ex-card__cta { background: var(--ln-accent-strong); border-color: var(--ln-accent-strong); }
  .ex-card__schema img { transition: transform 400ms ease; }
  .ex-card:hover .ex-card__schema img { transform: scale(1.04); }
}

/* ---- Page d'un exemple ------------------------------------------------------------------------------------ */

.ex-notices { max-width: 1240px; margin: 0 auto; padding: 24px var(--ln-gutter) 0; display: grid; gap: 10px; }
.ex-notices p { margin: 0; }

.ex-stage { position: relative; max-width: 1240px; margin: -92px auto 0; padding: 0 var(--ln-gutter); }
.ex-notices + .ex-stage { margin-top: 24px; }
.ex-stage__card { background: var(--ln-surface); border: 1px solid var(--ln-line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px var(--ln-shadow-stage); }
.ex-stage__title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 22px 28px 0; }
.ex-stage__title h2 { margin: 0; font-size: var(--ln-text-xs); line-height: 1.4; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ln-node-muted); font-weight: 600; }
.ex-stage__open { display: inline-flex; align-items: center; gap: 6px; font-size: var(--ln-text-sm); font-weight: 600; text-decoration: none; color: var(--ln-accent); }
.ex-stage__open:hover { color: var(--ln-accent-strong); text-decoration: underline; text-underline-offset: 4px; }
.ex-stage__open .ln-icon { width: 14px; height: 14px; }
.ex-schema {
  position: relative; margin: 12px 0 0; padding: 18px 28px 26px; overflow-x: auto; overscroll-behavior-x: contain;
  background-image: linear-gradient(var(--ln-stage-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ln-stage-grid) 1px, transparent 1px);
  background-size: 22px 22px;
}
.ex-schema img { display: block; width: 100%; min-width: 760px; height: auto; }
.ex-stage__hint { display: none; margin: 0; padding: 0 28px 18px; font-size: var(--ln-text-sm); color: var(--ln-muted); }

/* Le tracé du schéma : il se dévoile de gauche à droite, UNE fois, derrière un fil lumineux (même bleu que les faisceaux de
   l'accueil). Le fil est un pseudo-élément du cadre, jamais du schéma lui-même (une image SVG ne s'anime pas de l'extérieur). */
@media (prefers-reduced-motion: no-preference) {
  .ex-stage__card.is-waiting { opacity: 0; transform: translateY(18px); }
  .ex-stage__card.is-playing { animation: ex-rise 700ms ease both; }
  .ex-stage__card.is-waiting .ex-schema img { clip-path: inset(0 100% 0 0); }
  .ex-stage__card.is-playing .ex-schema img { animation: ex-draw 1700ms cubic-bezier(0.4, 0, 0.2, 1) 350ms both; }
  .ex-stage__card.is-playing .ex-schema::after {
    content: ""; position: absolute; top: 12px; bottom: 12px; left: 28px; width: 3px; border-radius: 2px; pointer-events: none; opacity: 0;
    background: linear-gradient(180deg, var(--ln-beam-clear), var(--ln-beam) 30%, var(--ln-beam) 70%, var(--ln-beam-clear)); box-shadow: 0 0 14px var(--ln-beam-glow-strong);
    animation: ex-sweep 1700ms cubic-bezier(0.4, 0, 0.2, 1) 350ms both;
  }
}
@keyframes ex-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ex-sweep { 0% { opacity: 1; left: 28px; } 92% { opacity: 1; } 100% { opacity: 0; left: calc(100% - 31px); } }
@keyframes ex-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.ex-section { max-width: 1240px; margin: 0 auto; padding: 68px var(--ln-gutter) 0; }
.ex-section h2 { margin: 0 0 8px; font-size: var(--ln-text-title); line-height: 1.16; letter-spacing: -0.03em; font-weight: 700; }
.ex-section__lead { margin: 0 0 26px; max-width: 40rem; color: var(--ln-muted); }

/* Quatre tuiles : le budget (le plus long) prend un peu plus de place. */
.ex-tiles { display: grid; grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.ex-tile {
  position: relative; min-width: 0; padding: 22px 22px 20px; background: var(--ln-surface); border: 1px solid var(--ln-line); border-radius: 16px;
  box-shadow: 0 8px 24px var(--ln-shadow-card);
}
.ex-tile--budget { background: linear-gradient(180deg, var(--ln-sky-faint), var(--ln-surface)); border-color: var(--ln-ai-line); }
.ex-tile__icon { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ln-sky); color: var(--ln-node-icon); }
.ex-tile__icon .ln-icon { width: 17px; height: 17px; }
.ex-tile dt { margin: 0 0 10px; padding-right: 44px; font-size: var(--ln-text-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ln-muted); }
.ex-tile dd { margin: 0; }
.ex-tile dd strong { display: block; font-size: var(--ln-text-title); line-height: 1.12; letter-spacing: -0.03em; color: var(--ln-title); font-variant-numeric: tabular-nums; }
.ex-tile--budget dd strong { color: var(--ln-accent-strong); }
.ex-tile dd small { display: block; margin-top: 8px; font-size: var(--ln-text-sm); line-height: 1.4; color: var(--ln-muted); }

.ex-cards3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ex-cards3--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ex-decision { position: relative; min-width: 0; margin: 0; padding: 24px 24px 22px; background: var(--ln-surface); border: 1px solid var(--ln-line); border-radius: 16px; box-shadow: 0 8px 24px var(--ln-shadow-card); }
.ex-decision__n { display: block; margin-bottom: 12px; font-size: var(--ln-text-xl); line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--ln-ai-line); }
.ex-decision h3, .ex-alt h3 { margin: 0 0 8px; font-size: var(--ln-text-md); line-height: 1.32; font-weight: 650; color: var(--ln-title); }
.ex-decision p, .ex-alt p { margin: 0; font-size: var(--ln-text-sm); line-height: 1.55; color: var(--ln-muted); }
.ex-alt { margin: 0; padding: 22px 24px; min-width: 0; background: var(--ln-surface-band); border: 1.5px dashed var(--ln-alt-line); border-radius: 16px; }
.ex-alt__icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--ln-neutral-bg); color: var(--ln-muted); }
.ex-alt__icon .ln-icon { width: 16px; height: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .is-waiting > .ex-reveal { opacity: 0; transform: translateY(14px); }
  .is-playing > .ex-reveal { animation: ex-rise 600ms ease both; animation-delay: calc(var(--i, 0) * 120ms); }
}

/* Le grand appel : on lit le dossier comme le client le lit. */
.ex-read {
  position: relative; isolation: isolate; overflow: hidden; max-width: min(1156px, calc(100% - 2 * var(--ln-gutter))); margin: 72px auto 0; padding: 40px 44px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 36px; color: var(--ln-on-dark);
  border-radius: 20px; background: radial-gradient(ellipse 60% 120% at 90% 110%, var(--ln-hero-halo) 0, var(--ln-hero-halo-clear) 70%), linear-gradient(180deg, var(--ln-hero-deep) 0%, var(--ln-hero-end) 100%);
  box-shadow: 0 24px 60px var(--ln-shadow-stage-lift);
}
.ex-read::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--ln-hero-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ln-hero-grid) 1px, transparent 1px); background-size: 44px 44px;
}
.ex-read h2 { margin: 0 0 8px; color: var(--ln-on-dark); font-size: var(--ln-text-title); line-height: 1.16; letter-spacing: -0.03em; }
.ex-read p { margin: 0; max-width: 34rem; color: var(--ln-hero-lead); }

/* Les fichiers : un repli discret, jamais la liste principale. */
.ex-files { max-width: 1240px; margin: 40px auto 0; padding: 0 var(--ln-gutter); }
.ex-files > summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 2px; font-size: var(--ln-text-sm); font-weight: 600; color: var(--ln-muted);
  list-style: none;
}
.ex-files > summary::-webkit-details-marker { display: none; }
.ex-files > summary:hover { color: var(--ln-accent); }
.ex-files > summary .ln-icon { width: 16px; height: 16px; }
.ex-files > summary::after { content: "▾"; font-size: var(--ln-text-xs); }
.ex-files[open] > summary::after { content: "▴"; }
.ex-files__body { margin-top: 10px; padding: 16px 18px; border: 1px solid var(--ln-line); border-radius: 12px; background: var(--ln-surface-band); }
.ex-files__caption { margin: 0 0 10px; font-size: var(--ln-text-sm); color: var(--ln-muted); }
.ex-files__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ex-files__list li { margin: 0; }
.ex-files__list a {
  display: inline-flex; gap: 10px; align-items: baseline; padding: 7px 12px; border: 1px solid var(--ln-line); border-radius: 8px;
  background: var(--ln-surface); color: var(--ln-ink); font-size: var(--ln-text-sm); text-decoration: none;
}
.ex-files__list a:hover { border-color: var(--ln-accent); color: var(--ln-accent); }
.ex-files__list span { color: var(--ln-muted); font-size: var(--ln-text-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* L'appel final est une bande pleine largeur (22 octobre 2026) : plus de largeur propre aux exemples. */
.ex-paper .au-final { margin-top: var(--sp-16); }

/* ---- Lecture « comme le client » -------------------------------------------------------------------------- */

.ex-report { padding-top: 32px; padding-bottom: 8px; }
.ex-report .ex-files { padding: 0; margin-bottom: 40px; }

/* ---- Petits écrans ---------------------------------------------------------------------------------------- */

@media (max-width: 1000px) {
  .ex-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ex-tile--budget { grid-column: 1 / -1; }
  .ex-cards3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ex-cards { grid-template-columns: minmax(0, 1fr); margin-top: -64px; }
  .ex-stage { margin-top: -64px; }
  .ex-stage__hint { display: block; }
  .ex-cards3--two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .ex-hero, .ex-hero--example { padding-bottom: 88px; }
  .ex-hero--report { padding-bottom: 40px; }
  .ex-hero h1 { font-size: var(--ln-text-xl); }
  .ex-hero--example h1 { font-size: var(--ln-text-title); }
  .ex-hero--example .au-hero__lead { font-size: var(--ln-text-base); }
  .ex-hero--report h1 { font-size: var(--ln-text-title-sm); }
  .ex-big-button { width: 100%; }
  .ex-card { padding: 22px 20px; }
  .ex-card h2 { font-size: var(--ln-text-lead); }
  .ex-card__cta { width: 100%; }
  .ex-card__schema { height: 150px; padding: 10px; }
  .ex-tiles { grid-template-columns: minmax(0, 1fr); }
  .ex-tile dd strong { font-size: var(--ln-text-title-sm); }
  .ex-section { padding-top: 52px; }
  .ex-section h2 { font-size: var(--ln-text-title-sm); }
  .ex-stage__title { padding: 18px 18px 0; }
  .ex-schema { padding: 14px 18px 20px; }
  .ex-stage__hint { padding: 0 18px 16px; }
  .ex-read { margin-top: 52px; padding: 28px 22px; }
  .ex-read h2 { font-size: var(--ln-text-lg); }
}

@media print {
  .ex-hero, .ex-files { display: none !important; }
}
