/* Variables CSS - Design Premium */
:root {
    /* Couleurs principales */
    --primary: #d3dfce;
    --primary-dark: #a8b89c;
    --primary-light: #e8f0e3;
    --primary-accent: #9fb391;
    
    /* Palette de couleurs étendues */
    --gray-950: #030712;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    
    /* Couleurs d'accent */
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --emerald-500: #10b981;
    --purple-600: #9333ea;
    
    /* Ombres premium */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-dark: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    
    /* Espacements */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--white);
    color: var(--gray-900);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* Header Premium */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.25rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-2xl);
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: var(--space-sm) 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-dark);
}

.nav-link.external {
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-dashboard {
    background: var(--gradient-primary);
    color: var(--gray-900);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-dashboard::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.5s ease;
}

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

.btn-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile menu */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--gray-100);
}

.mobile-menu {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

.mobile-menu-content {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-menu-link {
    color: var(--gray-700);
    text-decoration: none;
    padding: var(--space-md) 0;
    font-weight: 500;
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--primary-dark);
    padding-left: var(--space-md);
}

/* Hero Section Premium */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(211, 223, 206, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white) 0%, transparent 100%);
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: var(--space-2xl);
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-3xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    background: var(--white);
    color: var(--gray-900);
    padding: var(--space-lg) var(--space-3xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 700;
    transition: all 0.4s ease;
    box-shadow: var(--shadow-xl);
    border: none;
    cursor: pointer;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    color: var(--white);
}

/* Sections Premium */
.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--gray-900);
    text-align: center;
    margin-bottom: var(--space-3xl);
    line-height: 1.2;
    letter-spacing: -0.05em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.section-text {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    font-weight: 400;
}

/* About section */
.about {
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
}

/* Features section premium */
.features {
    background: var(--white);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(211, 223, 206, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(211, 223, 206, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-4xl);
    position: relative;
    z-index: 1;
}

.feature-card {
    background: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow);
    transition: all 0.4s ease;
    text-align: center;
    border: 1px solid var(--gray-100);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.feature-emoji {
    font-size: 4rem;
    margin-bottom: var(--space-xl);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.025em;
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 1.125rem;
}

/* Redirections section */
.redirections {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--gray-50) 100%);
    position: relative;
}

.redirections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.redirection-card {
    background: var(--white);
    padding: var(--space-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--gray-100);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

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

.redirection-card:hover::before {
    left: 100%;
}

.redirection-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.redirection-emoji {
    font-size: 3rem;
    margin-bottom: var(--space-xl);
    display: block;
}

.redirection-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.025em;
}

.redirection-description {
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
    font-size: 1.125rem;
}

.btn-secondary {
    display: inline-block;
    background: var(--gradient-primary);
    color: var(--gray-900);
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-secondary::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.5s ease;
}

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

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Contact section */
.contact {
    background: var(--white);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    color: var(--gray-900);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: var(--space-lg) var(--space-2xl);
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-email::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.5s ease;
}

.contact-email:hover::before {
    left: 100%;
}

.contact-email:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Footer premium */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Responsive design */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .redirections-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animations premium */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Utilitaires */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.block {
    display: block;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
