/* ============================================================
   Klarrro — Pitch Deck
   pitch.klarrro.app
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: #09090E;
  color: #EDE9F6;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- Grain Overlay --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #EDE9F6;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
  text-align: center;
}

p {
  color: #ABA3C2;
  line-height: 1.7;
}

/* --- Animated Logo --- */
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.logo-rrr i {
  display: inline-block;
  font-style: normal;
  animation: logoR 2.4s ease-in-out infinite;
}
.logo-rrr i:nth-child(2) { animation-delay: 0.18s; }
.logo-rrr i:nth-child(3) { animation-delay: 0.36s; }

@keyframes logoR {
  0%, 100% { transform: translateY(0); }
  30%      { transform: translateY(-4px); }
  60%      { transform: translateY(1px); }
}

/* --- Invite Gate --- */
#invite-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 2rem;
}

#invite-gate .brand {
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin-bottom: 1.5rem;
  color: #E0527A;
}

.gate-message {
  font-size: 1rem;
  color: #8A839E;
  margin-top: 0.5rem;
}

/* --- Sections --- */
section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  position: relative;
  max-width: 100vw;
}

.section-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* --- Glass Card --- */
.glass {
  background: rgba(22, 22, 44, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.50);
  transition: transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

.glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
}

/* ============================================================
   Section 1 — Hero
   ============================================================ */
.hero {
  text-align: center;
  position: relative;
}

.hero .brand {
  font-size: clamp(3.2rem, 10vw, 7.5rem);
  color: #EDE9F6;
  margin-bottom: 1.5rem;
}

.hero .brand .logo-rrr i {
  color: #E0527A;
}

.hero-tagline {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 500;
  color: #ABA3C2;
  margin-bottom: 0.75rem;
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #8A839E;
}

/* Ambient glow */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 82, 122, 0.12) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: glowDrift 12s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  0%   { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1;   transform: translate(-50%, -50%) scale(1.15); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #8A839E;
  font-size: 0.694rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: #8A839E;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;   transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   Section 2 — Le Problème
   ============================================================ */
.problem-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.problem-card {
  padding: 2.5rem 2rem;
  text-align: center;
}

.problem-card .icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.problem-card h3 {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1.125rem;
  font-weight: 700;
  color: #EDE9F6;
  margin-bottom: 0.5rem;
}

.problem-card p {
  font-size: 0.778rem;
  color: #8A839E;
  line-height: 1.5;
}

.problem-bottom {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
  color: #E0527A;
  font-style: italic;
}

/* ============================================================
   Section 3 — La Solution
   ============================================================ */
.solution-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.solution-step {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-card {
  padding: 2rem 1.5rem;
  text-align: center;
  min-width: 180px;
  max-width: 220px;
}

.step-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 1rem;
  font-weight: 700;
  color: #EDE9F6;
  margin-bottom: 0.35rem;
}

.step-card p {
  font-size: 0.778rem;
  color: #8A839E;
}

.step-arrow {
  font-size: 1.5rem;
  color: #E0527A;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.solution-bottom {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.875rem;
  color: #ABA3C2;
  line-height: 1.7;
}

.solution-bottom strong {
  color: #F8BF45;
  font-weight: 700;
}

/* ============================================================
   Section 4 — Le Marché
   ============================================================ */
.market-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

/* France Map */
.france-map-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.france-map-container svg {
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* Stats */
.market-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #F8BF45;
  line-height: 1;
  white-space: nowrap;
}

.stat-number.rose {
  color: #E0527A;
}

.stat-label {
  font-size: 0.875rem;
  color: #ABA3C2;
  line-height: 1.4;
}

.market-bottom {
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #EDE9F6;
}

.market-bottom span {
  color: #E0527A;
}

/* ============================================================
   Section 5 — L'Équipe & La Demande
   ============================================================ */
.team-demand-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Team */
.team-section h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.team-roles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.team-role {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.team-role .role-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.team-role .role-info h4 {
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: 0.875rem;
  font-weight: 700;
  color: #EDE9F6;
  margin-bottom: 0.15rem;
}

.team-role .role-info p {
  font-size: 0.778rem;
  color: #8A839E;
}

/* Financial Ask */
.ask-section h3 {
  font-size: 1.35rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.ask-card {
  padding: 2.5rem 2rem;
  text-align: center;
  border: 1px solid rgba(248, 191, 69, 0.25);
  background: linear-gradient(135deg, rgba(248, 191, 69, 0.08), rgba(22, 22, 44, 0.65));
  position: relative;
  overflow: hidden;
}

.ask-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 191, 69, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.ask-amount {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #F8BF45;
  margin-bottom: 0.25rem;
}

.ask-period {
  font-size: 1.125rem;
  color: #FCCF70;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.ask-type {
  font-size: 0.875rem;
  color: #ABA3C2;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.section5-bottom {
  text-align: center;
  margin-top: 3rem;
  font-size: 1rem;
  font-weight: 500;
  color: #EDE9F6;
}

.section5-bottom strong {
  color: #34D399;
}

.legal-structure {
  text-align: center;
  margin-top: 2.25rem;
  font-size: 0.85rem;
  color: #8A839E;
  line-height: 1.6;
}

.legal-structure strong {
  color: #ABA3C2;
  font-weight: 700;
}

/* ============================================================
   Footer
   ============================================================ */
.pitch-footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pitch-footer .brand {
  font-size: 1.35rem;
  color: #8A839E;
  margin-bottom: 0.75rem;
}

.pitch-footer .brand .logo-rrr i {
  color: #8A839E;
}

.pitch-footer p {
  font-size: 0.694rem;
  color: #8A839E;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .problem-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .solution-flow {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .solution-step {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }

  .step-card {
    max-width: 280px;
  }

  .market-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .france-map-container {
    order: -1;
  }

  .market-stats {
    align-items: center;
  }

  .stat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
  }

  .team-demand-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3.5rem 1.25rem;
  }

  .step-card {
    min-width: unset;
    padding: 1.5rem 1.25rem;
  }
}

/* ============================================================
   Émotion + nouvelles sections (financement) — Juin 2026
   ============================================================ */

/* Hero — ligne stats sous tagline */
.hero-stat-line {
  margin-top: 1.1rem;
  font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8A839E;
}
.hero-stat-line b { color: #E0527A; }

/* Section — Une histoire vraie */
.story-section .section-inner { max-width: 780px; }
.story-eyebrow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #8A839E;
  margin-bottom: 1.75rem;
}
.story-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2.1rem);
  line-height: 1.45;
  color: #EDE9F6;
  text-align: center;
}
.story-text .rose { color: #E0527A; }
.story-text .gold { color: #F8BF45; }
.story-kicker {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
  font-style: italic;
  color: #E0527A;
}

/* Traction — grille de stat cards */
.traction-eyebrow {
  text-align: center;
  color: #ABA3C2;
  font-size: 0.85rem;
  margin-bottom: 2.25rem;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  padding: 2rem 1.25rem;
  text-align: center;
}
.stat-card .stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-card .stat-label {
  display: block;
  font-size: 0.8rem;
  color: #8A839E;
  line-height: 1.4;
}
.traction-bottom {
  text-align: center;
  max-width: 720px;
  margin: 0.5rem auto 0;
  font-size: 1rem;
  font-weight: 500;
  color: #EDE9F6;
}
.traction-bottom strong { color: #34D399; font-weight: 700; }

/* Modèle éco */
.model-card {
  padding: 2.5rem 2rem;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.model-card p { color: #ABA3C2; margin-bottom: 1rem; }
.model-card p:last-child { margin-bottom: 0; }
.model-card strong { color: #F8BF45; font-weight: 700; }
.model-card .price {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: #F8BF45;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0.5rem 0 1.25rem;
}

/* Closing */
.closing { text-align: center; }
.closing .brand {
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: #EDE9F6;
  margin-bottom: 2rem;
}
.closing .brand .logo-rrr i { color: #E0527A; }
.closing-line {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  line-height: 1.3;
  color: #EDE9F6;
  max-width: 820px;
  margin: 0 auto 1.5rem;
}
.closing-line .rose { color: #E0527A; }
.closing-sub {
  font-size: 1.05rem;
  color: #ABA3C2;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .stat-cards {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}

/* ============================================================
   Print
   ============================================================ */
/* --- Anti-fuite CSS --- */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media print {
  body {
    display: none !important;
  }

  body::after {
    content: 'Document confidentiel — Impression non autorisée';
    display: block !important;
    font-size: 24pt;
    text-align: center;
    padding: 4rem;
    color: #E0527A;
  }

  h1, h2, h3, h4 {
    color: #1a1a1a;
  }

  p, .stat-label, .problem-card p, .step-card p,
  .solution-bottom, .team-role .role-info p {
    color: #444;
  }

  .glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #f5f5f5;
    border: 1px solid #ddd;
    box-shadow: none;
  }

  .ask-card {
    background: #f9f3e0;
    border: 2px solid #d4a843;
  }

  section {
    min-height: auto;
    page-break-inside: avoid;
    padding: 2rem 1rem;
  }

  .hero::before,
  .scroll-indicator {
    display: none;
  }

  .stat-number {
    color: #b8822a;
  }

  .stat-number.rose {
    color: #BF3B63;
  }

  .problem-bottom {
    color: #BF3B63;
  }

  .hero .brand .logo-rrr i {
    color: #BF3B63;
  }

  .pitch-footer {
    border-top: 1px solid #ddd;
  }
}

/* ============================================================
   Design pass — densité, lisibilité, structure (Juin 2026)
   Override final : compacte les sections plein écran, monte
   la taille/contraste du texte, structure les titres.
   ============================================================ */
body { font-size: 0.95rem; line-height: 1.65; }

/* Fini les sections vides plein écran (sauf hero) */
section {
  min-height: auto;
  padding: clamp(3.75rem, 8vh, 6.5rem) 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.hero { min-height: 100vh; border-top: 0; padding-top: 0; padding-bottom: 0; }
section:nth-of-type(even):not(.hero) { background: #0B0B15; }

/* Titres : plus grands + filet d'accent rose→gold */
h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1rem;
  padding-bottom: 1.2rem;
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 52px; height: 3px;
  margin: 1.2rem auto 0;
  background: linear-gradient(90deg, #E0527A, #F8BF45);
  border-radius: 2px;
}

/* Lisibilité corps + labels (contraste relevé) */
p { color: #B7B0CC; }
.problem-card p, .step-card p { color: #ABA3C2; font-size: 0.85rem; line-height: 1.55; }
.stat-card .stat-label, .stat-label { color: #ABA3C2; font-size: 0.85rem; }
.hero-tagline { font-size: clamp(1.05rem, 2.6vw, 1.5rem); color: #C9C2DB; }
.story-text { font-size: clamp(1.45rem, 3.6vw, 2.25rem); line-height: 1.5; }
.solution-bottom, .model-card p, .traction-bottom, .market-bottom, .section5-bottom, .legal-structure {
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
}

/* Cartes : plus de présence */
.glass { background: rgba(22, 22, 44, 0.72); border-color: rgba(255, 255, 255, 0.10); }
.problem-card, .step-card, .stat-card { padding-top: 2.25rem; padding-bottom: 2.25rem; }
.stat-card { background: rgba(22, 22, 44, 0.55); }

/* France map plus visible */
.france-map-container svg path { stroke: rgba(255, 255, 255, 0.22) !important; }

/* Use-of-funds + break-even (section Demande) */
.use-of-funds {
  list-style: none; margin: 1.1rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem;
}
.use-of-funds li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: #C9C2DB;
  background: rgba(22, 22, 44, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px; padding: 0.7rem 0.85rem; text-align: left;
}
.use-of-funds li span { font-size: 1.15rem; flex-shrink: 0; }
.breakeven-note { margin-top: 1rem; text-align: center; font-size: 0.9rem; color: #ABA3C2; }
.breakeven-note strong { color: #34D399; font-weight: 700; }

/* Pourquoi Klarrro */
.name-origin {
  max-width: 720px; margin: 0 auto; text-align: center;
  font-size: clamp(1rem, 1.8vw, 1.15rem); color: #C9C2DB; line-height: 1.7;
}
.name-origin strong { color: #EDE9F6; font-weight: 700; }
.name-origin .rrr {
  color: #E0527A; font-style: italic; font-weight: 900;
  font-family: 'Playfair Display', serif;
}

@media (max-width: 480px) { .use-of-funds { grid-template-columns: 1fr; } }

.mission-note { margin-top: 0.75rem; text-align: center; font-size: 0.85rem; color: #ABA3C2; line-height: 1.55; }
.mission-note strong { color: #F8BF45; font-weight: 700; }

/* Testimonial (verbatim partenaire) */
.testimonial {
  max-width: 760px; margin: 2.25rem auto 0; padding: 1.75rem 2rem;
  font-family: 'Playfair Display', serif; font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-style: italic; line-height: 1.5; color: #EDE9F6; text-align: center;
  border-left: 3px solid #F8BF45;
}
.testimonial cite {
  display: block; margin-top: 1rem; font-family: 'DM Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji';
  font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: #F8BF45;
}
