/* Market House - Styles Personnalisés */

/* Variables CSS pour les couleurs */
:root {
    --market-green: #2D5F3F;
    --market-emerald: #3A9B5C;
    --market-yellow: #F5A623;
    --market-orange: #F58220;
    --market-light-green: #E8F5E9;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Body */
body {
    overflow-x: hidden;
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation au chargement */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.scale-in {
    animation: scaleIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Logo hover effect */
nav img {
    transition: transform 0.3s ease;
}

nav img:hover {
    transform: scale(1.05);
}

/* Boutons personnalisés */
.btn-primary {
    background: linear-gradient(135deg, var(--market-yellow), var(--market-orange));
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--market-orange), var(--market-yellow));
    transition: left 0.5s ease;
    z-index: -1;
}

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

/* Cards avec effet de survol */
.card-hover {
    transition: all 0.3s ease;
}

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

/* Section Hero avec effet parallax */
#accueil {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

/* Effet de vague pour les sections */
.wave-section {
    position: relative;
}

.wave-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23ffffff' fill-opacity='1' d='M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

/* Amélioration du menu mobile */
#mobileMenu {
    transition: max-height 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

#mobileMenu.active {
    max-height: 500px;
}

/* WhatsApp button pulse animation */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

/* Formulaire de contact - styles améliorés */
input:focus, 
textarea:focus, 
select:focus {
    outline: none;
    border-color: var(--market-green);
    box-shadow: 0 0 0 3px rgba(45, 95, 63, 0.1);
}

/* Indicateur de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

/* Loading animation pour le formulaire */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Effet de gradient animé pour les titres */
.gradient-text {
    background: linear-gradient(135deg, var(--market-green), var(--market-emerald), var(--market-yellow));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

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

/* Badge "Nouveau" ou "Bientôt" */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: linear-gradient(135deg, var(--market-yellow), var(--market-orange));
    color: white;
}

.badge-soon {
    background: var(--market-light-green);
    color: var(--market-green);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Réduire la taille du logo sur mobile */
    nav img {
        height: 3rem !important;
    }
    
    /* Ajuster les titres sur mobile */
    h1 {
        font-size: 2rem !important;
    }
    
    h2 {
        font-size: 1.75rem !important;
    }
    
    /* WhatsApp button sur mobile */
    .whatsapp-float {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }
}

/* Amélioration des transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease;
}

/* Effet de focus pour l'accessibilité */
a:focus,
button:focus {
    outline: 3px solid var(--market-yellow);
    outline-offset: 2px;
}

/* Style pour les icônes Font Awesome */
.fa, .fab, .fas {
    transition: transform 0.3s ease;
}

.fa:hover, .fab:hover, .fas:hover {
    transform: scale(1.1);
}

/* Section avec background overlay */
.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.overlay-dark > * {
    position: relative;
    z-index: 2;
}

/* Effet de brillance sur les cartes */
.shine-effect {
    position: relative;
    overflow: hidden;
}

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

.shine-effect:hover::before {
    left: 100%;
}

/* Indicateur de page active dans la navigation */
nav a.active {
    color: var(--market-green);
    font-weight: 600;
    border-bottom: 2px solid var(--market-yellow);
}

/* Footer social icons hover effect */
footer .social-icon {
    transition: all 0.3s ease;
}

footer .social-icon:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--market-green), var(--market-emerald));
}

/* Skeleton loader pour les images */
.skeleton {
    background: linear-gradient(
        90deg,
        #f0f0f0 25%,
        #e0e0e0 50%,
        #f0f0f0 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

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

/* Print styles */
@media print {
    nav, footer, .whatsapp-float {
        display: none !important;
    }
    
    body {
        color: black;
        background: white;
    }
}
