/* Présentation orale — compacte, centrée, fragments progressifs */

:root {
  --ink: #1a2332;
  --ink-soft: #3d4a5c;
  --muted: #6b7785;
  --line: #d8dee6;
  --paper: #ffffff;
  --page: #e8eef4;
  --civic: #2c5282;
  --civic-tint: #eef4fa;
  --warm: #6b5344;
  --warm-tint: #f7f3ee;
  --ok: #2f5d56;
  --ok-tint: #eef6f4;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── Chrome ── */
.deck-chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(26, 35, 50, 0.92);
  color: #fff;
  backdrop-filter: blur(8px);
}

.deck-chrome a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.deck-chrome a:hover { color: #fff; }

.deck-progress {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.deck-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: #7eb0d8;
  transition: width 0.25s ease;
}

.deck-counter {
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
  min-width: 5.5rem;
  text-align: right;
}

.deck-actions {
  display: flex;
  gap: 6px;
}

.deck-actions button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
}

.deck-actions button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.deck-hint {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.deck-hint.is-hidden { opacity: 0; }

/* ── Deck ── */
.deck {
  height: 100%;
  padding-top: 48px;
}

.slide {
  display: none;
  height: 100%;
  padding: clamp(24px, 4vh, 48px) clamp(24px, 8vw, 96px);
  background: var(--paper);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.slide.is-active {
  display: flex;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Fragments ── */
.frag {
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.frag.is-shown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.frag.is-shown.is-current {
  animation: fragPop 0.45s ease;
}

@keyframes fragPop {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--civic);
}

.slide h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.18;
  color: var(--ink);
  max-width: 18ch;
}

.slide h2 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--ink);
  max-width: 22ch;
}

.slide-lead {
  margin: 16px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 34ch;
}

.slide-who {
  margin: 24px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.slide-who strong {
  color: var(--ink);
  font-weight: 700;
}

/* ── Title ── */
.slide--title {
  background:
    linear-gradient(165deg, #f7fafc 0%, #eef4fa 45%, #e4edf5 100%);
  border-bottom: 4px solid var(--civic);
  gap: 0;
}

.frag--name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.frag--name.is-shown {
  animation: nameIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes nameIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.name-line {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
  max-width: 14ch;
  text-align: center;
}

/* Accroches orales */
.hook {
  margin: 0 auto 12px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  max-width: 22ch;
}

.hook--soft {
  color: var(--ink-soft);
  font-size: clamp(22px, 3.2vw, 32px);
}

.hook--sm {
  font-family: var(--sans);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  color: var(--civic);
  max-width: 40ch;
  letter-spacing: 0.01em;
}

.hook em {
  font-style: italic;
  color: var(--civic);
}

.tagline {
  margin: 28px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Deux piliers */
.pillars {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 820px;
  margin-top: 8px;
}

.pillar {
  flex: 1;
  padding: 28px 24px;
  background: var(--civic-tint);
  border-radius: 4px;
  text-align: center;
}

.pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--civic);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.pillar h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.pillar-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--civic);
}

.pillar p:last-child {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.pillar-plus {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--muted);
  padding: 0 4px;
}

/* Parcours consultation */
.story-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 780px;
  margin-bottom: 20px;
}

.story-step {
  padding: 22px 16px;
  background: var(--page);
  border-top: 3px solid var(--civic);
  text-align: center;
}

.story-n {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--civic);
  letter-spacing: 0.08em;
}

.story-step strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}

.story-step span {
  font-size: 14px;
  color: var(--ink-soft);
}

.call {
  width: 100%;
  max-width: 780px;
  padding: 22px 28px;
  background: var(--ok-tint);
  border-left: 4px solid var(--ok);
  text-align: left;
}

.call-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ok);
}

.call-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.call-body {
  margin: 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Trois gagnants */
.wins {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
  text-align: left;
}

.win {
  padding: 24px 20px;
  background: var(--civic-tint);
  border-radius: 4px;
  min-height: 140px;
}

.win-who {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--civic);
}

.win p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

/* Trois gestes */
.gestures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 900px;
}

.gesture {
  padding: 28px 20px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
}

.gesture-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--civic);
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
}

.gesture strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.gesture p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.rules-oral {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 28px;
  width: 100%;
  max-width: 820px;
  font-size: 15px;
  color: var(--ink-soft);
}

.rules-oral strong {
  color: var(--civic);
  margin-right: 6px;
}

.frag--name .slide-org {
  margin-bottom: 18px;
}

.frag--title-block {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.frag--title-block:not(.is-shown) {
  margin-top: 0;
  padding-top: 0;
  border-top-color: transparent;
  height: 0;
  overflow: hidden;
}

.frag--title-block.is-shown {
  height: auto;
  overflow: visible;
}

.slide-org {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--civic);
}

.slide--closing {
  background: var(--ink);
  color: #fff;
}

.slide--closing h2 {
  color: #fff;
  max-width: 16ch;
}

.slide--closing .slide-lead {
  color: rgba(255, 255, 255, 0.7);
}

.slide--closing .slide-label {
  color: #7eb0d8;
}

/* Points */
.points {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
  width: 100%;
  text-align: left;
}

.points li {
  position: relative;
  padding: 14px 0 14px 22px;
  border-top: 1px solid var(--line);
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.45;
  color: var(--ink-soft);
}

.points li:first-child,
.points li.frag:not(.is-shown) + li.is-shown {
  border-top: none;
}

.points li.is-shown ~ li.is-shown {
  border-top: 1px solid var(--line);
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--civic);
}

.points--tight li {
  font-size: clamp(15px, 1.7vw, 18px);
  padding: 10px 0 10px 20px;
}

.quote {
  margin: 22px auto 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  max-width: 28ch;
  text-align: center;
}

.quote strong {
  font-weight: 700;
  color: var(--civic);
}

.example {
  margin: 18px auto 0;
  padding: 14px 18px;
  background: var(--civic-tint);
  border-left: 3px solid var(--civic);
  font-size: 16px;
  color: var(--ink);
  max-width: 36rem;
  text-align: left;
  width: 100%;
}

.example strong { font-weight: 700; }

/* Grilles */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  max-width: 900px;
  text-align: left;
}

.grid-3--follow {
  margin-top: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 820px;
  text-align: left;
}

.tile {
  padding: 20px 18px;
  border-radius: 4px;
  min-height: 0;
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.tile p,
.tile li {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.tile ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile li + li { margin-top: 8px; }

.tile--civic { background: var(--civic-tint); }
.tile--civic h3 { color: var(--civic); }

.tile--ok { background: var(--ok-tint); }
.tile--ok h3 { color: var(--ok); }

.tile--warm { background: var(--warm-tint); }
.tile--warm h3 { color: var(--warm); }

.tile--plain {
  background: var(--page);
  border: 1px solid var(--line);
}

.tile--wide {
  width: 100%;
  max-width: 820px;
  text-align: left;
  margin-bottom: 16px;
}

.tile-num {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--civic);
}

/* Schéma */
.schema {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  max-width: 640px;
  width: 100%;
  margin: 18px auto 0;
}

.schema-mother {
  padding: 18px 22px;
  background: var(--civic);
  color: #fff;
  border-radius: 4px;
  text-align: center;
}

.schema-mother strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.schema-mother span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.85;
}

.schema-kids {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.schema-kids span {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 6px;
  background: var(--civic-tint);
  border: 1px solid #c5d4e4;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
  min-height: 64px;
}

/* Méthode */
.method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 820px;
  width: 100%;
  text-align: left;
}

.method-item {
  padding: 16px 16px 14px;
  border-top: 3px solid var(--civic);
  background: var(--page);
}

.method-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--ink);
}

.method-item span {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* Nav zones */
.nav-zone {
  position: fixed;
  top: 48px;
  bottom: 0;
  width: 14%;
  max-width: 100px;
  z-index: 30;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
}

.nav-zone--prev { left: 0; }
.nav-zone--next { right: 0; }

body.is-fs .deck-chrome {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.is-fs:hover .deck-chrome,
body.is-fs .deck-chrome:focus-within {
  opacity: 1;
  pointer-events: auto;
}

body.is-fs .deck { padding-top: 0; }
body.is-fs .nav-zone { top: 0; }

@media (max-width: 800px) {
  .grid-3,
  .grid-2,
  .method,
  .schema-kids,
  .story-row,
  .wins,
  .gestures {
    grid-template-columns: 1fr;
  }

  .pillars {
    flex-direction: column;
  }

  .pillar-plus {
    transform: rotate(90deg);
    padding: 0;
  }

  .schema-kids {
    grid-template-columns: 1fr 1fr;
  }

  .slide h1,
  .slide h2 { max-width: none; }

  .nav-zone,
  .deck-hint { display: none; }

  .name-line {
    font-size: clamp(28px, 9vw, 44px);
  }
}

@media print {
  html, body {
    height: auto;
    overflow: visible;
    background: #fff;
  }

  .deck-chrome,
  .deck-hint,
  .nav-zone { display: none !important; }

  .deck { padding: 0; height: auto; }

  .slide {
    display: flex !important;
    height: auto;
    min-height: 100vh;
    page-break-after: always;
    animation: none;
  }

  .frag {
    opacity: 1 !important;
    transform: none !important;
  }
}
