/* ============================================================
   ANARE-CI Homepage Styles
   ============================================================ */

/* Hero Section */
.s_cover {
    position: relative;
    overflow: hidden;
    /* Fallback gradient professionnel si pas d'image */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #667eea 100%) !important;
}

/* Hero avec image (override gradient si image présente) */
.s_cover[style*="hero-bg.jpg"] {
    background-blend-mode: overlay;
}

.s_parallax_bg {
    transition: transform 0.3s ease-out;
}

/* Cards Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary) !important;
}

/* Feature Icons */
.feature-icon {
    transition: all 0.3s ease;
}

.hover-lift:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

/* Spacing */
.pt96 { padding-top: 96px !important; }
.pb96 { padding-bottom: 96px !important; }
.pt64 { padding-top: 64px !important; }
.pb64 { padding-bottom: 64px !important; }

/* Background Utilities */
.bg-black-50 {
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Stats Section */
.counter-item {
    transition: all 0.3s ease;
}

.counter-item:hover {
    transform: scale(1.05);
}

.counter-item h2 {
    transition: all 0.3s ease;
}

.counter-item:hover h2 {
    transform: scale(1.2);
}

/* Call to Action Section */
.s_call_to_action {
    position: relative;
    overflow: hidden;
}

.s_call_to_action::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20%, -20%); }
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.5rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .pt96 { padding-top: 64px !important; }
    .pb96 { padding-bottom: 64px !important; }

    .btn-lg {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.6s ease-out;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

/* Accessibility */
.btn:focus,
.card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .s_cover,
    .s_call_to_action {
        background: none !important;
        color: #000 !important;
    }

    .btn {
        display: none;
    }
}

/* Dark Mode Support (si activé dans Odoo) */
@media (prefers-color-scheme: dark) {
    .card {
        background-color: #2d3748;
        color: #fff;
    }

    .text-muted {
        color: #a0aec0 !important;
    }
}
