/* Styles de base du carrousel */
.hero-section-slider {
    min-height: 382px;
    display: flex;
    align-items: stretch;
    background: #fff;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-slides {
    display: flex;
    width: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Styles des slides */
.hero-slide {
    flex: 1 0 100%;
    display: flex;
    position: relative;
    min-height: 382px;
}

/* Style pour les slides avec fond plein */
.hero-slide-full-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.hero-slide:hover .hero-slide-full-bg {
    transform: scale(1.05);
}

.hero-slide-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.6) 30%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.1) 80%,
        rgba(0, 0, 0, 0) 100%
    );
}

/* Style du contenu des slides */
.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 6vw;
    max-width: 550px;
    color: #fff;
}

.hero-slide-content h1 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-slide-content p {
    font-size: clamp(0.875rem, 1vw, 1rem);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 90%;
}

.hero-slide-badge {
    display: inline-block;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Style des boutons */
.hero-slide-button {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(4px);
}

.hero-slide-button:hover {
    background: #fff;
    color: #007a5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-slide-button i {
    margin-left: 0.625rem;
    transition: transform 0.3s ease;
}

.hero-slide-button:hover i {
    transform: translateX(4px);
}

/* Section décorative */
.hero_cache {
    position: relative;
    width: 40%;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-content-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-slide-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-size: 16px 16px;
}

.hero-slide-illustration {
    position: relative;
    z-index: 2;
    margin: 1.25rem 0;
    text-align: center;
}

.hero-slide-illustration svg {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.hero-slide-illustration:hover svg {
    transform: scale(1.05);
}

.hero-slide-info {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
}

.hero-slide-info h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.625rem;
    line-height: 1.3;
    background: linear-gradient(
        135deg,
        var(--primary-color, #007a5e),
        var(--secondary-color, #ce1126)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-slide-info p {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* Décorations */
.hero-slide-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    transition: transform 0.6s ease;
}

.hero_cache:hover .decoration-circle {
    transform: scale(1.2);
}

.decoration-circle-1 {
    width: 140px;
    height: 140px;
    top: -70px;
    right: -70px;
}

.decoration-circle-2 {
    width: 100px;
    height: 100px;
    bottom: -50px;
    left: -50px;
}

.decoration-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: 14px 14px;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.hero_cache:hover .decoration-dots {
    opacity: 0.15;
}

/* Navigation */
.hero-slider-pagination {
    position: absolute;
    left: 40px;
    bottom: 25px;
    z-index: 10;
    display: flex;
    gap: 6px;
}

.hero-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-slider-arrows {
    position: absolute;
    right: 40px;
    bottom: 25px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-slider-prev,
.hero-slider-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero_cache {
        display: none;
    }

    .hero-slide-content {
        max-width: 100%;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section-slider {
        min-height: 340px;
    }

    .hero-slide {
        min-height: 340px;
    }

    .hero-slider-pagination,
    .hero-slider-arrows {
        bottom: 15px;
    }

    .hero-slider-pagination {
        left: 15px;
    }

    .hero-slider-arrows {
        right: 15px;
    }

    .hero-slide-content h1 {
        font-size: 1.5rem;
    }

    .hero-slide-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero-section-slider {
        min-height: 300px;
    }

    .hero-slide {
        min-height: 300px;
    }

    .hero-slide-content {
        padding: 1.5rem 1.25rem;
    }

    .hero-slider-arrows {
        display: none !important;
    }
}

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

.hero-slide-content > * {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

.hero-slide-content h1 {
    animation-delay: 0.2s;
}

.hero-slide-content p {
    animation-delay: 0.4s;
}

.hero-slide-button {
    animation-delay: 0.6s;
}

/* Custom Scroll Indicator */
.hero-section-slider::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.hero-section-slider::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: var(--scroll-width, 0%);
    height: 2px;
    background: #fff;
    z-index: 11;
    transition: width 0.3s ease;
}

.hero-slide-decorative {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-slide-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-size: 10px 10px;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.decoration-circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    right: -150px;
}

.decoration-circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    left: -100px;
}

.decoration-dots {
    position: absolute;
    inset: 0;
    background-size: 20px 20px;
    opacity: 0.05;
}

.hero-slide-info {
    margin-top: 30px;
    text-align: center;
}

.hero-slide-info h3 {
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.hero-slide-info p {
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.hero-slide-button {
    padding: 10px 25px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    color: white;
    text-decoration: none;
    display: inline-block;
}

.hero-slide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-slide-illustration {
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.15));
    width: 300px;
    height: 300px;
}

.hero_cache {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
    min-width: 0;
    overflow: hidden;
    padding: 40px;
}

.hero-slide-content-wrapper {
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 2;
}
