/* Deck Paradisiak : slides natives 1280×720 (structure reprise du deck JobAffinity).
   Fonts Typekit (gelica + work-sans) chargées par le layout du viewer. */

:root {
  --ink: #29213c;
  --night: #29213c;
  --night-2: #1f1c52;
  --paper: #f8fafc;
  --paper-2: #f1f5f9;
  --surface: #eef2ff;
  --body: rgba(41, 33, 60, 0.75);
  --muted: rgba(41, 33, 60, 0.6);
  --line: #e2e8f0;
  --accent: #ef7736;
  --accent-deep: #d65f1f;
  --accent-soft: #fdeee4;
  --brand: #172dbc;
  --brand-light: #6888ff;
  --sky: #10c0fb;
  --shadow: 0 0 0 1px rgba(20, 18, 58, 0.05), 0 16px 48px rgba(20, 18, 58, 0.10);
  --font-display: 'gelica', Georgia, serif;
  --font-body: 'work-sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--body);
  background: #d9dde6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { padding: 24px; }

.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.slide {
  position: relative;
  width: 1280px;
  height: 720px;
  flex: 0 0 720px;
  overflow: hidden;
  padding: 52px 68px 46px;
  background: var(--paper);
  color: var(--body);
  box-shadow: 0 16px 42px rgba(20, 18, 58, 0.18);
  isolation: isolate;
  font-family: var(--font-body);
  letter-spacing: -0.04em;
}

.slide.paper { background: var(--paper-2); }
.slide.soft { background: var(--surface); }
.slide.night {
  background: var(--night);
  color: rgba(255, 255, 255, 0.72);
}

.topline,
.footline {
  position: absolute;
  z-index: 8;
  left: 68px;
  right: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topline { top: 34px; }

.footline {
  bottom: 24px;
  color: var(--muted);
  font-size: 9.8px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.night .footline { color: rgba(255, 255, 255, 0.45); }

.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 150px; height: auto; }

.section-mark {
  color: var(--muted);
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.night .section-mark { color: rgba(255, 255, 255, 0.5); }

.content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding-top: 34px;
  padding-bottom: 18px;
}

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.night :is(h1, h2, h3, h4) { color: #fff; }

h1 { font-size: 68px; line-height: 1.05; letter-spacing: -0.02em; }
h2 { font-size: 50px; line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.15; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--accent-deep);
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.night .kicker { color: var(--accent); }

.lead {
  max-width: 760px;
  margin-top: 22px;
  color: var(--body);
  font-size: 19.6px;
  line-height: 1.45;
}

.night .lead { color: rgba(255, 255, 255, 0.7); }

.accent { color: var(--accent); }

/* Mot mis en avant souligné au pinceau (repris de HeroTitle / BrushUnderline du site) */
.brush-word {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.brush-word em {
  position: relative;
  z-index: 1;
  color: #2193de;
  font-style: italic;
}

.night .brush-word em { color: var(--sky); }

.brush {
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: -0.2em;
  width: 100%;
  height: 0.3em;
  overflow: visible;
  fill: var(--accent);
}

/* Titres découpés en mots (.w > .wi) : chaque mot monte dans son masque,
   comme le SplitText des titres de la landing site-carrière */
.w {
  display: inline-block;
  overflow: hidden;
  padding: 0 0.06em 0.14em;
  margin: 0 -0.06em -0.14em;
  vertical-align: top;
}
.w.w-brush { overflow: visible; }
.wi { display: inline-block; }

/* Compteur sans JS (repris de .hero-count du site) : <span class="count" style="--count-to: 60"> */
@property --count {
  syntax: '<integer>';
  inherits: false;
  initial-value: 0;
}

.count {
  --count: var(--count-to);
  counter-reset: count var(--count);
}

.count::after { content: counter(count); }

/* Couverture */
.cover {
  display: grid;
  height: 100%;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  column-gap: 40px;
}

.cover-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cover h1 { font-size: 62px; }

/* Preuve : mockups clients en collage */
.cover-mocks { position: relative; }

.cover-mock {
  position: absolute;
  border-radius: 16px;
  box-shadow: 0 30px 90px -10px rgba(0, 0, 0, 0.35), 0 10px 30px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.cover-mock-main { top: 50px; right: 0; width: 400px; height: 280px; rotate: 2deg; }
.cover-mock-side { top: 280px; left: 0; width: 250px; height: 188px; rotate: -4deg; }
.cover-mock-phone { top: 230px; right: 20px; width: 190px; height: 210px; rotate: 3deg; }

.cover-logos {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}


.cover-logos img { max-width: 130px; max-height: 40px; opacity: 0.8; }

.promises {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.promises li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  transition: translate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.35s ease;
}

.promises li:hover {
  translate: 0 -4px;
  rotate: -2deg;
  border-color: rgba(239, 119, 54, 0.6);
  background-color: rgba(239, 119, 54, 0.12);
  box-shadow: 0 10px 24px -10px rgba(239, 119, 54, 0.55);
}

.promises li:nth-child(even):hover { rotate: 2deg; }

.promises li:active {
  cursor: grabbing;
  scale: 0.95;
}

.promises li:hover .check-badge {
  scale: 1.15;
  rotate: -12deg;
  background-color: var(--accent);
}

.promises li:hover .check { stroke: #fff; }

.promises .check-badge {
  display: flex;
  flex: none;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(239, 119, 54, 0.12);
  transition: scale 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), rotate 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}

.promises .check {
  width: 13px;
  height: 13px;
  transition: stroke 0.25s ease;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Formes floues du fond (décor du hero de la landing) */
.blob {
  position: absolute;
  z-index: 0;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
}

.blob-1 { top: 180px; left: 200px; width: 300px; height: 300px; background: rgba(33, 147, 222, 0.22); }
.blob-2 { top: 200px; right: 220px; width: 260px; height: 260px; background: rgba(239, 119, 54, 0.16); }
.blob-3 { bottom: 200px; left: 46%; width: 240px; height: 240px; background: rgba(104, 136, 255, 0.18); }

/* Grilles de cartes */
.split-head { max-width: 860px; padding-top: 44px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.card img {
  width: 100%;
  height: 150px;
  margin-bottom: 6px;
  object-fit: contain;
}

.card p { font-size: 14.5px; line-height: 1.5; }

.card h3 .h3-accent { color: var(--accent-deep); }

.cards.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 34px; }
.cards.compact .card { padding: 20px 22px; }
.cards.compact .card h3 { font-size: 19px; }
.cards.compact .card p { font-size: 13.5px; }

.card-index {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

/* Production de contenu */
.production {
  display: grid;
  grid-template-columns: 500px 1fr;
  align-items: center;
  gap: 56px;
}

.production h2 { font-size: 44px; }
.production .lead { font-size: 16.5px; }

.production-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.production-list li {
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}

.production-list strong { display: block; color: #fff; font-size: 15px; font-weight: 600; }
.production-list span { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.6); font-size: 12.5px; line-height: 1.45; }

.production-media {
  position: relative;
  height: 520px;
}

.production-media :is(video, img) {
  position: absolute;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.media-main { top: 40px; left: 0; width: 470px; height: 300px; z-index: 2; object-position: center 25%; }
.media-a { top: 0; right: 0; width: 200px; height: 250px; z-index: 1; }
.media-b { bottom: 0; right: 30px; width: 250px; height: 210px; z-index: 3; }
.media-c { bottom: 20px; left: 40px; width: 200px; height: 150px; z-index: 1; }

/* Logos clients */
.logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
  /* Fondu bas : « et bien d'autres » */
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 98%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 98%);
}

.logos span {
  display: flex;
  height: 78px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.logos img { max-width: 100%; max-height: 38px; }
.logos img[src*="-black"] { filter: brightness(0) invert(1); }

/* Qui sommes-nous */
.company-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 76px;
  align-items: center;
}

.company-layout .lead { margin-top: 26px; }

.company-lines { display: grid; border-top: 1px solid var(--line); }

.company-line {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.company-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.company-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-line strong { display: block; color: var(--ink); font-size: 17px; letter-spacing: -0.02em; }
.company-line > div > span { display: block; margin-top: 4px; color: var(--body); font-size: 13px; line-height: 1.4; letter-spacing: -0.01em; }

/* Témoignages (extraits) */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.quotes figure {
  display: flex;
  margin: 0;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.quotes blockquote {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.quotes figcaption { color: rgba(255, 255, 255, 0.55); font-size: 11.5px; letter-spacing: 0; }
.quotes figcaption strong { display: block; color: var(--accent); font-size: 12.5px; }

/* Avec les témoignages, la grille de logos se limite à deux rangées en fondu */
.quotes + .logos { max-height: 168px; margin-top: 18px; overflow: hidden; }

/* Réalisations */
.showcase {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.showcase figure {
  display: flex;
  margin: 0;
  flex-direction: column;
  gap: 10px;
}

.showcase-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

/* Carte mockup (MockupCard de la landing) : image + dégradé, « Voir le site »
   révélé lettre à lettre au survol, inclinaison 3D pilotée par le viewer (--rx/--ry). */
.mock {
  position: relative;
  display: block;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mock img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.mock::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 45%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.85));
  content: '';
}

.mock-cta {
  position: absolute;
  z-index: 2;
  left: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.mock-cta-text { display: inline-flex; overflow: hidden; }

.mock-cta .ch {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--c) * 20ms);
}

.mock-cta .arrow {
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity 0.4s 0.15s, transform 0.4s cubic-bezier(0.34, 1.8, 0.64, 1) 0.15s;
}

.showcase-link:is(:hover, :focus-visible) .mock img { transform: scale(1.05); }
.showcase-link:is(:hover, :focus-visible) .mock-cta .ch { transform: none; }
.showcase-link:is(:hover, :focus-visible) .mock-cta .arrow { opacity: 1; transform: none; }
.showcase-link:hover figcaption span { color: var(--accent-deep); }

.arrow {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
}

.cta-button:hover .arrow { transform: translate(2px, -2px); }

.showcase figcaption {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.showcase figcaption span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

/* Résultats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 46px;
}

.stats div {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.stats strong {
  display: block;
  margin-bottom: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stats div:first-child strong { color: var(--accent); }

.stats p { color: rgba(255, 255, 255, 0.72); font-size: 15px; line-height: 1.5; }

.center-title { padding-top: 30px; font-size: 40px; text-align: center; }


.stats.quad {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 1000px;
  margin: 34px auto 0;
  text-align: center;
}

.stats.quad div { padding: 22px 40px; }
.stats.quad strong { margin-bottom: 8px; font-size: 56px; }
.stats.quad div:first-child strong { color: #fff; }
.stats.quad :is(div:first-child, div:nth-child(4)) strong { color: var(--accent); }
.stats.quad p { font-size: 14.5px; }
.stats b { color: #fff; font-weight: 600; }


.footnote {
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 11.5px;
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 40px;
}

.faq div {
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.faq h3 { margin-bottom: 10px; font-size: 20px; }
.faq p { font-size: 15px; line-height: 1.5; }

/* Conclusion */
.finale {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.finale-brand img { width: 190px; margin-bottom: 34px; }
.finale h2 { max-width: 980px; font-size: 56px; }
.finale .lead { margin-right: auto; margin-left: auto; }

.cta-button {
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 12px 30px rgba(239, 119, 54, 0.35);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cta-button:hover { background: var(--accent-deep); transform: translateY(-2px); }

.finale-contact {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
  padding: 18px 22px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 16px;
  background: rgba(255, 255, 255, .05);
  text-align: left;
}

.finale-contact strong { color: #fff; font-size: 15.7px; }
.finale-contact span { color: rgba(255, 255, 255, .55); font-size: 10.8px; }
.finale-contact .separator { width: 1px; height: 34px; background: rgba(255, 255, 255, .14); }
.finale-contact .contact-links { display: grid; gap: 4px; }
.finale-contact .contact-links :is(a, span) { color: rgba(255, 255, 255, .8); font-size: 12.5px; text-decoration: none; }
.presentation-viewer .slide .finale-contact .contact-links a { transition: color .2s ease; }
.presentation-viewer .slide .finale-contact .contact-links a:hover { color: var(--accent); text-decoration: none; }
/* Sans nom de contact : coordonnées sur une ligne, séparées par des points */
.finale-contact .contact-links:only-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.finale-contact .contact-links:only-child > * + *::before { content: '·'; display: inline-block; margin-right: 22px; color: rgba(255, 255, 255, .35); }

/* Mobile (viewer en carrousel) : mêmes conditions que presentation-responsive.css */
@media screen and (max-width: 900px), screen and (max-height: 600px) and (pointer: coarse) {
  .presentation-viewer .slide .company-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .presentation-viewer .slide .quotes + .logos { max-height: none; }
  .presentation-viewer .slide :is(.cards, .cards.compact, .stats, .faq, .showcase, .quotes) { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
  .presentation-viewer .slide .stats.quad { width: auto; }
  .presentation-viewer .slide :is(.center-title, .split-head) { padding-top: 0; text-align: left; }
  .presentation-viewer .slide .stats.quad { margin-right: 0; margin-left: 0; text-align: left; }
  .presentation-viewer .slide .stats.quad div { padding: 22px 24px; }
  .presentation-viewer .slide .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
  .presentation-viewer .slide .logos span { height: 64px; padding: 12px; }
  .presentation-viewer .slide .promises { gap: 8px; margin-top: 8px; }
  .presentation-viewer .slide .promises li { font-size: 12px; }
  .presentation-viewer .slide .cover { display: flex; flex-direction: column; gap: 28px; }
  .presentation-viewer .slide .cover-mocks { height: 220px; }
  .presentation-viewer .slide .cover-mock-main { top: 0; width: 72%; height: 180px; }
  .presentation-viewer .slide .cover-mock-side { top: 70px; width: 44%; height: 140px; }
  .presentation-viewer .slide .cover-mock-phone { display: none; }
  .presentation-viewer .slide .cover-logos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; justify-items: center; }
  .presentation-viewer .slide .cover-logos img { max-width: 100%; max-height: 32px; }
  .presentation-viewer .slide .production { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .presentation-viewer .slide .production-list { grid-template-columns: minmax(0, 1fr); }
  .presentation-viewer .slide .production-media { display: grid; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .presentation-viewer .slide .production-media :is(video, img) { position: static; width: 100%; height: 150px; }
  .presentation-viewer .slide .production-media .media-main { grid-column: 1 / -1; height: 200px; }
  .presentation-viewer .slide .mock { height: 240px; }
  .presentation-viewer .slide .mock-cta .ch { transform: none; }
  .presentation-viewer .slide .mock-cta .arrow { opacity: 1; transform: none; }
  .presentation-viewer .slide .card img { height: 120px; }
  .presentation-viewer .slide .finale { text-align: left; align-items: stretch; }
  .presentation-viewer .slide .finale-brand img { margin-bottom: 0; }
  .presentation-viewer .slide .finale-contact .contact-links:only-child { display: grid; justify-content: start; }
  .presentation-viewer .slide .finale-contact .contact-links:only-child > * + *::before { content: none; }
  .presentation-viewer .slide .cta-button { justify-content: center; margin-top: 0; }
}

@media print {
  html, body { width: 13.333333in; min-height: auto; background: #fff; }
  body { padding: 0; }
  .deck { display: block; }
  .slide {
    width: 13.333333in;
    height: 7.5in;
    margin: 0;
    break-after: page;
    box-shadow: none;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .slide *, .slide *::after { animation: none !important; }
  .slide:last-child { break-after: auto; page-break-after: auto; }
}

/* ===== Animations (rejouées à chaque affichage de slide : le viewer la remonte) =====
   Desktop uniquement : presentation-responsive.css coupe les animations en mobile
   et le viewer pose .motion-off en impression / mouvement réduit. */
@media (prefers-reduced-motion: no-preference) {
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide {
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide {
    --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* Textes : entrées de la landing site-carrière (power3.out sur 40px, mots en power4.out) */
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide {
    --ease-text: cubic-bezier(0.215, 0.61, 0.355, 1);
    --ease-word: cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide :is(.kicker, .lead, .footnote, .cta-button, .finale-contact) {
    animation: rise 1s var(--ease-text) both;
  }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide .wi {
    animation: word-up 0.9s var(--ease-word) calc(0.1s + var(--w, 0) * 0.04s) both;
  }

  /* Le mot au pinceau n est pas masqué (le trait déborde) : il monte en fondu */
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide .w-brush .wi { animation-name: word-up-fade; }
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .lead { animation-delay: 0.25s; }
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide :is(.footnote, .finale-contact) { animation-delay: 0.9s; }
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .cta-button { animation-delay: 0.5s; }

  /* Cartes, chiffres, logos, mockups : cascade */
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide :is(.cards > *, .stats > *, .faq > *, .showcase > *, .logos > *, .quotes > *, .company-line, .promises > li, .production-list > li, .production-media > *) {
    animation: rise 0.7s var(--ease-out) both;
    animation-delay: calc(0.35s + var(--i, 0) * 0.09s);
  }

  :is(.cards, .stats, .faq, .showcase, .logos, .quotes, .company-lines, .promises, .production-list, .production-media) > :nth-child(2) { --i: 1; }
  :is(.cards, .stats, .faq, .showcase, .logos, .quotes, .company-lines, .promises, .production-list, .production-media) > :nth-child(3) { --i: 2; }
  :is(.cards, .stats, .faq, .showcase, .logos, .quotes, .company-lines, .promises, .production-list, .production-media) > :nth-child(4) { --i: 3; }
  :is(.cards, .stats, .faq, .showcase, .logos, .quotes, .company-lines, .promises, .production-list, .production-media) > :nth-child(5) { --i: 4; }
  :is(.cards, .stats, .faq, .showcase, .logos, .quotes, .company-lines, .promises, .production-list, .production-media) > :nth-child(6) { --i: 5; }
  :is(.cards, .stats, .faq, .showcase, .logos, .quotes, .company-lines, .promises, .production-list, .production-media) > :nth-child(n+7) { --i: 6; }

  /* Mockups repris de ResultsBento : dévoilés du bas */
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .showcase > * {
    animation-name: mock-reveal;
    animation-duration: 1.2s;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Couverture : mockups puis logos, après le titre */
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .cover-mock {
    animation: cover-mock-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .cover-mock-side { animation-delay: 0.45s; }
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .cover-mock-phone { animation-delay: 0.6s; }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .cover-logos {
    animation: rise 1s var(--ease-text) 0.8s both;
  }


  /* Entrées reprises des hovers : rebond, inclinaison, flash orange.
     Remplissage « backwards » + propriétés translate/rotate/scale : une fois
     l'entrée finie, les transitions de hover reprennent la main. */
  .promises > li:nth-child(odd), .cards > :nth-child(odd), .stats > :nth-child(odd), .faq > :nth-child(odd), .logos > :nth-child(odd) { --tilt: -4deg; }
  .promises > li:nth-child(even), .cards > :nth-child(even), .stats > :nth-child(even), .faq > :nth-child(even), .logos > :nth-child(even) { --tilt: 4deg; }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .promises > li {
    animation: tag-pop 0.9s var(--ease-out) calc(0.55s + var(--i, 0) * 0.12s) backwards;
  }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .promises .check-badge {
    animation: badge-pop 0.9s var(--ease-out) calc(0.6s + var(--i, 0) * 0.12s) backwards;
  }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .promises > li:nth-child(2) .check-badge { --i: 1; }
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .promises > li:nth-child(3) .check-badge { --i: 2; }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide :is(.stats, .cards, .faq) > * {
    animation: card-pop 1s var(--ease-out) calc(0.35s + var(--i, 0) * 0.1s) backwards;
  }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide.slide .logos > * {
    animation: logo-pop 0.8s var(--ease-pop) calc(0.4s + var(--row, 0) * 0.08s + var(--col, 0) * 0.05s) backwards;
  }

  .logos > :nth-child(7n+2) { --col: 1; } .logos > :nth-child(7n+3) { --col: 2; } .logos > :nth-child(7n+4) { --col: 3; }
  .logos > :nth-child(7n+5) { --col: 4; } .logos > :nth-child(7n+6) { --col: 5; } .logos > :nth-child(7n) { --col: 6; }
  .logos > :nth-child(n+8) { --row: 1; } .logos > :nth-child(n+15) { --row: 2; } .logos > :nth-child(n+22) { --row: 3; }

  /* Pinceau : le tracé se dévoile de gauche à droite après le titre */
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide .brush {
    animation: brush-draw 0.9s cubic-bezier(0.45, 0, 0.55, 1) calc(0.55s + var(--w, 0) * 0.04s) both;
  }

  /* Compteurs */
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide .count {
    animation: count 1.4s cubic-bezier(0.33, 1, 0.68, 1) calc(0.45s + var(--i, 0) * 0.09s) both;
  }

  /* Coches des promesses tracées */
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide .check path {
    stroke-dasharray: 16;
    animation: check-draw 0.5s ease-out calc(0.6s + var(--i, 0) * 0.12s) both;
  }

  /* Décor : blobs qui dérivent */


  :where(.presentation-slide-native:not(.motion-off), .deck) .slide .blob {
    animation: drift 9s ease-in-out infinite alternate;
  }

  :where(.presentation-slide-native:not(.motion-off), .deck) .slide .blob-2 { animation-duration: 11s; animation-direction: alternate-reverse; }
  :where(.presentation-slide-native:not(.motion-off), .deck) .slide .blob-3 { animation-duration: 13s; }
}

@keyframes word-up {
  from { transform: translateY(100%); }
}

@keyframes word-up-fade {
  from { opacity: 0; transform: translateY(60%); }
}

@keyframes tag-pop {
  0% { opacity: 0; translate: 0 24px; scale: 0.8; rotate: var(--tilt, -4deg); }
  55% { opacity: 1; translate: 0 -4px; scale: 1.04; rotate: calc(var(--tilt, -4deg) * -0.5); border-color: rgba(239, 119, 54, 0.6); background-color: rgba(239, 119, 54, 0.12); box-shadow: 0 10px 24px -10px rgba(239, 119, 54, 0.55); }
  100% { translate: 0 0; scale: 1; rotate: 0deg; }
}

@keyframes badge-pop {
  0% { scale: 0; rotate: -60deg; }
  55% { scale: 1.25; rotate: -12deg; background-color: var(--accent); }
  100% { scale: 1; rotate: 0deg; }
}

@keyframes card-pop {
  0% { opacity: 0; translate: 0 50px; scale: 0.9; rotate: var(--tilt, -4deg); }
  60% { opacity: 1; translate: 0 -6px; scale: 1.02; rotate: calc(var(--tilt, -4deg) * -0.25); }
  100% { translate: 0 0; scale: 1; rotate: 0deg; }
}

@keyframes logo-pop {
  0% { opacity: 0; scale: 0.6; rotate: var(--tilt, -4deg); }
  60% { opacity: 1; border-color: rgba(239, 119, 54, 0.5); background-color: rgba(239, 119, 54, 0.1); }
  100% { scale: 1; rotate: 0deg; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px); }
}

@keyframes brush-draw {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

/* Mockups de couverture : fondu plutôt que rideau, sinon l'ombre diffuse
   (plus large que la marge du clip-path) apparaît avant la carte */
@keyframes cover-mock-in {
  from { opacity: 0; transform: translateY(50px); }
}

@keyframes mock-reveal {
  /* Fin à -40px : le rideau ne rogne ni l'ombre ni l'inclinaison des cartes */
  from { clip-path: inset(100% -40px -40px -40px); transform: translateY(50px); }
  to { clip-path: inset(-40px); transform: none; }
}

@keyframes count {
  from { --count: 0; }
}

@keyframes check-draw {
  from { stroke-dashoffset: 16; }
  to { stroke-dashoffset: 0; }
}

@keyframes drift {
  to { transform: translate(30px, -20px); }
}
