/* Variables CSS pour les couleurs */
:root {
    --primary-color: #2563EB; /* Bleu moderne et vibrant */
    --primary-dark: #1E40AF; /* Bleu foncé professionnel */
    --primary-light: #DBEAFE; /* Bleu très clair */
    --secondary-color: #1F2937; /* Gris foncé moderne */
    --accent-color: #F59E0B; /* Orange doré pour les accents */
    --success-color: #10B981; /* Vert moderne */
    --gradient-primary: linear-gradient(135deg, #2563EB, #1E40AF);
    --gradient-accent: linear-gradient(135deg, #F59E0B, #D97706);
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --light-bg: #F9FAFB;
}

/* Styles globaux */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Navigation */
.navbar {
    background: var(--gradient-primary) !important;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-light) !important;
}

/* Section Hero */
.hero-section {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(245,158,11,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-icon {
    font-size: 8rem;
    color: rgba(255,255,255,0.3);
    animation: float 3s ease-in-out infinite;
}

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

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

/* Statistiques Hero */
.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
    padding: 0.5rem;
}

.stat-item h3 {
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-item small {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Animation bouton WhatsApp */
.pulse-btn {
    animation: pulse 2s infinite;
}

.pulse-btn:hover {
    animation: none;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* Boutons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-success {
    background: var(--success-color);
    border-color: var(--success-color);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-dark);
}

/* Cards Solutions */
.solution-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

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

.solution-card .card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.solution-card .card-icon i {
    font-size: 2rem;
    color: white;
}

/* Portfolio */
.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.portfolio-image {
    height: 200px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.portfolio-image img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-tags {
    margin-top: 1rem;
}

.portfolio-tags .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Témoignages */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    border-left: 4px solid var(--primary-color);
}

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

.testimonial-author h6 {
    color: var(--primary-dark);
    margin-bottom: 0;
}

/* Contact */
.contact-info .contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-info .contact-item i {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Carte */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.map-container iframe {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--primary-light), #ffffff);
    padding: 2rem;
    text-align: center;
    border-radius: 15px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.map-placeholder i {
    opacity: 0.7;
}

.map-placeholder h6 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    font-size: 0.9rem;
}

.map-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
}

.map-container {
    position: relative;
}

.form-control {
    border: 2px solid #E9ECEF;
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(135, 206, 235, 0.25);
}

/* Experience Card */
.experience-card {
    border-left: 4px solid var(--primary-color);
}

.experience-item h5 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

/* Améliorations visuelles */
.portfolio-item:hover .portfolio-image {
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-card {
    position: relative;
}

.solution-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(37, 99, 235, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-icon {
        font-size: 4rem;
        margin-top: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .solution-card,
    .portfolio-item,
    .testimonial-card {
        margin-bottom: 2rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-stats {
        margin-bottom: 2rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .cta-features {
        padding: 1.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Navbar scroll effect */
.navbar.scrolled {
    background: rgba(135, 206, 235, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Text colors */
.text-primary {
    color: var(--primary-dark) !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

/* Skills items */
.skill-item {
    display: flex;
    align-items: center;
}

.skill-item i {
    font-size: 1.2rem;
}

/* Section Call-to-Action */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(245,158,11,0.1)" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.cta-features {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-item {
    text-align: center;
}

.feature-item i {
    font-size: 2rem;
    display: block;
}

.feature-item h6 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Footer Enhanced */
.footer-enhanced {
    background: linear-gradient(135deg, var(--secondary-color), #111827) !important;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.footer-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(37,99,235,0.05)" points="0,0 1000,1000 0,1000"/></svg>');
    background-size: cover;
}

.footer-enhanced .container {
    position: relative;
    z-index: 2;
}

.footer-enhanced h5,
.footer-enhanced h6 {
    color: var(--primary-color);
}

.footer-enhanced .social-links .btn {
    border-radius: 25px;
    transition: all 0.3s ease;
}

.footer-enhanced .social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-enhanced ul li a {
    transition: all 0.3s ease;
    padding: 2px 0;
    display: inline-block;
}

.footer-enhanced ul li a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.contact-quick {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

.cta-footer .btn {
    border-radius: 25px;
    font-weight: 600;
}

/* Sticky Footer Effect */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.footer-enhanced {
    margin-top: auto;
}

/* Hover effects */
.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Loading animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}
