/* =========================================================
 * BGC Onboarding & Discovery Section (Home Page)
 * Version 1.0
 * ========================================================= */

.bgc-ob-discovery { margin-top: 30px; }
.bgc-ob-section-title { 
    font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 20px; 
    display: flex; align-items: center; gap: 8px; border-bottom: 2px solid #f1f5f9; padding-bottom: 10px; 
}

/* --- Slider P500 --- */
.bgc-ob-p500-carousel { 
    overflow: hidden; position: relative; border-radius: 16px; margin-bottom: 50px; 
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%); color: white; 
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15); border: 1px solid #334155; 
}
.bgc-ob-p500-track { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.bgc-ob-p500-slide { 
    min-width: 100%; display: flex; align-items: center; gap: 30px; padding: 35px 40px; 
    box-sizing: border-box; text-decoration: none !important; color: white !important; transition: background 0.3s; 
}
.bgc-ob-p500-slide:hover { background: rgba(255,255,255,0.03); }
.bgc-ob-p500-image { 
    width: 180px; height: 180px; object-fit: cover; border-radius: 12px; flex-shrink: 0; 
    box-shadow: 0 8px 20px rgba(0,0,0,0.6); border: 2px solid rgba(255,255,255,0.1); 
}
.bgc-ob-p500-content { flex-grow: 1; }
.bgc-ob-p500-badge { 
    display: inline-block; background: #f59e0b; color: #fff; font-size: 12px; font-weight: 800; 
    padding: 4px 10px; border-radius: 6px; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; 
}
.bgc-ob-p500-title { font-size: 28px; font-weight: 800; margin: 0 0 5px 0; color: #fff; line-height: 1.2; }
.bgc-ob-p500-progress-bg { background: rgba(255,255,255,0.1); height: 12px; border-radius: 6px; overflow: hidden; margin: 15px 0 8px 0; }
.bgc-ob-p500-progress-fill { background: linear-gradient(90deg, #f59e0b, #fbbf24); height: 100%; border-radius: 6px; }
.bgc-ob-p500-stats { display: flex; justify-content: space-between; font-size: 14px; color: #cbd5e1; font-weight: 600; }

/* --- Grid override pour les listes produits (Home) --- */
ul.products.bgc-custom-grid { 
    list-style: none; padding: 0; margin: 0 0 50px 0; 
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; 
}

/* --- Style des cartes BGC intégrées --- */
ul.products.bgc-custom-grid li { 
    margin: 0 !important; width: 100% !important; 
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 15px; 
    box-shadow: 0 4px 6px rgba(0,0,0,0.02); display: flex; flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease; box-sizing: border-box;
}
ul.products.bgc-custom-grid li:hover { transform: translateY(-3px); box-shadow: 0 10px 15px rgba(0,0,0,0.05); }
ul.products.bgc-custom-grid li .bgc-card-media { margin-bottom: 15px; }
ul.products.bgc-custom-grid li .bgc-card-media img { width: 100%; height: auto; border-radius: 8px; display: block; }
ul.products.bgc-custom-grid li .bgc-card-body { display: flex; flex-direction: column; flex-grow: 1; }
ul.products.bgc-custom-grid li .bgc-actions { margin-top: auto; } 

/* --- Puces de langues (Chips) --- */
.bgc-langchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bgc-chip { 
    display: inline-flex; align-items: center; gap: 4px; 
    background: #f1f5f9; border: 1px solid #e2e8f0; padding: 4px 8px; border-radius: 6px; 
    font-size: 11px; font-weight: 600; color: #475569; 
}

/* --- Responsivité --- */
@media (max-width: 992px) { ul.products.bgc-custom-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .bgc-ob-p500-slide { flex-direction: column; text-align: center; padding: 20px; }
    .bgc-ob-p500-image { width: 100%; height: 200px; }
    ul.products.bgc-custom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) { ul.products.bgc-custom-grid { grid-template-columns: 1fr; } }