/* #region Hero Slider Container */
.hero-slider.new-style {
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 550px;
    overflow: hidden;
    background: linear-gradient(120deg, #FFFBF5 0%, #FFF5E1 100%);
    font-family: var(--font-family-base);
}

.hero-slider.new-style .slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider.new-style .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 6rem;
    /* Augmenté pour laisser de la place aux flèches */
}

.hero-slider.new-style .slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.new-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    /* Réduit pour plus de sécurité avec les flèches */
    margin: 0 auto;
}

/* #endregion */

/* #region Alternating Slides (Desktop) */
@media (min-width: 993px) {
    .hero-slider.new-style .slide:nth-child(even) .hero-text-content {
        order: 2;
        padding-right: 0;
        padding-left: 4rem;
    }

    .hero-slider.new-style .slide:nth-child(even) .hero-image-container {
        order: 1;
        padding-left: 2rem;
    }
}

/* #endregion */

/* #region Text Content */
.hero-text-content {
    padding-right: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-dark);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-badge.badge-dark {
    background-color: rgba(0, 0, 0, 0.75);
    color: var(--color-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    background: linear-gradient(100deg, var(--color-primary-light), var(--color-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-gray-dark);
    margin-bottom: 2.5rem;
    /* Espace généreux entre texte et boutons */
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    /* Plus d'espace entre les deux boutons */
    align-items: center;
}

.hero-actions .btn-primary,
.hero-actions .btn-secondary {
    padding: 0.85rem 2rem;
    /* Boutons plus larges et lisibles */
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-actions .btn-primary {
    background: linear-gradient(100deg, var(--color-primary-light), var(--color-primary));
    color: white;
    box-shadow: 0 4px 15px rgba(248, 152, 0, 0.3);
}

.hero-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(248, 152, 0, 0.4);
}

.hero-actions .btn-secondary {
    background-color: transparent;
    color: var(--color-gray-darkest);
    border: 2px solid var(--color-primary);
}

.hero-actions .btn-secondary:hover {
    background-color: white;
    box-shadow: var(--shadow-card-light);
    transform: translateY(-3px);
}

/* #endregion */

/* #region Image Shape */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-shape {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: url("#hero-shape-reborn");
    filter:
        drop-shadow(2px 0 0 var(--color-primary)) drop-shadow(-2px 0 0 var(--color-primary)) drop-shadow(0 2px 0 var(--color-primary)) drop-shadow(0 -2px 0 var(--color-primary)) drop-shadow(10px 10px 30px rgba(0, 0, 0, 0.1));
}

/* #endregion */

/* #region Navigation Elements */
.hero-slider .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.hero-slider .slider-nav:hover {
    background: var(--color-primary);
    color: white;
}

.hero-slider .slider-nav.prev {
    left: 2rem;
}

.hero-slider .slider-nav.next {
    right: 2rem;
}

.hero-slider .slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.hero-slider .dot {
    width: 5px !important;
    border-radius: 50%;
    padding: 5px;
    aspect-ratio: 1;
    background: #ffffff;
    border: 2px solid var(--color-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-slider .dot.active {
    background: var(--color-primary);
    transform: scale(1.2);
    border-color: var(--color-primary);
}

/* #endregion */

/* #region Responsive Design */
@media (max-width: 1024px) {
    .hero-slider.new-style .slide {
        padding: 2rem 4rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 992px) {
    .new-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text-content {
        padding-right: 0;
        order: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-image-container {
        order: 1;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-slider.new-style {
        height: auto;
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .hero-slider.new-style .slide {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.75rem;
    }

    .hero-image-container {
        max-width: 280px;
    }

    .hero-slider .slider-nav {
        display: none;
    }
}

@media (max-width: 576px) {
    .hero-slider.new-style {
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding-top: 90px;
        padding-bottom: 70px;
    }

    .new-hero-content {
        gap: 0.75rem;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.7rem;
        margin-bottom: 0.75rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        letter-spacing: -0.03em;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
        line-height: 1.4;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.65rem;
        padding: 0 1rem;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .hero-image-container {
        max-width: 160px;
        margin-bottom: 0.5rem;
    }

    .hero-slider .slider-dots {
        bottom: 1.25rem;
        gap: 0.4rem;
    }

    .hero-slider .dot {
        width: 8px;
        height: 8px;
        border-width: 1.5px;
        border-radius: 50%;
    }

    .hero-slider .dot.active {
        transform: scale(1.2);
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .hero-image-container {
        max-width: 130px;
    }

    .hero-slider.new-style {
        padding-top: 80px;
    }
}

@media (max-height: 700px) and (max-width: 576px) {
    .hero-image-container {
        display: none;
    }

    .hero-slider.new-style {
        padding-top: 70px;
    }
}

/* #endregion */