/* ============================================
   WELCOME SCREEN - REFONTE COMPLETE v5
   Design moderne, responsive, clean
   Mobile-first approach
   ============================================ */

/* ============================================
   CACHER MOBILE NAV BAR, WIDGET ET FOOTER SUR WELCOME
   ============================================ */
/* Cacher mobile-nav-bar quand welcome est visible (pas cachée par display-none) */
body:has(.welcome-screen:not(.display-none)) .mobile-nav-bar {
  display: none !important;
}

/* Cacher widget quand welcome est visible */
body:has(.welcome-screen:not(.display-none)) .unified-widget {
  display: none !important;
}

/* Cacher footer quand welcome est visible */
body:has(.welcome-screen:not(.display-none)) .app-footer {
  display: none !important;
}

/* Pas de scroll sur la page welcome */
html.welcome-visible,
html.welcome-visible body {
  overflow: hidden;
  height: 100%;
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
  /* Couleurs */
  --welcome-bg: #0a0a1a;
  --welcome-surface: rgba(255, 255, 255, 0.03);
  --welcome-border: rgba(255, 255, 255, 0.08);
  --welcome-text: #f1f5f9;
  --welcome-text-muted: #94a3b8;
  --welcome-primary: #6366f1;
  --welcome-primary-light: #818cf8;
  --welcome-secondary: #8b5cf6;
  --welcome-accent: #22c55e;
  --welcome-glow: rgba(99, 102, 241, 0.4);
  
  /* Spacing */
  --welcome-padding: clamp(16px, 4vw, 40px);
  
  /* Border radius */
  --welcome-radius-sm: 8px;
  --welcome-radius-md: 16px;
  --welcome-radius-lg: 24px;
}

/* ============================================
   BASE - FULLSCREEN (vraiment fullscreen!)
   ============================================ */
.welcome-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--welcome-bg);
  background-image: 
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: var(--welcome-padding);
  overflow: hidden;
  z-index: 9999;
}

/* Forcer le centrage même avec classes JS ajoutées */
.welcome-screen.animate-in,
.welcome-screen.display-flex,
.welcome-screen.animate-in.display-flex {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Empêcher le scroll du body quand welcome visible */
html:has(.welcome-screen),
body:has(.welcome-screen) {
  overflow: hidden !important;
}

/* Particules de fond */
.welcome-screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%236366f1' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ============================================
   LAYOUT PRINCIPAL - CENTRÉ (TOUJOURS!)
   ============================================ */
.welcome-layout {
  width: 100%;
  max-width: 1400px;
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 6vh, 60px);
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  margin: 0 auto !important;
}

/* ============================================
   HERO SECTION (gauche sur desktop)
   ============================================ */
.welcome-hero {
  text-align: center;
  max-width: 500px;
}

.welcome-title {
  margin-bottom: clamp(12px, 2vh, 24px);
}

.welcome-title .gradient-text {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--welcome-primary-light), var(--welcome-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.1;
}

.welcome-title .subtitle {
  display: block;
  font-size: clamp(0.9rem, 2.5vw, 1.25rem);
  font-weight: 400;
  color: var(--welcome-text-muted);
  margin-top: clamp(4px, 1vh, 12px);
}

.welcome-description {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--welcome-text-muted);
  line-height: 1.6;
  margin-bottom: clamp(20px, 4vh, 40px);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   BOUTONS AUTH
   ============================================ */
.welcome-auth-buttons {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 14px);
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
}

.welcome-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(12px, 2vh, 16px) clamp(20px, 3vw, 28px);
  border-radius: var(--welcome-radius-md);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  width: 100%;
}

.welcome-btn i {
  font-size: 1em;
}

.welcome-btn-primary {
  background: linear-gradient(135deg, var(--welcome-primary), var(--welcome-secondary));
  color: white;
  box-shadow: 0 4px 20px var(--welcome-glow);
}

.welcome-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--welcome-glow);
}

.welcome-btn-secondary {
  background: var(--welcome-surface);
  color: var(--welcome-text);
  border: 1px solid var(--welcome-border);
  backdrop-filter: blur(10px);
}

.welcome-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--welcome-primary);
}

.welcome-btn-ghost {
  background: transparent;
  color: var(--welcome-text-muted);
  padding: clamp(8px, 1.5vh, 12px);
  font-size: clamp(0.8rem, 1.8vw, 0.9rem);
}

.welcome-btn-ghost:hover {
  color: var(--welcome-text);
}

/* Message utilisateur connecté */
.welcome-user-message {
  text-align: center;
  padding: 20px;
}

.welcome-user-message h3 {
  font-size: 1.3rem;
  color: var(--welcome-text);
  margin-bottom: 8px;
}

.welcome-user-message p {
  color: var(--welcome-text-muted);
  font-size: 0.95rem;
}

/* ============================================
   CAROUSEL CONTAINER - MOCKUP TÉLÉPHONE (DESKTOP)
   ============================================ */
.welcome-carousel-container {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(145deg, #1a1a2e, #0f0f1a);
  border: 3px solid #2a2a40;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  position: relative;
}

/* Notch du téléphone */
.welcome-carousel-container::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 24px;
  background: #0a0a12;
  border-radius: 15px;
  z-index: 100;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Caméra dans le notch */
.welcome-carousel-container::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 25px);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #1a3a5c 30%, #0a1a2c 70%);
  border-radius: 50%;
  z-index: 101;
  box-shadow: 0 0 3px rgba(30, 144, 255, 0.3);
}

/* Écran du téléphone */
.welcome-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 35px;
}

/* ============================================
   SLIDES
   ============================================ */
.welcome-slide {
  min-width: 100%;
  padding: clamp(16px, 3vh, 28px) clamp(16px, 3vw, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: clamp(320px, 50vh, 420px);
}

.slide-title {
  font-size: clamp(1rem, 3vw, 1.25rem);
  font-weight: 700;
  color: var(--welcome-text);
  margin-bottom: 4px;
}

.slide-subtitle {
  font-size: clamp(0.75rem, 2vw, 0.9rem);
  color: var(--welcome-text-muted);
  margin-bottom: clamp(12px, 2vh, 20px);
}

.slide-animation {
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(8px, 1.5vh, 14px);
}

.slide-description {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  color: var(--welcome-text-muted);
  max-width: 260px;
}

.slide-description strong {
  color: var(--welcome-text);
}

/* ============================================
   NAVIGATION CAROUSEL (Home indicator style iPhone)
   ============================================ */
.welcome-carousel-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 0 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2));
}

.welcome-carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.welcome-carousel-dot.active {
  background: var(--welcome-primary);
  width: 24px;
  border-radius: 4px;
}

.welcome-carousel-dot:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   SLIDE 1 - GÉNÉRATION IA (EFFETS FUTURISTES)
   ============================================ */
.slide-ai-generation .slide-animation {
  flex-direction: column;
  gap: clamp(8px, 1.5vh, 14px);
}

/* Robot avec glow pulsant */
.spectator-robot-preview {
  width: clamp(60px, 14vw, 100px);
  height: clamp(70px, 16vw, 120px);
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4));
  animation: robotGlow 2s ease-in-out infinite;
}

@keyframes robotGlow {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(99, 102, 241, 0.3)); }
  50% { filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.6)); }
}

.spectator-robot-preview svg {
  width: 100%;
  height: 100%;
}

/* Status avec effet de scan */
.spectator-status-preview {
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: rgba(167, 139, 250, 0.9);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.spectator-status-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.3), transparent);
  animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Progress bar avec effet neon */
.spectator-progress-preview {
  width: 100%;
  max-width: clamp(260px, 70vw, 380px);
  text-align: center;
}

.spectator-progress-bar-preview {
  height: clamp(6px, 1vw, 8px);
  background: rgba(99, 102, 241, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: clamp(6px, 1vh, 10px);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
}

.spectator-progress-fill-preview {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #6366f1, #8b5cf6, #a78bfa);
  border-radius: 4px;
  position: relative;
  animation: progressSlide 4s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.spectator-progress-fill-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes progressSlide {
  0% { width: 5%; }
  50% { width: 65%; }
  100% { width: 100%; }
}

.spectator-progress-text-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.65rem, 1.6vw, 0.8rem);
  color: rgba(255, 255, 255, 0.7);
}

.spectator-count-preview {
  color: #fff;
  font-weight: 500;
}

.spectator-timer-preview {
  font-family: 'Courier New', monospace;
  color: rgba(255, 255, 255, 0.5);
}

.spectator-timer-sep {
  animation: blink 1s ease infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.spectator-percent-preview {
  font-weight: 700;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: #a78bfa;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.5);
}

/* CARTE FUTURISTE avec glow et animation */
.spectator-card-preview {
  width: 100%;
  max-width: clamp(260px, 70vw, 420px);
  background: rgba(20, 22, 40, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 16px;
  padding: clamp(10px, 2vh, 16px) clamp(12px, 2.5vw, 18px);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  animation: cardPulse 3s ease-in-out infinite;
}

@keyframes cardPulse {
  0%, 100% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(99, 102, 241, 0.1); }
  50% { box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.25); }
}

/* Scanning line effect sur la carte */
.spectator-card-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
  animation: cardScan 2.5s ease-in-out infinite;
}

@keyframes cardScan {
  0% { top: 0; opacity: 1; }
  50% { top: 100%; opacity: 0.5; }
  51% { top: 0; opacity: 0; }
  100% { top: 0; opacity: 1; }
}

.spectator-card-inner-preview {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 10px);
}

.spectator-card-label-preview {
  font-size: clamp(0.55rem, 1.3vw, 0.65rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6366f1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.spectator-card-label-preview::before {
  content: '◆';
  font-size: 0.6em;
}

.spectator-card-label-preview.answer {
  color: #10b981;
}

/* Question - violet glow */
.spectator-card-front-preview {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  line-height: 1.5;
  color: #fff;
  padding: clamp(8px, 1.5vh, 12px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  border-radius: 10px;
  border-left: 3px solid #6366f1;
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.1);
}

.spectator-card-divider-preview {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.4), transparent);
  margin: 2px 0;
}

/* Réponse - avec TYPING EFFECT */
.spectator-card-back-preview {
  font-size: clamp(0.7rem, 1.6vw, 0.85rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  padding: clamp(8px, 1.5vh, 12px);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border-radius: 10px;
  border-left: 3px solid #10b981;
  box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
}

/* Texte qui apparaît progressivement */
.typing-text {
  display: inline;
  background: linear-gradient(90deg, #fff 50%, transparent 50%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: typeReveal 4s steps(40) infinite;
}

@keyframes typeReveal {
  0% { background-position: 100% 0; }
  50%, 100% { background-position: 0% 0; }
}

/* Curseur clignotant style terminal */
.typing-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #10b981;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.7s step-end infinite;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@keyframes cursorBlink {
  50% { opacity: 0; }
}

/* ============================================
   SLIDE 1 - NIBT Q/R TYPING ANIMATION
   ============================================ */
.nibt-qa-typing {
  width: 100%;
  max-width: clamp(280px, 75vw, 420px);
}

.nibt-qa-container {
  background: rgba(20, 22, 40, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 14px;
  padding: clamp(12px, 2vh, 18px);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(99, 102, 241, 0.1);
  overflow: hidden;
}

/* Question line */
.nibt-qa-question {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  border-radius: 10px;
  border-left: 3px solid #6366f1;
}

.nibt-qa-question .qa-label {
  font-size: clamp(0.6rem, 1.4vw, 0.7rem);
  font-weight: 700;
  color: #6366f1;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nibt-qa-question .qa-text {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Answer line */
.nibt-qa-answer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border-radius: 10px;
  border-left: 3px solid #10b981;
}

.nibt-qa-answer .qa-label {
  font-size: clamp(0.6rem, 1.4vw, 0.7rem);
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nibt-qa-answer .qa-text {
  font-size: clamp(0.75rem, 1.8vw, 0.9rem);
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
}

.nibt-qa-answer .qa-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #10b981;
  margin-left: 2px;
  animation: cursorBlink 0.7s step-end infinite;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Effet de "données" qui défilent en arrière-plan */
.spectator-card-back-preview::after {
  content: '01001010 10110101 01101001';
  position: absolute;
  bottom: 2px;
  right: 8px;
  font-size: 0.5rem;
  font-family: monospace;
  color: rgba(16, 185, 129, 0.2);
  animation: dataScroll 3s linear infinite;
}

@keyframes dataScroll {
  0% { opacity: 0.1; }
  50% { opacity: 0.3; }
  100% { opacity: 0.1; }
}

/* ============================================
   SLIDE 2 - SÉCURITÉ (EFFETS CYBER)
   ============================================ */
.security-animation {
  position: relative;
  width: clamp(70px, 16vw, 110px);
  height: clamp(90px, 20vw, 140px);
}

.security-lock {
  width: 100%;
  height: 100%;
  position: relative;
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.3));
}

.security-lock-body {
  width: 70%;
  height: 50%;
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  border-radius: var(--welcome-radius-sm);
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 30px rgba(99, 102, 241, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.security-lock-body::before {
  content: '';
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #fbbf24 30%, #0a0a1a 30%);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}

.security-lock-shackle {
  width: 50%;
  height: 40%;
  border: 5px solid #fbbf24;
  border-bottom: none;
  border-radius: 50% 50% 0 0;
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  animation: lockAnim 3s ease-in-out infinite;
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

@keyframes lockAnim {
  0%, 40%, 100% { transform: translateX(-50%) rotate(0); }
  20% { transform: translateX(-50%) rotate(-15deg) translateX(3px); }
}

/* Ondes de protection */
.security-shield {
  position: absolute;
  inset: -25%;
  border: 2px solid;
  border-radius: 50%;
  opacity: 0;
}

.security-shield:nth-child(1) {
  border-color: #6366f1;
  animation: shieldPulse 3s ease-out infinite;
}
.security-shield:nth-child(2) {
  border-color: #8b5cf6;
  animation: shieldPulse 3s ease-out infinite 1s;
}
.security-shield:nth-child(3) {
  border-color: #a78bfa;
  animation: shieldPulse 3s ease-out infinite 2s;
}

@keyframes shieldPulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Password input futuriste */
.security-password {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(14px, 3vh, 24px);
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.security-password-dots {
  display: flex;
  gap: 5px;
}

.security-password-dots span {
  width: 10px;
  height: 10px;
  background: #fbbf24;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
  animation: dotAnim 3s ease-in-out infinite;
}

.security-password-dots span:nth-child(1) { animation-delay: 0.1s; }
.security-password-dots span:nth-child(2) { animation-delay: 0.2s; }
.security-password-dots span:nth-child(3) { animation-delay: 0.3s; }
.security-password-dots span:nth-child(4) { animation-delay: 0.4s; }
.security-password-dots span:nth-child(5) { animation-delay: 0.5s; }
.security-password-dots span:nth-child(6) { animation-delay: 0.6s; }
.security-password-dots span:nth-child(7) { animation-delay: 0.7s; }
.security-password-dots span:nth-child(8) { animation-delay: 0.8s; }

@keyframes dotAnim {
  0%, 30% { opacity: 0; transform: scale(0); }
  40%, 100% { opacity: 1; transform: scale(1); }
}

.security-check {
  color: #22c55e;
  font-size: 1.2rem;
  opacity: 0;
  animation: checkAnim 3s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.6));
}

@keyframes checkAnim {
  0%, 70% { opacity: 0; transform: scale(0) rotate(-180deg); }
  80%, 100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ============================================
   SLIDE 3 - PARTAGE (EFFETS CONNEXION)
   ============================================ */
.share-animation {
  display: flex;
  align-items: center;
  gap: clamp(10px, 3vw, 18px);
}

.share-avatar {
  width: clamp(45px, 11vw, 65px);
  height: clamp(45px, 11vw, 65px);
  border-radius: 50%;
  background: linear-gradient(145deg, #6366f1, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1rem, 2.8vw, 1.5rem);
  color: white;
  position: relative;
  box-shadow: 
    0 4px 20px rgba(99, 102, 241, 0.4),
    0 0 0 3px rgba(99, 102, 241, 0.2);
  animation: avatarFloat 3s ease-in-out infinite;
}

.share-avatar.friend {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  box-shadow: 
    0 4px 20px rgba(34, 197, 94, 0.4),
    0 0 0 3px rgba(34, 197, 94, 0.2);
  animation-delay: 0.3s;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.share-avatar span {
  position: absolute;
  bottom: -22px;
  font-size: clamp(0.55rem, 1.4vw, 0.7rem);
  color: var(--welcome-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

/* Ligne de connexion animée */
.share-link-line {
  width: clamp(40px, 10vw, 70px);
  height: 4px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.share-link-line::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #6366f1, #22c55e);
  animation: linkAnim 2.5s ease-in-out infinite;
  transform-origin: left;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.5);
}

@keyframes linkAnim {
  0%, 10% { transform: scaleX(0); }
  50%, 100% { transform: scaleX(1); }
}

.share-link-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(0.8rem, 2.2vw, 1rem);
  color: #fbbf24;
  opacity: 0;
  animation: iconPop 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

@keyframes iconPop {
  0%, 35% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(-180deg); }
  45%, 85% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; }
}

/* URL stylisée */
.share-url {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(20px, 4vh, 30px);
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border-radius: 10px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: clamp(0.65rem, 1.6vw, 0.75rem);
  font-family: 'Courier New', monospace;
  color: var(--welcome-text-muted);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.share-url i {
  color: #fbbf24;
  cursor: pointer;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.4));
}

.share-url i:hover {
  transform: scale(1.2);
}

/* ============================================
   SLIDE 4 - CHAT (STYLE MESSENGER MODERNE)
   ============================================ */
.chat-animation {
  width: 100%;
  max-width: clamp(200px, 55vw, 260px);
  padding: clamp(10px, 2vh, 14px);
  background: linear-gradient(145deg, rgba(15, 15, 30, 0.9), rgba(10, 10, 25, 0.95));
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.chat-bubble {
  max-width: 85%;
  padding: clamp(8px, 1.5vh, 12px) clamp(12px, 2vw, 16px);
  border-radius: 18px;
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  line-height: 1.4;
  opacity: 0;
  animation: bubbleAnim 6s ease-in-out infinite;
}

.chat-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-bottom-right-radius: 6px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.chat-bubble.received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: var(--welcome-text);
  border-bottom-left-radius: 6px;
  animation-delay: 1.5s;
  backdrop-filter: blur(5px);
}

.chat-bubble.received-2 {
  animation-delay: 3s;
}

@keyframes bubbleAnim {
  0%, 8% { opacity: 0; transform: translateY(15px) scale(0.9); }
  15%, 75% { opacity: 1; transform: translateY(0) scale(1); }
  85%, 100% { opacity: 0; transform: translateY(-5px); }
}

/* Typing indicator réaliste */
.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  border-bottom-left-radius: 6px;
  opacity: 0;
  animation: typingAnim 6s ease-in-out infinite;
  animation-delay: 0.8s;
}

@keyframes typingAnim {
  0%, 5% { opacity: 0; }
  12%, 22% { opacity: 1; }
  28%, 100% { opacity: 0; }
}

.chat-typing span {
  width: 7px;
  height: 7px;
  background: var(--welcome-text-muted);
  border-radius: 50%;
  animation: typingDot 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingDot {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-5px); opacity: 1; }
}

/* ============================================
   SLIDE 5 - INDICES IA (EFFET RÉVÉLATION)
   ============================================ */
.hints-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 16px);
}

.hints-question {
  padding: clamp(10px, 2vh, 14px) clamp(16px, 3vw, 22px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: clamp(0.75rem, 1.9vw, 0.9rem);
  color: var(--welcome-text);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.hints-lightbulb {
  width: clamp(40px, 9vw, 55px);
  height: clamp(55px, 12vw, 75px);
  position: relative;
}

.hints-lightbulb-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.4));
}

.bulb-glass {
  animation: bulbGlow 2.5s ease-in-out infinite;
}

@keyframes bulbGlow {
  0%, 20% { opacity: 0.3; filter: brightness(0.5); }
  40%, 70% { opacity: 1; filter: brightness(1.3); }
  100% { opacity: 0.3; filter: brightness(0.5); }
}

/* Bulle d'indice avec effet reveal */
.hints-text {
  padding: clamp(10px, 2vh, 14px) clamp(14px, 3vw, 20px);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 12px;
  font-size: clamp(0.7rem, 1.8vw, 0.85rem);
  color: #fbbf24;
  font-style: italic;
  opacity: 0;
  animation: hintReveal 2.5s ease-in-out infinite;
  max-width: clamp(200px, 60vw, 280px);
  text-align: center;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.1);
  position: relative;
  overflow: hidden;
}

/* Effet de scan sur l'indice */
.hints-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
  animation: hintScan 2.5s ease-in-out infinite;
}

@keyframes hintScan {
  0%, 30% { left: -50%; }
  60%, 100% { left: 150%; }
}

@keyframes hintReveal {
  0%, 30% { opacity: 0; transform: translateY(10px) scale(0.95); }
  45%, 85% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-5px); }
}

/* ============================================
   SLIDE 6 - STREAK (EFFET FEU DYNAMIQUE)
   ============================================ */
.streak-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.5vh, 14px);
}

.streak-flame-container {
  position: relative;
  font-size: clamp(2rem, 6vw, 3rem);
  filter: drop-shadow(0 0 15px rgba(249, 115, 22, 0.4));
}

.streak-flame-container::after {
  content: '🔥';
  animation: flameAnim 0.5s ease-in-out infinite alternate;
}

@keyframes flameAnim {
  to { transform: scale(1.08) rotate(2deg); }
}

/* Compteur avec effet neon */
.streak-counter {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  color: #f97316;
  text-shadow: 
    0 0 10px rgba(249, 115, 22, 0.5),
    0 0 30px rgba(249, 115, 22, 0.3);
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.streak-counter span {
  font-size: clamp(0.65rem, 1.8vw, 0.85rem);
  font-weight: 500;
  color: var(--welcome-text-muted);
  text-shadow: none;
}

/* Calendrier interactif */
.streak-calendar {
  display: flex;
  gap: clamp(4px, 1vw, 6px);
}

.streak-day {
  width: clamp(22px, 5.5vw, 28px);
  height: clamp(22px, 5.5vw, 28px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.55rem, 1.4vw, 0.65rem);
  color: var(--welcome-text-muted);
  font-weight: 600;
  transition: all 0.3s ease;
}

.streak-day.checked {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(251, 191, 36, 0.2));
  border-color: rgba(249, 115, 22, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.2);
}

.streak-day.checked::after {
  content: '✓';
  font-size: 0.7em;
}

.streak-day.today {
  border-color: #6366f1;
  box-shadow: 
    0 0 15px rgba(99, 102, 241, 0.4),
    inset 0 0 10px rgba(99, 102, 241, 0.1);
  animation: todayPulse 2s ease-in-out infinite;
  color: #818cf8;
}

@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 25px rgba(99, 102, 241, 0.5); }
}

/* ============================================
   SLIDE 7 - ANALYTICS (EFFET DATA VISUALISATION)
   ============================================ */
.analytics-animation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 16px);
  width: 100%;
}

.analytics-chart {
  width: 100%;
  max-width: clamp(200px, 55vw, 260px);
  height: clamp(70px, 16vw, 100px);
  background: linear-gradient(145deg, rgba(15, 15, 30, 0.9), rgba(10, 10, 25, 0.95));
  border-radius: 14px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.analytics-svg {
  width: 100%;
  height: 100%;
}

/* Barres animées avec glow */
.chart-bar {
  animation: barGrow 4s ease-out infinite;
  transform-origin: bottom;
  filter: drop-shadow(0 0 5px rgba(99, 102, 241, 0.4));
}

.chart-bar.bar-1 { animation-delay: 0s; }
.chart-bar.bar-2 { animation-delay: 0.12s; }
.chart-bar.bar-3 { animation-delay: 0.24s; }
.chart-bar.bar-4 { animation-delay: 0.36s; }
.chart-bar.bar-5 { animation-delay: 0.48s; }

@keyframes barGrow {
  0%, 5% { transform: scaleY(0); }
  20%, 70% { transform: scaleY(1); }
  90%, 100% { transform: scaleY(0); }
}

/* Ligne de tendance avec effet draw */
.trend-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: drawLine 4s ease-out infinite;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.5));
}

@keyframes drawLine {
  0%, 8% { stroke-dashoffset: 300; }
  25%, 70% { stroke-dashoffset: 0; }
  88%, 100% { stroke-dashoffset: 300; }
}

.trend-area {
  animation: fadeArea 4s ease-out infinite;
}

@keyframes fadeArea {
  0%, 12% { opacity: 0; }
  30%, 65% { opacity: 1; }
  82%, 100% { opacity: 0; }
}

/* Points avec effet pop */
.trend-point {
  opacity: 0;
  animation: popPoint 4s ease-out infinite;
}

.trend-point:nth-child(1) { animation-delay: 0.7s; }
.trend-point:nth-child(2) { animation-delay: 0.9s; }
.trend-point:nth-child(3) { animation-delay: 1.1s; }
.trend-point:nth-child(4) { animation-delay: 1.3s; }
.trend-point:nth-child(5) { animation-delay: 1.5s; }

@keyframes popPoint {
  0%, 12% { opacity: 0; transform: scale(0); }
  22%, 65% { opacity: 1; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(0); }
}

/* Feedback IA stylisé */
.analytics-feedback {
  padding: clamp(10px, 2vh, 14px) clamp(14px, 3vw, 20px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.25);
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  color: var(--welcome-text-muted);
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: clamp(220px, 60vw, 300px);
}

.analytics-feedback strong {
  color: #22c55e;
  font-weight: 700;
}

.analytics-feedback em {
  color: #fbbf24;
  font-style: normal;
}

.analytics-feedback-line {
  margin: 3px 0;
}

/* ============================================
   ROBOT MASCOTTE (coin)
   ============================================ */
.welcome-robot {
  position: fixed;
  bottom: clamp(16px, 3vh, 30px);
  right: clamp(16px, 3vw, 30px);
  width: clamp(60px, 10vw, 90px);
  z-index: 10;
  opacity: 0.9;
  transition: all 0.3s ease;
  animation: robotFloat 3s ease-in-out infinite;
}

.welcome-robot:hover {
  opacity: 1;
  transform: scale(1.1);
}

@keyframes robotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   PWA INSTALL WIDGET
   ============================================ */
.pwa-install-widget {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--welcome-surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--welcome-border);
  border-radius: var(--welcome-radius-md);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pwa-install-widget.hidden {
  display: none;
}

.pwa-install-icon {
  font-size: 1.5rem;
  color: var(--welcome-primary);
}

.pwa-install-text {
  font-size: 0.85rem;
  color: var(--welcome-text);
}

.pwa-install-text small {
  display: block;
  color: var(--welcome-text-muted);
  font-size: 0.75rem;
}

.pwa-btn-install {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--welcome-primary), var(--welcome-secondary));
  color: white;
  border: none;
  border-radius: var(--welcome-radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.pwa-btn-close {
  background: none;
  border: none;
  color: var(--welcome-text-muted);
  cursor: pointer;
  padding: 4px;
}

/* ============================================
   RESPONSIVE - TABLET (768px+)
   ============================================ */
@media (min-width: 768px) {
  .welcome-screen {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .welcome-layout {
    flex-direction: row;
    justify-content: center !important;
    align-items: center !important;
    gap: clamp(40px, 6vw, 80px);
    margin: 0 auto !important;
    width: 100%;
  }
  
  .welcome-hero {
    text-align: left;
    flex: 0 1 400px;
  }
  
  .welcome-auth-buttons {
    margin: 0;
  }
  
  .welcome-carousel-container {
    flex: 0 1 420px;
  }
  
  .welcome-description {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ============================================
   RESPONSIVE - DESKTOP (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .welcome-layout {
    gap: clamp(60px, 8vw, 120px);
  }
  
  .welcome-hero {
    flex: 0 1 480px;
  }
  
  .welcome-title .gradient-text {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }
  
  .welcome-title .subtitle {
    font-size: clamp(1rem, 1.5vw, 1.3rem);
  }
  
  .welcome-description {
    font-size: 1.05rem;
    max-width: 420px;
  }
  
  .welcome-auth-buttons {
    max-width: 300px;
  }
  
  .welcome-btn {
    padding: 14px 28px;
  }
  
  .welcome-carousel-container {
    flex: 0 1 500px;
    max-width: 520px;
  }
  
  .welcome-slide {
    padding: 35px 30px;
  }
  
  .slide-title {
    font-size: 1.5rem;
  }
  
  .slide-animation {
    min-height: 180px;
  }
}

/* ============================================
   RESPONSIVE - LARGE DESKTOP (1400px+)
   ============================================ */
@media (min-width: 1400px) {
  .welcome-layout {
    max-width: 1500px;
    gap: 100px;
  }
  
  .welcome-hero {
    flex: 0 1 550px;
  }
  
  .welcome-title .gradient-text {
    font-size: 3.5rem;
  }
  
  .welcome-title .subtitle {
    font-size: 1.4rem;
    margin-top: 12px;
  }
  
  .welcome-description {
    font-size: 1.15rem;
    margin-bottom: 45px;
    max-width: 480px;
  }
  
  .welcome-auth-buttons {
    max-width: 340px;
    gap: 14px;
    margin: 0 auto;
  }
  
  .welcome-btn {
    padding: 16px 32px;
    font-size: 1.05rem;
  }
  
  .welcome-carousel-container {
    flex: 0 1 580px;
    max-width: 600px;
  }
  
  .welcome-slide {
    padding: 45px 40px;
  }
  
  .slide-title {
    font-size: 1.7rem;
  }
  
  .slide-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .slide-animation {
    min-height: 220px;
  }
  
  .slide-description {
    font-size: 0.95rem;
    max-width: 350px;
  }
  
  /* Scale slide content */
  .ai-stream-preview { max-width: 400px; }
  .ai-stream-robot { width: 80px; height: 80px; }
  .ai-stream-card { max-width: 380px; }
  
  .security-animation { width: 130px; height: 160px; }
  .share-avatar { width: 80px; height: 80px; font-size: 2rem; }
  .chat-animation { max-width: 320px; }
  .hints-lightbulb { width: 70px; height: 95px; }
  .streak-flame-container { font-size: 4.5rem; }
  .streak-counter { font-size: 3rem; }
  .analytics-chart { max-width: 340px; height: 130px; }
  
  .welcome-robot { width: 100px; }
}

/* ============================================
   RESPONSIVE - XL DESKTOP (1600px+)
   ============================================ */
@media (min-width: 1600px) {
  .welcome-layout {
    max-width: 1700px;
    gap: 130px;
  }
  
  .welcome-hero {
    flex: 0 1 620px;
  }
  
  .welcome-title .gradient-text {
    font-size: 4rem;
  }
  
  .welcome-title .subtitle {
    font-size: 1.6rem;
  }
  
  .welcome-description {
    font-size: 1.25rem;
    max-width: 520px;
  }
  
  .welcome-auth-buttons {
    max-width: 380px;
    gap: 16px;
  }
  
  .welcome-btn {
    padding: 18px 38px;
    font-size: 1.1rem;
    border-radius: 18px;
  }
  
  .welcome-carousel-container {
    flex: 0 1 700px;
    max-width: 720px;
    border-radius: 28px;
  }
  
  .welcome-slide {
    padding: 55px 50px;
  }
  
  .slide-title {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .slide-subtitle {
    font-size: 1.25rem;
    margin-bottom: 35px;
  }
  
  .slide-animation {
    min-height: 280px;
  }
  
  .slide-description {
    font-size: 1.05rem;
    max-width: 400px;
  }
  
  /* Scale slide content */
  .ai-stream-preview { max-width: 500px; gap: 18px; }
  .ai-stream-robot { width: 100px; height: 100px; }
  .ai-stream-progress-bar { height: 10px; }
  .ai-stream-card { max-width: 480px; border-radius: 20px; }
  .ai-stream-card-section { padding: 18px 22px; }
  .ai-stream-label { font-size: 0.8rem; }
  .ai-stream-content { padding: 14px 18px; font-size: 1rem; }
  .ai-stream-percent { font-size: 1.6rem; }
  
  .security-animation { width: 160px; height: 200px; }
  .security-lock-body { border-radius: 12px; }
  .security-password { padding: 14px 22px; }
  
  .share-avatar { width: 100px; height: 100px; font-size: 2.4rem; }
  .share-link-line { width: 100px; }
  .share-url { padding: 14px 20px; font-size: 0.9rem; }
  
  .chat-animation { max-width: 400px; padding: 20px; }
  .chat-bubble { padding: 14px 18px; font-size: 1rem; }
  
  .hints-lightbulb { width: 85px; height: 115px; }
  .hints-question { padding: 16px 28px; font-size: 1.05rem; }
  .hints-text { padding: 14px 22px; font-size: 0.95rem; max-width: 320px; }
  
  .streak-flame-container { font-size: 5rem; }
  .streak-counter { font-size: 3.5rem; }
  .streak-day { width: 36px; height: 36px; font-size: 0.8rem; }
  
  .analytics-chart { max-width: 420px; height: 160px; }
  .analytics-feedback { padding: 16px 24px; font-size: 1rem; }
  
  .welcome-robot { width: 120px; }
}

/* ============================================
   RESPONSIVE - 4K / ULTRAWIDE (1920px+)
   ============================================ */
@media (min-width: 1920px) {
  .welcome-screen {
    padding: 50px;
  }
  
  .welcome-layout {
    max-width: 2000px;
    gap: 160px;
  }
  
  .welcome-hero {
    flex: 0 1 750px;
  }
  
  .welcome-title .gradient-text {
    font-size: 4.8rem;
  }
  
  .welcome-title .subtitle {
    font-size: 1.9rem;
    margin-top: 16px;
  }
  
  .welcome-description {
    font-size: 1.4rem;
    max-width: 600px;
    margin-bottom: 55px;
  }
  
  .welcome-auth-buttons {
    max-width: 450px;
    gap: 18px;
  }
  
  .welcome-btn {
    padding: 22px 48px;
    font-size: 1.25rem;
    border-radius: 20px;
  }
  
  .welcome-carousel-container {
    flex: 0 1 850px;
    max-width: 880px;
    border-radius: 32px;
  }
  
  .welcome-slide {
    padding: 70px 65px;
  }
  
  .slide-title {
    font-size: 2.5rem;
    margin-bottom: 14px;
  }
  
  .slide-subtitle {
    font-size: 1.5rem;
    margin-bottom: 45px;
  }
  
  .slide-animation {
    min-height: 350px;
    margin-bottom: 30px;
  }
  
  .slide-description {
    font-size: 1.2rem;
    max-width: 500px;
  }
  
  /* Scale all slide content */
  .ai-stream-preview { max-width: 620px; gap: 24px; }
  .ai-stream-robot { width: 130px; height: 130px; }
  .ai-stream-progress-bar { height: 14px; margin-bottom: 12px; }
  .ai-stream-stats { font-size: 1.1rem; }
  .ai-stream-percent { font-size: 2rem; }
  .ai-stream-card { max-width: 600px; border-radius: 24px; }
  .ai-stream-card-section { padding: 24px 30px; }
  .ai-stream-label { font-size: 0.9rem; margin-bottom: 10px; }
  .ai-stream-content { padding: 18px 24px; font-size: 1.15rem; border-radius: 12px; }
  
  .security-animation { width: 200px; height: 250px; }
  .security-lock-body { border-radius: 16px; }
  .security-lock-shackle { border-width: 8px; }
  .security-password { padding: 18px 28px; margin-top: 30px; border-radius: 12px; }
  .security-password-dots span { width: 12px; height: 12px; }
  .security-check { font-size: 1.4rem; }
  
  .share-avatar { width: 130px; height: 130px; font-size: 3rem; }
  .share-avatar span { font-size: 0.9rem; bottom: -28px; }
  .share-link-line { width: 140px; height: 6px; }
  .share-link-icon { font-size: 1.6rem; }
  .share-url { padding: 18px 26px; font-size: 1.05rem; margin-top: 45px; }
  
  .chat-animation { max-width: 500px; padding: 26px; border-radius: 24px; }
  .chat-bubble { padding: 18px 24px; font-size: 1.15rem; border-radius: 20px; }
  
  .hints-animation { gap: 24px; }
  .hints-lightbulb { width: 110px; height: 150px; }
  .hints-question { padding: 22px 36px; font-size: 1.25rem; border-radius: 14px; }
  .hints-text { padding: 18px 28px; font-size: 1.1rem; max-width: 400px; }
  
  .streak-animation { gap: 28px; }
  .streak-flame-container { font-size: 6rem; }
  .streak-counter { font-size: 4.5rem; }
  .streak-counter span { font-size: 1.2rem; }
  .streak-calendar { gap: 10px; }
  .streak-day { width: 48px; height: 48px; font-size: 1rem; border-radius: 10px; }
  
  .analytics-animation { gap: 28px; }
  .analytics-chart { max-width: 550px; height: 200px; border-radius: 20px; }
  .analytics-feedback { padding: 20px 30px; font-size: 1.15rem; border-radius: 14px; }
  
  .welcome-robot { width: 150px; bottom: 40px; right: 40px; }
}

/* ============================================
   MOBILE FIXES (max-width: 767px) - MOCKUP ORDINATEUR
   ============================================ */
@media (max-width: 767px) {
  /* Transformer le mockup téléphone en ordinateur */
  .welcome-carousel-container {
    max-width: 95%;
    border-radius: 12px;
  }
  
  /* Barre du haut style navigateur/OS */
  .welcome-carousel-container::before {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 28px;
    background: linear-gradient(180deg, #2a2a40 0%, #1e1e32 100%);
    border-radius: 12px 12px 0 0;
    transform: none;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  /* Boutons fenêtre macOS style */
  .welcome-carousel-container::after {
    top: 9px;
    left: 12px;
    width: 10px;
    height: 10px;
    background: #ff5f57;
    border-radius: 50%;
    box-shadow: 
      16px 0 0 #febc2e,
      32px 0 0 #28c840;
  }
  
  /* Ajuster le track */
  .welcome-carousel-track {
    margin-top: 28px;
  }
  
  /* MONTER LE CONTENU SUR MOBILE - Slides 1, 3, 4, 5 */
  .welcome-slide {
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: auto;
    gap: 6px;
  }
  
  .slide-animation {
    margin-bottom: 6px;
  }
  
  .slide-subtitle {
    margin-bottom: 8px;
  }
  
  /* Slide 1 - Génération IA */
  .slide-ai-generation .slide-animation {
    gap: 6px;
    margin-top: -110px;
  }
  
  /* Slide 3 - Indices */
  .slide-hints .slide-animation {
    margin-top: -80px;
  }
  
  /* Slide 4 - Streak */
  .slide-streak .slide-animation {
    margin-top: -80px;
  }
  
  /* Slide 5 - Analytics */
  .slide-analytics .slide-animation {
    margin-top: -80px;
  }
  
  /* Slide 6 - Sécurité */
  .slide-security .slide-animation {
    margin-top: -80px;
  }
  
  /* Slide 7 - Partage */
  .slide-share .slide-animation {
    margin-top: -80px;
  }
  
  /* Slide 6 - Security */
  .slide-security .slide-animation {
    margin-top: -80px;
  }
  
  .spectator-robot-preview {
    width: 55px;
    height: 65px;
  }
  
  .spectator-status-preview {
    font-size: 0.65rem;
    margin: 2px 0;
  }
  
  .spectator-progress-preview {
    max-width: 90%;
  }
  
  .spectator-card-preview {
    max-width: 90%;
    padding: 8px 10px;
  }
  
  /* Slide 3 - Indices */
  .hints-card-container {
    max-width: 90%;
  }
  
  .hints-card {
    padding: 12px;
  }
  
  .hints-actions {
    margin-top: 10px;
  }
  
  /* Slide 4 - Streak */
  .streak-container {
    gap: 10px;
  }
  
  .real-flame-container {
    width: 100px;
    height: 110px;
  }
  
  .real-flame-emoji {
    font-size: 4rem;
  }
  
  .flame-number {
    font-size: 1.5rem;
    bottom: 3px;
  }
  
  .flame-glow-layer {
    width: 80px;
    height: 80px;
  }
  
  .flame-glow-layer.delay {
    width: 100px;
    height: 100px;
  }
  
  .streak-stats {
    gap: 15px;
  }
  
  /* Slide 5 - Analytics */
  .analytics-dashboard {
    gap: 12px;
  }
  
  .analytics-score-ring {
    width: 80px;
    height: 80px;
  }
  
  .analytics-mini-stats {
    gap: 8px;
  }
  
  .mini-stat {
    padding: 8px 6px;
  }
  
  .welcome-robot {
    width: 50px;
    bottom: 12px;
    right: 12px;
  }
  
  .pwa-install-widget {
    left: 10px;
    right: 10px;
    transform: none;
    bottom: 10px;
  }
}

/* ============================================
   SMALL MOBILE (max-width: 380px) - iPhone SE
   ============================================ */
@media (max-width: 380px) {
  .welcome-screen {
    padding: 12px;
  }
  
  .welcome-layout {
    gap: 20px;
  }
  
  .welcome-title .gradient-text {
    font-size: 1.6rem;
  }
  
  .welcome-title .subtitle {
    font-size: 0.8rem;
  }
  
  .welcome-description {
    font-size: 0.8rem;
    margin-bottom: 16px;
  }
  
  .welcome-auth-buttons {
    gap: 8px;
    max-width: 100%;
  }
  
  .welcome-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .welcome-carousel-container {
    border-radius: 16px;
  }
  
  .welcome-slide {
    padding: 16px 12px;
  }
  
  .slide-title {
    font-size: 1rem;
  }
  
  .slide-subtitle {
    font-size: 0.75rem;
    margin-bottom: 12px;
  }
  
  .slide-animation {
    min-height: 180px;
    gap: 8px;
  }
  
  .slide-description {
    font-size: 0.7rem;
  }
  
  /* Slide 1 - très compact */
  .spectator-robot-preview {
    width: 60px;
    height: 70px;
  }
  
  .spectator-progress-preview {
    max-width: 100%;
  }
  
  .spectator-card-preview {
    max-width: 100%;
    padding: 10px 12px;
  }
  
  .spectator-card-front-preview,
  .spectator-card-back-preview {
    padding: 8px;
    font-size: 0.75rem;
  }
  
  /* Autres slides */
  .security-animation {
    width: 60px;
    height: 80px;
  }
  
  .share-avatar {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .share-link-line {
    width: 30px;
  }
  
  .chat-animation {
    max-width: 100%;
    padding: 10px;
  }
  
  .chat-bubble {
    padding: 8px 10px;
    font-size: 0.7rem;
  }
  
  .streak-flame-container {
    font-size: 2rem;
  }
  
  .streak-counter {
    font-size: 1.5rem;
  }
  
  .streak-day {
    width: 20px;
    height: 20px;
    font-size: 0.5rem;
  }
  
  .welcome-carousel-dot {
    width: 6px;
    height: 6px;
  }
  
  .welcome-carousel-dot.active {
    width: 16px;
  }
  
  .welcome-robot {
    width: 40px;
  }
}

/* ============================================
   TALL MOBILE (min-height: 800px) + mobile width
   ============================================ */
@media (max-width: 767px) and (min-height: 800px) {
  .welcome-layout {
    gap: 40px;
  }
  
  .slide-animation {
    min-height: 200px;
  }
}

/* ============================================
   SHORT MOBILE (max-height: 700px) - iPhone SE, etc
   ============================================ */
@media (max-height: 700px) {
  .welcome-screen {
    align-items: flex-start;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  .welcome-layout {
    gap: 15px;
  }
  
  .welcome-title .gradient-text {
    font-size: 1.5rem;
  }
  
  .welcome-description {
    margin-bottom: 12px;
    font-size: 0.8rem;
  }
  
  .welcome-auth-buttons {
    gap: 6px;
  }
  
  .welcome-btn {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  
  .welcome-slide {
    padding: 12px 10px;
  }
  
  .slide-title {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }
  
  .slide-subtitle {
    font-size: 0.7rem;
    margin-bottom: 8px;
  }
  
  .slide-animation {
    min-height: 140px;
    gap: 6px;
  }
  
  .spectator-robot-preview {
    width: 50px;
    height: 60px;
  }
  
  .spectator-status-preview {
    font-size: 0.65rem;
  }
  
  .spectator-card-preview {
    padding: 8px 10px;
  }
  
  .spectator-card-front-preview,
  .spectator-card-back-preview {
    padding: 6px 8px;
    font-size: 0.7rem;
  }
  
  .slide-description {
    font-size: 0.65rem;
    margin-top: 6px;
  }
  
  .welcome-carousel-nav {
    padding-bottom: 10px;
  }
  
  .welcome-robot {
    display: none;
  }
}

/* ============================================
   SLIDE 2: CHAT - REFONTE COMPLETE
   ============================================ */
.chat-preview-container {
  width: 100%;
  max-width: clamp(280px, 75vw, 340px);
  background: rgba(15, 17, 30, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.1);
}

.chat-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(99, 102, 241, 0.1);
  border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.chat-preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  position: relative;
}

.chat-preview-avatar .online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #0f111e;
  animation: pulse 2s infinite;
}

.chat-preview-info {
  display: flex;
  flex-direction: column;
}

.chat-preview-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
}

.chat-preview-status {
  font-size: 0.7rem;
  color: #22c55e;
}

.chat-preview-messages {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}

.chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  animation: messageSlide 0.5s ease-out both;
}

.chat-msg.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-msg.received {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-bottom-left-radius: 4px;
}

.chat-msg:nth-child(1) { animation-delay: 0.2s; }
.chat-msg:nth-child(2) { animation-delay: 0.6s; }
.chat-msg:nth-child(3) { animation-delay: 1s; }

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

.msg-text {
  display: block;
}

.msg-time {
  display: block;
  font-size: 0.6rem;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.chat-typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  width: fit-content;
  animation: messageSlide 0.5s ease-out 1.4s both;
}

.chat-typing-indicator span:not(.typing-label) {
  width: 6px;
  height: 6px;
  background: #a78bfa;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite;
}

.chat-typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.typing-label {
  font-size: 0.7rem;
  color: #a78bfa;
  margin-left: 4px;
}

.chat-preview-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: #64748b;
}

.chat-preview-input i:first-child { color: #64748b; }
.chat-preview-input i:last-child { color: #6366f1; margin-left: auto; }
.chat-preview-input span { flex: 1; }

/* ============================================
   SLIDE 3: INDICES IA - REFONTE COMPLETE
   ============================================ */
.hints-card-container {
  position: relative;
  width: 100%;
  max-width: clamp(280px, 75vw, 360px);
}

.hints-card {
  background: rgba(15, 17, 30, 0.95);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(251, 191, 36, 0.1);
}

.hints-card-question {
  margin-bottom: 12px;
}

.hints-card-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6366f1;
  margin-bottom: 6px;
  display: block;
}

.hints-card-label.indice {
  color: #fbbf24;
}

.hints-card-question p {
  font-size: 0.95rem;
  color: #fff;
  margin: 0;
  line-height: 1.4;
}

.hints-card-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}

.hints-card-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.4), transparent);
}

.hints-card-divider-icon {
  color: #fbbf24;
  font-size: 1.1rem;
  animation: bulbPulse 2s infinite;
}

@keyframes bulbPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(251, 191, 36, 0.5)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.8)); }
}

.hints-card-hint p {
  font-size: 0.9rem;
  color: #fef3c7;
  margin: 0;
  font-style: italic;
  overflow: hidden;
}

.hint-text-typing {
  border-right: 2px solid #fbbf24;
  animation: hintCursor 0.7s step-end infinite;
}

@keyframes hintCursor {
  50% { border-color: transparent; }
}

.hints-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.hints-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
}

.hints-btn.hint-btn {
  background: rgba(251, 191, 36, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.hints-btn.reveal-btn {
  background: rgba(99, 102, 241, 0.2);
  color: #a78bfa;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.hints-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hints-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fbbf24;
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 3s infinite;
}

.hints-particles span:nth-child(1) { left: 10%; animation-delay: 0s; }
.hints-particles span:nth-child(2) { left: 30%; animation-delay: 0.5s; }
.hints-particles span:nth-child(3) { left: 50%; animation-delay: 1s; }
.hints-particles span:nth-child(4) { left: 70%; animation-delay: 1.5s; }
.hints-particles span:nth-child(5) { left: 85%; animation-delay: 2s; }
.hints-particles span:nth-child(6) { left: 95%; animation-delay: 2.5s; }

@keyframes particleFloat {
  0% { bottom: -10px; opacity: 0; }
  20% { opacity: 1; }
  100% { bottom: 100%; opacity: 0; transform: translateX(20px); }
}

/* ============================================
   SLIDE 4: STREAK - VRAI EMOJI 🔥 AVEC EFFETS
   ============================================ */
.streak-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: clamp(280px, 75vw, 340px);
}

/* Container du vrai emoji */
.real-flame-container {
  position: relative;
  width: 120px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Glow layers derrière l'emoji */
.flame-glow-layer {
  position: absolute;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(255, 100, 0, 0.7) 0%, rgba(255, 150, 0, 0.4) 40%, transparent 70%);
  border-radius: 50%;
  animation: flameGlowPulse 1.2s ease-in-out infinite;
  filter: blur(15px);
}

.flame-glow-layer.delay {
  width: 130px;
  height: 130px;
  animation-delay: 0.6s;
  opacity: 0.6;
}

@keyframes flameGlowPulse {
  0%, 100% { 
    transform: scale(0.85); 
    opacity: 0.5;
  }
  50% { 
    transform: scale(1.15); 
    opacity: 1;
  }
}

/* Le vrai emoji 🔥 */
.real-flame-emoji {
  font-size: 5rem;
  line-height: 1;
  position: relative;
  z-index: 2;
  animation: flameFloat 0.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 100, 0, 0.8))
          drop-shadow(0 0 20px rgba(255, 150, 0, 0.5));
}

@keyframes flameFloat {
  0%, 100% { 
    transform: translateY(0) scale(1);
  }
  50% { 
    transform: translateY(-3px) scale(1.03);
  }
}

/* Nombre sous l'emoji */
.flame-number {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(255, 100, 0, 0.8);
  z-index: 10;
}

/* Étincelles autour */
.flame-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.flame-sparks span {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 6px #ffa500, 0 0 10px #ff6600;
  animation: sparkRise 1.8s ease-out infinite;
}

.flame-sparks span:nth-child(1) { left: 20%; top: 60%; animation-delay: 0s; }
.flame-sparks span:nth-child(2) { left: 35%; top: 50%; animation-delay: 0.3s; }
.flame-sparks span:nth-child(3) { left: 50%; top: 55%; animation-delay: 0.6s; }
.flame-sparks span:nth-child(4) { left: 65%; top: 50%; animation-delay: 0.9s; }
.flame-sparks span:nth-child(5) { left: 80%; top: 60%; animation-delay: 1.2s; }
.flame-sparks span:nth-child(6) { left: 50%; top: 40%; animation-delay: 1.5s; }

@keyframes sparkRise {
  0% { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% { 
    opacity: 0;
    transform: translateY(-50px) scale(0);
  }
}

.streak-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.streak-stat {
  text-align: center;
}

.streak-stat .stat-value {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.streak-stat .stat-label {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.streak-week {
  display: flex;
  gap: 6px;
}

.streak-day {
  width: 36px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
}

.streak-day i {
  font-size: 0.8rem;
}

.streak-day.done {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1));
  border-color: rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

.streak-day.done i {
  color: #22c55e;
}

.streak-day.today {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(234, 179, 8, 0.2));
  border-color: rgba(249, 115, 22, 0.5);
  color: #f97316;
  animation: todayPulse 2s infinite;
}

@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0); }
}

.streak-day.today i {
  color: #fbbf24;
}

/* ============================================
   SLIDE 5: ANALYTICS - REFONTE COMPLETE
   ============================================ */
.analytics-dashboard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: clamp(280px, 75vw, 340px);
}

.analytics-score-ring {
  position: relative;
  width: 100px;
  height: 100px;
}

.analytics-score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle {
  animation: scoreGrow 2s ease-out forwards;
  stroke-dashoffset: 264;
}

@keyframes scoreGrow {
  to { stroke-dashoffset: 58; }
}

.score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-label {
  font-size: 0.6rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.analytics-mini-stats {
  display: flex;
  gap: 12px;
  width: 100%;
}

.mini-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.mini-stat i {
  font-size: 1rem;
  margin-bottom: 4px;
  display: block;
}

.mini-stat.good i { color: #22c55e; }
.mini-stat.warning i { color: #f59e0b; }
.mini-stat.info i { color: #6366f1; }

.mini-value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.mini-label {
  font-size: 0.55rem;
  color: #64748b;
  text-transform: uppercase;
}

.analytics-ai-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
}

.ai-feedback-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
}

.analytics-ai-feedback p {
  font-size: 0.75rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.4;
}

.analytics-ai-feedback strong {
  color: #a78bfa;
}

/* ============================================
   SLIDE 6: SECURITY - REFONTE COMPLETE
   ============================================ */
.security-vault {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: clamp(280px, 75vw, 320px);
}

.security-shield-container {
  position: relative;
  width: 80px;
  height: 100px;
}

.shield-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
  animation: shieldGlow 3s ease-in-out infinite;
}

@keyframes shieldGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.shield-main {
  position: relative;
  width: 100%;
  height: 100%;
}

.shield-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 20px rgba(99, 102, 241, 0.4));
}

.shield-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  color: #fff;
}

.shield-scan {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #a78bfa, transparent);
  animation: shieldScan 2s linear infinite;
}

@keyframes shieldScan {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.security-password-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  padding: 10px 16px;
}

.password-dots {
  display: flex;
  gap: 6px;
}

.password-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s;
}

.password-dots .dot.filled {
  background: #6366f1;
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.5);
  animation: dotFill 0.3s ease-out;
}

.password-dots .dot:nth-child(1).filled { animation-delay: 0.1s; }
.password-dots .dot:nth-child(2).filled { animation-delay: 0.2s; }
.password-dots .dot:nth-child(3).filled { animation-delay: 0.3s; }
.password-dots .dot:nth-child(4).filled { animation-delay: 0.4s; }

@keyframes dotFill {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.password-success {
  color: #22c55e;
  font-size: 1.2rem;
  animation: successPop 0.5s ease-out 0.6s both;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

.security-access {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.access-item {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.access-item.granted {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.access-item.denied {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================
   SLIDE 7: PARTAGE - REFONTE COMPLETE
   ============================================ */
.share-network {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: clamp(280px, 75vw, 320px);
}

.share-center {
  position: relative;
  width: 60px;
  height: 60px;
}

.share-you {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
  position: relative;
  z-index: 2;
}

.share-pulse {
  position: absolute;
  inset: -10px;
  border: 2px solid #6366f1;
  border-radius: 50%;
  animation: sharePulse 2s infinite;
}

.share-pulse.delay {
  animation-delay: 1s;
}

@keyframes sharePulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.share-connections {
  position: relative;
  width: 200px;
  height: 60px;
  margin: -10px 0;
}

.share-friend {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.2);
  border: 2px solid rgba(99, 102, 241, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  font-size: 0.9rem;
  animation: friendPop 0.5s ease-out both;
}

.share-friend.f1 { left: 10px; top: 10px; animation-delay: 0.3s; }
.share-friend.f2 { left: 50%; top: 0; transform: translateX(-50%); animation-delay: 0.5s; }
.share-friend.f3 { right: 10px; top: 10px; animation-delay: 0.7s; }

@keyframes friendPop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.share-friend.f2 {
  animation: friendPop2 0.5s ease-out 0.5s both;
}

@keyframes friendPop2 {
  0% { transform: translateX(-50%) scale(0); opacity: 0; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

.share-line {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, rgba(99, 102, 241, 0.3));
  top: 30px;
  animation: lineGrow 0.5s ease-out both;
  transform-origin: left;
}

.share-line.l1 { left: 50%; width: 40px; transform: rotate(-30deg); animation-delay: 0.2s; }
.share-line.l2 { left: 50%; width: 30px; transform: translateX(-50%) rotate(90deg); animation-delay: 0.4s; }
.share-line.l3 { right: 50%; width: 40px; transform: rotate(30deg); transform-origin: right; animation-delay: 0.6s; }

@keyframes lineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.share-link-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  width: 100%;
}

.link-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
}

.link-url {
  flex: 1;
  font-size: 0.75rem;
  overflow: hidden;
}

.link-domain {
  color: #64748b;
}

.link-code {
  color: #a78bfa;
  font-weight: 600;
}

.link-copy {
  width: 30px;
  height: 30px;
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
  color: #a78bfa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.share-buttons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: white;
  animation: shareBtn 0.5s ease-out both;
}

.share-btn.whatsapp { background: #25D366; animation-delay: 0.8s; }
.share-btn.telegram { background: #0088cc; animation-delay: 0.9s; }
.share-btn.email { background: #6366f1; animation-delay: 1s; }

@keyframes shareBtn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

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