/* Hallmark · version E3, les cartes empilées · theme: custom · idea: "chaque pôle est une carte qui vient se poser sur la précédente" · hero: split, a deck of three real captures · signature: the sticky stack of eight pole cards */

.v-e3 { --font-display: "Reddit Sans", ui-sans-serif, system-ui, sans-serif; --display-weight: 800; --tracking: -0.045em; }

.e3-hero { min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-2xl); overflow: clip; }
.e3-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-2xl); align-items: center; }
.e3-hero h1 { font-size: var(--text-display); max-width: 12ch; }
.e3-lead { margin-top: var(--space-lg); font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: 32rem; }
.e3-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-lg); margin-top: var(--space-xl); }
.e3-deck { position: relative; height: 520px; }
.e3-deck__card { position: absolute; margin: 0; width: 82%; border-radius: 26px; overflow: hidden; background: var(--white); box-shadow: var(--shadow); animation: e3-deal 0.9s var(--ease-out) both; }
.e3-deck__card img { width: 100%; height: auto; }
.e3-deck__card figcaption { position: absolute; right: var(--space-md); top: var(--space-md); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-s); background: var(--blue-deep); color: var(--on-blue); font-weight: 700; font-size: var(--text-sm); }
.e3-deck__card--1 { left: 0; top: 0; transform: rotate(-6deg); animation-delay: 0.1s; }
.e3-deck__card--2 { left: 10%; top: 90px; transform: rotate(3deg); animation-delay: 0.25s; }
.e3-deck__card--3 { left: 18%; top: 190px; transform: rotate(-1deg); animation-delay: 0.4s; }

.e3-stack { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-xl); }
.e3-card { position: sticky; top: calc(var(--nav-h) + var(--space-md) + var(--n) * 14px); min-height: 500px; padding: var(--space-2xl) var(--space-2xl); border-radius: 36px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: center; box-shadow: var(--shadow-up); transform-origin: top center; }
.e3-card h3 { font-size: clamp(2.25rem, 3vw + 1rem, 4rem); line-height: 0.95; }
.e3-card p { margin-top: var(--space-md); font-size: var(--text-lg); line-height: 1.5; }
.e3-card__num { display: block; margin-bottom: var(--space-md); font-weight: 700; font-size: var(--text-sm); opacity: 0.8; }
.e3-card ul { margin: var(--space-lg) 0 0; padding: 0; list-style: none; }
.e3-card li { padding: var(--space-sm) 0; border-top: 1px solid color-mix(in oklab, currentColor 22%, transparent); font-size: var(--text-lg); }
.e3-card__shot { margin: 0; height: 100%; max-height: 380px; border-radius: 22px; overflow: hidden; background: var(--white); position: relative; }
.e3-card__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.e3-card__shot.is-phone { display: grid; place-items: center; background: color-mix(in oklab, var(--white) 60%, transparent); }
.e3-card__shot.is-phone img { width: auto; height: 94%; object-fit: contain; border-radius: var(--radius-s); }
.e3-card__shot figcaption { position: absolute; right: var(--space-md); bottom: var(--space-md); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-s); background: var(--white); color: var(--ink); font-weight: 700; font-size: var(--text-sm); }
.e3-card__mark { justify-self: center; width: min(320px, 70%); aspect-ratio: 1; border-radius: 50%; background: color-mix(in oklab, currentColor 14%, transparent); }
.e3-card--0 { background: var(--sky-soft); color: var(--ink); }
.e3-card--1 { background: var(--sky); color: var(--sky-ink); }
.e3-card--2 { background: var(--blue); color: var(--on-blue); }
.e3-card--3 { background: var(--blue-deep); color: var(--on-blue); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 60rem) {
    .e3-card { animation: e3-sink linear both; animation-timeline: view(); animation-range: exit-crossing 0% exit-crossing 100%; }
    @keyframes e3-sink { to { transform: scale(0.92); } }
  }
}
@keyframes e3-deal { from { opacity: 0; translate: 0 60px; } }

@media (max-width: 60rem) {
  .e3-grid { grid-template-columns: minmax(0, 1fr); }
  .e3-deck { height: 360px; }
  .e3-card { grid-template-columns: minmax(0, 1fr); padding: var(--space-xl) var(--space-lg); min-height: 0; gap: var(--space-lg); }
  .e3-card__shot { max-height: 260px; }
  .e3-card__mark { display: none; }
}
@media (prefers-reduced-motion: reduce) { .e3-deck__card { animation: none; } }
