/* ============================================
   SICMI SARL - Design Improvements 2025
   ============================================ */

:root {
    --gradient-primary: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.2);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   SMOOTH SCROLL & SELECTION
   ============================================ */

html {
    scroll-behavior: smooth;
}

::selection {
    background: #0056b3;
    color: white;
}

::-moz-selection {
    background: #0056b3;
    color: white;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.scroll-to-top i {
    font-size: 1.5rem;
}

/* ============================================
   LOADING SKELETON
   ============================================ */

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.skeleton-title {
    height: 2rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    width: 60%;
}

.skeleton-image {
    height: 200px;
    border-radius: 8px;
}

/* ============================================
   ENHANCED CARDS
   ============================================ */

.card-enhanced {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

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

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

.card-enhanced .card-img-top {
    transition: transform var(--transition-slow);
}

.card-enhanced:hover .card-img-top {
    transform: scale(1.1);
}

/* ============================================
   GRADIENT TEXT
   ============================================ */

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

.text-gradient-secondary {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* ============================================
   ANIMATED UNDERLINE
   ============================================ */

.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-normal);
}

.underline-animated:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   PULSE ANIMATION
   ============================================ */

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(0, 86, 179, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   FLOATING ELEMENTS
   ============================================ */

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

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

/* ============================================
   GLASSMORPHISM
   ============================================ */

.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   ENHANCED BUTTONS
   ============================================ */

.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

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

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

.btn-3d {
    box-shadow: 0 6px 0 #003d82, var(--shadow-md);
    position: relative;
    top: 0;
    transition: all var(--transition-fast);
}

.btn-3d:hover {
    top: 3px;
    box-shadow: 0 3px 0 #003d82, var(--shadow-sm);
}

.btn-3d:active {
    top: 6px;
    box-shadow: none;
}

/* ============================================
   COUNTERS ANIMÉS
   ============================================ */

.counter {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    font-size: 1rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ============================================
   TIMELINE MODERNE
   ============================================ */

.timeline-modern {
    position: relative;
    padding: 2rem 0;
}

.timeline-modern::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item-modern {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item-modern::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid #0056b3;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* ============================================
   HOVER EFFECTS AVANCÉS
   ============================================ */

.hover-lift {
    transition: all var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.hover-glow {
    transition: all var(--transition-normal);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 86, 179, 0.5);
}

.hover-tilt {
    transition: all var(--transition-normal);
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* ============================================
   BADGES MODERNES
   ============================================ */

.badge-gradient {
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
}

.badge-outline {
    background: transparent;
    border: 2px solid #0056b3;
    color: #0056b3;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.badge-outline:hover {
    background: #0056b3;
    color: white;
}

/* ============================================
   PARALLAX EFFECT
   ============================================ */

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress-gradient {
    height: 8px;
    border-radius: 50px;
    background: #e9ecef;
    overflow: hidden;
}

.progress-gradient .progress-bar {
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: width 1s ease;
}

/* ============================================
   TOOLTIPS MODERNES
   ============================================ */

[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

@media (max-width: 768px) {
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .counter {
        font-size: 2rem;
    }
    
    .timeline-modern::before {
        left: 20px;
    }
    
    .timeline-item-modern::before {
        left: 20px;
    }
}

/* ============================================
   ANIMATIONS ON SCROLL
   ============================================ */

.aos-init {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-down"] {
    transform: translateY(-50px);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="zoom-in"] {
    transform: scale(0.8);
}

[data-aos="zoom-out"] {
    transform: scale(1.2);
}
