/* ===========================
   SYMBIOSIS² — TerInt 2026
   Slides — fond clair, bulles
   =========================== */

:root {
  --bg-1: #fafbff;
  --bg-2: #eef2ff;
  --bg-3: #f0fdfa;
  --ink: #0a2a66;
  --ink-soft: #475569;
  --ink-light: #64748b;
  --accent: #6366f1;
  --accent-2: #ec4899;
  --accent-3: #10b981;
  --accent-4: #f59e0b;
  --line: #e2e8f0;
  --slide-w: 1280px;
  --slide-h: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

em { font-style: italic; color: var(--accent); font-weight: 500; }
strong { color: var(--ink); font-weight: 700; }

/* =========== Bulles d'arrière-plan =========== */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.bubbles::before,
.bubbles::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
}
.bubble {
  position: absolute;
  bottom: -200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
    rgba(255,255,255,0.85) 0%,
    rgba(99,102,241,0.18) 35%,
    rgba(236,72,153,0.12) 70%,
    rgba(16,185,129,0.10) 100%);
  box-shadow:
    inset 0 0 16px rgba(255,255,255,0.55),
    inset -6px -10px 20px rgba(99,102,241,0.18),
    0 4px 18px rgba(99,102,241,0.10);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate(0, 0)       scale(0.95); opacity: 0; }
  10%  { opacity: 0.65; }
  50%  { transform: translate(20px, -55vh) scale(1.05); }
  90%  { opacity: 0.55; }
  100% { transform: translate(-15px, -120vh) scale(1.0);  opacity: 0; }
}

/* =========== Conteneur slides =========== */
#deck {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 56px 80px 64px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn .35s ease;
}
.slide.active { display: flex; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  line-height: 1.15;
}
.slide-title em { color: var(--accent-2); font-style: italic; }

.lead { font-size: 22px; color: var(--ink); margin-bottom: 14px; line-height: 1.4; }
.lead-center { font-size: 20px; color: var(--ink-soft); text-align: center; margin: 4px 0 18px; font-style: italic; }
.hook { font-size: 22px; color: var(--accent-2); margin-top: 18px; font-weight: 500; }
.formula { font-size: 20px; margin-top: 16px; font-style: italic; color: var(--ink); }
.src { color: var(--ink-light); font-size: 15px; margin-top: 12px; font-style: italic; }
.src.small { font-size: 13px; }
.src.tiny { font-size: 12px; text-align: center; margin-top: 10px; }
.reviewer-nod { color: var(--ink-light); font-size: 14px; margin-top: -16px; margin-bottom: 22px; font-style: italic; }
.strike-light { text-decoration: line-through; color: var(--ink-light); font-style: normal; opacity: .55; font-weight: 400; }

ul { list-style: none; padding-left: 0; }
ul li { font-size: 19px; line-height: 1.55; padding-left: 22px; position: relative; margin-bottom: 8px; }
ul li::before {
  content: '◆';
  color: var(--accent);
  position: absolute;
  left: 0; top: 0;
  font-size: 14px;
}

/* =========== 2 colonnes =========== */
.two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  flex: 1;
  align-items: center;
}
.bd-frame {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 14px 50px rgba(10,42,102,0.10), 0 2px 8px rgba(10,42,102,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 540px;
}
.bd-frame img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 8px;
}
.bd-frame figcaption {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 10px;
}

/* =========== Slide 1 — Titre =========== */
.slide-title-page,
.slide[data-slide="1"] {
  padding: 30px 60px 28px;
  justify-content: space-between;
}
.slide-cover {
  background:
    linear-gradient(135deg, rgba(250,251,255,0.96) 0%, rgba(238,242,255,0.93) 60%, rgba(240,253,250,0.96) 100%),
    url("assets/terrint-2026.png") right -40px top -10px / 280px auto no-repeat;
}
.cover-band {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 10px;
}
.terint-logo {
  height: 68px;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(10,42,102,0.18);
}
.title-band {
  border-left: 4px solid var(--accent-2);
  padding-left: 18px;
  margin-bottom: 8px;
}
.conf-line {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  font-weight: 500;
}
.conf-line.en { color: var(--ink-light); font-style: italic; }
.conf-line.dates { color: var(--accent); font-weight: 600; margin-top: 4px; }

.title-main { margin: 4px 0; }
.title-super {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 10px;
}
.title-sub {
  font-size: 28px;
  font-weight: 400;
  color: var(--ink-soft);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.title-sub em { color: var(--accent-2); font-weight: 600; }
.title-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 6px 14px;
  background: linear-gradient(90deg, rgba(99,102,241,0.12), rgba(236,72,153,0.10));
  border-radius: 999px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.authors {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 10px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.author {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 6px;
}
.author .name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.author .aff {
  font-size: 12px;
  color: var(--ink-light);
  font-style: italic;
  line-height: 1.3;
}
.author:nth-child(2) .name {
  color: var(--accent-2);
}

.logo-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 0 20px;
}
.logo-strip.end { padding-top: 14px; }
.logo-strip img { height: 60px; object-fit: contain; opacity: 0.92; }
.logo-strip .logo-uttop { height: 50px; }
.logo-strip .logo-portivechju.big { height: 144px; }
.logo-strip.big-logos img { height: 165px; }
.logo-strip.big-logos .logo-uttop { height: 110px; }

/* =========== Slide 3 — definition cards =========== */
.def-card, .lab-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 8px 28px rgba(10,42,102,0.06);
}
.def-card { border-left: 5px solid var(--accent); }
.lab-card { border-left: 5px solid var(--accent-3); }
.def-card h3, .lab-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--ink);
}
.def-card p, .lab-card p { font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.lab-card ul { margin-top: 4px; }
.lab-card ul li { font-size: 17px; }
.bridge {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-style: italic;
  color: var(--accent-2);
}

/* =========== Slide 2 — Terrain =========== */
.terrain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 14px;
}
.lab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}
.logo-uttop-inline {
  height: 32px;
  width: auto;
  opacity: 0.9;
}
.map-figure {
  flex: 1 1 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 8px 4px;
  box-shadow: 0 6px 22px rgba(10,42,102,0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
}
.map-figure .map { width: 100%; max-width: 900px; height: auto; max-height: 240px; }
.map-figure figcaption {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-light);
  font-style: italic;
  text-align: center;
}
.leaflet-map {
  width: 100%;
  flex: 1 1 auto;
  min-height: 320px;
  border-radius: 8px;
  border: 1px solid var(--line);
  z-index: 0;
}
/* Personnalisation marqueurs Leaflet */
.main-marker .mm-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: #ec4899;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(236,72,153,0.55);
}
.main-tip {
  background: white !important;
  color: #ec4899 !important;
  border: 1px solid #ec4899 !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 6px rgba(236,72,153,0.25) !important;
}
.main-tip::before { border-top-color: #ec4899 !important; }
.sec-tip {
  background: rgba(255,255,255,0.92) !important;
  color: #0a2a66 !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
.sec-tip::before { display: none !important; }
.leaflet-container { font-family: inherit; }

/* =========== Slide 3 — Question + Méthode =========== */
.research-question {
  background: linear-gradient(90deg, rgba(99,102,241,0.10), rgba(236,72,153,0.08));
  border-left: 5px solid var(--accent-2);
  padding: 18px 26px;
  border-radius: 10px;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 12px;
  font-style: italic;
}
.research-question strong { color: var(--accent-2); font-style: normal; }
.research-question em { color: var(--ink); font-weight: 600; font-style: normal; }
.qm-keywords {
  text-align: center;
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.three-actions.compact { gap: 10px; margin-top: 4px; }
.three-actions.compact .action {
  padding: 12px 14px 10px;
}
.three-actions.compact .action h3 { font-size: 18px; margin-bottom: 4px; }
.three-actions.compact .action p { font-size: 13px; line-height: 1.35; }

/* =========== Slide 4 — comparaison =========== */
ul.cmp li {
  padding: 14px 0 14px 22px;
  border-bottom: 1px dashed var(--line);
  font-size: 19px;
}
ul.cmp li:last-child { border-bottom: 0; }
ul.cmp li::before { content: '⬡'; color: var(--accent); }
.tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--ink-light);
  font-style: italic;
}

/* =========== Slide 5 — 3 actions =========== */
.three-actions {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 6px;
}
.action {
  flex: 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 28px rgba(10,42,102,0.06);
  transition: transform .25s ease;
}
.action:hover { transform: translateY(-4px); }
.action .num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  margin-bottom: 4px;
}
.action h3 {
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.1;
}
.action p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.action .who {
  margin-top: auto;
  font-size: 12px;
  color: var(--ink-light);
  font-style: italic;
  padding-top: 6px;
  border-top: 1px dashed var(--line);
}

/* Figure méthode (sous les 3 cartes) */
.methode-figure {
  flex: 1;
  margin-top: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 18px 10px;
  box-shadow: 0 8px 28px rgba(10,42,102,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
}
.methode-figure img {
  width: 100%;
  max-width: 100%;
  max-height: 340px;
  height: auto;
  object-fit: contain;
}
.methode-figure figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-light);
  font-style: italic;
  text-align: center;
  line-height: 1.3;
}
.action.a1 { border-top: 4px solid var(--accent-4); }
.action.a2 { border-top: 4px solid var(--accent-3); }
.action.a3 { border-top: 4px solid var(--accent-2); }
.arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--accent);
  font-weight: 300;
  width: 30px;
}

/* =========== Slide 9 — KISSES =========== */
.slide-kisses .slide-title { margin-bottom: 12px; }
.kisses-baseline {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-style: italic;
}
.kisses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  flex: 1;
}
.kisses-grid.five {
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr;
  gap: 12px;
  flex: 0 0 auto;
}
.k.k0 { background: linear-gradient(135deg, white, #fef3c7); border-color: var(--accent-4); }
.k.k0 span { color: var(--accent-4); }
.kisses-bottom-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.kisses-explain {
  background: linear-gradient(90deg, rgba(99,102,241,0.06), rgba(16,185,129,0.06));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.kisses-explain p { font-size: 14px; line-height: 1.5; color: var(--ink); margin: 0; }
.kisses-explain strong { color: var(--accent-2); }
.kisses-square-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.sq-label { font-size: 13px; color: var(--ink-soft); font-style: italic; }
.sq-formula-inline {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-2);
  letter-spacing: -0.02em;
  line-height: 1;
}
.sq-formula-inline sup { font-size: 18px; vertical-align: super; }
.sq-detail { font-size: 13px; color: var(--ink); flex: 1; min-width: 220px; }
.sq-detail strong { color: var(--accent-2); }
.k.k-formula {
  background: linear-gradient(135deg, white, rgba(236,72,153,0.10));
  border: 2px solid var(--accent-2);
  align-items: center;
  text-align: center;
}
.k.k-formula .formula-text {
  font-size: 42px;
  font-weight: 800;
  color: var(--accent-2);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.k.k-formula h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--accent-2);
}
.k.k-formula p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
  text-align: center;
}
.k {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 6px 22px rgba(10,42,102,0.06);
}
.k span {
  font-size: 60px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 6px;
}
.k h3 { font-size: 22px; margin-bottom: 6px; color: var(--ink); }
.k h3 sup { font-size: 14px; color: var(--accent-2); }
.k p { font-size: 15px; color: var(--ink-soft); line-height: 1.45; }
.k.k1 span { color: var(--accent-4); }
.k.k2 span { color: var(--accent-4); }
.k.k3 span { color: var(--accent); }
.k.k4 span { color: var(--accent-3); }
.k.k5 span { color: var(--accent-3); }
.k.k6 { background: linear-gradient(135deg, white, #fce7f3); border-color: var(--accent-2); }
.k.k6 span { color: var(--accent-2); }
.kisses-foot {
  font-size: 13px;
  color: var(--ink-light);
  font-style: italic;
  margin-top: 14px;
  text-align: right;
}

/* =========== Slide 10 — PDCA =========== */
.pdca-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdca { max-width: 720px; width: 100%; height: auto; }
.ing-foot {
  text-align: center;
  font-size: 17px;
  color: var(--ink-soft);
  margin-top: 6px;
  font-style: italic;
}

/* =========== Slide 11 — refs mobilisées (simplifié) =========== */
.refs-mobilised {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}
.rm-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(10,42,102,0.05);
}
.rm-block h4 { font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.rm-block p { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.rm-block.bb1 { border-top: 3px solid var(--accent-3); }
.rm-block.bb2 { border-top: 3px solid var(--accent-4); }
.rm-block.bb3 { border-top: 3px solid var(--accent); }
.rm-block.bb4 { border-top: 3px solid var(--accent-2); }
.rm-authors { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.rm-apport { font-size: 12px; color: var(--ink-soft); font-style: italic; line-height: 1.4; padding-top: 6px; border-top: 1px dashed var(--line); }
.rm-apport em { color: var(--accent-2); font-weight: 500; font-style: italic; }
.mobilise-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(10,42,102,0.05);
  font-size: 13px;
}
.mobilise-table th {
  background: var(--bg-2);
  text-align: left;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.mobilise-table td {
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.mobilise-table tr:last-child td { border-bottom: 0; }
.mobilise-table strong { color: var(--accent-2); }

/* =========== Slide 11 — reviews + biblio (legacy) =========== */
.reviews-card, .biblio-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 8px 28px rgba(10,42,102,0.06);
  height: 100%;
}
.reviews-card { border-left: 5px solid var(--accent-4); }
.biblio-card { border-left: 5px solid var(--accent); }
.reviews-card h3, .biblio-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--ink);
}
.reviews-card ul li, .biblio-card ul li { font-size: 17px; }
.modest {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-style: italic;
  color: var(--ink-light);
  font-size: 15px;
}
ul.biblio li { padding-left: 22px; }

/* =========== Slide 12 — SymbioLink =========== */
.slide-symbiolink .slide-title strong { color: var(--accent-2); }
.dstg-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0 18px;
}
.dstg { width: 100%; max-width: 760px; height: auto; }
.symbiolink-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 14px;
}
.sym-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(10,42,102,0.06);
  display: flex;
  flex-direction: column;
}
.sym-block h4 {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
  text-align: center;
}
.sym-block h4 em { color: var(--accent-2); }
.dstg-mini {
  width: 100%;
  height: auto;
  max-height: 220px;
}
.sym-cap {
  font-size: 12px;
  color: var(--ink-soft);
  font-style: italic;
  text-align: center;
  margin-top: 6px;
  line-height: 1.35;
}
.symbiolink-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.pill {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(10,42,102,0.05);
}
.pill strong { display: block; color: var(--accent); margin-bottom: 4px; font-size: 15px; }
.pill span { color: var(--ink-soft); }

/* =========== Slide 13 — JNIS =========== */
.slide-jnis .slide-title em { color: var(--accent-3); }
.jnis-baseline {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  font-style: italic;
}
.jnis-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  flex: 1;
  align-items: stretch;
}
.jcard {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(10,42,102,0.06);
  position: relative;
}
.jcard:nth-child(1) { border-top: 4px solid var(--accent-4); }
.jcard:nth-child(2) { border-top: 4px solid var(--accent); }
.jcard:nth-child(3) { border-top: 4px solid var(--accent-3); }
.jcard h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }
.jcard p { font-size: 16px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 8px; }
.jnis-pitch {
  margin-top: 22px;
  font-size: 18px;
  text-align: center;
  font-style: italic;
  color: var(--ink);
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(99,102,241,0.08), rgba(16,185,129,0.08));
  border-radius: 10px;
  line-height: 1.5;
}
.cascino-ref {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-soft);
}
.cascino-ref em { color: var(--accent-2); }

/* =========== Slide 14 — conclusion étendue =========== */
.slide-end {
  background:
    linear-gradient(135deg, rgba(250,251,255,0.93) 0%, rgba(238,242,255,0.92) 60%, rgba(240,253,250,0.94) 100%),
    url("assets/fond-portoveccio.png") center / cover no-repeat;
}
.thanks-sub {
  display: block;
  font-size: 14px;
  color: var(--ink-light);
  font-style: italic;
  margin-top: 4px;
}
.end-card ul li { line-height: 1.45; margin-bottom: 6px; }
/* Slide 5b — Rencontre fertile 1+1=3 */
.slide-fertile { padding: 36px 50px 28px; }
.slide-fertile .slide-title { margin-bottom: 6px; }
.fertile-baseline {
  font-size: 15px;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 14px;
  text-align: center;
}
.fertile-baseline strong { color: var(--accent-2); font-style: normal; }
.fertile-figure {
  flex: 1 1 auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 12px 40px rgba(10,42,102,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.fertile-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  animation: fertile-rise 0.6s ease-out;
}
@keyframes fertile-rise {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* JNIS — petits SVG dans les cards */
.jcard-svg {
  width: 100%;
  height: auto;
  max-height: 90px;
  margin: 6px 0 8px;
  display: block;
}

/* Slide 16 — Des questions ? */
.slide-questions {
  background:
    linear-gradient(135deg, rgba(250,251,255,0.94) 0%, rgba(238,242,255,0.92) 60%, rgba(252,231,243,0.88) 100%);
}
.questions-title {
  font-size: 48px;
  text-align: center;
  margin-bottom: 24px;
}
.questions-title em { color: var(--accent-2); }
.questions-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  flex: 1;
  align-items: center;
  min-height: 0;
}
.bd-recap-big {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 28px rgba(10,42,102,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bd-recap-big img {
  max-width: 100%;
  max-height: 460px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.bd-recap-big figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-light);
  font-style: italic;
  text-align: center;
}
.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-2);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 8px 28px rgba(10,42,102,0.10);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.contact-card h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}
.contact-name { font-size: 18px; color: var(--ink); margin: 0; }
.contact-aff { font-size: 13px; color: var(--ink-soft); font-style: italic; margin: 0 0 8px; line-height: 1.4; }
.contact-mail { font-size: 15px; color: var(--ink); margin: 0 0 10px; }
.contact-mail a { color: var(--accent-2); text-decoration: none; font-weight: 600; }
.contact-mail a:hover { text-decoration: underline; }
.qr-code {
  width: 180px;
  height: 180px;
  align-self: center;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: white;
}
.qr-cap {
  align-self: center;
  font-size: 12px;
  color: var(--ink-light);
  font-style: italic;
  margin: 4px 0 0;
}
.questions-foot {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: var(--accent-2);
}

/* =========== Slide 14 — fin =========== */
.slide-end .slide-title { color: var(--accent-2); }
.end-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
.end-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 8px 28px rgba(10,42,102,0.06);
}
.end-card:first-child { border-left: 4px solid var(--accent-3); }
.end-card:last-child { border-left: 4px solid var(--accent); }
.end-card h3 { font-size: 20px; margin-bottom: 12px; color: var(--ink); }
.end-card ul li { font-size: 16px; }
.end-quote {
  text-align: center;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}
.end-quote span {
  display: block;
  font-size: 15px;
  color: var(--ink-soft);
  font-weight: 400;
  font-style: italic;
  margin-top: 4px;
}
.thanks {
  text-align: center;
  font-size: 19px;
  color: var(--ink);
  margin: 14px 0 16px;
}
.thanks .hl {
  color: var(--accent-2);
  font-style: italic;
}

/* =========== Slide 15 — biblio =========== */
.slide-biblio .slide-title em { color: var(--accent); }
.biblio-baseline {
  font-size: 15px;
  color: var(--ink-light);
  font-style: italic;
  margin-top: -12px;
  margin-bottom: 18px;
}
.biblio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
  flex: 1;
  min-height: 0;
}
.biblio-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 4px 16px rgba(10,42,102,0.05);
  display: flex;
  flex-direction: column;
}
.biblio-block.bb1 { border-top: 3px solid var(--accent-3); }
.biblio-block.bb2 { border-top: 3px solid var(--accent-4); }
.biblio-block.bb3 { border-top: 3px solid var(--accent); }
.biblio-block.bb4 { border-top: 3px solid var(--accent-2); }
.biblio-block.bb5 { border-top: 3px solid #8b5cf6; }
.biblio-block.bb6 { border-top: 3px solid #fb923c; }
.biblio-block h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.biblio-block ul li {
  font-size: 13px;
  line-height: 1.4;
  padding-left: 14px;
  margin-bottom: 4px;
  color: var(--ink-soft);
}
.biblio-block ul li::before {
  font-size: 10px;
  top: 2px;
}
.biblio-block ul li em { color: var(--ink); font-style: italic; }

/* =========== HUD =========== */
.hud {
  position: fixed;
  bottom: 18px;
  right: 22px;
  z-index: 5;
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(10,42,102,0.08);
}
.hud .hud-hint {
  margin-left: 14px;
  color: var(--ink-light);
  font-size: 12px;
  font-weight: 400;
}

/* =========== Plein écran =========== */
:fullscreen #deck { background: transparent; }

/* =========== Responsive (sécurité) =========== */
@media (max-width: 1100px) {
  .slide { padding: 40px 50px; }
  .title-super { font-size: 50px; }
  .authors { grid-template-columns: repeat(3, 1fr); }
  .three-actions { flex-direction: column; }
  .arrow { transform: rotate(90deg); width: auto; height: 30px; }
  .kisses-grid, .jnis-grid, .symbiolink-pillars { grid-template-columns: 1fr 1fr; }
}
