/* Présentation Velkora : un écran par idée, même source pour le web et le PDF.
   S'appuie sur les tokens de css/style.css (couleurs, police, rayons). */

.deck-body { overflow-x: hidden; }

.deck {
  scroll-snap-type: y proximity;
}

/* ---------- Un écran ---------- */
.slide {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vh, 72px) clamp(24px, 7vw, 110px);
  scroll-snap-align: start;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.slide:nth-child(even) { background: var(--bg-soft); }

/* Le numéro de l'écran, discret, en bas à droite. */
.deck { counter-reset: slide; }
.slide { counter-increment: slide; }
.slide::after {
  content: counter(slide, decimal-leading-zero);
  position: absolute;
  right: clamp(24px, 7vw, 110px);
  bottom: clamp(20px, 4vh, 40px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.slide-cover::after { display: none; }

/* Marque discrète en haut à gauche de chaque écran (sauf couverture). */
.slide:not(.slide-cover)::before {
  content: "";
  position: absolute;
  left: clamp(24px, 7vw, 110px);
  top: clamp(20px, 4vh, 40px);
  width: 22px;
  height: 26px;
  background: url("../assets/logo-v-only.png") center / contain no-repeat;
  opacity: .8;
}

.slide-head { margin-bottom: clamp(18px, 3vh, 34px); }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
}

.slide h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  max-width: 22ch;
  margin-bottom: clamp(20px, 4vh, 44px);
}
.slide h2.display {
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  letter-spacing: -.03em;
  max-width: 16ch;
  margin-bottom: 0;
}
.slide h3 { font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin-bottom: 8px; color: var(--text); }
.slide h3 small { font-size: .78em; font-weight: 500; color: var(--faint); margin-left: 8px; }
.slide p { font-size: clamp(1rem, 1.35vw, 1.2rem); line-height: 1.55; max-width: 62ch; }
.slide .lead { font-size: clamp(1.1rem, 1.7vw, 1.45rem); color: var(--text); margin-bottom: clamp(18px, 3vh, 32px); }
.slide .strong { color: var(--text); font-weight: 600; }
.slide-foot {
  margin-top: clamp(22px, 4vh, 40px);
  font-size: .95rem !important;
  color: var(--faint) !important;
}
.slide-foot b { color: var(--text); font-weight: 600; }

/* ---------- Couverture ---------- */
.slide-cover {
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.cover-glow {
  position: absolute;
  inset: auto 0 -30% 0;
  height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.cover-logo { width: min(420px, 62vw); height: auto; margin-bottom: clamp(28px, 6vh, 56px); position: relative; }
.cover-title {
  font-size: clamp(2rem, 5vw, 4.2rem);
  letter-spacing: -.03em;
  max-width: 14ch;
  margin-bottom: clamp(16px, 3vh, 26px);
  position: relative;
}
.cover-sub { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.25rem); max-width: 52ch !important; position: relative; }
.cover-meta {
  margin-top: clamp(28px, 6vh, 56px);
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--faint) !important;
  position: relative;
}

/* ---------- Deux colonnes ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.prose p + p { margin-top: 14px; }

/* ---------- Domaines (écran 3) ---------- */
.domains {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 3vw, 40px);
  counter-reset: domaine;
}
.domains li {
  counter-increment: domaine;
  padding-top: 18px;
  border-top: 1px solid var(--border-strong);
  position: relative;
}
.domains li::before {
  content: counter(domaine);
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.domains p { font-size: clamp(.95rem, 1.2vw, 1.05rem); }

/* ---------- Promesses (écran 4) ---------- */
.promises { list-style: none; max-width: 68ch; }
.promises li {
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  color: var(--muted);
  padding: clamp(12px, 1.8vh, 18px) 0;
  border-top: 1px solid var(--border);
}
.promises li:last-child { border-bottom: 1px solid var(--border); }
.promises strong { color: var(--text); font-weight: 700; }

/* ---------- Chiffres (écran 5) ---------- */
.figures {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
.figures dt {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.figures .plus { color: var(--accent-bright); font-weight: 700; }
.figures dd { color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.4; max-width: 18ch; }

/* ---------- Cas clients (écrans 6 à 8) ---------- */
.case {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.case-story h2 { margin-bottom: clamp(16px, 3vh, 30px); }
.case-story p + p { margin-top: 18px; }
.case-story .label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.results { list-style: none; }
.results li {
  display: grid;
  grid-template-columns: minmax(84px, auto) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: clamp(10px, 1.6vh, 16px) 0;
  border-top: 1px solid var(--border);
}
.results li:last-child { border-bottom: 1px solid var(--border); }
.results b {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.results span { color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.05rem); line-height: 1.4; }

/* ---------- Produits (écran 9) ---------- */
.products {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2.4vw, 32px) clamp(24px, 4vw, 64px);
}
.products li { padding-top: 14px; border-top: 1px solid var(--border-strong); }
.products p { font-size: clamp(.95rem, 1.15vw, 1.05rem); }

/* ---------- Offres (écran 10) ---------- */
.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 32px);
}
.offers article {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
}
.offers .offer-main { border-color: rgba(139, 108, 245, .45); background: var(--accent-dim); }
.offers .offer-main small { color: var(--accent-bright); }
.offers p { font-size: clamp(.95rem, 1.15vw, 1.05rem); }

/* ---------- Méthode (écran 5) : une vraie séquence, le numéro a sa place ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(14px, 2.2vw, 30px);
  counter-reset: etape;
}
.steps li {
  counter-increment: etape;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
}
.steps li::before {
  content: counter(etape);
  display: block;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  color: var(--accent-bright);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: clamp(1rem, 1.35vw, 1.15rem); }
.steps p { font-size: clamp(.92rem, 1.1vw, 1rem); }

/* ---------- Avant / après (écran 6) ---------- */
.avant-apres {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.avant-apres h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.eparpille {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.eparpille li {
  font-size: clamp(.9rem, 1.1vw, 1rem);
  color: var(--muted);
  padding: 7px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
}
.avant-apres .apres {
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid rgba(139, 108, 245, .45);
  border-radius: var(--radius);
  background: var(--accent-dim);
}
.portail {
  font-size: clamp(1.15rem, 1.8vw, 1.5rem) !important;
  font-weight: 700;
  color: var(--text) !important;
  margin-bottom: 10px;
}

/* ---------- Exemples (écran 9) ---------- */
.exemples { list-style: none; max-width: 78ch; }
.exemples li {
  padding: clamp(10px, 1.6vh, 16px) 0;
  border-top: 1px solid var(--border);
}
.exemples li:last-child { border-bottom: 1px solid var(--border); }
.exemples strong { color: var(--text); }
.exemples p { max-width: none; }

/* ---------- Subvention (écran 11) ---------- */
.grant-big {
  font-size: clamp(5rem, 14vw, 12rem) !important;
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: .9;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.grant-big span { font-size: .38em; color: var(--accent-bright); margin-left: 4px; }
.grant-cap { margin-top: 12px; color: var(--muted); max-width: 22ch !important; }
.plain { list-style: none; margin: 18px 0; }
.plain li { padding: 8px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.2rem); }
.plain li:last-child { border-bottom: 1px solid var(--border); }
.plain b { color: var(--text); font-weight: 700; }
.muted-sm { font-size: .9rem !important; color: var(--faint) !important; }

/* ---------- Dernier écran ---------- */
.slide-end { overflow: hidden; }
.slide-end h2.display { max-width: 22ch; }
.slide-end .cover-glow { inset: -30% 0 auto 0; background: radial-gradient(60% 60% at 50% 0%, var(--accent-glow), transparent 70%); }
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-top: clamp(20px, 4vh, 40px);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
}
.contact a { border-bottom: 2px solid var(--accent-bright); padding-bottom: 2px; }
.contact span { color: var(--muted); font-weight: 500; }
.legal {
  margin-top: clamp(30px, 7vh, 70px);
  font-size: 12px !important;
  color: var(--faint) !important;
  max-width: none !important;
}

/* ---------- Outils à l'écran (masqués à l'impression) ---------- */
.ui {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 10;
}
.ui-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--accent-bright);
  color: #fff;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.ui-btn:hover { transform: translateY(-1px); }
.ui-btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.counter {
  position: fixed;
  left: 16px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  z-index: 10;
}
.counter em { font-style: normal; margin: 0 4px; opacity: .6; }

/* ---------- Petits écrans ---------- */
@media screen and (max-width: 860px) {
  .two-col, .case, .avant-apres { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .domains, .figures { grid-template-columns: repeat(2, 1fr); }
  .products, .offers { grid-template-columns: 1fr; }
  .slide h2, .slide h2.display, .cover-title { max-width: none; }
  .figures dd { max-width: none; }
  .ui { top: auto; bottom: 12px; right: 12px; }
  .counter { display: none; }
  .slide-cover .cover-logo { width: min(320px, 70vw); }
}

@media (prefers-reduced-motion: reduce) {
  .deck { scroll-snap-type: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Impression : une page 16:9 par écran, même source ---------- */
@media print {
  @page { size: 13.333in 7.5in; margin: 0; }
  html, body { background: var(--bg); }
  .deck { scroll-snap-type: none; }
  .slide {
    width: 13.333in;
    height: 7.5in;
    min-height: 0;
    padding: .55in .9in;
    break-after: page;
    page-break-after: always;
    overflow: hidden;
    border-bottom: none;
  }
  .slide:last-child { break-after: auto; page-break-after: auto; }
  .ui, .counter, .skip-link { display: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  /* Tailles fixes en points pour un rendu stable, sans dépendre du viewport. */
  .slide h2 { font-size: 34pt; }
  .slide h2.display { font-size: 42pt; }
  .cover-title { font-size: 46pt; }
  .slide p, .promises li, .plain li { font-size: 13.5pt; }
  .slide .lead { font-size: 16pt; }
  .figures dt { font-size: 56pt; }
  .results b { font-size: 26pt; }
  .steps li::before { font-size: 22pt; }
  .steps h3 { font-size: 13pt; }
  .steps p, .exemples p, .eparpille li { font-size: 11.5pt; }
  .portail { font-size: 17pt !important; }
  .grant-big { font-size: 130pt !important; }
  .cover-logo { width: 4.2in; }
}
