/**
 * Perennity Advisory - Styles Généraux Présentation
 * Utilise le Design System PERENNITY
 */

@import url('../design-system/perennity-design-tokens.css');

/* ============================================
   RESET & BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--perennity-font-body);
  font-size: var(--perennity-text-lg);
  line-height: var(--perennity-line-relaxed);
  color: var(--perennity-text-primary);
  background: var(--perennity-bg-primary);
  overflow-x: hidden;
}

/* ============================================
   SLIDES CONTAINER
   ============================================ */

.slides-container {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.slide {
  display: none;
  width: 100%;
  min-height: 100vh;
  padding: var(--perennity-space-3xl);
  background: var(--perennity-bg-primary);
}

/* Alternance de backgrounds pour sections */
.slide:nth-child(even) {
  background: var(--perennity-bg-alternate);
}

.slide.slide-active {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* ============================================
   SLIDE HEADER (Commun)
   ============================================ */

.slide-header {
  text-align: center;
  margin-bottom: var(--perennity-space-2xl);
  padding-bottom: var(--perennity-space-xl);
  position: relative;
  width: 100%;
  max-width: var(--perennity-container-max-width);
}

.slide-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--perennity-accent-light), transparent);
  opacity: 0.4;
}

.slide-title {
  font-family: var(--perennity-font-elegant);
  font-size: var(--perennity-text-6xl);
  font-weight: var(--perennity-weight-semibold);
  color: var(--perennity-text-primary);
  line-height: var(--perennity-line-tight);
  margin-bottom: var(--perennity-space-md);
  letter-spacing: -0.03em;
  opacity: 0.95;
}

.slide-subtitle {
  font-family: var(--perennity-font-elegant);
  font-size: var(--perennity-text-3xl);
  font-weight: var(--perennity-weight-regular);
  color: var(--perennity-text-secondary);
  font-style: italic;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* ============================================
   NAVIGATION SYSTEM
   ============================================ */
/* Styles déplacés dans components/_navigation.css */

/* ============================================
   THEME TOGGLE
   ============================================ */
/* Styles déplacés dans components/_theme-toggle.css */

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: var(--perennity-font-body);
  font-size: var(--perennity-text-xl);
  color: var(--perennity-text-secondary);
}

.error {
  padding: var(--perennity-space-xl);
  background: var(--perennity-bg-primary);
  border: 1px solid var(--perennity-border);
  border-radius: var(--perennity-radius-md);
  color: var(--perennity-text-primary);
  text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .slide {
    padding: var(--perennity-space-xl);
  }
  
  .slide-title {
    font-size: var(--perennity-text-4xl);
  }
  
  .slide-subtitle {
    font-size: var(--perennity-text-2xl);
  }
  
  .slide-navigation {
    bottom: var(--perennity-space-md);
    padding: var(--perennity-space-xs) var(--perennity-space-sm);
  }
  
  .slide-indicators {
    display: none; /* Masquer sur mobile */
  }
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] .slide,
.dark-mode .slide {
  background: var(--perennity-bg-primary);
  color: var(--perennity-text-primary);
}

[data-theme="dark"] .slide-navigation,
.dark-mode .slide-navigation {
  background: var(--perennity-primary);
  border-color: var(--perennity-border);
}

[data-theme="dark"] .theme-toggle-button,
.dark-mode .theme-toggle-button {
  background: var(--perennity-primary);
  color: var(--perennity-accent-light);
  border-color: var(--perennity-border);
}

