/* Styles spécifiques pour la page d'accueil FMCG.ma */

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Surbrillance des liens dans la navigation */
.nav-link.active {
    font-weight: 600;
    border-bottom: 2px solid #F40009;
}

/* Style des cartes */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Style des boutons */
.btn-action {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-action:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn-action:hover:after {
    transform: translateX(0);
}

/* Style des statistics */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Style du message de bienvenue */
.welcome-message {
    position: relative;
}

.welcome-message::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: #F40009;
    transition: width 0.3s ease;
}

.welcome-message:hover::after {
    width: 100px;
}

/* Style pour les sections sur mobile */
@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation pour la bannière hero */
.hero-animation {
    animation: fadeIn 1s ease-out;
}

/* Style de la vague décorative */
.wave-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-decoration svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 150px;
}

.wave-decoration .shape-fill {
    fill: #FFFFFF;
}

/* Effet de hover pour les témoignages */
.testimonial-card {
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background-color: #fef2f2;
}

/* Style pour le footer */
.footer-link {
    position: relative;
    transition: all 0.3s ease;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F40009;
    transition: width 0.3s ease;
}

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