/*
 * 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: 46px; max-width: 20ch; margin-left: auto; margin-right: auto; }
.ex-hero--example h1 { font-size: 40px; max-width: 26ch; }
.ex-hero--example { padding-bottom: 124px; }
.ex-hero--example .au-hero__lead { max-width: 46rem; font-size: 17px; }
.ex-hero--report { padding-bottom: 56px; }
.ex-hero--report h1 { font-size: 34px; max-width: 30ch; }
.ex-hero--report .au-hero__lead { font-size: 16px; }
.ex-hero .au-kicker { flex-wrap: wrap; justify-content: center; }
.ex-hero .au-kicker::before { flex: none; }
.ex-big-button { min-height: 54px; padding: 12px 28px; font-size: 17px; }
.ex-big-button .ln-icon { width: 18px; height: 18px; }

.ex-paper { padding-bottom: 8px; }

/* ---- /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: #fff; border: 1px solid var(--ln-line); border-radius: 18px; box-shadow: 0 24px 60px rgba(11, 23, 64, 0.16);
}
.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: 15px; font-weight: 700; color: var(--ln-accent); }
.ex-card__profile .ln-icon { width: 20px; height: 20px; }
.ex-card__kind { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ln-muted); }
.ex-card h2 { margin: 0; font-size: 24px; 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: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ln-muted); }
.ex-card__figure strong { font-size: clamp(24px, 2.7vw, 34px); 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: 16px; 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: #fff; background-image: linear-gradient(rgba(152, 172, 202, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(152, 172, 202, 0.1) 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: 13px; color: var(--ln-muted); }
.ex-card__cta { align-self: flex-start; min-height: 52px; padding: 12px 28px; font-size: 17px; 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: 1160px; margin: 22px auto 0; padding: 0 var(--ln-gutter); text-align: center; font-size: 14px; 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 rgba(11, 23, 64, 0.22); }
  .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: #fff; border: 1px solid var(--ln-line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(11, 23, 64, 0.16); }
.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: 12px; 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: 14px; 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(rgba(152, 172, 202, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(152, 172, 202, 0.07) 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: 13px; 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, rgba(91, 139, 255, 0), #5b8bff 30%, #5b8bff 70%, rgba(91, 139, 255, 0)); box-shadow: 0 0 14px rgba(91, 139, 255, 0.7);
    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: 32px; 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: #fff; border: 1px solid var(--ln-line); border-radius: 16px;
  box-shadow: 0 8px 24px rgba(21, 36, 72, 0.06);
}
.ex-tile--budget { background: linear-gradient(180deg, #f6f9ff, #fff); border-color: #c7d7ff; }
.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: #eef3ff; color: #3b63c9; }
.ex-tile__icon .ln-icon { width: 17px; height: 17px; }
.ex-tile dt { margin: 0 0 10px; padding-right: 44px; font-size: 12px; 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: 30px; 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: 13px; 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: #fff; border: 1px solid var(--ln-line); border-radius: 16px; box-shadow: 0 8px 24px rgba(21, 36, 72, 0.06); }
.ex-decision__n { display: block; margin-bottom: 12px; font-size: 34px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: #c7d7ff; }
.ex-decision h3, .ex-alt h3 { margin: 0 0 8px; font-size: 17px; line-height: 1.32; font-weight: 650; color: var(--ln-title); }
.ex-decision p, .ex-alt p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ln-muted); }
.ex-alt { margin: 0; padding: 22px 24px; min-width: 0; background: #fbfcfe; border: 1.5px dashed #ccd5e4; 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: #eef1f5; 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: #fff;
  border-radius: 20px; background: radial-gradient(ellipse 60% 120% at 90% 110%, #2a56d9 0, rgba(42, 86, 217, 0) 70%), linear-gradient(180deg, #0b1740 0%, #14286b 100%);
  box-shadow: 0 24px 60px rgba(11, 23, 64, 0.2);
}
.ex-read::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px); background-size: 44px 44px;
}
.ex-read h2 { margin: 0 0 8px; color: #fff; font-size: 30px; line-height: 1.16; letter-spacing: -0.03em; }
.ex-read p { margin: 0; max-width: 34rem; color: #c7d2fe; }

/* 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: 14px; 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: 12px; }
.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: #fbfcfe; }
.ex-files__caption { margin: 0 0 10px; font-size: 13px; 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: #fff; color: var(--ln-ink); font-size: 14px; 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: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.ex-paper .au-final { margin-bottom: 56px; max-width: min(1156px, calc(100% - 2 * var(--ln-gutter))); }

/* ---- 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: 34px; }
  .ex-hero--example h1 { font-size: 30px; }
  .ex-hero--example .au-hero__lead { font-size: 16px; }
  .ex-hero--report h1 { font-size: 26px; }
  .ex-big-button { width: 100%; }
  .ex-card { padding: 22px 20px; }
  .ex-card h2 { font-size: 21px; }
  .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: 26px; }
  .ex-section { padding-top: 52px; }
  .ex-section h2 { font-size: 27px; }
  .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: 25px; }
}

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