html {
    scroll-behavior: smooth;
}

/* Offset pour les ancres à cause du header fixe */
#distribution-et-services,
#travaux-publics-et-infrastructure,
#industries,
#finances {
    scroll-margin-top: 120px;
    /* Ajustez cette valeur selon la hauteur de votre header */
}

.poles-section {
    padding: 0;
    background-color: #f8f9fa;
}

.pole-container {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.pole-image {
    position: relative;
    overflow: hidden;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pole-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.8), rgba(30, 58, 138, 0.6));
    z-index: 1;
    transition: all 0.5s ease;
}

.pole-image:hover::before {
    background: linear-gradient(45deg, rgba(30, 58, 138, 0.6), rgba(30, 58, 138, 0.4));
}

.pole-image-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    z-index: 2;
    color: white;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 1s ease forwards;
}

.pole-image-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #f8f9fa;
}

.pole-image-subtitle {
    font-size: 1.1rem;
    line-height: 1.4;
    opacity: 0.9;
}

.pole-content {
    padding: 60px 40px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pole-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pole-description {
    font-size: 1.3rem;
    color: #2d3748;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 25px;
}

.pole-details {
    color: #6b7280;
    font-size: 1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-pole {
    background: transparent;
    border: 2px solid #6b7280;
    color: #6b7280;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
}

.btn-pole:hover {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.distribution-bg {
    background-image: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.travaux-bg {
    background-image: url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.industries-bg {
    background-image: url('https://images.unsplash.com/photo-1565514020179-026b92b84bb6?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

.finances-bg {
    background-image: url('https://images.unsplash.com/photo-1560472354-b33ff0c44a43?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
}

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

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-left {
    animation: fadeInLeft 1s ease forwards;
}

.animate-right {
    animation: fadeInRight 1s ease forwards;
}

.pole-image {
    animation: breathingEffect 8s ease-in-out infinite;
    transition: all 0.3s ease;
}

.pole-image:hover {
    animation-play-state: paused;
    transform: scale(1.08);
}

@keyframes breathingEffect {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .pole-container {
        min-height: auto;
    }

    .pole-image {
        height: 40vh;
    }

    .pole-content {
        padding: 40px 20px;
    }

    .pole-title {
        font-size: 2rem;
    }

    .pole-description {
        font-size: 1.1rem;
    }

    .pole-image-title {
        font-size: 1.8rem;
    }

    .pole-image-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
}
