/* ==========================================================================
   FLOOOW — Deck Investisseur
   Palette : bordeaux #3d0f2f  ·  rose #f4acb7  ·  blanc
   Fonts   : Clash Display (titres) + Poppins (corps)
   ========================================================================== */

/* ---------- FONTS ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('../../fonts/ClashDisplay-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('../../fonts/ClashDisplay-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../../fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../../fonts/Poppins-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

/* ---------- TOKENS ---------- */
:root {
  --c-bg: #3d0f2f;
  --c-accent: #f4acb7;
  --c-white: #ffffff;

  --font-display: 'Clash Display', 'Inter', sans-serif;
  --font-body: 'Poppins', 'Inter', sans-serif;

  /* Canvas Figma : 1920x1080 → tout est scalé via transform */
  --w-canvas: 1920px;
  --h-canvas: 1080px;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; }
body {
  font-family: var(--font-body);
  color: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ---------- DECK CONTAINER (bande horizontale continue) ---------- */
.stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}
/* Viewport = fenêtre aux dimensions exactes d'UNE slide scalée.
   Tout ce qui sort à gauche/droite est clippé ici.
   Centrée dans la stage (letterbox noire autour). */
.viewport {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  /* width / height set via JS */
}
.deck {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  height: var(--h-canvas);
  /* width = total des slides, set via JS */
  transform-origin: top left;
  will-change: transform;
}

/* ---------- SLIDE BASE (chaque slide = une colonne de la bande) ---------- */
.slide {
  position: relative;
  flex: 0 0 var(--w-canvas);
  width: var(--w-canvas);
  height: var(--h-canvas);
  background: var(--c-bg);
  overflow: hidden;
}

/* ---------- HEADER (tag + logo) ---------- */
.slide__header {
  position: absolute;
  top: 115px;
  left: 120px;
  right: 120px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}
.slide__tag {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-accent);
}
.slide__logo { width: 80px; height: 30px; }
.slide__logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- NUMBER (bottom right) ---------- */
.slide__number {
  position: absolute;
  right: 120px;
  bottom: 120px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 80px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--c-white);
  z-index: 5;
}

/* ---------- BG BLOB (radial gradients Figma) ---------- */
.slide__bg-blob {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.slide__bg-blob--02 {
  background: radial-gradient(ellipse 45% 50% at 78% 74%,
    rgba(249,193,177,0.95) 0%,
    rgba(214,130,80,0.65) 30%,
    rgba(132,62,47,0.35) 55%,
    rgba(61,15,47,0) 80%);
}
.slide__bg-blob--03 {
  background: radial-gradient(ellipse 45% 50% at 88% 74%,
    rgba(249,193,177,0.95) 0%,
    rgba(214,130,80,0.6) 25%,
    rgba(132,62,47,0.3) 50%,
    rgba(61,15,47,0) 73%);
}
.slide__bg-blob--04 {
  background: radial-gradient(ellipse 60% 60% at 50% 66%,
    rgba(249,193,177,0.9) 0%,
    rgba(202,109,47,0.6) 35%,
    rgba(132,62,47,0.3) 60%,
    rgba(61,15,47,0) 95%);
}
.slide__bg-blob--06 {
  background: radial-gradient(ellipse 50% 70% at 88% 74%,
    rgba(197,238,222,0.85) 0%,
    rgba(181,199,145,0.55) 20%,
    rgba(202,109,47,0.45) 50%,
    rgba(61,15,47,0) 73%);
}
.slide__bg-blob--07 {
  background: radial-gradient(ellipse 50% 70% at 78% 130%,
    rgba(197,238,222,0.75) 0%,
    rgba(181,199,145,0.5) 18%,
    rgba(202,109,47,0.4) 45%,
    rgba(61,15,47,0) 70%);
}
.slide__bg-blob--09 {
  background: radial-gradient(ellipse 55% 55% at 72% 66%,
    rgba(249,193,177,0.95) 0%,
    rgba(229,133,121,0.7) 30%,
    rgba(145,74,84,0.4) 55%,
    rgba(61,15,47,0) 85%);
}
.slide__bg-blob--10-top {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 35% 55% at 25% 100%,
    rgba(249,193,177,0.7) 0%,
    rgba(202,109,47,0.4) 40%,
    rgba(61,15,47,0) 78%);
}
.slide__bg-blob--10-bottom {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(ellipse 35% 55% at 75% 0%,
    rgba(249,193,177,0.7) 0%,
    rgba(202,109,47,0.4) 40%,
    rgba(61,15,47,0) 78%);
}

/* ---------- VISUALS (images en arrière-plan) ---------- */
.slide__visual {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.slide__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slide__visual-gradient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* positions individuelles */
.slide__visual--02 { top: 164px; left: 892px; width: 1688px; height: 932px; }
.slide__visual--03 { top: 151px; left: 1014px; width: 1694px; height: 929px; }
.slide__visual--04 { top: 192px; left: 259px; width: 1402px; height: 1122px; }
.slide__visual--05 { top: 0; right: 0; left: auto; width: 1100px; height: 1080px; }
.slide__visual--05 img { object-position: right center; }
.slide__visual-gradient--05 {
  background: linear-gradient(90deg, rgb(61,15,47) 0%, rgba(61,15,47,0.85) 8%, rgba(61,15,47,0) 25%);
}
.slide__visual--06 { top: 142px; left: 933px; width: 1672px; height: 941px; }
.slide__visual--07 { top: 0;     left: 998px; width: 884px;  height: 1178px; }
.slide__visual--08 { top: 76px;  left: 870px; width: 1291px; height: 1033px; }
.slide__visual--09 { top: -21px; left: 857px; width: 1402px; height: 1122px; }
.slide__visual--10 { top: 575px; left: 124px; width: 1672px; height: 941px; }

/* ---------- SLIDE COVER (01) ---------- */
.slide__bg--cover { position: absolute; inset: 0; z-index: 1; }
.slide__bg--cover img { width: 100%; height: 100%; object-fit: cover; }
.slide__bg-gradient--cover {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(61,15,47,0) 47%, rgb(61,15,47) 80%);
}
.slide__cover-content {
  position: absolute;
  bottom: 121px;
  left: 120px;
  right: 120px;
  z-index: 10;
}
.slide__cover-kicker {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 19px;
  line-height: 40px;
  color: var(--c-white);
  margin-bottom: 18px;
}
.slide__cover-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 100px;
  line-height: 96px;
  letter-spacing: -1px;
  color: var(--c-white);
}
.slide__cover-title span { display: block; }
.slide__cover-title em { font-style: normal; color: var(--c-accent); }

/* ---------- CONTENT (left column) ---------- */
.slide__content {
  position: absolute;
  top: 120px;
  left: 120px;
  height: 840px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 10;
}
.slide__content--878 { width: 878px; }
.slide__content--742 { width: 742px; }
.slide__top {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding-top: 48px; /* leave room for header tag */
}

.slide__headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 60px;
  line-height: 68px;
  letter-spacing: -1px;
  color: var(--c-white);
}
.slide__headline em { font-style: normal; color: var(--c-accent); }

.slide__footer-statement {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 25px;
  line-height: 30px;
  color: var(--c-white);
}
.slide__footer-statement em { font-style: normal; color: var(--c-accent); }

/* ---------- APPS LIST (slide 02) ---------- */
.apps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.apps-list__intro {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 30px;
  color: var(--c-white);
  max-width: 518px;
  margin-bottom: 0;
}
.apps-list__item { display: flex; flex-direction: column; }
.apps-list__name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  color: var(--c-white);
  opacity: 0.8;
}
.apps-list__desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  color: var(--c-white);
  opacity: 0.5;
}

/* ---------- COMPARE (slide 03) ---------- */
.compare {
  display: flex;
  gap: 60px;
  width: 100%;
}
.compare__col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.compare__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 30px;
  color: var(--c-white);
}
.compare__list {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: var(--c-white);
}

/* ---------- SOLUTION (slide 04) ---------- */
.solution-titles {
  position: absolute;
  top: 180px;
  left: 121px;
  right: 120px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}
.solution-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 140px;
  line-height: 140px;
  letter-spacing: -1px;
  color: var(--c-white);
}
.solution-title em { font-style: normal; color: var(--c-accent); }
.solution-title--right { color: var(--c-white); }

.solution-cols {
  position: absolute;
  top: 440px;
  left: 120px;
  right: 120px;
  display: flex;
  justify-content: space-between;
  z-index: 10;
}
.solution-col {
  width: 421.5px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: var(--c-white);
}
.solution-col--right { text-align: right; align-items: flex-end; }
.solution-col__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 30px;
}
.solution-col__list {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
}

.slide__footer-statement--solution {
  position: absolute;
  bottom: 112px;
  left: 120px;
  right: 120px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 49px;
  line-height: 60px;
  z-index: 10;
}

/* ---------- TIMING LIST (slide 05) ---------- */
.timing-list {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: var(--c-white);
  max-width: 668px;
}
.timing-list li { margin-bottom: 16px; }
.timing-list li:last-child { margin-bottom: 0; }
.timing-list li strong {
  font-weight: 600;
  color: var(--c-white);
}

/* ---------- MARQUE (slide 06) ---------- */
.marque-intro {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
  color: var(--c-white);
}
.marque-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: normal;
  font-size: 25px;
  line-height: 30px;
  color: var(--c-white);
  border: 0;
  padding: 0;
}

/* ---------- DEMO (slide 07) ---------- */
.demo-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 216px;
  line-height: 200px;
  letter-spacing: -1px;
  color: var(--c-white);
  margin-top: auto;
  margin-bottom: 0;
}
.demo-title em { font-style: normal; color: var(--c-accent); }
.slide--demo .slide__content {
  justify-content: flex-end;
  padding-bottom: 40px;
}

/* ---------- BANQUE LIST (slide 08) ---------- */
.banque-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--c-white);
}
.banque-list__item { display: flex; flex-direction: column; }
.banque-list__item h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  opacity: 0.8;
}
.banque-list__item p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
  opacity: 0.5;
}

/* ---------- ASK (slide 09) ---------- */
.slide__content--ask {
  position: absolute;
  top: 200px;
  left: 120px;
  width: 971px;
  height: auto;
  justify-content: flex-start;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 44px;
}
.ask-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 88px;
  line-height: 92px;
  letter-spacing: -1px;
  color: var(--c-white);
}
.ask-title em { font-style: normal; color: var(--c-accent); }

.ask-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 487px;
  color: var(--c-white);
}
.ask-block__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 30px;
}
.ask-block__list {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 20px;
  line-height: 30px;
}
.ask-block__list li { margin-bottom: 2px; }

.slide__footer-statement--ask {
  position: absolute;
  bottom: 64px;
  left: 120px;
  right: 250px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 30px;
  color: var(--c-white);
  opacity: 0.85;
  z-index: 10;
}

/* ---------- MERCI (slide 10) ---------- */
.slide--merci .slide__header {
  top: 60px;
  justify-content: flex-end;
}
.slide__visual--10 {
  top: auto;
  bottom: 0;
  left: calc(50% - 836px); /* centré (1672 / 2) */
  width: 1672px;
  height: 720px;
  z-index: 10; /* personnages par-dessus le "Merci" */
}
.slide__visual--10 img {
  object-position: center top;
  object-fit: cover;
}
.merci-title {
  position: absolute;
  top: 340px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 360px;
  line-height: 1;
  letter-spacing: -8px;
  color: var(--c-white);
  z-index: 5; /* derrière les persos qui débordent par-dessus */
  white-space: nowrap;
  pointer-events: none;
}
.merci-contacts {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 80px;
  z-index: 20;
}
.merci-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  color: var(--c-white);
  text-align: center;
}
.merci-contact__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  line-height: 32px;
}
.merci-contact__email {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  opacity: 0.85;
}
.merci-contact__phone {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  opacity: 0.75;
}

/* ---------- LANGUAGE TOGGLE (top left) ---------- */
.lang {
  position: fixed;
  top: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  z-index: 100;
}
.lang__btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.55);
  background: transparent;
  border: 0;
  padding: 7px 14px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-transform: uppercase;
  line-height: 1;
}
.lang__btn:hover {
  color: rgba(255,255,255,0.95);
}
.lang__btn.is-active {
  background: var(--c-accent);
  color: var(--c-bg);
}

@media (max-width: 640px) {
  .lang { top: 12px; left: 12px; padding: 4px; }
  .lang__btn { padding: 5px 10px; font-size: 11px; }
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  z-index: 100;
  font-family: var(--font-body);
  color: var(--c-white);
}
.nav__btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--c-white);
  cursor: pointer;
  transition: background 0.2s ease;
}
.nav__btn:hover { background: rgba(255,255,255,0.1); }
.nav__btn:disabled { opacity: 0.3; cursor: not-allowed; }
.nav__counter {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  min-width: 52px;
  text-align: center;
  user-select: none;
}
.nav__sep { opacity: 0.4; margin: 0 4px; }

/* ---------- PROGRESS DOTS ---------- */
.progress {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}
.progress[hidden] { display: none; }
.progress__dot {
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}
.progress__dot:hover { background: rgba(255,255,255,0.5); }
.progress__dot.is-active {
  background: var(--c-accent);
  height: 20px;
  border-radius: 3px;
}

/* ---------- RESPONSIVE HINT (phone) ---------- */
@media (max-width: 640px) {
  .nav { bottom: 12px; padding: 6px 10px; }
  .nav__btn { width: 32px; height: 32px; }
  .progress { right: 8px; gap: 6px; }
  .progress__dot { width: 4px; height: 4px; }
  .progress__dot.is-active { height: 14px; }
}
