/**
 * Modern Banner Styles
 * Inspired by https://devcommunautaire.gouv.sn/
 */

.page-banner {
    position: relative;
    height: clamp(300px, 45vh, 500px);
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-top: 68px;
}

.banner-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    transition: transform 6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-banner.visible .banner-image {
    transform: scale(1);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5),
        rgba(33, 145, 45, 0.7)
    );
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-banner.visible .banner-content {
    opacity: 1;
    transform: translateY(0);
}

.banner-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.3);
}

.banner-subtitle {
    max-width: 800px;
    margin: 1rem auto;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-breadcrumb {
    margin-top: 2rem;
}

.banner-breadcrumb .breadcrumb {
    display: inline-flex;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50px;
}

.banner-breadcrumb .breadcrumb-item {
    color: rgba(255, 255, 255, 0.9);
}

.banner-breadcrumb .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    background: rgba(33, 145, 45, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-breadcrumb .breadcrumb-item a:hover {
    background: rgba(33, 145, 45, 0.8);
    transform: translateY(-2px);
}

.banner-cta {
    margin-top: 2rem;
}

.banner-cta .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Section transitions */
.section-transition {
    position: relative;
    overflow: hidden;
}

.section-transition::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-banner {
        height: clamp(200px, 35vh, 300px);
        margin-top: 60px;
    }

    .banner-content {
        padding: 1rem !important;
    }

    .banner-title {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }

    .banner-subtitle {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    .banner-breadcrumb .breadcrumb {
        padding: 0.25rem 0.75rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .page-banner,
    .banner-image,
    .banner-content,
    .banner-breadcrumb .breadcrumb-item a,
    .banner-cta .btn {
        transition: none !important;
    }
}
