/* ============================================
   LAYOUT PRINCIPAL - REWARDS PAGE
   ============================================ */

/* Wrapper principal */
.ib-page-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: #F3F6FB;
}


.pro-page-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: #F6ECE2 !important;
}

.ib-propage-wrapper {
    display: flex;
    min-height: 100vh;
    position: relative;
    background: #F6ECE2;
}

.ib-rewards-title {
        font-size: 2.25rem;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 15px 0;
    
    }
/* ============================================
   SIDEBAR CONTAINER
   ============================================ */

.ib-sidebar-container {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    z-index: 1000;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
}

/* Quand le sidebar est collapsed */
body.sidebar-collapsed .ib-sidebar-container {
    width: 70px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.ib-main-content {
    flex: 1;
    margin-left: 280px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    padding: 0;
}

/* Content s'adapte quand sidebar collapsed */
body.sidebar-collapsed .ib-main-content {
    margin-left: 70px;
}

/* Inner container pour le contenu */
.ib-content-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 32px;
    width: 100%;
}

/* ============================================
   ADAPTATION DU CONTENU REWARDS
   ============================================ */

/* S'assurer que le rewards prend tout l'espace disponible */
.ib-main-content .ib-rewards-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* ============================================
   RESPONSIVE MOBILE
   ============================================ */

@media (max-width: 1024px) {
    /* Sur tablette, content prend tout l'espace */
    .ib-main-content {
        margin-left: 0;
        width: 100%;
    }
	.ib-rewards-title {
            font-size: 24px !important;
        }
    
    body.sidebar-collapsed .ib-main-content {
        margin-left: 0;
    }
	.ib-content-inner{
		padding-top:60px;
		padding-left:12px;
		padding-right:12px;
	}
    /* Sidebar en overlay sur mobile */
    .ib-sidebar-container {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    /* Sidebar visible sur mobile */
    .ib-sidebar-container.is-visible {
        transform: translateX(0);
    }
	
	.ib-rewards-subtitle{
		/*font-size:14px!important;*/
	}
}

/* ============================================
   SMOOTH TRANSITIONS GLOBALES
   ============================================ */

/* Toutes les transitions smooth */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Désactiver les transitions au chargement */
.preload * {
    transition: none !important;
}

/* ============================================
   FIX POUR ELEMENTOR
   ============================================ */

/* S'assurer qu'Elementor ne casse pas le layout */
.ib-sidebar-container .elementor,
.ib-sidebar-container .elementor-section {
    height: 100%;
}

.ib-main-content .elementor-section {
    width: 100%;
}