/* Figma u6OqaZteknbzOo6p4bguYu / five rubric families. Opt-in display atelier only. */
:is(.prg-rubric-showcase,.prg-reader) {
  --demo-ink: color-mix(in srgb, var(--fl-election-accent) 23%, #081724);
  --demo-on-image: #fff;
  --demo-shadow: color-mix(in srgb, var(--fl-election-accent) 13%, transparent);
  --demo-canvas: color-mix(in srgb, var(--fl-election-accent) 3%, var(--fl-election-surface));
  container: rubric-showcase / inline-size;
  min-width: 0;
}
body.night-mode :is(.prg-rubric-showcase,.prg-reader) {
  --prg-accent: color-mix(in srgb, var(--fl-election-light) 88%, var(--fl-election-text));
}
:is(.prg-rubric-showcase,.prg-reader) [hidden] { display: none !important; }
.prg-demo-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 0; }
.prg-demo-intro > div { flex: 1; min-width: 0; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-intro h1 { font-size: clamp(28px, 3vw, 42px); line-height: 1.2; margin: 8px 0 16px; }
.prg-demo-toolbar { padding: 20px; border: 1px solid var(--fl-election-border); border-radius: 20px; background: var(--fl-election-surface); }
.prg-demo-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px; }
.prg-demo-control { display: flex; flex-direction: column; gap: 8px; margin: 0; font-size: 12px; font-weight: 600; }
.prg-demo-control select { width: 100%; padding: 8px 10px; font: 400 13px/1.5 var(--fl-font-family-body, Poppins, sans-serif); }
.prg-demo-toolbar__bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-toolbar__bottom p { margin: 0; }
.prg-demo-jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 36px; }
.prg-demo-jumps .prg-btn { background: var(--prg-tint); border-color: transparent; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-family { margin: 0 0 56px; scroll-margin-top: 110px; }
.prg-demo-family__heading { display: flex; gap: 16px; align-items: flex-start; padding: 0 0 20px; }
.prg-demo-family__number { display: grid; place-items: center; flex: 0 0 48px; height: 48px; background: var(--prg-tint); color: var(--prg-accent); border-radius: 16px; font-size: 17px; font-weight: 600; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-family h2 { font-size: 30px; margin: 0 0 8px; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-family__heading p { color: var(--fl-election-muted); margin: 0; }
.prg-demo-variant { padding: 24px; margin-bottom: 24px; border: 1px solid var(--fl-election-border); border-radius: 24px; background: var(--demo-canvas); }
.prg-demo-variant__heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.prg-demo-variant__heading > div { min-width: 0; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-variant__heading h3 { margin: 0 0 8px; font-size: 20px; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-variant__heading p { margin: 0; font-size: 13px; color: var(--fl-election-muted); }
.prg-demo-variant__settings { flex-shrink: 0; padding: 5px 10px; background: var(--fl-election-surface); border-radius: 20px; color: var(--prg-accent); font-size: 11px; font-weight: 600; }
.prg-demo-grid { --demo-columns: 3; display: grid; grid-template-columns: repeat(var(--demo-columns), minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.prg-demo-grid[data-columns="1"] { --demo-columns: 1; }
.prg-demo-grid[data-columns="2"] { --demo-columns: 2; }
.prg-demo-grid[data-columns="3"] { --demo-columns: 3; }
.prg-demo-grid[data-columns="4"] { --demo-columns: 4; }
.prg-demo-variant { --demo-height: 480px; --demo-photo: 220px; --demo-title: 22px; --demo-pad: 24px; --demo-thumb: 140px; }
.prg-demo-variant[data-size="xs"] { --demo-height: 410px; --demo-photo: 150px; --demo-title: 18px; --demo-pad: 18px; --demo-thumb: 100px; }
.prg-demo-variant[data-size="s"] { --demo-height: 440px; --demo-photo: 180px; --demo-title: 20px; --demo-pad: 20px; --demo-thumb: 120px; }
.prg-demo-variant[data-size="l"] { --demo-height: 510px; --demo-photo: 250px; --demo-title: 24px; --demo-pad: 26px; --demo-thumb: 160px; }
.prg-demo-variant[data-size="xl"] { --demo-height: 560px; --demo-photo: 300px; --demo-title: 28px; --demo-pad: 32px; --demo-thumb: 180px; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; min-width: 0; min-height: var(--demo-height);
  border: 1px solid var(--fl-election-border); border-radius: 24px; background: var(--fl-election-surface); color: var(--fl-election-text);
  box-shadow: 0 6px 24px var(--demo-shadow); text-decoration: none; overflow: hidden;
  transition: transform .32s cubic-bezier(.2,.8,.2,1), box-shadow .32s ease, border-color .25s ease;
}
.prg-demo-card__visual { position: relative; isolation: isolate; flex: 0 0 auto; min-height: var(--demo-photo); overflow: hidden; background: var(--prg-tint); }
.prg-demo-card__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.prg-demo-card__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--fl-election-accent); font-size: 80px; line-height: 1; font-weight: 600; opacity: .22; }
.prg-demo-card--no-image .prg-demo-card__visual { background: radial-gradient(ellipse at top right, color-mix(in srgb, var(--fl-election-accent) 30%, transparent), transparent 80%), var(--prg-tint); }
.prg-demo-card__body { position: relative; display: flex; flex: 1; flex-direction: column; gap: 14px; padding: var(--demo-pad); min-width: 0; }
.prg-demo-card__eyebrow { display: block; color: var(--prg-accent); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-card :is(h2,h3) { font-size: var(--demo-title); font-weight: 600; line-height: 1.28; letter-spacing: -.015em; margin: 0; color: inherit; overflow-wrap: anywhere; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-card__summary { color: var(--fl-election-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.prg-demo-card__footer { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 14px; }
.prg-demo-card__count { font-size: 12px; line-height: 1.5; color: var(--fl-election-muted); }
.prg-demo-card__cta { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 30px; background: var(--prg-tint); color: var(--prg-accent); font-size: 12px; font-weight: 600; transition: background-color .25s, color .25s; }
.prg-demo-card__arrow { display: block; flex: 0 0 18px; width: 18px; height: 18px; background: currentColor; mask: url('../images/elections/rubric-arrow.svg') center / 18px 18px no-repeat; -webkit-mask: url('../images/elections/rubric-arrow.svg') center / 18px 18px no-repeat; transition: transform .32s ease; }
:is(.prg-rubric-showcase,.prg-reader) .prg-demo-card:focus-visible { outline: 3px solid var(--fl-election-accent); outline-offset: 5px; }
.prg-demo-card:focus-visible .prg-demo-card__cta { background: var(--prg-accent); color: var(--fl-election-surface); }
.prg-demo-more { margin-top: 24px; }

/* 01 — title in the picture, description always below it. */
[data-style="immersion"] .prg-demo-card { background: var(--demo-ink); color: var(--demo-on-image); }
[data-style="immersion"] .prg-demo-card__visual { display: flex; align-items: flex-end; padding: var(--demo-pad); }
[data-style="immersion"] .prg-demo-card__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgb(4 15 25 / 18%) 25%, rgb(4 15 25 / 88%)); z-index: 0; }
[data-style="immersion"] .prg-demo-card__heading { position: relative; z-index: 1; padding-top: 45px; }
[data-style="immersion"] .prg-demo-card__eyebrow,
[data-style="immersion"] .prg-demo-card__summary,
[data-style="immersion"] .prg-demo-card__count { color: var(--demo-on-image); }
[data-style="immersion"] .prg-demo-card__cta { background: #fff; color: var(--demo-ink); }
[data-rubric-variant="immersion-lumiere"] .prg-demo-card__body { background: var(--fl-election-surface); }
[data-rubric-variant="immersion-lumiere"] :is(.prg-demo-card__summary,.prg-demo-card__count) { color: var(--fl-election-muted); }
[data-rubric-variant="immersion-lumiere"] .prg-demo-card__cta { background: var(--prg-tint); color: var(--prg-accent); }
[data-rubric-variant="immersion-panorama"] .prg-demo-card__body { gap: 8px; }

/* 02 — editorial image framing and alternate content proportions. */
[data-style="editorial"] .prg-demo-card__visual { margin: 12px 12px 0; border-radius: 14px; min-height: calc(var(--demo-photo) * .78); }
[data-rubric-variant="editorial-cartes"] .prg-demo-card__body { border-top: 3px solid var(--fl-election-accent); margin-top: 12px; }

/* 03 — image backgrounds with a stable text scrim and varied grid spans. */
[data-style="mosaique"] .prg-demo-card { color: var(--demo-on-image); background: var(--demo-ink); }
[data-style="mosaique"] .prg-demo-card__visual { position: absolute; inset: 0; min-height: 100%; }
[data-style="mosaique"] .prg-demo-card__body { justify-content: flex-end; padding-top: 130px; background: linear-gradient(180deg, transparent, rgb(4 15 25 / 45%) 40%, rgb(4 15 25 / 94%) 100%); }
[data-style="mosaique"] :is(.prg-demo-card__eyebrow,.prg-demo-card__summary,.prg-demo-card__count) { color: var(--demo-on-image); }
[data-style="mosaique"] .prg-demo-card__footer { margin-top: 0; }
[data-style="mosaique"] .prg-demo-card__cta { background: #fff; color: var(--demo-ink); }
[data-rubric-variant="mosaique-rythme"] .prg-demo-card:nth-child(6n+1) { grid-column: span 2; }
[data-rubric-variant="mosaique-ouverture"] .prg-demo-card:nth-child(5n+1) { grid-column: 1 / -1; }

/* 04 — horizontal chapters retain a vertical fallback in narrow columns. */
[data-style="grand-angle"] .prg-demo-card__visual { min-height: calc(var(--demo-photo) * .8); }
[data-rubric-variant="grand-angle-duo"] .prg-demo-card { border-radius: 16px; }

/* 05 — rounded thumbnails, larger gallery, circular collection. */
[data-style="collection"] .prg-demo-card { padding-top: var(--demo-pad); align-items: center; border-radius: 20px; }
[data-style="collection"] .prg-demo-card__visual { width: var(--demo-thumb); min-height: 0; height: calc(var(--demo-thumb) * .85); border-radius: 24px; }
[data-style="collection"] .prg-demo-card__body { width: 100%; text-align: center; }
[data-style="collection"] .prg-demo-card__eyebrow { display: none; }
[data-rubric-variant="collection-galerie"] .prg-demo-card__visual { width: min(70%, 220px); height: auto; aspect-ratio: 1; }
[data-rubric-variant="collection-pastilles"] .prg-demo-card__visual { height: var(--demo-thumb); border-radius: 50%; box-shadow: 0 0 0 8px var(--prg-tint); }
[data-rubric-variant="collection-pastilles"] .prg-demo-card { background: linear-gradient(var(--prg-tint), var(--fl-election-surface) 70%); }

/* Motions affect only hovered pointers. Reading never depends on animation. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .prg-demo-variant:not([data-motion="none"]) .prg-demo-card:hover { border-color: var(--fl-election-accent); box-shadow: 0 16px 36px var(--demo-shadow); }
  .prg-demo-variant:not([data-motion="none"]) .prg-demo-card:hover .prg-demo-card__arrow { transform: translate(3px, -3px); }
  [data-motion="zoom"] .prg-demo-card:hover img { transform: scale(1.065); }
  [data-motion="lift"] .prg-demo-card:hover { transform: translateY(-7px); }
  [data-motion="lift"] .prg-demo-card:hover img { transform: scale(1.025); }
  [data-motion="glide"] .prg-demo-card:hover img { transform: scale(1.08) translateX(2%); }
  [data-motion="glide"] .prg-demo-card:hover .prg-demo-card__arrow { transform: translateX(5px); }
  [data-motion="tilt"] .prg-demo-card:hover { transform: perspective(900px) rotateX(2deg) rotateY(-2deg) translateY(-3px); }
  [data-motion="tilt"] .prg-demo-card:hover img { transform: scale(1.04); }
  [data-motion="halo"] .prg-demo-card:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--fl-election-accent) 32%, transparent), 0 18px 48px color-mix(in srgb, var(--fl-election-accent) 25%, transparent); }
  [data-motion="halo"] .prg-demo-card:hover .prg-demo-card__cta { background: var(--fl-election-light); color: var(--demo-ink); }
}
@media (prefers-reduced-motion: reduce) {
  :is(.prg-rubric-showcase,.prg-reader) *, :is(.prg-rubric-showcase,.prg-reader) *::before, :is(.prg-rubric-showcase,.prg-reader) *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Column capacity uses the actual profile width, not the browser viewport. */
@container rubric-showcase (min-width: 760px) {
  [data-style="grand-angle"] .prg-demo-grid[data-columns="1"] .prg-demo-card,
  [data-rubric-variant="editorial-dossiers"] .prg-demo-grid[data-columns="1"] .prg-demo-card { flex-direction: row; min-height: calc(var(--demo-height) * .7); }
  [data-style="grand-angle"] .prg-demo-grid[data-columns="1"] .prg-demo-card__visual { order: 2; width: 44%; min-height: 100%; }
  [data-style="grand-angle"] .prg-demo-grid[data-columns="1"] .prg-demo-card__body { width: 56%; }
  [data-rubric-variant="grand-angle-alternance"] .prg-demo-grid[data-columns="1"] .prg-demo-card:nth-child(even) .prg-demo-card__visual { order: 0; }
  [data-rubric-variant="editorial-dossiers"] .prg-demo-grid[data-columns="1"] .prg-demo-card__visual { width: 40%; margin: 12px; }
  [data-rubric-variant="editorial-dossiers"] .prg-demo-grid[data-columns="1"] .prg-demo-card__body { width: 60%; }
}
@container rubric-showcase (max-width: 1159px) {
  .prg-demo-grid[data-columns="4"] { --demo-columns: 3; }
}
@container rubric-showcase (max-width: 859px) {
  .prg-demo-grid[data-columns="3"], .prg-demo-grid[data-columns="4"] { --demo-columns: 2; }
  .prg-demo-intro { flex-wrap: wrap; }
}
@container rubric-showcase (max-width: 579px) {
  .prg-demo-grid[data-columns] { --demo-columns: 1; }
  .prg-demo-grid .prg-demo-card:nth-child(n) { grid-column: auto; }
  .prg-demo-intro { display: block; }
  .prg-demo-intro > a { margin-top: 8px; }
  .prg-demo-variant { padding: 14px; border-radius: 18px; }
  .prg-demo-variant__heading { flex-wrap: wrap; }
  .prg-demo-toolbar { padding: 16px; }
  .prg-demo-controls { grid-template-columns: 1fr; }
  .prg-demo-card { --demo-pad: 20px; }
}
.prg-demo-grid[data-columns="1"] .prg-demo-card:nth-child(n) { grid-column: auto; }
