/* ══════════════════════════════════════════════
   Présentation Brevet – Morselli Maëlys
   Style diaporama full-screen
══════════════════════════════════════════════ */

:root {
  --blue:    #2563eb;
  --violet:  #7c3aed;
  --teal:    #0d9488;
  --green:   #16a34a;
  --orange:  #f97316;
  --red:     #dc2626;
  --white:   #ffffff;
  --text:    #f0f4ff;
  --muted:   rgba(220, 230, 255, 0.65);
  --glass:   rgba(255, 255, 255, 0.07);
  --glass-b: rgba(255, 255, 255, 0.14);
  --r:       16px;
}

/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #08091e;
  color: var(--text);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  user-select: none;
}

sup { font-size: 0.65em; }

/* ══ DECK — conteneur de toutes les slides ══ */
.deck {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ══ SLIDE — chaque diapositive ══ */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 72px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(80px);
  transition:
    opacity  0.52s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
  overflow: hidden;
  /* scroll interne activé par le responsive */
  -webkit-overflow-scrolling: touch;
}

.slide.is-active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.slide.is-out {
  opacity: 0;
  transform: translateX(-80px);
}

/* ── fond par section ── */
.slide--cover     { background: linear-gradient(135deg, #0c1445 0%, #1a237e 42%, #311b92 80%, #1a0533 100%); }
.slide--intro     { background: linear-gradient(145deg, #0d1b3e 0%, #0e286a 55%, #1a0a5e 100%); }
.slide--positive  { background: linear-gradient(145deg, #052e3a 0%, #0e4a65 55%, #0a2655 100%); }
.slide--negative  { background: linear-gradient(145deg, #2a0808 0%, #4a0e0e 45%, #3a0e2a 100%); }
.slide--solutions { background: linear-gradient(145deg, #0f0e3d 0%, #1b1773 55%, #12063d 100%); }
.slide--conclusion{ background: linear-gradient(145deg, #0d0d30 0%, #191060 55%, #0a1f55 100%); }

/* ── Orbes décoratifs ── */
.bg-orbs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.orb {
  display: block;
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
}

.o1 { width: 560px; height: 560px; top: -180px; right: -130px; background: #4c1d95; }
.o2 { width: 420px; height: 420px; bottom: -150px; left: -90px; background: #1e3a8a; }
.o3 { width: 320px; height: 320px; top: 30%; left: 40%; background: #7c3aed; opacity: 0.3; }

.c-blue   { background: #1d4ed8; }
.c-violet { background: #6d28d9; }
.c-teal   { background: #0f766e; }
.c-green  { background: #15803d; }
.c-orange { background: #ea580c; }
.c-red    { background: #991b1b; }

/* ── Glassmorphisme ── */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-b);
  border-radius: var(--r);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ══ COUVERTURE ══ */
.cover-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.identity-card {
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.college-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(200, 215, 255, 0.9);
  letter-spacing: 0.02em;
}

.badge-icon { width: 32px; height: 32px; color: #a5b4fc; }

.id-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.id-name {
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  line-height: 1.25;
}

.id-name strong {
  font-size: 1.85rem;
  font-weight: 900;
  display: block;
}

.id-class {
  font-size: 1.05rem;
  font-weight: 800;
  color: #a5b4fc;
}

.id-year {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.id-mention {
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.cover-main { position: relative; z-index: 1; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  font-weight: 800;
  color: #a5b4fc;
  margin-bottom: 10px;
  padding: 4px 10px;
  background: rgba(165, 180, 252, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(165, 180, 252, 0.22);
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 14px;
}

h1 em { color: #a78bfa; font-style: normal; }

.cover-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.cover-img-wrap {
  width: min(460px, 98%);
  margin-top: 6px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

.cover-real-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

/* ── Image slots (placeholders) ── */
.img-slot {
  border: 2px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s;
}

.img-slot svg { width: 100%; max-height: 40px; opacity: 0.6; }
.img-slot--sm { height: 64px; }

/* ══ INTRO : stats ══ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.stat-card {
  padding: 22px 20px;
  text-align: center;
}

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-num.frac { font-size: 1.9rem; }

.stat-unit {
  font-size: 0.8rem;
  font-weight: 800;
  color: #a78bfa;
  margin: 5px 0 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.intro-img { height: 74px; margin-top: 6px; }

/* ══ SLIDES GÉNÉRIQUES ══ */
.slide-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.slide-inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.slide-header { margin-bottom: 16px; }

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin: 5px 0 6px;
}

.hl-green  { color: #4ade80; }
.hl-red    { color: #fb923c; }
.hl-violet { color: #a78bfa; }

.slide-lead {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 80ch;
}

.slide-lead strong { color: var(--text); }

/* ══ GRILLES DE CARTES ══ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.fcard {
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fcard h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin: 10px 0 7px;
  line-height: 1.2;
}

.fcard p {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.52;
  flex: 1;
}

.fcard--danger {
  background: rgba(185, 28, 28, 0.14);
  border-color: rgba(239, 68, 68, 0.25);
}

.fcard--sol {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(167, 139, 250, 0.18);
}

.card-img { margin-top: auto; padding-top: 10px; }

/* ── Icônes feature ── */
.fcard-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fcard-icon svg { width: 22px; height: 22px; }

.ico-blue   { background: rgba(37,  99, 235, 0.28); color: #93c5fd; }
.ico-violet { background: rgba(124, 58, 237, 0.28); color: #c4b5fd; }
.ico-green  { background: rgba(22, 163,  74, 0.28); color: #86efac; }
.ico-red    { background: rgba(220,  38,  38, 0.28); color: #fca5a5; }
.ico-orange { background: rgba(249, 115,  22, 0.28); color: #fdba74; }
.ico-teal   { background: rgba(13,  148, 136, 0.28); color: #5eead4; }

/* ══ CONCLUSION ══ */
.concl-card {
  width: min(860px, 94%);
  padding: 28px 34px;
  text-align: left;
}

.concl-card h2 { margin-bottom: 16px; }

blockquote {
  border-left: 4px solid #818cf8;
  padding-left: 18px;
  font-size: clamp(0.96rem, 1.8vw, 1.15rem);
  color: rgba(220, 230, 255, 0.88);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 22px;
}

.concl-pills {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
}

.pill svg { width: 20px; height: 20px; flex-shrink: 0; }
.pill--pos { background: rgba(22,  163, 74, 0.22); }
.pill--neg { background: rgba(220,  38, 38, 0.22); }
.pill--sol { background: rgba(124, 58, 237, 0.22); }

.opening {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.opening strong { color: #c4b5fd; }

.concl-signature {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

/* ══ NAVIGATION ══ */
.slide-dots {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 200;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: width 0.28s ease, background 0.28s ease;
}

.dot.active {
  width: 28px;
  background: rgba(255, 255, 255, 0.9);
}

.nav-btns {
  position: fixed;
  bottom: 28px;
  right: 36px;
  display: flex;
  gap: 10px;
  z-index: 200;
}

.nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.18s;
}

.nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}

.nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.nav-btn svg { width: 22px; height: 22px; }

.slide-counter {
  position: fixed;
  top: 22px;
  right: 30px;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.06em;
  z-index: 200;
}

.sep { margin: 0 3px; }

.kb-hint {
  position: fixed;
  bottom: 38px;
  left: 36px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.22);
  font-weight: 600;
  z-index: 200;
  letter-spacing: 0.04em;
}

/* ══ ANIMATIONS ══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.anim-up  { animation: fadeUp 0.52s ease both; }
.anim-d1  { animation-delay: 0.1s; }
.anim-d2  { animation-delay: 0.2s; }
.anim-d3  { animation-delay: 0.3s; }

/* annuler l'anim quand slide inactive (reset) */
.slide:not(.is-active) .anim-up { animation: none; }

