/* Styles personnalisés pour MKF-Solutions */

/* Hero Section Enhancements */
.hero-wrap {
    position: relative;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.hero-wrap .overlay {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(59, 130, 246, 0.6) 100%);
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-btn {
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Salesforce Highlight Section */
.salesforce-highlight {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-left: 5px solid #ffc107;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.salesforce-highlight::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 4s ease-in-out infinite;
}

.salesforce-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.salesforce-icon {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    padding: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.salesforce-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* Service Cards Enhancement */
.salesforce-service {
    border-left: 5px solid #ffc107;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.salesforce-service::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: #ffc107;
    opacity: 0.1;
    border-radius: 0 0 0 50px;
}

.service-details .service-item {
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    border-left: 3px solid #007bff;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.service-details .service-item:hover {
    background: rgba(255,255,255,1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-details .service-item h5 {
    color: #007bff;
    font-size: 1rem;
    margin-bottom: 8px;
}

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

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

/* Services Section Enhancements */
.services-1:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.services-2:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.block-6.services:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Project Cards */
.project {
    transition: all 0.3s ease;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.project:hover .img img {
    transform: scale(1.1);
}

.project .img {
    overflow: hidden;
}

.project .img img {
    transition: transform 0.5s ease;
}

/* FAQ Enhancements */
.myaccordion .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.myaccordion .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.myaccordion .btn-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.myaccordion .btn-link:hover {
    color: #007bff;
    text-decoration: none;
}

/* Counter Section */
.counter-wrap .number {
    font-size: 3rem;
    font-weight: bold;
    color: #ffc107;
}

/* Form Enhancements */
.appointment .form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.appointment .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

.appointment .btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.appointment .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .salesforce-highlight .row {
        text-align: center;
    }
    
    .salesforce-highlight .col-md-4 {
        margin-top: 20px;
    }
    
    .service-details .service-item {
        margin-bottom: 10px;
    }
    
    .counter-wrap .number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .salesforce-highlight {
        padding: 20px !important;
    }
    
    .service-details .service-item {
        padding: 10px;
    }
}

/* Loading Animation */
.ftco-animate {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.ftco-animate:nth-child(1) { animation-delay: 0.1s; }
.ftco-animate:nth-child(2) { animation-delay: 0.2s; }
.ftco-animate:nth-child(3) { animation-delay: 0.3s; }
.ftco-animate:nth-child(4) { animation-delay: 0.4s; }

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

/* Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

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