@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

.container-custom {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.bg-custom {
    background-color: #F07D1A;
}

.text-color-custom {
    color: #F07D1A;
}

@media (min-width: 768px) {
    .container-custom {
        padding: 0 40px;
    }
}

.nav-sticky {
    position: relative;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.nav-sticky.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-spacer {
    height: 57px;
    transition: all 0s;
    visibility: hidden;
}

.nav-spacer.active {
    visibility: visible;
}

.dropdown-menu {
    display: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.nav-item {
    position: relative;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #F07D1A;
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 80%;
    max-width: 400px;
    background: white;
    box-shadow: -4px 0 12px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    flex: 1;
    overflow-y: auto;
}

.mobile-menu-footer {
    border-top: 1px solid #e5e7eb;
    padding: 1.5rem;
    background: white;
}

.submenu-toggle .fa-plus {
    transition: transform 0.3s ease;
}

.submenu-toggle.active .fa-plus {
    transform: rotate(45deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1999;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #F07D1A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.go-to-top.show {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    background: #F09D1A;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.faq-item {
    transition: all 0.3s ease;
}

.faq-question {
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
}

.faq-answer.active {
    max-height: 500px;
    padding: 1rem 1.5rem;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-icon.rotate {
    transform: rotate(45deg);
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #F07D1A;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.submit-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .desktop-nav {
        display: none;
    }
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-1 {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader-1::before, .loader-1::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 100%;
    height: 100%;
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.loader-1::before {
    border-style: solid;
    border-width: 3px 3px 3px 0;
    border-color: #F07D1A transparent transparent;
    transform: scale(0.3) rotate(0deg);
    opacity: 0.5;
    animation-name: foregroundCircle;
}

.loader-1::after {
    background: #F07D1A;
    opacity: 0.5;
    transform: scale(0);
    animation-name: backgroundCircle;
}

@keyframes foregroundCircle {
    0% {
        transform: scale(0.3) rotate(0deg);
    }
    12.5% {
        transform: scale(0.3) rotate(180deg);
    }
    25%, 50% {
        opacity: 1;
    }
    50% {
        transform: scale(1) rotate(720deg);
    }
    100% {
        transform: scale(0.3) rotate(1800deg);
        opacity: 0.5;
    }
}

@keyframes backgroundCircle {
    12.5% {
        transform: scale(0.3);
    }
    90%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Styles for the categories section */
.product-container {
    position: relative;
}

.card {
    font-family: 'Poppins', sans-serif;
    position: relative;
    background: #232323;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Mobile first (par défaut) */
.card {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
}

/* Tablettes */
@media (min-width: 768px) {
    .card {
        width: 100%;
        height: 280px;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .card {
        width: 375px;
        height: 280px;
    }
}

.card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: .5s ease-in-out;
    z-index: 1;
}

.card:hover:before {
    background: rgba(0, 0, 0, 0.8);
}

.card:hover:after {
    clip-path: circle(300px at 80% -20%);
}

.title {
    position: relative;
    font-weight: 600;
    letter-spacing: 1px;
    color: #fff;
    margin-top: 12px;
    z-index: 10;
}

.bg-title {
    font-size: 10em;
    font-weight: 900;
    font-style: italic;
    color: rgba(255,255,255,.04);
    position: absolute;
    max-width: 120%;
    top: -150%;
    transition: .6s;
    z-index: 3;
}

.card:hover .bg-title {
    transform: translateY(60%);
}

.photo {
    display: none;
}

.content {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100px;
    text-align: center;
    transition: 1s;
    z-index: 10;
}

.card:hover .content {
    height: 210px;
}

.feature {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    transition: .5s;
    visibility: hidden;
    opacity: 0;
    gap: 5px;
}

.card:hover .feature {
    visibility: visible;
    opacity: 1;
    transition-delay: .5s;
}

.feature div {
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    margin-right: 0;
    width: 100%;
    text-align: center;
    margin-bottom: 5px;
}

.feature span {
    padding: 6px 12px;
    height: auto;
    text-align: center;
    line-height: 1.4;
    font-size: 13px;
    display: inline-block;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    margin: 0;
    transition: .4s;
    border-radius: 4px;
    cursor: default;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-buy {
    display: inline-block;
    padding: 10px 30px;
    background: #fff;
    border: none;
    border-radius: 6px;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 600;
    color: #111;
    opacity: 0;
    transform: translateY(50px);
    transition: 0.5s;
    cursor: pointer;
    outline: none;
    font-size: 14px;
}

.card:hover .btn-buy {
    opacity: 1;
    transform: translateY(0px);
    transition: 0.5s;
    transition-delay: 0.5s;
}

.card:hover .btn-buy:hover {
    background: var(--product-color);
    color: white;
    transition-delay: 0;
    transition: 0.05s;
}

.product-1 {
    --product-color: #EB6CA4;
}

.product-2 {
    --product-color: #F07D1A;
}

.product-3 {
    --product-color: #3b82f6;
}

.product-4 {
    --product-color: #f59e0b;
}

.product-5 {
    --product-color: #8b5cf6;
}

.product-6 {
    --product-color: #ef4444;
}

/* Partners Section Styles */
.partners-swiper {
    width: 100%;
    padding: 60px 0 80px;
}

.partners-swiper .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-radius: 0;
    padding: 40px 20px;
    box-shadow: none;
    transition: all 0.3s ease;
    height: auto;
    min-height: 400px;
}

.partner-logo-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 30px;
}

.partner-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    max-height: 120px;
    object-fit: contain;
}

.partner-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 25px;
    text-align: center;
}

.partner-btn {
    padding: 12px 35px;
    background: #F07D1A;
    color: white;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.partner-btn:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.partners-swiper .swiper-button-next,
.partners-swiper .swiper-button-prev {
    background: transparent;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #F07D1A;
    top: 50%;
    transform: translateY(-50%);
}

.partners-swiper .swiper-button-next {
    right: 10px;
}

.partners-swiper .swiper-button-prev {
    left: 10px;
}

.partners-swiper .swiper-button-next:after,
.partners-swiper .swiper-button-prev:after {
    font-size: 20px;
    font-weight: bold;
    color: #F07D1A;
}

.partners-swiper .swiper-button-next:hover,
.partners-swiper .swiper-button-prev:hover {
    background: #F07D1A;
}

.partners-swiper .swiper-button-next:hover:after,
.partners-swiper .swiper-button-prev:hover:after {
    color: white;
}

.partners-swiper .swiper-pagination {
    bottom: 20px;
}

.partners-swiper .swiper-pagination-bullet {
    background: #d1d5db;
    width: 12px;
    height: 12px;
    opacity: 1;
    margin: 0 6px !important;
}

.partners-swiper .swiper-pagination-bullet-active {
    background: #F07D1A;
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .partners-swiper .swiper-slide {
        min-height: 350px;
        padding: 30px 15px;
    }

    .partner-logo {
        max-width: 200px;
        max-height: 80px;
    }

    .partner-name {
        font-size: 1.25rem;
    }

    .partners-swiper .swiper-button-next,
    .partners-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .partners-swiper .swiper-button-next:after,
    .partners-swiper .swiper-button-prev:after {
        font-size: 16px;
    }
}

/* Sticky navigation pour mobile */
@media (max-width: 1024px) {
    #main-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1001;
        background: white;
        transition: all 0.3s ease;
    }
    
    .mobile-nav-spacer {
        height: 0;
    }
    
    .mobile-nav-spacer.active {
        height: 140px;
    }
    
    .swiper.mySwiper {
        margin-top: 140px;
    }
}

/* ===== NOUVEAU CSS CARROUSEL PROMOTIONNEL ===== */
.swiper {
    width: 100%;
    height: 600px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
}

/* Assure que l'image s'affiche entièrement sur tous les écrans */
@media (min-width: 1025px) {
    .swiper-slide {
        background-size: cover; /* Couvre tout l'espace */
        background-position: center center;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .swiper-slide {
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        background-size: cover; /* Sur mobile, l'image couvre tout */
        background-position: center center;
    }
}

/* Alternative : Si vous voulez voir l'image EN ENTIER sans recadrage */
/* Décommentez ces lignes et commentez les règles ci-dessus */
/*
.swiper-slide {
    background-size: contain !important;
    background-position: center center !important;
    background-color: #1a1a1a;
}
*/

.promo-badge {
    background: greenyellow;
    font-size: 0.875rem;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-overlay {
    background: 
        linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, transparent 100%),
        linear-gradient(135deg, rgba(240, 125, 26, 0.15) 0%, rgba(240, 125, 26, 0.05) 100%);
}

/* Conteneur du texte du carrousel */
.product-overlay .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Titres responsifs */
.product-overlay h2 {
    font-size: 2rem;
    line-height: 1.2;
}

/* Prix et badges */
.product-overlay .text-6xl {
    font-size: 3rem;
}

.product-overlay .text-3xl {
    font-size: 1.5rem;
}

/* Boutons */
.product-overlay a {
    font-size: 0.875rem;
    padding: 0.625rem 1.5rem;
    white-space: nowrap;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0,0,0,0.5);
    width: 50px !important;
    height: 50px !important;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.swiper-pagination-bullet {
    background: white !important;
    opacity: 0.5 !important;
    width: 10px !important;
    height: 10px !important;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #f97316 !important;
}

/* Tablettes */
@media (max-width: 1024px) {
    .swiper {
        height: 500px;
    }
    
    .product-overlay h2 {
        font-size: 1.75rem;
    }
    
    .product-overlay .text-6xl {
        font-size: 2.5rem;
    }
    
    .product-overlay .text-xl {
        font-size: 1rem;
    }
    
    /* Masquer les prix sur tablette si nécessaire */
    .product-overlay .hidden.md\\:block {
        display: none !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .swiper {
        height: 450px;
    }
    
    .product-overlay .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .product-overlay .pb-12 {
        padding-bottom: 2rem !important;
    }
    
    .product-overlay h2 {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .product-overlay .text-xl {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    
    .product-overlay .promo-badge {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    /* Boutons empilés sur mobile */
    .product-overlay .flex.gap-4 {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .product-overlay a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px !important;
    }
    
    .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
    }
}

/* Petit mobile */
@media (max-width: 480px) {
    .swiper {
        height: 400px;
    }
    
    .product-overlay h2 {
        font-size: 1.25rem;
    }
    
    .product-overlay .text-xl {
        font-size: 0.75rem;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 12px !important;
    }
}