/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Variables pour les animations fluides */
:root {
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    background: #fff;
    color: #222;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
/* Animations globales fluides */
* {
    transition: all var(--transition-fast);
}

/* Animation d'apparition progressive des éléments */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navbar avec animations */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(10px);
    animation: slideInLeft 0.8s ease-out;
    position: relative;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    transition: transform var(--transition-medium);
}

.logo:hover {
    transform: scale(1.05);
}

.logo .icon {
    width: 24px;
    height: 24px;
    background: #121212;
    border-radius: 6px;
    margin-right: 8px;
    transition: all var(--transition-medium);
    transform-origin: center;
}

.logo:hover .icon {
    transform: rotate(180deg) scale(1.1);
    background: linear-gradient(45deg, #121212, #444);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    transition: all var(--transition-medium);
    position: relative;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0;
    transform-origin: center;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #121212, #444);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--animation-bounce);
}

nav a:hover {
    color: #121212;
    transform: translateY(-2px);
}

nav a:hover::after {
    transform: scaleX(1);
}

.btn-primary {
    background: #121212;
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-medium);
    border: 1px solid transparent;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    transform-origin: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    background: #ffffff;
    border: 1px solid #121212;
    color: #000;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 15px rgba(18, 18, 18, 0.2);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    background: #000000;
    border: 1px solid #000000;
    color: #ffffff;
    transform: translateY(0) scale(0.98);
}

/* Hero avec animations */
.hero {
    text-align: center;
    padding: 5rem 2rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero p {
    color: #121212;
    font-weight: 600;
}

.hero .highlight {
    border-radius: 30px;
    border: 1px solid #c5c5c5;
    padding: 0.3rem 0.8rem;
    display: inline-block;
    font-size: small;
    transition: all var(--transition-medium);
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero .highlight:hover {
    transform: scale(1.1);
    border-color: #121212;
    background: rgba(18, 18, 18, 0.05);
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 1rem 0;
    animation: fadeInUp 1s ease-out 0.7s both;
    background: linear-gradient(135deg, #121212, #444);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-medium);
}

.hero h1:hover {
    transform: scale(1.02);
}

.hero .subtext {
    color: #555;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    animation: fadeInUp 1s ease-out 0.9s both;
    transition: color var(--transition-medium);
}

.hero .subtext:hover {
    color: #333;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 1.1s both;
}

.hero-buttons .btn-primary {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
}

.btn-secondary {
    border: 1px solid #ddd;
    padding: 0.7rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    color: #222;
    font-weight: 500;
    transition: all var(--transition-medium);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(18,18,18,0.1), transparent);
    transition: left 0.6s ease;
}

.btn-secondary:hover {
    background: #f9f9f9;
    border-color: #121212;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary:hover::before {
    left: 100%;
}

/* Dashboard avec effet de tilt */
.dashboard {
    padding: 1rem 8rem;
    display: flex;
    justify-content: center;
    animation: fadeInUp 1s ease-out 1.3s both;
}

.dashboard img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all var(--transition-medium);
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
}

/* Animations responsives */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Réduction des animations sur mobile pour les performances */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }

    .dashboard {
        padding: 1rem 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtext {
        font-size: 1rem;
    }
    
    header {
        padding: 0.5rem 1rem;
    }
}

/* Préférence utilisateur pour réduire les animations */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .dashboard img {
        transform: none !important;
    }
}

/* Animation de chargement */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading {
    animation: pulse 2s infinite;
}

/* Slider */
.slider {
  display: flex;
  flex-direction: row;
  width: 500vw; /* 5 slides */
  height: 100vh;
  scroll-snap-type: x mandatory;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.slide {
  flex: 0 0 100vw;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem;
  text-align: center;
}

.content {
  max-width: 700px;
}

.highlight {
  display: inline-block;
  border: 1px solid #ccc;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: small;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  margin: 1rem 0;
  background: linear-gradient(135deg, #121212, #555);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtext {
  color: #555;
  margin-bottom: 2rem;
}

/* Illustrations */
.illustration {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin-top: 1rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .slide {
    padding: 2rem;
  }
  h1 {
    font-size: 2rem;
  }
}