/* Hallmark · version D3, le mot qui change · theme: custom · idea: "le mot du titre change de métier, les références défilent dessous" · hero: centred-left kinetic head over a marquee · signature: the rotating word in a blue block */
/* Hallmark · waive 38iii · un seul bloc bleu, une seule fois, dans le titre du hero · le mot qui change porte la version : du conseil, du code, de la cybersécurité, de la data */

.v-d3 { --font-display: "Reddit Sans", ui-sans-serif, system-ui, sans-serif; --display-weight: 900; --tracking: -0.05em; }

.d3-hero { padding-top: var(--space-2xl); overflow: clip; }
@media (min-width: 100rem) { .d3-tile { height: 250px; } }
.d3-title { font-size: clamp(3rem, 7.4vw, 8rem); line-height: 0.96; max-width: none; }
.d3-slot { display: inline-block; overflow: hidden; vertical-align: bottom; line-height: 1.04; padding: max(var(--space-sm), 0.1em) max(var(--space-lg), 0.22em); border-radius: 0.14em; background: var(--blue); color: var(--on-blue); }
.d3-word { display: inline-block; transition: transform 0.55s var(--ease-out), opacity 0.4s var(--ease-out); }
.d3-word.is-out { transform: translateY(-110%); opacity: 0; }
.d3-word.is-pre { transform: translateY(110%); opacity: 0; transition: none; }
.d3-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-xl); margin-top: var(--space-2xl); }
.d3-lead { font-size: var(--text-lg); line-height: 1.5; color: var(--ink-2); max-width: 34rem; }

.d3-marquee { display: flex; gap: var(--space-lg); margin-top: var(--space-2xl); overflow: hidden; }
.d3-marquee__set { display: flex; gap: var(--space-lg); margin: 0; padding: 0; list-style: none; flex-shrink: 0; animation: d3-scroll 50s linear infinite; }
.d3-tile { position: relative; width: 440px; height: 280px; border-radius: 26px; overflow: hidden; background: var(--paper-2); flex-shrink: 0; }
.d3-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.d3-tile.is-phone { width: 240px; display: grid; place-items: center; background: var(--blue-soft); }
.d3-tile.is-phone img { width: auto; height: 92%; object-fit: contain; border-radius: var(--radius-s); }
.d3-tile span { position: absolute; left: var(--space-sm); bottom: var(--space-sm); padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-s); background: var(--white); font-weight: 700; }
.d3-marquee:hover .d3-marquee__set, .d3-marquee:focus-within .d3-marquee__set { animation-play-state: paused; }
.d3-pause { display: flex; justify-content: flex-end; margin-top: var(--space-md); color: var(--ink-2); }

.d3-list { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--space-2xl); align-items: start; }
.d3-list h2 { position: sticky; top: calc(var(--nav-h) + var(--space-lg)); }
.d3-list ul { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--rule); }
.d3-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-xs) var(--space-lg); padding: var(--space-lg) 0; border-top: 1px solid var(--rule); transition: color var(--dur-short) var(--ease-out); }
.d3-list li:hover { color: var(--blue); }
.d3-list__name { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; font-size: clamp(1.75rem, 2.4vw + 0.6rem, 2.75rem); line-height: 1.05; }
.d3-list__line { color: var(--ink-2); max-width: 22rem; }

@keyframes d3-scroll { to { transform: translateX(calc(-100% - var(--space-lg))); } }

@media (max-width: 60rem) {
  .d3-list { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .d3-list h2 { position: static; }
  .d3-tile { width: 300px; height: 200px; }
  .d3-tile.is-phone { width: 170px; }
}
@media (prefers-reduced-motion: reduce) { .d3-marquee__set { animation: none; } .d3-marquee { overflow-x: auto; } }
