/* Pages with herobanner */
.uncont:has(.herobanner-container) {
	padding-top: 0 !important;
}

/* Hero Banner Styles - Fullscreen Block */
.herobanner-container {
    position: relative;
    width: 100%;
	min-height: 100vh !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Background image layer for animation */
.herobanner-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    animation: dezoom 2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

/* Reset animation to allow restart */
.herobanner-container.bg-reset::after {
    animation: none;
}

/* Trigger animation on background change */
.herobanner-container.bg-changing::after {
    animation: dezoom 2s cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
}

.herobanner-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(6, 19, 31, 1) 0%, rgba(6, 19, 31, 0.8) 45%, rgba(61, 119, 144, 0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Ensure proper block behavior */
.herobanner-container * {
    box-sizing: border-box;
}

.herobanner-desktop {
	justify-content: flex-end;
	padding-top: 3rem;
}

.herobanner-desktop,
.herobanner-mobile {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-slide {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    min-height: 400px;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 0 2rem;
    color: white;
    margin-left: 5%;
    
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.hero-logo img {
    height: 60px;
    width: auto;
}

.hero-subtitle {
    font-family: 'Inter';
    font-weight: 400;
    font-style: Regular;
    font-size: 20px !important;
    line-height: 100%;
    letter-spacing: 0%;
}

.hero-title {
    line-height: 1.2;
    margin: 0 !important;
    text-shadow: white;

    font-family: 'open_sauce_oneextrabold';
    font-weight: 800;
    font-style: ExtraBold;
    font-size: 56px !important;
    line-height: 135%;
    letter-spacing: 0%;
}

.hero-description {
    margin: 0;
    opacity: 0.9;
    /* max-width: 600px; */
    font-family: 'Inter';
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 140%;
    letter-spacing: 0%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-btn {
    padding: 10px 20px;
    opacity: 1;
    border-radius: 100px;
    border-width: 1px;
    white-space: nowrap;
    flex: 0 0 auto;
    width: auto !important;
}

.hero-btn-primary {
    background: #00ff88;
    color: #000;
    border: 2px solid #00ff88;
}
/* 
.hero-btn-primary:hover {
    background: transparent;
    color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
} */

.hero-btn-secondary {
    background: transparent;
    color: #00ff88;
    border: 2px solid #00ff88;
}

/* .hero-btn-secondary:hover {
    background: #00ff88;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
} */

/* Categories Navigation Carousel */
.hero-categories {
    position: relative;
    width: 100%;
    padding: 0;
    z-index: 2;
    min-height: 100px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

/* SVG Wave - positionnement au dessus du menu */
.hero-categories .wave-svg {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    pointer-events: none;
    display: block;
    margin-bottom: 20px;
    flex-shrink: 0;
    order: 1;
    /* Préserver les proportions originales de la vague */
    aspect-ratio: 1440 / 143;
}

/* Carousel en dessous de la vague */
.categories-carousel {
    order: 2;
    padding-top: 30px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .categories-carousel {
        padding-top: 10px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .categories-carousel {
        padding-top: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .categories-carousel {
        padding-top: 20px;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .categories-carousel {
        padding-top: 25px;
    }
}

@media (min-width: 1367px) {
    .categories-carousel {
        padding-top: 30px;
    }
}

/* Adjustments for 1280x720 and similar resolutions */
@media (min-width: 1025px) and (max-width: 1366px) and (max-height: 768px) {
    .herobanner-container {
        min-height: auto;
        height: auto;
    }
    
    .hero-slide {
        min-height: 300px;
    }
    
    .hero-content {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 40px !important;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .hero-buttons {
        margin-top: 15px;
        gap: 0.5rem;
    }
    
    .categories-carousel {
        padding-top: 10px !important;
    }
    
    .category-item {
        padding: 0.5rem;
    }
    
    .category-text {
        font-size: 12px !important;
    }
}

/* Main Swiper container */
.categories-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 60px;
    box-sizing: border-box;
    order: 2;
}

/* Swiper wrapper */
.categories-carousel .swiper-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* Swiper slide */
.categories-carousel .swiper-slide {
    height: auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Navigation buttons */
.categories-carousel .swiper-button-next-cat,
.categories-carousel .swiper-button-prev-cat {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    z-index: 10;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.categories-carousel .swiper-button-prev-cat {
    left: 10px;
}

.categories-carousel .swiper-button-next-cat {
    right: 10px;
}

.categories-carousel .swiper-button-next-cat:hover,
.categories-carousel .swiper-button-prev-cat:hover {
    background: #000;
    transform: scale(1.1);
}

/* Cacher les boutons quand ils sont désactivés (tous les items visibles) */
.categories-carousel .swiper-button-disabled {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* Ajustement des flèches sur mobile */
@media (max-width: 768px) {
    .categories-carousel .swiper-button-next-cat,
    .categories-carousel .swiper-button-prev-cat {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .categories-carousel .swiper-button-prev-cat {
        left: 5px;
    }
    
    .categories-carousel .swiper-button-next-cat {
        right: 5px;
    }
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    user-select: none;
    padding-left: 0 !important;
    -webkit-tap-highlight-color: transparent;
}

.category-item::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;
}

/* .category-item:hover::before {
    left: 100%;
} */

/* .category-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
} */

/* .category-item.active {
    background: rgba(0, 255, 136, 0.3) !important;
    border-color: rgba(0, 255, 136, 0.8) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
} */

.category-item {
    border-top: 1px solid #00EF814D;
}

.category-item.active {
    border-color: #00EF81;
}

.category-item .category-icon {
    display: none;
}

.category-item.active .category-icon {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.category-item.active .category-text {
    font-weight: 600;
    color: #ffffff;
}

/* .category-item:active {
    background: rgba(255, 0, 0, 0.3) !important;
    transform: scale(0.95);
} */

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: white;
}

.category-image {
    display: block;
    margin-bottom: 0.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-text {
    font-family: 'Inter';
    font-weight: 400;
    font-style: Regular;
    font-size: 14px !important;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: left;
}

.hero-btn.hero-btn-full {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
    padding: 10px 20px;
    background: rgba(1, 239, 129, 1);
    border: 1px solid rgba(1, 239, 129, 1);
    color: rgba(6, 19, 31, 1) !important;
}
.hero-btn.hero-btn-full:hover,
.hero-btn.hero-btn-outline:hover {
    /* color: initial !important; */
    transition: all .3s;
    opacity: .8;
}

/* .hero-btn.hero-btn-full:hover {
    background: rgba(1, 239, 129, 0.8);
    border: 1px solid rgba(1, 239, 129, 0.8);
    color: rgba(6, 19, 31, 1);
} */

.hero-btn.hero-btn-outline {
    font-family: Inter;
    font-weight: 400;
    font-style: Regular;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0%;
    vertical-align: middle;
    color: rgba(1, 239, 129, 1);
    border: 1px solid rgba(1, 239, 129, 1);
}
/* .hero-btn.hero-btn-outline:hover {
    background: rgba(1, 239, 129, 1);
    color: rgba(6, 19, 31, 1);
} */

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #00ff88;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    margin-top: -25px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 255, 136, 0.2);
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    width: 12px;
    height: 12px;
}

.swiper-pagination-bullet-active {
    background: #00ff88;
}

/* Mobile Styles */
@media (max-width: 767px) {
    .herobanner-container {
        min-height: 100vh;
        min-height: 100svh; /* Support for newer mobile browsers */
        height: auto;
    }
    
    .herobanner-desktop {
        display: none !important;
    }
    
    .herobanner-mobile {
        display: flex !important;
    }
    
    .hero-slide {
        min-height: 500px;
    }
    
    /* .hero-content {
        margin-left: 0;
        padding: 0 1rem;
        text-align: center;
    } */
    
    .hero-title {
        font-size: 40px !important;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    /* .hero-buttons {
        flex-direction: column;
        align-items: center;
    } */
    
    .hero-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-categories {
        min-height: 120px;
    }
    
    .categories-carousel {
        padding: 0 40px;
        padding-top: 15px;
    }
    
    .category-item {
        padding: 0.75rem;
    }
    
    .category-text {
        font-size: 0.75rem;
        max-width: 80px;
    }
    
    .category-icon {
        font-size: 1.4rem;
    }
    
    .categories-button-next,
    .categories-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .categories-button-next:after,
    .categories-button-prev:after {
        font-size: 12px !important;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .herobanner-mobile {
        display: none !important;
    }
    
    .herobanner-desktop {
        display: flex !important;
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .hero-content {
        max-width: 900px;
    }
    
    .hero-categories {
        min-height: 120px;
    }
    
    .category-item {
        padding: 1.2rem;
    }
    
    .category-icon {
        font-size: 2rem;
    }
    
    .category-text {
        font-size: 1rem;
        max-width: 120px;
    }
}

/* Ultra wide screens */
@media (min-width: 1920px) {
    .hero-categories {
        min-height: 140px;
    }
    
    .categories-carousel {
        padding: 0 80px;
        padding-top: 40px;
    }
    
    .category-item {
        padding: 1.5rem;
    }
}

@media (max-width: 959px) {
	.herobanner-container {
		min-height: calc(100vh - 58px) !important;
	}
}

/* Dezoom animation keyframes */
@keyframes dezoom {
    0% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
    }
}