@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #64748b;
    --accent: #f59e0b;
    --dark: #0f172a;
    --darker: #020617;
    --light: #f8fafc;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-800: #1f2937;
    --gradient-1: linear-gradient(135deg, #4facfe 0%, #9400fe 100%);
    --gradient-2: linear-gradient(135deg, #4facfe 0%, #9400fe 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #9400fe 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}


body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--white);
}

/* Why Choose Us Section Animations */
#why-choose-us .feature-card {
    transition: all 0.3s ease;
}

#why-choose-us .feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15) !important;
}

#why-choose-us .feature-icon {
    transition: all 0.3s ease;
}

#why-choose-us .feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Hero Background Animation */
@keyframes heroBackground {
    0%, 33% {
        background-image: 
            linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(2, 6, 23, 0.85) 100%),
            url('images/marteau_piqueur.jpg');
    }
    34%, 66% {
        background-image: 
            linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(2, 6, 23, 0.85) 100%),
            url('images/fourgon.jpg');
    }
    67%, 100% {
        background-image: 
            linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(2, 6, 23, 0.85) 100%),
            url('images/deblayage.jpg');
    }
}

/* Service Cards Dynamic Effects */
.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.service-card:hover::after {
    transform: translateX(100%);
}

/* Photo Gallery Dynamic Section */
.photo-gallery {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Progress Bar Animations */
@keyframes progressBar1 {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes progressBar2 {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

@keyframes progressBar3 {
    0%, 100% { opacity: 0.3; transform: scaleX(0.5); }
    50% { opacity: 1; transform: scaleX(1.2); }
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    bottom: -10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.6;
    animation: float-up 15s infinite linear;
}

.particle:nth-child(2n) {
    background: var(--accent);
    width: 6px;
    height: 6px;
    animation-duration: 12s;
}

.particle:nth-child(3n) {
    background: var(--success);
    width: 10px;
    height: 10px;
    animation-duration: 18s;
}

@keyframes float-up {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Demolition Card Special Effects */
.demolition-card {
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.2) !important;
    border-radius: 20px !important;
}

.demolition-card:hover {
    transform: translateY(-20px) rotateX(8deg) rotateY(8deg) !important;
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.3) !important;
}

/* Dust Particles Animation */
.dust-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.dust-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: dust-float 4s infinite ease-in-out;
}

@keyframes dust-float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-10px) translateX(5px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) translateX(-5px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-15px) translateX(10px) scale(1.1);
        opacity: 0.9;
    }
}

/* Demolition Icon Pulse */
@keyframes pulse-demolition {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 12px 35px rgba(37, 99, 235, 0.5);
    }
}

/* Demolition Button Hover */
.demolition-btn:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.2)) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(255,255,255,0.2) !important;
    border-color: rgba(255,255,255,0.7) !important;
}

/* Modern Hero Styles */
.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin-bottom: 2rem;
    animation: float-badge 3s ease-in-out infinite;
}

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

.hero-title-modern {
    margin-bottom: 2rem;
    line-height: 1.2;
}

.hero-main-text {
    display: block;
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-services {
    display: block;
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 400;
    color: #cbd5e1;
    letter-spacing: 1px;
}

.hero-description-modern {
    font-size: 1.2rem;
    color: #e2e8f0;
    line-height: 1.6;
    margin-bottom: 3rem;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-buttons-modern {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    border: none;
}

.btn-modern-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.btn-modern-outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.2rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn-modern-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

/* Nouveaux styles de boutons élégants et dynamiques */
.client-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.client-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.6s ease;
}

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

.client-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
    color: white !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
    color: white;
    text-decoration: none;
}

.btn-primary i {
    transition: transform 0.3s ease;
}

.btn-primary:hover i {
    transform: translateX(3px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.4s ease;
    z-index: -1;
}

.btn-outline:hover::before {
    width: 100%;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
}

.btn-accent {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

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

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

.btn-accent:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    color: white !important;
    text-decoration: none !important;
}

.btn-accent span,
.btn-accent i {
    position: relative;
    z-index: 1;
}

/* Animations pour les icônes des boutons */
@keyframes bounce-icon {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(3px); }
}

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

@keyframes rotate-gentle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-primary:hover i.fa-arrow-right {
    animation: bounce-icon 0.6s ease-in-out;
}

.btn-primary:hover i.fa-calculator {
    animation: pulse-scale 0.6s ease-in-out;
}

.btn-outline:hover i {
    animation: rotate-gentle 0.8s ease-in-out;
}

.btn-accent:hover i {
    animation: pulse-scale 0.6s ease-in-out;
}

.client-btn:hover i {
    animation: pulse-scale 0.6s ease-in-out;
}

/* Effet de loading subtil sur les boutons */
.btn-primary:active,
.btn-outline:active,
.btn-accent:active,
.client-btn:active {
    transform: translateY(0) scale(0.98);
    transition: transform 0.1s ease;
}

/* Glow effect pour les boutons au focus */
.btn-primary:focus,
.btn-outline:focus,
.btn-accent:focus,
.client-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

/* Amélioration du texte dans les boutons */
.btn-primary span,
.btn-outline span,
.btn-accent span {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Effet de shimmer sur les boutons primaires */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}


/* Styles simples et élégants pour les liens de navigation */
.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
}

/* Bouton secondaire élégant */
.btn-secondary {
    background: var(--gray-100);
    color: var(--dark);
    border: 2px solid var(--gray-200);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-300);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    max-width: 500px;
    margin: 0 auto;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #cbd5e1;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    animation: bounce-arrow 2s infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    background: var(--gradient-3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
    margin-left: auto;
    margin-right: 1rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.nav-link:hover {
    color: var(--primary);
}

.client-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #2C5F8A 100%);
    color: white;
    padding: 0.8rem 1.8rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    position: relative;
    overflow: hidden;
}

.client-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;
}

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

.client-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(2, 6, 23, 0.95) 100%),
        url('images/marteau_piqueur.jpg') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::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"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%232563eb" stop-opacity="0.3"/><stop offset="100%" stop-color="%232563eb" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 950px;
    margin-bottom: 2.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 5rem;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #4A90E2 0%, #8a2c87 100%);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(74, 144, 226, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* Stats Section */
.stats {
    background: var(--white);
    padding: 4rem 0;
    position: relative;
    z-index: 10;
    margin-top: -100px;
}

.stats-container {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Services Section */
.services {
    padding: 1.5rem 0;
    background: var(--gray-50);
    position: relative;
}

.section-header {
    text-align: center;
    margin-top: 2.0rem;    /* Ajoute de l'espace au-dessus pour la détacher de la section précédente */
    margin-bottom: 2.0rem;
    max-width: 600px;    /* Pour limiter la largeur et rendre la lecture plus agréable */
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;     /* Un peu de padding sur les côtés sur petits écrans */
}

.section-badge {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-weight: 700;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-description {
    font-size: 1.1rem;
    color: var(--secondary);
    line-height: 1.5;
    font-weight: 500;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-3);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.service-features li i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    opacity: 0.1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-info {
    padding: 2rem 0;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: white;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e2e8f0;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 2% auto;
    border-radius: 20px;
    width: 95%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 2rem;
}

.close {
    background: var(--gray-100);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary);
    transition: all 0.3s ease;
}

.close:hover {
    background: var(--gray-200);
    transform: scale(1.1);
}

/* Dashboard Styles */
.dashboard {
    display: none;
}

.dashboard-header {
    background: var(--gradient-3);
    color: white;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.dashboard-nav-item {
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dashboard-nav-item.active {
    background: var(--primary);
    color: white;
}

.dashboard-grid {
    display: grid;
    gap: 1.5rem;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-100);
}

.dashboard-card h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.quote-item, .project-item {
    padding: 1.5rem;
    border: 1px solid var(--gray-100);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.quote-item:hover, .project-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.progress-container {
    margin: 1rem 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-100);
    border-radius: 50px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-3);
    transition: width 0.5s ease;
    border-radius: 50px;
}

/* Footer */
.footer {
    background: var(--darker);
    color: white;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p,
.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    line-height: 1.7;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    color: #64748b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 6rem 0 4rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 2rem;
    }

    .modal-content {
        margin: 5% auto;
        width: 95%;
    }

    .modal-body {
        padding: 1rem;
    }
}

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

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

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.engagement {
    /* Pas de styles globaux ici, tout dans les enfants */
}

.section-header {
    
    text-align: center;
    margin-bottom: 4rem;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.engagement-item {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.engagement-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.engagement-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.engagement-text {
    color: var(--secondary);
    font-size: 0.95rem;
}

/* Classe pour les animations fade-in si tu les utilises */
.fade-in {
    /* Exemple simple */
    opacity: 0;
    animation: fadeIn 1s forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Navbar globale */
.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

/* Conteneur flex */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    max-width: 100vw;
    margin: 0;
}

/* Logo */
.logo {
    margin-left: 4rem;
}

.logo-img {
    height: 100px;
    object-fit: contain;
}

/* Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Bouton Espace Client */
.client-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.client-btn:hover {
    background: #357ABD; /* couleur plus foncée */
}

/* Hero Elegant Effects - Matching Site Style */
.hero-content {
    animation: fade-in-smooth 1.2s ease-out;
}

@keyframes fade-in-smooth {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animations for hero elements */
.hero-badge {
    animation: fade-in-smooth 0.8s ease-out 0.3s both;
}

.hero-title {
    animation: fade-in-smooth 0.8s ease-out 0.5s both;
}

.hero-subtitle {
    animation: fade-in-smooth 0.8s ease-out 0.7s both;
}

.hero-description {
    animation: fade-in-smooth 0.8s ease-out 0.9s both;
}

.hero-buttons {
    animation: fade-in-smooth 0.8s ease-out 1.1s both;
}

.hero-badge {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.hero-badge:hover::before {
    left: 100%;
}

.hero-badge:hover {
    transform: translateY(-2px);
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
}

.hero-title {
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    opacity: 0;
    animation: underline-appear 1.5s ease-out 0.8s forwards;
}

@keyframes underline-appear {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100px;
        opacity: 1;
    }
}

/* Enhanced button effects */
.hero-buttons .btn-primary {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.hero-buttons .btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.hero-buttons .btn-outline {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.hero-buttons .btn-outline:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.hero-buttons .btn-outline:hover::before {
    width: 100%;
}


/* Style du bouton outline */
.btn-outline {
    background: transparent;
    color: white;
    padding: 1rem 2.5rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
}

/* Subtle floating animation for hero elements */
.hero-badge:hover {
    animation: gentle-float 2s ease-in-out infinite;
}

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

/* Icon glow effect */
.hero-badge i {
    transition: all 0.3s ease;
}

.hero-badge:hover i {
    color: #f59e0b;
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

/* Text highlighting on hover */
.hero-subtitle {
    transition: all 0.3s ease;
    cursor: default;
}

.hero-subtitle:hover {
    color: #e2e8f0;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.3);
}


/* Responsive menu (optionnel à ajouter) */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* tu peux remplacer par un menu burger ici */
    }

    .client-btn {
        padding: 0.4rem 0.8rem;
    }

    .logo-img {
        height: 50px;
    }
}

/* Footer legal links */
.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--primary);
}

.legal-links span {
    color: var(--secondary);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .footer-legal {
        text-align: center;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-links span {
        display: none;
    }
}

/* Navigation Buttons Style btn2 */
.btn2 {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    border: 2px solid #fefefe;
    text-transform: uppercase;
    color: #fefefe;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
    background-color: transparent;
    cursor: pointer;
}

.btn2::before {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% - -2px);
    background-color: #212121;
    transition: 0.3s ease-out;
    transform: scaleY(1);
    pointer-events: none;
}

.btn2::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% - 50px);
    background-color: #212121;
    transition: 0.3s ease-out;
    transform: scaleY(1);
    pointer-events: none;
}

.btn2:hover::before {
    transform: translateY(-25px);
    height: 0;
}

.btn2:hover::after {
    transform: scaleX(0);
    transition-delay: 0.15s;
}

.btn2:hover {
    border: 2px solid #fefefe;
    color: #2563eb;
}

.btn2 span {
    position: relative;
    z-index: 3;
}

/* Ajustements pour la navigation */
.nav-menu li {
    list-style: none;
}

/* Style spécifique pour le bouton Espace Client */
.client-btn2 {
    margin-left: auto;
    margin-right: 4rem;
    text-transform: none;
    font-size: 14px;
    padding: 12px 20px;
}

.client-btn2 span {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .btn2 {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .client-btn2 {
        font-size: 12px;
        padding: 8px 15px;
    }
}
