/* 
    Landing Pages CSS - KPI Software
    Consolidated from all Blade files
*/

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Apply Tajawal font for Arabic language */
[dir="rtl"],
[lang="ar"] {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Ensure Tajawal font weights are properly applied for Arabic (excluding Font Awesome icons) */
[dir="rtl"] *:not(.fas):not(.far):not(.fab):not(.fa):not([class*="fa-"]),
[lang="ar"] *:not(.fas):not(.far):not(.fab):not(.fa):not([class*="fa-"]) {
    font-family: 'Tajawal', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* RTL positioning for Coming Soon badges */
[dir="rtl"] .absolute[class*="top-4"][class*="right-4"],
[lang="ar"] .absolute[class*="top-4"][class*="right-4"] {
    right: auto !important;
    left: 1rem !important;
}

:root {
    /* Palette calme et professionnelle - Tons foncés proches de l'identité */
    --primary: #475569;           /* Slate-600 - Couleur principale calme et professionnelle */
    --primary-dark: #334155;      /* Slate-700 - Pour les dégradés foncés */
    --primary-light: #64748b;     /* Slate-500 - Pour les accents légers */
    --secondary: #4a5568;         /* Slate-600 bleuté - Couleur secondaire foncée et grisâtre */
    --secondary-dark: #475569;    /* Slate-600 - Pour les dégradés */
    --accent: #0d9488;            /* Teal-600 - Accent subtil (non dominant) */
    --accent-dark: #0f766e;       /* Teal-700 - Pour les variantes */
    --orange-accent: #d97706;     /* Orange-600 - Accent chaleureux et calme pour KPI */
    --dark-bg: #0f172a;           /* Slate-900 - Fond sombre cohérent */
    --dark-secondary: #1e293b;    /* Slate-800 - Fond sombre secondaire */
    --neutral-light: #f8fafc;     /* Slate-50 - Fond clair */
    --neutral: #f1f5f9;           /* Slate-100 - Fond neutre */
}

body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: #ffffff;
}

/* Navigation Élégante (comme index9) */
.nav-premium {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.nav-premium.scrolled {
    box-shadow: 0 4px 24px rgba(71, 85, 105, 0.1);
    border-bottom-color: rgba(13, 148, 136, 0.2);
}


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

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

.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-300 { animation-delay: 300ms; }
.animation-delay-400 { animation-delay: 400ms; }
.animation-delay-500 { animation-delay: 500ms; }


/* Gradient principal - Slate vers Slate-bleu foncé (calme et professionnel) */
.gradient-primary {
    background: linear-gradient(135deg, #475569 0%, #4a5568 50%, #0d9488 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #475569 0%, #4a5568 50%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-premium {
    background: linear-gradient(135deg, #475569 0%, #4a5568 50%, #0d9488 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gradient accent - Slate-bleu foncé vers Teal foncé */
.gradient-accent {
    background: linear-gradient(135deg, #4a5568 0%, #0d9488 50%, #0f766e 100%);
}

.gradient-accent-text {
    background: linear-gradient(135deg, #4a5568 0%, #0d9488 50%, #0f766e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Dark gradient background - Cohérent avec la palette */
.dark-gradient-bg {
    background: linear-gradient(to bottom right, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
}

.dark-gradient-section {
    background: linear-gradient(to bottom right, #0f172a 0%, #1e293b 50%, #0c4a6e 100%);
    color: white;
}

.section-padding {
    padding: 80px 0;
}
/* Mobile-only: réduire le padding des sections (< 768px) */
@media (max-width: 767px) {
    .section-padding { padding: 48px 0; }
}

/* Hero Section Cinématique (comme index.html) */
.hero-cinematic {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(13, 148, 136, 0.3);
    border-radius: 50%;
    animation: float-particle 20s infinite;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(100vw, -100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Grid animé (comme index.html) */
.grid-animated {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: grid-move 20s linear infinite;
    z-index: 1;
}

@keyframes grid-move {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(100px, 100px);
    }
}

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

.animate-gradient {
    animation: gradient 3s ease infinite;
}

/* Floating Animation pour le bloc indicateurs */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

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

/* Style élégant et prestigieux pour KPI */
.kpi-prestige {
    color: #d97706;
    font-weight: 900;
    letter-spacing: 0.08em;
    position: relative;
    display: inline-block;
}

/* Professional Grid Pattern */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(71, 85, 105, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 85, 105, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}



/* Elegant Card Hover (comme index8) */
.elegant-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.elegant-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(71, 85, 105, 0.15);
    border-color: rgba(71, 85, 105, 0.3);
}


/* Logo Carousel Animation */
.logo-carousel {
    display: flex;
    gap: 3rem;
    animation: scroll-logos 20s linear infinite;
}

.logo-carousel-container {
    overflow: hidden;
    position: relative;
}

.logo-carousel-container::before,
.logo-carousel-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-carousel-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(15, 23, 42, 0.9), transparent);
}

.logo-carousel-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(15, 23, 42, 0.9), transparent);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    flex-shrink: 0;
    width: 160px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glass Card */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Bouton retour en haut */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d9488, #0f766e);
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.4);
    transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}
.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13, 148, 136, 0.5);
}
.back-to-top.hidden {
    opacity: 0;
    pointer-events: none;
}
/* CTA Bar fixe en bas */
.cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 2px solid rgba(13, 148, 136, 0.4);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
    padding: 12px 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cta-bar.cta-bar-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}
body.has-cta-bar .back-to-top { bottom: 85px !important; }
/* Mobile uniquement : CTA bar compacte, back-to-top décalé */
@media (max-width: 767px) {
    .cta-bar {
        padding: 8px 12px;
    }
    .cta-bar .max-w-5xl {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 8px !important;
    }
    .cta-bar .cta-bar-btn {
        flex: 1;
        min-width: 0;
        padding: 10px 8px !important;
        font-size: 0.7rem !important;
        gap: 4px !important;
    }
    .cta-bar .cta-bar-btn span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.has-cta-bar .back-to-top {
        bottom: 58px !important;
        right: 12px;
        width: 42px;
        height: 42px;
    }
    footer {
        padding-bottom: 5rem !important;
    }
}
