/* Charte graphique nine-ix.net — https://nine-ix.net/ */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --nine-bg: #ffffff;
  --nine-cream: #fdf8e8;
  --nine-cream-deep: #f5edd4;
  --nine-foreground: #141312;
  --nine-gold: #ffc852;
  --nine-gold-hover: #e5a830;
  --nine-muted: #6b6560;
  --nine-border: rgba(20, 19, 18, 0.12);
  --nine-card: rgba(255, 255, 255, 0.92);
  --font-sans: 'Open Sans', 'Sofia Sans', system-ui, sans-serif;
  --slide-pad-x: 2rem;
  --slide-pad-y: 1.35rem;
  --c-orange: #d50032;
  --c-arelion: #e8593c;
  --c-lumen: #ef8a2a;
  --c-tata: #c19a26;
  --c-francix: #2dc1f6;
  --c-amsix: #6d6df4;
  --c-cogent: #16a25c;
}

/* Fond permanent — maillage pointillé + nineballs (canvas) */
#global-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(165deg, var(--nine-cream) 0%, var(--nine-cream-deep) 55%, #ebe3cf 100%);
}

#network-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Reveal — thème clair type site */
.reveal-viewport {
  background: var(--nine-cream);
}

.reveal {
  z-index: 1;
  font-family: var(--font-sans);
  color: var(--nine-foreground);
}

.reveal .slides {
  text-align: center;
}

.reveal .slides section {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  border: 1px solid var(--nine-border);
  box-shadow: 0 4px 40px rgba(20, 19, 18, 0.06);
  box-sizing: border-box;
  padding: var(--slide-pad-y) var(--slide-pad-x) !important;
}

/* Enveloppe de pile verticale — pas de style propre */
.reveal .slides section:has(> section),
.reveal .slides section.stack {
  height: 100% !important;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Sections imbriquées : height:auto par défaut dans Reveal → collapse (écran noir) */
.reveal .slides section:has(> section) > section,
.reveal .slides section.stack > section {
  height: 100% !important;
  box-sizing: border-box;
}

.reveal h1,
.reveal h2,
.reveal h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--nine-foreground);
  text-shadow: none;
}

.reveal h1 {
  font-size: 2em;
  color: var(--nine-foreground);
}

.reveal h2 {
  font-size: 1.55em;
  color: var(--nine-foreground);
  margin-bottom: 0.6em;
  position: relative;
  display: inline-block;
}

.reveal h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--nine-gold);
  border-radius: 2px;
  margin: 0.35em auto 0;
}

/* Titres de slide — système unifié (kicker + titre + lead + badge) */
.nine-head {
  margin: 0 0 0.65em;
  flex: 0 0 auto;
  text-align: left;
}

.nine-head--center {
  text-align: center;
}

.nine-head--center .nine-title {
  justify-content: center;
}

.nine-kicker {
  margin: 0 0 0.2em;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nine-gold-hover);
}

.nine-title {
  margin: 0;
  font-size: 1.05em;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--nine-foreground);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45em;
}

.reveal .nine-title::after {
  display: none;
}

.nine-title em {
  font-style: italic;
  font-weight: 800;
  color: var(--nine-gold-hover);
}

.nine-title em.nine-title--soft {
  font-style: normal;
  font-weight: 600;
  color: var(--nine-muted);
}

.nine-title-accent {
  position: relative;
  display: inline-block;
  padding: 0 0.18em;
  color: var(--nine-foreground);
  font-style: normal;
  font-weight: 800;
}

.nine-title-accent::before {
  content: '';
  position: absolute;
  inset: 14% -0.05em 18% -0.05em;
  background: var(--nine-gold);
  border-radius: 6px;
  z-index: -1;
  transform: skewX(-6deg);
}

.nine-title-badge {
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--nine-foreground);
  background: var(--nine-gold);
  padding: 0.22em 0.65em;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nine-title-badge .nine-euro {
  font-weight: 800;
  margin-right: 0.05em;
}

.nine-lead {
  margin: 0;
  font-size: 0.48em;
  line-height: 1.4;
  font-weight: 500;
  color: var(--nine-muted);
}

body.theme-moji .nine-kicker {
  color: var(--moji-red);
}

body.theme-moji .nine-title {
  color: var(--moji-foreground);
}

body.theme-moji .nine-lead {
  color: var(--moji-muted);
}

.reveal p,
.reveal li {
  color: var(--nine-muted);
}

/* Logo officiel */
.logo-hero {
  width: min(320px, 70vw);
  margin: 0 auto 0.4em;
  display: block;
}

.logo-hero.small {
  width: 200px;
}

.logo-tagline {
  width: min(420px, 85vw);
  margin: 0.5em auto 1em;
  display: block;
  opacity: 0.95;
}

.tagline-text {
  font-size: 0.85em;
  color: var(--nine-muted);
  margin: 0.2em 0;
  font-weight: 400;
}

.event-meta {
  color: var(--nine-foreground);
  font-size: 0.8em;
  font-weight: 600;
  margin-top: 1em;
  padding: 0.35em 1em;
  background: var(--nine-gold);
  color: var(--nine-foreground);
  border-radius: 999px;
  display: inline-block;
}

.hint {
  font-size: 0.5em;
  color: var(--nine-muted);
  margin-top: 2em;
  opacity: 0.7;
}

/* Slide titre plein cream */
.slide-hero {
  background: linear-gradient(180deg, var(--nine-cream) 0%, var(--nine-bg) 100%) !important;
  border: none !important;
  box-shadow: none !important;
}

/* Présentation — Nicolas */
.slide-speaker-intro .speaker-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 46%);
  gap: 0.25rem 1.75rem;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
  text-align: left;
  overflow: visible;
}

.slide-speaker-intro {
  overflow: visible !important;
}

.speaker-intro-text {
  padding-right: 0.5rem;
}

.speaker-hello {
  font-size: 1.4em;
  font-weight: 700;
  color: var(--nine-foreground);
  margin: 0 0 0.45em;
  letter-spacing: -0.02em;
}

.speaker-bio {
  font-size: 0.62em;
  line-height: 1.5;
  color: var(--nine-muted);
  margin: 0;
}

.speaker-bio strong {
  color: var(--nine-foreground);
  font-weight: 700;
}

.speaker-intro-photo {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: visible;
  isolation: isolate;
}

.speaker-photo-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  overflow: visible;
}

.speaker-photo-clip {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid var(--nine-gold);
  box-shadow: 0 10px 36px rgba(20, 19, 18, 0.14);
}

.speaker-photo-callout {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.speaker-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
  object-fit: cover;
  object-position: center 72%;
  transform: scale(1.12);
  transform-origin: center center;
}

.speaker-photo-marker {
  position: absolute;
  left: calc(50% - 50px);
  bottom: calc(10% + 100px);
  transform: translate(-50%, 50%);
  width: 22px;
  height: 22px;
  border: 3px solid var(--nine-gold);
  border-radius: 50%;
  background: rgba(255, 200, 82, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 200, 82, 0.35);
  animation: speakerMarkerPulse 2.2s ease-in-out infinite;
  z-index: 2;
  pointer-events: none;
}

@keyframes speakerMarkerPulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(255, 200, 82, 0.35);
    transform: translate(-50%, 50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(255, 200, 82, 0.12);
    transform: translate(-50%, 50%) scale(1.06);
  }
}

.speaker-arrows {
  position: absolute;
  left: -14%;
  top: 0;
  width: 114%;
  height: 100%;
  z-index: 20;
  overflow: visible;
  pointer-events: none;
}

.speaker-arrow-curve {
  fill: none;
  stroke: var(--nine-gold);
  stroke-width: 2.8px;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(255, 200, 82, 0.45));
  opacity: 0;
}

.speaker-photo-callout.visible .speaker-arrow-curve {
  opacity: 1;
}

.speaker-photo-callout.visible .speaker-arrow-curve.is-drawn {
  animation: speakerArrowDraw 1.1s ease-out 0.2s forwards;
}

@keyframes speakerArrowDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 900px) {
  .slide-speaker-intro .speaker-intro-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .speaker-photo-marker {
    left: calc(50% - 28px);
    bottom: calc(10% + 48px);
  }

  .speaker-arrows {
    left: -8%;
    width: 108%;
  }
}

/* Fondateurs */
.founders-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  margin: 1em 0;
}

.founder-card {
  background: var(--nine-bg);
  border: 1px solid var(--nine-border);
  border-radius: 16px;
  padding: 1.2em 1.8em;
  min-width: 200px;
  box-shadow: 0 2px 16px rgba(20, 19, 18, 0.05);
}

.founder-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 0.6em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: 700;
  background: var(--nine-gold);
  color: var(--nine-foreground);
}

.founder-card h3 {
  font-size: 0.9em;
  margin: 0;
  color: var(--nine-foreground);
}

.founder-card .org {
  color: var(--nine-foreground);
  font-weight: 600;
  font-size: 0.75em;
  margin: 0.3em 0;
}

.founder-card .role {
  font-size: 0.55em;
  color: var(--nine-muted);
  margin: 0;
}

.founder-plus {
  font-size: 2em;
  color: var(--nine-gold);
  font-weight: 300;
}

.punchline {
  font-size: 0.75em;
  color: var(--nine-foreground);
  margin-top: 1.2em;
}

.punchline em {
  color: var(--nine-gold-hover);
  font-style: normal;
  font-weight: 700;
}

/* Piliers */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8em;
  max-width: 900px;
  margin: 0 auto;
}

.pillar {
  background: var(--nine-bg);
  border: 1px solid var(--nine-border);
  border-radius: 12px;
  padding: 0.8em;
  font-size: 0.5em;
  line-height: 1.4;
  border-top: 3px solid var(--nine-gold);
}

.pillar .emoji {
  font-size: 1.8em;
  display: block;
  margin-bottom: 0.3em;
}

.pillar strong {
  color: var(--nine-foreground);
  display: block;
  margin-bottom: 0.2em;
  font-size: 1.1em;
}

/* Stats */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 1.2em;
  flex-wrap: wrap;
}

.stat-box {
  background: var(--nine-bg);
  border: 1px solid var(--nine-border);
  border-radius: 12px;
  padding: 0.8em 1.2em;
  min-width: 130px;
  border-bottom: 3px solid var(--nine-gold);
}

.stat-num {
  display: block;
  font-size: 1.8em;
  font-weight: 700;
  color: var(--nine-foreground);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.45em;
  color: var(--nine-muted);
}

.api-note {
  font-size: 0.45em;
  margin-top: 1em;
  color: var(--nine-muted);
}

.api-note a {
  color: var(--nine-foreground);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--nine-gold);
}

/* Challenge */
.lead {
  font-size: 0.7em;
  color: var(--nine-foreground);
  max-width: 700px;
  margin: 0 auto 0.8em;
}

.challenge-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.challenge-list li {
  font-size: 0.65em;
  padding: 0.4em 0;
  border-left: 3px solid var(--nine-gold);
  padding-left: 1em;
  margin: 0.3em 0;
  color: var(--nine-muted);
}

.challenge-list strong {
  color: var(--nine-foreground);
}

/* Slide carte — placeholder Reveal ; carte réelle dans #empreinte-stage */
.reveal .slides section.slide-empreinte {
  background: #1a1810 !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.fine-locations {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  margin-top: 0.25em;
  font-size: inherit;
}

.empreinte-stage {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 25;
  overflow: hidden;
  background: #1a1810;
  font-family: var(--font-sans);
  font-size: 40px;
  color: var(--nine-cream);
}

.empreinte-stage.is-active {
  display: block;
}

html.empreinte-active,
html.empreinte-active body {
  overflow: hidden;
}

.empreinte-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #1a1810;
}

.empreinte-map .maplibregl-canvas-container,
.empreinte-map .maplibregl-canvas {
  width: 100% !important;
  height: 100% !important;
}

.empreinte-chrome {
  position: absolute;
  top: 0.45em;
  left: 0;
  right: 0;
  z-index: 5;
  pointer-events: none;
  text-align: center;
}

/* Titre carte — style propre (texte clair sur fond sombre, sans bandeau) */
.empreinte-stage .nine-head--empreinte {
  margin: 0;
  pointer-events: none;
}

.empreinte-stage .nine-head--empreinte .nine-kicker {
  color: var(--nine-gold-hover);
}

.empreinte-stage .nine-head--empreinte .nine-title {
  display: block;
  font-size: 1.55em;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #ffffff;
}

.empreinte-stage .empreinte-badge {
  display: inline-block;
  margin-top: 0.35em;
  padding: 0.35em 0.9em;
  background: rgba(26, 24, 16, 0.92);
  border: 1px solid #4a4228;
  border-radius: 8px;
  color: var(--nine-gold);
  font-size: 0.42em;
  font-weight: 600;
}

.empreinte-stage .empreinte-meta {
  display: block;
  margin-top: 0.35em;
  font-size: 0.38em;
  font-weight: 400;
  color: rgba(253, 248, 232, 0.75);
}

.empreinte-stage .empreinte-meta--live {
  color: var(--nine-gold);
  font-weight: 600;
}

.empreinte-glow-canvas {
  z-index: 2;
  pointer-events: none;
}

.empreinte-map .maplibregl-marker {
  z-index: 4;
}

.empreinte-hub-pin {
  position: relative;
  display: block;
  box-sizing: border-box;
  pointer-events: auto;
}

.empreinte-hub-pin::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #1a1810;
  z-index: 0;
}

.empreinte-hub-pin img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  transform-origin: center center;
}

.empreinte-hub-pin:hover img {
  animation: empreinteBallSpin 0.55s cubic-bezier(0.3, 0.8, 0.4, 1.1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 10px rgba(230, 184, 0, 0.5));
}

.empreinte-hub-pin .empreinte-hub-badge {
  font-family: var(--font-sans);
  position: absolute;
  top: -5px;
  right: -9px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--nine-gold);
  color: #141312;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

.empreinte-hub-label {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  color: #fdf8e8;
  text-shadow: 0 1px 3px #000, 0 0 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1.2;
}

.empreinte-hub-label--left {
  text-align: right;
  padding-right: 4px;
}

.empreinte-hub-label--right {
  text-align: left;
  padding-left: 4px;
}

@keyframes empreinteBallSpin {
  0% { transform: rotate(0deg) scale(1); }
  60% { transform: rotate(300deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}

.empreinte-fallback {
  color: #fdf8e8;
  padding: 2em;
}

/* Slide liste POP — grille 3 col., sans ascenseur (override styles Reveal sur ul) */
.reveal .slides section.slide-pop-list {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.slide-pop-list-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-height: 100%;
  flex: 0 1 auto;
  text-align: center;
}

.slide-pop-list .nine-head {
  flex-shrink: 0;
  margin-bottom: 0.65rem;
}

.slide-pop-list .nine-lead.pop-list-lead {
  margin: 0 0 0.15em !important;
  font-size: 0.6em !important;
  max-width: none;
}

/* Hors Reveal (évite transform + hauteur 0 des sections imbriquées) */
.pop-list-qr {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 35;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.38);
  line-height: 0;
  border: 4px solid rgba(255, 255, 255, 0.2);
  background: #fdf8e8;
}

body.pop-list-qr-visible .pop-list-qr {
  display: block;
}

.pop-list-qr img {
  display: block;
  width: 160px;
  height: 160px;
  max-width: none;
  max-height: none;
}

.slide-pop-list .pop-list-source {
  margin: 0;
  font-size: 0.48em;
  color: var(--nine-muted);
}

.slide-pop-list .pop-list {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(10.5rem, 13.5rem));
  grid-auto-rows: min-content;
  align-content: start;
  justify-items: start;
  gap: 0.45rem 1.35rem;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.3;
  text-align: left;
  max-height: none;
  overflow: visible;
}

.slide-pop-list .pop-item {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: none;
  color: var(--nine-muted);
}

.slide-pop-list .pop-item strong {
  display: block;
  color: var(--nine-foreground);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 0.2rem;
}

.reveal .slides section.slide-pop-list ul.pop-dc-list {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  text-align: left !important;
}

.reveal .slides section.slide-pop-list ul.pop-dc-list li {
  display: block !important;
  margin: 0 0 0.12rem !important;
  padding: 0 !important;
  border: none !important;
  font-size: 12px;
  line-height: 1.28;
  color: var(--nine-muted);
}

.reveal .slides section.slide-pop-list ul.pop-dc-list li::before {
  display: none !important;
  content: none !important;
}

/* Slide POP à venir */
.reveal .slides section.slide-pop-upcoming {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  text-align: center;
}

.slide-pop-upcoming .nine-head {
  flex: 0 0 auto;
}

.slide-pop-upcoming .pop-upcoming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  max-width: 1050px;
  margin: 0.6em auto 0;
  width: 92%;
}

.pop-upcoming-card {
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--nine-border);
  border-radius: 14px;
  padding: 1em 0.9em 0.85em;
  text-align: left;
  box-shadow: 0 4px 24px rgba(20, 19, 18, 0.06);
}

.pop-upcoming-card h3 {
  font-size: 0.85em;
  margin: 0.5em 0 0.25em;
  color: var(--nine-foreground);
}

.pop-upcoming-card p {
  font-size: 0.55em;
  margin: 0;
  color: var(--nine-muted);
  line-height: 1.35;
}

.pop-upcoming-badge {
  display: inline-block;
  font-size: 0.38em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--nine-foreground);
  background: var(--nine-gold);
  padding: 0.25em 0.55em;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .slide-pop-list .pop-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slide-pop-upcoming .pop-upcoming-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* Stats iframe */
.stats-frame-wrap {
  position: relative;
  width: 92%;
  height: 480px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--nine-border);
  box-shadow: 0 8px 32px rgba(20, 19, 18, 0.08);
}

.stats-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--nine-bg);
}

.stats-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--nine-cream);
  padding: 2em;
  font-size: 0.55em;
  color: var(--nine-muted);
}

.stats-fallback.hidden {
  display: none;
}

.big-link {
  font-size: 1.4em;
  color: var(--nine-foreground);
  background: var(--nine-gold);
  padding: 0.4em 1em;
  border-radius: 8px;
  text-decoration: none;
  margin: 0.5em 0;
  font-weight: 700;
}

.big-link:hover {
  background: var(--nine-gold-hover);
}

/* Services */
.dual-service {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  max-width: 820px;
  margin: 0 auto;
}

.service-card {
  flex: 1;
  background: var(--nine-bg);
  border-radius: 16px;
  padding: 1em;
  text-align: left;
  border: 1px solid var(--nine-border);
  border-top: 4px solid var(--nine-gold);
}

.service-icon {
  font-size: 1.5em;
  margin-bottom: 0.3em;
  color: var(--nine-gold-hover);
}

.service-card h3 {
  font-size: 0.75em;
  color: var(--nine-foreground);
  margin: 0 0 0.5em;
}

.service-card ul {
  margin: 0;
  padding-left: 1.1em;
  font-size: 0.5em;
  color: var(--nine-muted);
  line-height: 1.5;
}

.service-scope {
  font-size: 0.45em;
  font-weight: 700;
  color: var(--nine-gold-hover);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5em;
}

.service-badge {
  display: inline-block;
  margin-top: 0.8em;
  font-size: 0.42em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25em 0.7em;
  border-radius: 99px;
}

.service-badge--active {
  background: rgba(22,163,74,0.12);
  color: #16a34a;
  border: 1px solid rgba(22,163,74,0.35);
}

.service-badge--soon {
  background: rgba(107,101,96,0.10);
  color: var(--nine-muted);
  border: 1px solid var(--nine-border);
}

.service-icon-img {
  width: 2.2em;
  height: 2.2em;
  object-fit: contain;
  display: block;
  margin-bottom: 0.35em;
}

.service-card--green {
  border-top-color: #16a34a;
  background: rgba(22,163,74,0.05);
}

/* Slide VLAN : grid + overflow hidden pour que tout tienne dans les 720px */
.reveal .slides section.slide-vlan {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 720px !important;
  overflow: hidden;
}

.slide-vlan .nine-head {
  margin-bottom: 0.35em;
}

.slide-vlan .dual-service {
  max-width: min(1100px, 100%);
  align-self: center;
  gap: 1em;
}

.slide-vlan .service-card {
  position: relative;
  padding: 0.55em 2.8em 0.55em 0.75em;
}

.slide-vlan .service-icon-img {
  position: absolute;
  top: 0.45em;
  right: 0.45em;
  width: 1.9em;
  height: 1.9em;
  object-fit: contain;
  margin: 0;
}

.slide-vlan .service-card h3 {
  margin-bottom: 0.25em;
}

.slide-vlan .service-scope {
  margin-bottom: 0.25em;
}

.slide-vlan .service-card ul {
  font-size: 0.46em;
  line-height: 1.35;
}

.slide-vlan .service-badge {
  margin-top: 0.5em;
}

/* Backbone SVG */
.backbone-svg .pop-dot {
  fill: var(--nine-gold);
}

.backbone-svg .pop-label {
  fill: var(--nine-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-anchor: middle;
}

.backbone-svg .backbone-line {
  stroke: var(--nine-gold);
  stroke-dasharray: 8 6;
  animation: dash 20s linear infinite;
}

.backbone-svg .backbone-caption {
  fill: var(--nine-muted);
  font-size: 13px;
  text-anchor: middle;
}

@keyframes dash {
  to { stroke-dashoffset: -200; }
}

/* Pricing — style cartes site */
.pricing-grid {
  display: flex;
  gap: 1em;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.8em 0;
}

.price-card {
  background: var(--nine-bg);
  border: 1px solid var(--nine-border);
  border-radius: 16px;
  padding: 1em 1.4em;
  min-width: 140px;
}

.price-card.highlight {
  border-color: var(--nine-gold);
  box-shadow: 0 0 0 2px var(--nine-gold), 0 8px 24px rgba(255, 200, 82, 0.25);
  transform: scale(1.05);
}

.port-speed {
  display: block;
  font-size: 0.9em;
  font-weight: 700;
  color: var(--nine-foreground);
}

.price {
  display: block;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--nine-foreground);
  margin: 0.2em 0;
}

.price.accent {
  background: var(--nine-gold);
  display: inline-block;
  padding: 0.1em 0.4em;
  border-radius: 6px;
}

.price-card.commit-card .price.accent {
  background: linear-gradient(135deg, #b27b0a 0%, var(--nine-gold-hover) 60%, var(--nine-foreground) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0;
  border-radius: 0;
}

.period, .fine, .commit-detail {
  display: block;
  font-size: 0.45em;
  color: var(--nine-muted);
}

.commit-detail {
  color: var(--nine-foreground);
  font-weight: 600;
}

.pricing-note {
  font-size: 0.5em;
  color: var(--nine-muted);
}

/* Takeaways */
.takeaway {
  font-size: 0.75em;
  padding: 0.35em 0;
  color: var(--nine-muted);
}

.takeaway strong {
  color: var(--nine-foreground);
}

.cta {
  font-size: 0.65em;
  color: var(--nine-foreground);
  font-weight: 600;
  margin-top: 1.2em;
}

.speaker {
  font-size: 0.8em;
  color: var(--nine-muted);
}

.contact {
  color: var(--nine-foreground);
  font-weight: 700;
  font-size: 0.9em;
}

.slide-merci .nine-pill-link {
  display: inline-block;
  margin-top: 1.35em;
  padding: 0.42em 1.15em;
  font-size: 0.48em;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--nine-foreground);
  background: var(--nine-gold);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(20, 19, 18, 0.12);
  transition: background 0.2s ease, transform 0.2s ease;
}

.slide-merci .nine-pill-link:hover {
  background: var(--nine-gold-hover);
  transform: translateY(-1px);
}

.reveal a {
  color: var(--nine-foreground);
}

.reveal .controls {
  display: none !important;
}

.reveal .progress span {
  background: var(--nine-gold);
}

.reveal .slide-number {
  color: var(--nine-muted);
  background: transparent;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
  .dual-service {
    flex-direction: column;
  }
}

/* Slide Parlons bien, parlons circuit */
.reveal .slides section.slide-circuit {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 1rem 1.6rem 0.75rem !important;
}

.slide-circuit .nine-head {
  flex: 0 0 auto;
}

.circuit-mesh-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
}

.circuit-svg {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-height: 100%;
  overflow: visible;
}

.circuit-svg .circuit-mesh-link {
  stroke: var(--nine-gold);
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
  opacity: 0.3;
  animation: dash 22s linear infinite;
}

.circuit-svg .circuit-halo {
  fill: none;
  stroke: rgba(255, 200, 82, 0.5);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.circuit-svg .circuit-line {
  fill: none;
  stroke: var(--nine-foreground);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 5;
  animation: circuitFlow 1.6s linear infinite;
}

@keyframes circuitFlow {
  to { stroke-dashoffset: -19; }
}

.circuit-svg .peer-box-rect {
  fill: white;
  stroke: #ffc852;
  stroke-width: 2;
  filter: drop-shadow(0 2px 6px rgba(20, 19, 18, 0.10));
}

.circuit-svg .peer-box-as {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  fill: var(--nine-muted);
  text-anchor: middle;
}

.circuit-svg .peer-box-name {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  fill: var(--nine-foreground);
  text-anchor: middle;
}

.circuit-svg .cpop-ring {
  fill: white;
  stroke: #ffc852;
  stroke-width: 2;
}

.circuit-svg .cpop-ring--on {
  fill: white;
  stroke: #ffc852;
  stroke-width: 3;
  filter: drop-shadow(0 0 7px rgba(255, 200, 82, 0.75));
}

.circuit-svg .circuit-path-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  fill: var(--nine-gold-hover);
  text-anchor: middle;
  opacity: 0.95;
}

.circuit-svg .pop-label-mesh {
  font-size: 15px;
  font-weight: 600;
  fill: var(--nine-foreground);
  text-anchor: middle;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 3px;
  stroke-linejoin: round;
}


/* Bandeau de faits */
.circuit-facts {
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 0.5em;
  width: 100%;
  margin: 0 auto !important;
  padding: 0;
}

.circuit-fact {
  background: var(--nine-bg);
  border: 1px solid var(--nine-border);
  border-bottom: 2.5px solid var(--nine-gold);
  border-radius: 10px;
  padding: 0.4em 0.7em;
  text-align: center;
}

.circuit-fact dt {
  font-family: var(--font-sans);
  font-size: 0.46em;
  font-weight: 800;
  color: var(--nine-foreground);
  margin: 0 0 0.2em;
  display: block;
}

.circuit-fact dd {
  font-family: var(--font-sans);
  font-size: 0.39em;
  color: var(--nine-muted);
  margin: 0;
}

/* Slide réseau maillé Arista / Zayo */
.reveal .slides section.slide-reseau {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 1rem 1.6rem 0.75rem !important;
}

.slide-reseau .nine-head {
  flex: 0 0 auto;
}

/* ─── Slide infra-pop — photos des sites ─────────────────────────────────── */

.reveal .slides section.slide-infra-pop {
  display: grid;
  grid-template-rows: auto 1fr;
  /* Hauteur explicite : sections imbriquées (groupe vertical) ont height:auto
     dans Reveal.js — height:100% résoudrait à 0. On fixe la hauteur configurée
     de la slide ; le scale visuel est géré par transform sur .reveal.slides. */
  height: 720px !important;
  padding: var(--slide-pad-y) var(--slide-pad-x) !important;
  overflow: hidden;
}

.infra-stage {
  position: relative;
  /* height: 100% résout contre la ligne 1fr du grid (définie car section = 720px)
     → le stage a une hauteur explicitement spécifiée → les enfants absolus
     peuvent calculer leurs top/left en pourcentage. Sans ça, height reste auto
     et top:X% se résout à auto (position statique) pour tous les nœuds. */
  height: 100%;
}

.infra-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.infra-link {
  fill: none;
  stroke: var(--nine-gold);
  stroke-width: 2.5;
  stroke-dasharray: 8 5;
  stroke-linecap: round;
  opacity: 0.65;
  animation: dash 20s linear infinite;
}

.infra-link--local {
  stroke: var(--nine-gold-hover);
  stroke-dasharray: 4 3;
  opacity: 0.8;
}

.infra-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
}

/* Spécificité 0-2-1 pour battre .reveal figure { margin:... } de white.css */
.reveal .slides figure.infra-photo {
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--nine-gold);
  box-shadow: 0 4px 18px rgba(20, 19, 18, 0.13);
  line-height: 0;
  font-size: 0;
  display: block;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

/* Reveal.js white.css inject: html:not(.print-pdf) .reveal section img { margin: 15px 0 }
   spécificité 0-2-3 → il faut !important pour écraser cette marge et retrouver
   un contour jaune collé à l'image. max-width/max-height contraignent les images
   entières (pas de crop) sans déborder du stage ; les ratios sont préservés.
   Les nœuds --lg (PA3, TH2) sont 2× plus grands que les nœuds secondaires. */
.infra-photo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 280px;
  max-height: 210px;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.infra-node--lg .infra-photo img {
  max-width: 560px;
  max-height: 420px;
}

.infra-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  text-align: center;
}

.infra-city {
  font-size: 0.44em;
  font-weight: 800;
  color: var(--nine-gold-hover);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.infra-name {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--nine-muted);
  line-height: 1.1;
}

/* ─────────────────────────────────────────────────────────────────────────── */

.reseau-mesh-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.reseau-svg {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-height: 100%;
  overflow: visible;
}

.reseau-svg .mesh-link {
  stroke: var(--nine-gold);
  stroke-width: 2;
  stroke-dasharray: 8 5;
  animation: dash 18s linear infinite;
  opacity: 0.7;
}

.reseau-svg .arista-pop circle {
  filter: drop-shadow(0 2px 8px rgba(20, 19, 18, 0.13));
}

.reseau-svg .pop-label-mesh {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  fill: var(--nine-foreground);
  text-anchor: middle;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.reseau-caption {
  flex: 0 0 auto;
  font-size: 0.42em;
  color: var(--nine-muted);
  margin: 0;
  text-align: center;
}

/* circuit-svg-wrap: SVG takes all remaining height; facts sit below as direct section child */
.circuit-svg-wrap {
  position: relative;
  flex: 1 1 0 !important;
  min-height: 0;
}

.slide-circuit .circuit-facts {
  flex: 0 0 auto;
  width: 100%;
}

/* Circuit path overlay (slide-circuit uses reseau-svg) */
.reseau-svg .circuit-halo {
  fill: none;
  stroke: rgba(255, 200, 82, 0.5);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reseau-svg .circuit-halo {
  stroke: rgba(255, 140, 60, 0.45);
}

.reseau-svg .circuit-line {
  fill: none;
  stroke: #ff9f5e;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 14 5;
  animation: circuitFlow 1.6s linear infinite;
}

/* Path switch — état initial : main visible, backup caché */
.reseau-svg .circuit-main-path  { transition: opacity 0.12s ease; }
.reseau-svg .circuit-backup-path { opacity: 0; transition: opacity 0.12s ease; }

/* État après basculement (classe ajoutée par JS) */
.reseau-svg.path-switched .circuit-main-path  { opacity: 0; }
.reseau-svg.path-switched .circuit-backup-path { opacity: 1; }
.reseau-svg.path-switched .arista-pop--ams { opacity: 0.28; transition: opacity 0.12s ease; }
.reseau-svg.path-switched .arista-pop--par circle {
  stroke: #ff9f5e;
  stroke-width: 3.5;
  filter: drop-shadow(0 0 8px rgba(255, 159, 94, 0.8));
  transition: stroke 0.12s ease, filter 0.12s ease;
}

.reseau-svg .circuit-path-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  fill: var(--nine-gold-hover);
  text-anchor: middle;
  opacity: 0.95;
}

.reseau-svg .arista-pop--on circle {
  stroke-width: 3.5;
  filter: drop-shadow(0 0 8px rgba(255, 200, 82, 0.8));
}

/* Tooltip failover */
.failover-tip {
  position: absolute;
  top: 8%;
  right: 6%;
  background: white;
  border: 2px solid #ff9f5e;
  border-radius: 10px;
  padding: 0.45em 0.9em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  box-shadow: 0 4px 18px rgba(255, 140, 60, 0.22);
  pointer-events: none;
  font-family: var(--font-sans);
  z-index: 10;
}

.failover-tip-proto {
  font-size: 0.4em;
  font-weight: 800;
  color: var(--nine-foreground);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.failover-tip-stat {
  font-size: 0.46em;
  font-weight: 700;
  color: #ff9f5e;
  white-space: nowrap;
}

.reseau-svg .peer-endpoint-dot {
  fill: var(--nine-foreground);
  stroke: white;
  stroke-width: 2.5;
}

.reseau-svg .peer-endpoint-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  fill: var(--nine-foreground);
  text-anchor: middle;
  letter-spacing: 0.08em;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.circuit-asterisk {
  font-size: 0.7em;
  vertical-align: super;
  color: var(--nine-muted);
}

.circuit-fact--macsec dd.circuit-fact-note {
  font-size: 0.32em !important;
  color: rgba(255, 255, 255, 0.38) !important;
  margin: 0.25em 0 0 !important;
  text-align: left !important;
}

/* MACsec fact card */
.circuit-fact--macsec {
  background: var(--nine-foreground) !important;
  border-color: var(--nine-foreground) !important;
  border-bottom-color: var(--nine-gold) !important;
}
.circuit-fact--macsec dt {
  color: white !important;
}
.circuit-fact--macsec dd {
  color: var(--nine-gold) !important;
}

/* MACsec dedicated port box (SVG — unused) */
.reseau-svg .macsec-link {
  stroke: var(--nine-foreground);
  stroke-width: 1.5;
  stroke-dasharray: 5 4;
  opacity: 0.45;
}

.reseau-svg .macsec-box-rect {
  fill: var(--nine-foreground);
  stroke: var(--nine-gold);
  stroke-width: 1.8;
  filter: drop-shadow(0 2px 8px rgba(20, 19, 18, 0.18));
}

.reseau-svg .macsec-box-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  fill: white;
  text-anchor: middle;
  letter-spacing: 0.06em;
}

.reseau-svg .macsec-box-sub {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 600;
  fill: var(--nine-gold);
  text-anchor: middle;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Slide — Pour se connecter à qui ? */
.reveal .slides section.slide-peers {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 1rem 1.6rem 0.75rem !important;
}

.slide-peers .nine-head { flex: 0 0 auto; }

.peers-split {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
}

.peers-diagram {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.peers-svg {
  width: 100%;
  max-height: 100%;
  overflow: visible;
}

/* SVG peer diagram elements */
.peers-svg .peers-bg-link {
  stroke: rgba(20, 19, 18, 0.12);
  stroke-width: 1.5;
}

.peers-svg .peers-halo {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.peers-svg .peers-circuit-halo { stroke: rgba(255, 140, 60, 0.35); }
.peers-svg .peers-peering-halo { stroke: rgba(255, 200, 82, 0.38); }

.peers-svg .peers-line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 10 5;
  animation: dash 16s linear infinite;
}
.peers-svg .peers-circuit-line { stroke: #ff9f5e; }
.peers-svg .peers-peering-line { stroke: var(--nine-gold); }

.peers-svg .peers-label {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
}
.peers-svg .peers-label--circuit { fill: #ff9f5e; }
.peers-svg .peers-label--peering { fill: var(--nine-gold-hover); }

.peers-svg .peers-bracket {
  stroke: rgba(255, 159, 94, 0.5);
  stroke-width: 1.5;
}
.peers-svg .peers-bracket-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  fill: #ff9f5e;
  text-anchor: middle;
  opacity: 0.8;
}

.peers-svg .peer-sv-rect {
  fill: white;
  stroke: rgba(20, 19, 18, 0.14);
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 5px rgba(20, 19, 18, 0.07));
}
.peers-svg .peer-sv-rect--own  { stroke: #ff9f5e; stroke-width: 2; }
.peers-svg .peer-sv-rect--remote { stroke: var(--nine-gold); stroke-width: 2; }

.peers-svg .peer-sv-as {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  fill: var(--nine-muted);
  text-anchor: middle;
  letter-spacing: 0.03em;
}
.peers-svg .peer-sv-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  fill: var(--nine-foreground);
  text-anchor: middle;
}

/* Cloud providers panel */
.peers-cloud {
  flex: 0 0 auto;
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
}

.peers-cloud-title {
  font-family: var(--font-sans);
  font-size: 0.46em;
  font-weight: 800;
  color: var(--nine-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 0.2em;
}

.peers-cloud-list {
  display: flex !important;
  flex-direction: column;
  gap: 0.4em;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.cloud-provider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--nine-bg);
  border: 1px solid var(--nine-border);
  border-radius: 8px;
  padding: 0.35em 0.65em;
  gap: 0.6em;
}

.cloud-logo {
  height: 18px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.cloud-badge {
  font-family: var(--font-sans);
  font-size: 0.3em;
  font-weight: 700;
  padding: 0.25em 0.6em;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cloud-badge--soon {
  background: rgba(20, 19, 18, 0.06);
  color: var(--nine-muted);
}
.cloud-badge--deploy {
  background: rgba(255, 200, 82, 0.18);
  color: var(--nine-gold-hover);
}

/* Slide — Comment ? (démo panel, même gabarit que les slides L2) */
.reveal .slides section.slide-comment {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 1rem 1.6rem 0.75rem !important;
}

.slide-comment .nine-head {
  flex: 0 0 auto;
  margin-bottom: 0.35em;
}

.comment-video-stage {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comment-video-wrap {
  --comment-crop-y: 20px;
  container-type: size;
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 8px 32px rgba(20, 19, 18, 0.18);
  cursor: pointer;
}

.comment-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  /* ~20px de bandes noires haut/bas : zoom vertical + clip du wrap */
  transform: scaleY(calc(1 + (2 * var(--comment-crop-y)) / 100cqh));
  transform-origin: center center;
}

@supports not (height: 100cqh) {
  .comment-video {
    transform: scaleY(1.06);
  }
}

.comment-video-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.35s ease;
}

.comment-video-play svg {
  width: clamp(4rem, 12vw, 5.5rem);
  height: clamp(4rem, 12vw, 5.5rem);
  filter: drop-shadow(0 4px 16px rgba(20, 19, 18, 0.2));
}

.comment-video-wrap.is-playing .comment-video-play,
.comment-video-wrap.is-ended .comment-video-play {
  opacity: 0;
}

.comment-video-done {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.comment-video-wrap.is-ended .comment-video-done {
  opacity: 1;
  transform: scale(1);
}

.comment-video-done-icon {
  font-size: clamp(5rem, 20vw, 9rem);
  line-height: 1;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.55));
}

/* Slide — Le peering c'est quoi ? */
.reveal .slides section.slide-peering-concept {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 1rem 1.6rem 0.5rem !important;
}

.slide-peering-concept .nine-head { flex: 0 0 auto; margin-bottom: 0.25em; }
.slide-peering-concept .nine-lead { margin-top: 0.1em; }

.peering-switch-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.peering-svg {
  width: 100%;
  max-height: 100%;
  overflow: visible;
}

.peering-svg .peering-link {
  stroke: var(--nine-gold);
  stroke-width: 2;
  stroke-dasharray: 7 5;
  opacity: 0.55;
  animation: dash 18s linear infinite;
}

.peering-svg .ix-switch-name,
.peering-tech-svg .ix-switch-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 800;
  fill: white;
  text-anchor: start;
}

.peering-svg .ix-switch-tag,
.peering-tech-svg .ix-switch-tag {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 700;
  fill: var(--nine-gold);
  text-anchor: start;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.peering-svg .ix-port,
.peering-tech-svg .ix-port {
  fill: rgba(255, 255, 255, 0.15);
}

.peering-svg .ix-port--on,
.peering-tech-svg .ix-port--on {
  fill: var(--nine-gold);
  filter: drop-shadow(0 0 3px rgba(255, 200, 82, 0.9));
}

.peering-svg .peer-node-rect {
  fill: white;
  stroke: rgba(20, 19, 18, 0.14);
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 6px rgba(20, 19, 18, 0.08));
}

.peering-svg .peer-node-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  fill: var(--nine-foreground);
  text-anchor: middle;
  dominant-baseline: middle;
}

/* Slide — La difficulté du peering */

.reveal .slides section.slide-peering-tech {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 1rem 1.6rem 0.75rem !important;
}

.slide-peering-tech .nine-head { flex: 0 0 auto; margin-bottom: 0.3em; }

.peering-tech-body {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}

.peering-tech-diagram-wrap {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.peering-tech-svg {
  width: 100%;
  max-height: 100%;
  overflow: visible;
}

.peering-tech-svg .pt-link {
  stroke: var(--nine-gold);
  stroke-width: 2;
  stroke-dasharray: 7 5;
  opacity: 0.6;
  animation: dash 14s linear infinite;
}

.peering-tech-svg .pt-peer-rect {
  fill: white;
  stroke: rgba(20, 19, 18, 0.14);
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 6px rgba(20, 19, 18, 0.08));
}

.peering-tech-svg .pt-peer-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  fill: var(--nine-foreground);
  text-anchor: middle;
}

.peering-tech-svg .pt-peer-as {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 500;
  fill: var(--nine-muted);
  text-anchor: middle;
}

.peering-tech-svg .pt-port-rect {
  fill: white;
  stroke: var(--nine-gold);
  stroke-width: 1.5;
  filter: drop-shadow(0 2px 8px rgba(20, 19, 18, 0.10));
}

.peering-tech-svg .pt-port-title {
  font-family: var(--font-sans);
  font-size: 7px;
  font-weight: 800;
  fill: var(--nine-gold-hover);
  text-anchor: middle;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.peering-tech-svg .pt-port-sep {
  stroke: rgba(20, 19, 18, 0.1);
  stroke-width: 1;
}

.peering-tech-svg .pt-port-binding {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  fill: var(--nine-foreground);
  text-anchor: middle;
}

.peering-tech-svg .pt-port-arp {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 500;
  fill: var(--nine-muted);
  text-anchor: middle;
}

.peering-tech-facts {
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.5em;
  margin: 0 !important;
  padding: 0 !important;
}

.peering-tech-fact {
  background: var(--nine-bg);
  border: 1px solid var(--nine-border);
  border-bottom: 3px solid var(--nine-gold);
  border-radius: 10px;
  padding: 0.55em 0.8em;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2em;
}

.peering-tech-fact dt {
  font-size: 0.38em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--nine-foreground);
}

.peering-tech-fact dd {
  font-size: 0.36em;
  color: var(--nine-muted);
  margin: 0;
  line-height: 1.4;
}

.peering-tech-fact--evpn {
  background: var(--nine-foreground) !important;
  border-color: var(--nine-foreground) !important;
  border-bottom-color: var(--nine-gold) !important;
}

.peering-tech-fact--evpn dt { color: white !important; }
.peering-tech-fact--evpn dd { color: var(--nine-gold) !important; }

/* Slide — Qui est sur nine ? (nuage de logos peers) */

.reveal .slides section.slide-peer-logos {
  display: flex !important;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0.75rem 1.2rem 0.4rem !important;
}

.slide-peer-logos .nine-head { flex: 0 0 auto; margin-bottom: 0.15em; }
.slide-peer-logos .nine-lead { margin-top: 0.05em; }

.peer-cloud {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  width: 100%;
}

.peer-item {
  position: absolute;
  transform: translate(-50%, -50%);
  background: white;
  border: 1px solid rgba(20, 19, 18, 0.09);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(20, 19, 18, 0.06);
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  line-height: 1;
}

.peer-item--xl {
  padding: 7px 14px;
  border-radius: 12px;
  border-width: 1.5px;
  box-shadow: 0 4px 18px rgba(20, 19, 18, 0.10);
  z-index: 10;
}

.peer-item--l {
  padding: 5px 11px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(20, 19, 18, 0.07);
  font-family: var(--font-sans);
  font-size: 0.42em;
  font-weight: 700;
  color: var(--nine-foreground);
  z-index: 8;
}

.peer-item--m {
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.35em;
  font-weight: 700;
  color: var(--nine-foreground);
  z-index: 6;
}

.peer-item--s {
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.29em;
  font-weight: 600;
  color: var(--nine-muted);
  border-color: rgba(20, 19, 18, 0.06);
  z-index: 4;
}

.peer-item--self {
  border-color: var(--nine-gold) !important;
  border-width: 1.5px !important;
  color: var(--nine-gold-hover) !important;
  font-weight: 800 !important;
  z-index: 12;
}

.peer-item--nine {
  border-color: rgba(20, 19, 18, 0.25) !important;
  color: var(--nine-foreground) !important;
  font-weight: 700 !important;
}

.peer-img-fallback {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.7em;
  font-weight: 700;
  color: var(--nine-foreground);
  white-space: nowrap;
}

.peer-item.peer-img-err .peer-img { display: none; }
.peer-item.peer-img-err .peer-img-fallback { display: block; }

.peer-img--xl {
  height: 40px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.peer-img--l {
  height: 24px;
  max-width: 88px;
  object-fit: contain;
  display: block;
}

/* Slide « Croissance du réseau nine » — courbe membres/capacité + pays */
.reveal .slides section.slide-growth {
  text-align: left;
  padding: 0.9rem 1.4rem 0.7rem !important;
  display: flex !important;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.slide-growth .nine-head {
  flex: 0 0 auto;
  margin-bottom: 0.15em;
}

.slide-growth .nine-title {
  font-size: 0.98em;
  margin-bottom: 0.1em;
}

.slide-growth .nine-lead {
  font-size: 0.4em;
  max-width: none;
}

.slide-growth .growth-figure {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
  overflow: hidden;
}

/* ── Graphique ─────────────────────────────────────────── */
.slide-growth .growth-chart {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.slide-growth .growth-svg {
  flex: 1 1 0;
  width: 100%;
  min-height: 11rem;
  max-height: 100%;
  display: block;
  overflow: visible;
  font-family: var(--font-sans);
}

.slide-growth .growth-svg .g-grid line {
  stroke: rgba(20, 19, 18, 0.08);
  stroke-width: 0.18;
  stroke-dasharray: 0.6 0.6;
}

.slide-growth .growth-svg .g-axis line {
  stroke: rgba(20, 19, 18, 0.4);
  stroke-width: 0.25;
}

.slide-growth .growth-svg .g-ylabels text {
  font-size: 1.9px;
  font-weight: 600;
  fill: var(--nine-muted);
  text-anchor: end;
  font-variant-numeric: tabular-nums;
}

.slide-growth .growth-svg .g-xlabels text {
  font-size: 1.9px;
  font-weight: 700;
  fill: var(--nine-foreground);
  text-anchor: middle;
  letter-spacing: 0.01em;
}

.slide-growth .growth-svg .g-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}

.slide-growth .growth-svg .g-line--mem {
  stroke: var(--nine-gold-hover);
  stroke-width: 0.85;
  filter: drop-shadow(0 0.18px 0.45px rgba(0, 0, 0, 0.18));
}

.slide-growth .growth-svg .g-line--cap {
  stroke: var(--nine-muted);
  stroke-width: 0.45;
  stroke-dasharray: 1.6 1.1;
  opacity: 0.7;
}

.slide-growth .growth-svg .g-area {
  opacity: 0;
  transition: opacity 0.7s ease;
}

.slide-growth.present .growth-svg .g-line--mem,
.slide-growth .fragment.visible .g-line--mem {
  animation: growthLineDraw 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.slide-growth.present .growth-svg .g-line--cap,
.slide-growth .fragment.visible .g-line--cap {
  animation: growthLineDraw 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.slide-growth.present .growth-svg .g-area,
.slide-growth .fragment.visible .g-area {
  opacity: 1;
  transition-delay: 1.1s;
}

@keyframes growthLineDraw {
  to { stroke-dashoffset: 0; }
}

.slide-growth .growth-svg .g-dot {
  fill: var(--nine-gold-hover);
  stroke: #fff;
  stroke-width: 0.28;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide-growth .growth-svg .g-dot--last {
  fill: var(--nine-gold);
  stroke-width: 0.4;
}

.slide-growth.present .growth-svg .g-dot,
.slide-growth .fragment.visible .g-dot {
  opacity: 1;
  transition-delay: 1.25s;
}

.slide-growth .growth-svg .g-plbl {
  font-weight: 800;
  fill: var(--nine-gold-hover);
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide-growth .growth-svg .g-plbl--start { font-size: 2.1px; text-anchor: start; }
.slide-growth .growth-svg .g-plbl--end { font-size: 3.4px; text-anchor: end; }

.slide-growth.present .growth-svg .g-plbl,
.slide-growth .fragment.visible .g-plbl {
  opacity: 1;
  transition-delay: 1.35s;
}

.slide-growth .growth-legend {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 1rem;
  justify-content: center;
  font-size: 0.36em;
  font-weight: 600;
  color: var(--nine-muted);
}

.slide-growth .g-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.slide-growth .g-leg-dot {
  width: 1.1em;
  height: 0.24em;
  border-radius: 2px;
}

.slide-growth .g-leg--mem .g-leg-dot { background: var(--nine-gold-hover); }
.slide-growth .g-leg--cap .g-leg-dot {
  background: var(--nine-muted);
  height: 0;
  border-top: 0.16em dashed var(--nine-muted);
  border-radius: 0;
}

/* ── Liste pays ────────────────────────────────────────── */
.slide-growth .growth-countries {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.55rem 0.4rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--nine-border);
  border-radius: 12px;
  overflow: hidden;
}

.slide-growth .gc-title {
  flex: 0 0 auto;
  margin: 0 0 0.35rem;
  font-size: 0.42em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--nine-foreground);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5em;
}

.slide-growth .gc-title span {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--nine-muted);
  font-size: 0.85em;
}

.reveal .slides section.slide-growth ul.gc-list {
  flex: 1 1 0;
  min-height: 0;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  columns: 2;
  column-gap: 0.7rem;
  font-size: 0.36em;
  line-height: 1.25;
  text-align: left !important;
  overflow: hidden;
}

.reveal .slides section.slide-growth ul.gc-list li {
  display: grid !important;
  grid-template-columns: 1.4em 1fr auto;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 0.12rem !important;
  padding: 0.1em 0.3em !important;
  border: none !important;
  border-radius: 4px;
  break-inside: avoid;
  background: linear-gradient(to right, rgba(255, 200, 82, 0.34) var(--w, 0%), transparent var(--w, 0%));
}

.reveal .slides section.slide-growth ul.gc-list li::before {
  display: none !important;
  content: none !important;
}

.slide-growth .gc-flag {
  font-size: 1.15em;
  line-height: 1;
}

.slide-growth .gc-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--nine-foreground);
  font-weight: 600;
}

.slide-growth .gc-num {
  font-weight: 800;
  color: var(--nine-foreground);
  font-variant-numeric: tabular-nums;
}

.slide-growth .gc-source {
  flex: 0 0 auto;
  margin: 0.35rem 0 0;
  font-size: 0.3em;
  color: var(--nine-muted);
}

/* Slide « Prix au Gbps selon le commit » — line chart log */

.reveal .slides section.slide-prix {
  text-align: left;
  padding: 0.9rem 1.4rem 0.75rem !important;
  display: flex !important;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.slide-prix .nine-head,
.slide-prix .prix-takeaway,
.slide-prix .prix-sources {
  flex-shrink: 0;
}

.slide-prix .nine-head {
  flex: 0 0 auto;
}

.slide-prix .nine-title {
  font-size: 0.95em;
  margin-bottom: 0.1em;
}

.slide-prix .nine-lead {
  font-size: 0.4em;
}

.slide-prix .prix-figure {
  flex: 1 1 0;
  min-height: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: stretch;
  overflow: hidden;
}

.slide-prix .prix-chart-svg {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  max-height: 100%;
  display: block;
  overflow: visible;
  font-family: var(--font-sans);
}

.slide-prix .prix-chart-svg .prix-grid line {
  stroke: rgba(20, 19, 18, 0.08);
  stroke-width: 0.18;
  stroke-dasharray: 0.6 0.6;
}

.slide-prix .prix-chart-svg .prix-xgrid line {
  stroke: rgba(20, 19, 18, 0.06);
  stroke-width: 0.14;
  stroke-dasharray: 0.4 0.5;
}

.slide-prix .prix-chart-svg .prix-axis line {
  stroke: rgba(20, 19, 18, 0.4);
  stroke-width: 0.25;
}

.slide-prix .prix-chart-svg .prix-ylabels text {
  font-size: 1.9px;
  font-weight: 600;
  fill: var(--nine-muted);
  text-anchor: end;
  font-variant-numeric: tabular-nums;
}


.slide-prix .prix-chart-svg .prix-xlabels text {
  font-size: 1.95px;
  font-weight: 700;
  fill: var(--nine-foreground);
  text-anchor: middle;
  letter-spacing: 0.02em;
}

.slide-prix .prix-chart-svg .zone-tag {
  font-size: 1.85px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-anchor: middle;
  text-transform: uppercase;
}

.slide-prix .prix-chart-svg .zone-tag--transit {
  fill: rgba(213, 0, 50, 0.55);
}

.slide-prix .prix-chart-svg .zone-tag--peering {
  fill: rgba(22, 162, 92, 0.7);
}

.slide-prix .prix-chart-svg .prix-zone-arrow-line {
  stroke: rgba(12, 138, 77, 0.55);
  stroke-width: 0.28;
  stroke-dasharray: 0.9 0.7;
  stroke-linecap: round;
}

.slide-prix .prix-chart-svg .zone-arrow-label {
  font-size: 1.8px;
  font-weight: 800;
  fill: #0c8a4d;
  text-anchor: middle;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.slide-prix .prix-chart-svg .prix-line {
  fill: none;
  stroke-width: 0.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0.15px 0.4px rgba(0, 0, 0, 0.15));
}

.slide-prix .fragment.visible .prix-line,
.slide-prix.present .prix-line {
  animation: prixLineDraw 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes prixLineDraw {
  to { stroke-dashoffset: 0; }
}

.slide-prix .prix-line--orange  { stroke: var(--c-orange);  animation-delay: 0.05s; }
.slide-prix .prix-line--arelion { stroke: var(--c-arelion); animation-delay: 0.18s; }
.slide-prix .prix-line--lumen   { stroke: var(--c-lumen);   animation-delay: 0.30s; }
.slide-prix .prix-line--tata    { stroke: var(--c-tata);    animation-delay: 0.42s; }
.slide-prix .prix-line--francix { stroke: var(--c-francix); animation-delay: 0.65s; }
.slide-prix .prix-line--amsix   { stroke: var(--c-amsix);   animation-delay: 0.78s; }
.slide-prix .prix-line--cogent  { stroke: var(--c-cogent);  animation-delay: 0.90s; }

.slide-prix .prix-chart-svg .dot {
  stroke: #fff;
  stroke-width: 0.3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide-prix .fragment.visible .dot,
.slide-prix.present .dot {
  opacity: 1;
  transition-delay: 1.2s;
}

.slide-prix .dot--orange  { fill: var(--c-orange); }
.slide-prix .dot--arelion { fill: var(--c-arelion); }
.slide-prix .dot--lumen   { fill: var(--c-lumen); }
.slide-prix .dot--tata    { fill: var(--c-tata); }
.slide-prix .dot--francix { fill: var(--c-francix); }
.slide-prix .dot--amsix   { fill: var(--c-amsix); }
.slide-prix .dot--cogent  { fill: var(--c-cogent); }

.slide-prix .prix-chart-svg .lbl {
  font-size: 1.85px;
  font-weight: 800;
  text-anchor: start;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide-prix .fragment.visible .lbl,
.slide-prix.present .lbl {
  opacity: 1;
  transition-delay: 1.3s;
}

.slide-prix .lbl--orange  { fill: var(--c-orange); }
.slide-prix .lbl--arelion { fill: var(--c-arelion); }
.slide-prix .lbl--lumen   { fill: var(--c-lumen); }
.slide-prix .lbl--tata    { fill: var(--c-tata); }
.slide-prix .lbl--francix { fill: var(--c-francix); }
.slide-prix .lbl--amsix   { fill: var(--c-amsix); }
.slide-prix .lbl--cogent  { fill: var(--c-cogent); }

/* Légende */
.slide-prix .prix-legend {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--nine-border);
  border-radius: 12px;
  justify-content: center;
  min-height: 0;
  overflow-y: auto;
}

.slide-prix .leg-category {
  font-size: 0.38em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nine-foreground);
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  padding-top: 0.3em;
}

.slide-prix .leg-category:first-child {
  padding-top: 0;
}

.slide-prix .leg-category em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--nine-muted);
}

.slide-prix .leg-category--peering {
  color: #0c8a4d;
  border-top: 0;
}

.slide-prix .leg-category--transit {
  color: var(--c-orange);
  margin-top: 0.25em;
  padding-top: 0.4em;
  border-top: 1px dashed rgba(20, 19, 18, 0.12);
}

.slide-prix .leg-item {
  display: grid;
  grid-template-columns: 0.75em 1fr auto;
  align-items: center;
  gap: 0.4em;
  font-size: 0.38em;
  color: var(--nine-foreground);
  line-height: 1.2;
}

.slide-prix .leg-item strong {
  font-weight: 800;
}

.slide-prix .leg-item em {
  font-style: normal;
  font-weight: 700;
  color: var(--nine-foreground);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: rgba(20, 19, 18, 0.04);
  padding: 0.12em 0.4em;
  border-radius: 6px;
  font-size: 0.88em;
  line-height: 1.2;
}

.slide-prix .leg-item .leg-eur,
.slide-prix .prix-chart-svg .prix-y-euro {
  font-weight: 800;
  color: var(--nine-gold-hover);
}

.slide-prix .leg-item .leg-unit {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--nine-muted);
  margin-left: 0.15em;
}

.slide-prix .leg-dot {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  display: inline-block;
}

.slide-prix .leg-item--orange  .leg-dot { background: var(--c-orange); }
.slide-prix .leg-item--arelion .leg-dot { background: var(--c-arelion); }
.slide-prix .leg-item--lumen   .leg-dot { background: var(--c-lumen); }
.slide-prix .leg-item--tata    .leg-dot { background: var(--c-tata); }
.slide-prix .leg-item--francix .leg-dot { background: var(--c-francix); }
.slide-prix .leg-item--amsix   .leg-dot { background: var(--c-amsix); }
.slide-prix .leg-item--cogent  .leg-dot { background: var(--c-cogent); }

.slide-prix .prix-takeaway {
  margin: 0;
  font-size: 0.48em;
  font-weight: 600;
  color: var(--nine-foreground);
  text-align: center;
  padding: 0.45em 0.7em;
  background: var(--nine-cream);
  border: 1px solid rgba(255, 200, 82, 0.55);
  border-radius: 10px;
}

.slide-prix .prix-takeaway strong {
  color: var(--c-orange);
  font-weight: 800;
}

.slide-prix .prix-takeaway .leg-eur {
  font-weight: 800;
  color: var(--nine-gold-hover);
}

.slide-prix .prix-sources {
  margin: 0;
  font-size: 0.3em;
  color: var(--nine-muted);
  line-height: 1.45;
  text-align: center;
}

.slide-prix .prix-sources em {
  font-style: italic;
}

@media (max-width: 900px) {
  .slide-prix .prix-figure {
    grid-template-columns: 1fr;
  }
}

/* Slide « Et si Nine arrivait sur le marché ? » */
.reveal .slides section.slide-offre-nine {
  text-align: left;
  padding: 1.2rem 1.8rem 0.5rem !important;
  display: flex !important;
  flex-direction: column;
  gap: 0.45rem;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 200, 82, 0.18) 0%, transparent 55%),
    radial-gradient(circle at 88% 88%, rgba(255, 200, 82, 0.12) 0%, transparent 60%),
    rgba(255, 255, 255, 0.92) !important;
}

.slide-offre-nine .nine-head {
  flex: 0 0 auto;
}

.slide-offre-nine .nine-title {
  font-size: 1.15em;
  line-height: 1.05;
  display: block;
}

.slide-offre-nine .offre-cards {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-height: 0;
}

.slide-offre-nine .offre-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 1.1rem 0.5rem;
  border-radius: 18px;
  border: 1px solid var(--nine-border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 30px rgba(20, 19, 18, 0.07);
  overflow: hidden;
  box-sizing: border-box;
}

.slide-offre-nine .offre-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 82, 0.35) 0%, rgba(255, 200, 82, 0) 70%);
  pointer-events: none;
}

.slide-offre-nine .offre-card--100g {
  background:
    linear-gradient(135deg, rgba(255, 200, 82, 0.18) 0%, rgba(255, 200, 82, 0) 60%),
    rgba(255, 255, 255, 0.97);
  border-color: rgba(229, 168, 48, 0.55);
  box-shadow: 0 10px 36px rgba(229, 168, 48, 0.18);
}

.slide-offre-nine .offre-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
}

.slide-offre-nine .offre-card-port {
  font-size: 0.55em;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--nine-foreground);
}

.slide-offre-nine .offre-card-pill {
  font-size: 0.36em;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nine-muted);
  background: rgba(20, 19, 18, 0.05);
  padding: 0.32em 0.7em;
  border-radius: 999px;
}

.slide-offre-nine .offre-card-pill--gold {
  color: var(--nine-foreground);
  background: var(--nine-gold);
}

.slide-offre-nine .offre-price-row {
  display: flex;
  align-items: center;
  gap: 0.8em;
}

.slide-offre-nine .offre-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.25em;
  line-height: 1;
}

.slide-offre-nine .offre-price-amount {
  font-size: 2em;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--nine-foreground);
  font-variant-numeric: tabular-nums;
}

.slide-offre-nine .offre-card--100g .offre-price-amount {
  background: linear-gradient(135deg, #b27b0a 0%, var(--nine-gold-hover) 60%, var(--nine-foreground) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.slide-offre-nine .offre-price-period {
  font-size: 0.5em;
  color: var(--nine-muted);
  font-weight: 600;
}

.slide-offre-nine .offre-card-unit {
  position: absolute;
  bottom: 0.65rem;
  right: 0.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  padding: 0.4em 0.7em;
  border-radius: 10px;
  background: var(--nine-cream);
  border: 1px solid rgba(255, 200, 82, 0.5);
}

.slide-offre-nine .offre-unit-amount {
  font-size: 0.65em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--nine-foreground);
}

.slide-offre-nine .offre-unit-label {
  font-size: 0.33em;
  color: var(--nine-muted);
  font-weight: 600;
}

.slide-offre-nine .offre-card-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25em;
  font-size: 0.4em;
  color: var(--nine-muted);
  line-height: 1.35;
}

.slide-offre-nine .offre-card-feats li {
  position: relative;
  padding-left: 1.1em;
}

.slide-offre-nine .offre-card-feats li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 2px;
  background: var(--nine-gold);
  transform: rotate(45deg);
}

.slide-offre-nine .offre-vs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55em;
  font-size: 0.42em;
  padding: 0.5em 0.8em;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--nine-border);
  border-radius: 12px;
}

.slide-offre-nine .offre-vs-label {
  color: var(--nine-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85em;
}

.slide-offre-nine .offre-vs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45em;
  align-items: center;
}

.slide-offre-nine .offre-vs-list li {
  font-weight: 500;
  color: var(--nine-muted);
  font-variant-numeric: tabular-nums;
  background: rgba(20, 19, 18, 0.04);
  padding: 0.28em 0.65em;
  border-radius: 999px;
}

.slide-offre-nine .offre-vs-list li strong {
  color: var(--nine-foreground);
  font-weight: 700;
}

.slide-offre-nine .offre-vs-arrow {
  font-weight: 800;
  color: var(--nine-gold-hover);
  font-size: 1.2em;
}

.slide-offre-nine .offre-vs-nine {
  font-weight: 800;
  color: var(--nine-foreground);
  background: var(--nine-gold);
  padding: 0.35em 0.85em;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 10px rgba(229, 168, 48, 0.35);
}

.slide-offre-nine .offre-baseline {
  margin: 0;
  text-align: center;
  font-size: 0.5em;
  color: var(--nine-foreground);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.slide-offre-nine .offre-baseline em {
  font-style: italic;
  color: var(--nine-gold-hover);
  font-weight: 700;
}

@media (max-width: 900px) {
  .slide-offre-nine .offre-cards {
    grid-template-columns: 1fr;
  }
}

/* Slide « On commence quand ? » — fondateurs + timeline */
.reveal .slides section.slide-when {
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.slide-when .nine-head {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  right: auto;
  z-index: 10;
  padding: 0.55rem 1rem 0.6rem;
  background: rgba(253, 248, 232, 0.94);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(20,19,18,0.13);
  text-align: left;
  backdrop-filter: blur(4px);
}

.slide-when .nine-title {
  font-size: 1.1em;
  line-height: 1.05;
  display: block;
}

.slide-when .when-founders {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  gap: 0;
  z-index: 1;
}

.slide-when .when-founder {
  flex: 1 1 0;
  position: relative;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: #1a1712;
  border: 0;
  box-shadow: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.reveal .slides section.slide-when figure {
  margin: 0;
  padding: 0;
  border: 0;
}

.slide-when figure.when-founder-photo {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  overflow: hidden;
  border-radius: 0;
  background: #1a1712;
}

.slide-when .when-founder-photo--landscape {
  background: #0d1f30;
}

.slide-when figure.when-founder-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  object-position: center center;
  vertical-align: top;
  opacity: 0.88;
}

.slide-when .when-founder-photo--landscape img {
  object-position: center 38%;
  opacity: 0.82;
}

.slide-when figure.when-founder-photo--portrait img {
  object-position: center 0%;
}

.slide-when .when-founder-meta {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: auto;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  gap: 0.3em;
  min-width: 0;
  padding: 0.5rem 0.8rem 0.55rem;
  background: rgba(10, 8, 6, 0.52);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}

.slide-when .when-founder-brand {
  align-self: flex-start;
  font-size: 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.slide-when .when-founder-brand--akwa {
  color: #ffffff;
  background: #0f4a82;
  text-transform: lowercase;
}

.slide-when .when-founder-brand--moji {
  color: #ffffff;
  background: #d50032;
  text-transform: lowercase;
}

.slide-when .when-founder-names {
  margin: 0;
  font-size: 0.72em;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.05;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7), 0 2px 20px rgba(0,0,0,0.5);
}

.slide-when .when-founder-names::after {
  display: none;
}

.slide-when .when-founder-names .amp {
  color: var(--nine-gold);
  font-weight: 600;
}

.slide-when .when-founder-role {
  margin: 0;
  font-size: 0.42em;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.25;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

/* Timeline */
.slide-when .when-timeline {
  list-style: none;
  margin: 0;
  padding: 0.6rem 1.6rem 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(
    to top,
    rgba(253, 248, 232, 0.96) 0%,
    rgba(253, 248, 232, 0.88) 65%,
    transparent 100%
  );
  padding-top: 1.6rem;
}

.slide-when .when-timeline::before {
  content: '';
  position: absolute;
  top: 4.575rem;
  left: 1.6rem;
  right: 1.6rem;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 200, 82, 0.25) 0%,
    var(--nine-gold) 35%,
    var(--nine-gold-hover) 65%,
    rgba(255, 200, 82, 0.4) 100%
  );
  border-radius: 999px;
  z-index: 0;
}

.slide-when .when-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
  text-align: center;
  position: relative;
  z-index: 1;
}

.slide-when .when-step-date {
  font-size: 0.42em;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nine-foreground);
}

.slide-when .when-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--nine-gold);
  box-shadow: 0 0 0 4px rgba(255, 200, 82, 0.18);
}

.slide-when .when-step--milestone .when-step-dot {
  background: var(--nine-gold);
  border-color: var(--nine-gold-hover);
  box-shadow: 0 0 0 5px rgba(255, 200, 82, 0.32);
  transform: scale(1.18);
}

.slide-when .when-step-label {
  font-size: 0.38em;
  color: var(--nine-muted);
  line-height: 1.3;
  max-width: 18ch;
}

.slide-when .when-step-label strong {
  color: var(--nine-foreground);
  font-weight: 700;
}

.slide-when .when-step-label em {
  font-style: italic;
  color: var(--nine-gold-hover);
  font-weight: 600;
}

.slide-when .when-step--milestone .when-step-date {
  color: var(--nine-gold-hover);
}

@media (max-width: 900px) {
  .slide-when .when-founders {
    grid-template-columns: 1fr;
  }

  .slide-when figure.when-founder-photo {
    inset: 0;
  }

  .slide-when .when-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .slide-when .when-timeline::before {
    display: none;
  }
}

/* Slides tarifs & clôture (après Castle — fond crème explicite) */
.reveal .slides section.slide-pricing,
.reveal .slides section.slide-closing {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100% !important;
  overflow: hidden;
  box-sizing: border-box;
  padding: 1rem 1.6rem 0.75rem !important;
}

.slide-pricing .nine-head,
.slide-closing .nine-head {
  flex: 0 0 auto;
}

/* ─── Slide Castle IT — charte IP&IPAs 2026 ──────────────────────────────── */

.reveal .slides section.slide-castle {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100% !important;
  width: 100%;
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
}

.castle-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 70% at 50% 50%, rgba(30, 111, 255, 0.10) 0%, transparent 70%),
    linear-gradient(rgba(30, 111, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 111, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 60px 60px, 60px 60px;
  pointer-events: none;
}

.castle-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8em;
  text-align: center;
}

.castle-conf-badge {
  background: rgba(200, 169, 110, 0.10);
  border: 1px solid rgba(200, 169, 110, 0.28);
  border-radius: 999px;
  padding: 0.35em 1.4em;
}

.castle-conf-label {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 0.45em;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #C8A96E;
}

.castle-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
}

.castle-soon {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.1em;
  color: rgba(250, 250, 250, 0.55);
  margin: 0;
  letter-spacing: 0.02em;
}

.castle-soon em {
  color: rgba(250, 250, 250, 0.75);
  font-style: italic;
}

.castle-name {
  font-family: 'Space Grotesk', 'Open Sans', sans-serif;
  font-weight: 700;
  font-size: 4.2em;
  color: #FAFAFA;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1;
}

.castle-asn {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 0.62em;
  font-weight: 500;
  color: #1E6FFF;
  letter-spacing: 0.1em;
  margin: 0.2em 0 0;
}

.castle-services {
  display: flex;
  align-items: center;
  gap: 2em;
  margin-top: 0.4em;
}

.castle-svc {
  background: rgba(30, 111, 255, 0.07);
  border: 1px solid rgba(30, 111, 255, 0.22);
  border-radius: 14px;
  padding: 1em 2em;
  min-width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.castle-svc-tag {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 0.42em;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #1E6FFF;
}

.castle-svc p {
  font-family: 'Space Grotesk', 'Open Sans', sans-serif;
  font-size: 0.62em;
  color: rgba(250, 250, 250, 0.65);
  margin: 0;
}

.castle-divider {
  font-family: 'Space Grotesk', 'Open Sans', sans-serif;
  font-size: 1.8em;
  font-weight: 300;
  color: rgba(250, 250, 250, 0.18);
  line-height: 1;
}
