/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/

/* Parent stylesheet should be loaded from functions.php not using @import */


/**/
/* Event list page */
.tribe-common-l-container.tribe-events-l-container {
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
}
.tribe-events-header, .tribe-events-calendar-list, .tribe-events-calendar-list-nav, .tribe-events-c-subscribe-dropdown__container, .tribe-events-after-html {
  width: 1200px;
  margin: 0 auto !important;
}
.tribe-events-header__events-bar {
  margin-top: -32px !important;
  margin-bottom: 70px !important;
}
/**/
/* Single Event page */
.tribe_events-template-default.single-tribe_events #main #content-wrap {
  padding: 0px !important;
  width: 100%;
  margin: 0 !important;
  max-width: 100%;
}
#right-sidebar {
  display: none !important;
}
.tribe_events-template-default.single-tribe_events #primary {
  width: 100%;
  padding: 0;
}
.tribe_events-template-default.single-tribe_events #tribe-events-content {
  width: 1200px !important;
  margin: 0 auto;
}
.tribe-common.event-tickets.tribe-tickets__tickets-wrapper {
  position: absolute;
  right: 0;
  width: 300px;
}
.tribe-tickets__tickets-item{
  display:block;
}
.tribe-tickets__tickets-item-extra, .tribe-common-h4.tribe-tickets__tickets-item-quantity {
  width: 49%;
  display: inline-block;
  vertical-align: text-bottom;
}
.tribe-tickets__tickets-item-details-content {
  margin-bottom: 15px !important;
  border-bottom: 25px solid #bf1313;
}
.tribe-events-event-image {
  display: none;
}#tribe-events-content .tribe-events-single-event-title {
  display: none;
}
#tribe-events-content .tribe-events-back {
  position: absolute;
  bottom: -40px;
}
#tribe-events-content .tribe-events-schedule {
  background-color: #E45712;
  display: inline-flex;
  padding: 5px 20px;
}
#tribe-events-content .tribe-events-schedule h2, #tribe-events-content .tribe-events-schedule span {
  color: #fff;
  letter-spacing: 0.3px;
  line-height: 100%;
}
#tribe-events-content .tribe-events-cost {
  border-left: 1px solid #fff;
  padding-left: 14px;
}
.tribe-tickets__tickets-item.type-tec_tc_ticket{
  display:block;
}
.event-tickets .tribe-tickets__tickets-buy.tribe-common-c-btn:disabled {
  background-color: #e6e3e3;
  color: #c1bebe;
}
#tribe-tickets__tickets-form {
  border: 1px solid #ddd;
  border-top: 5px solid #ddd;
}
.tribe-tickets__tickets-footer.tribe-tickets__tickets-footer--active {
  display: inherit;
  text-align: right;
}
.tribe-common-b2.tribe-tickets__tickets-footer-total, .tribe-common-b2.tribe-tickets__tickets-footer-quantity{
  text-align: right;
}
#tribe-tickets__tickets-buy {
  margin-top: 10px;
}
.tribe-currency-symbol {
  margin-left: 4px !important;
  display: inline-block;
}
.tribe-events-c-subscribe-dropdown__container {
  margin: 0 !important;
}
.single-tribe_events .tribe-events-c-subscribe-dropdown__button {
  width: 250px;
}

/* Customize Cookie Banner */

.iubenda-banner-content #iubenda-cs-title, #iubenda-cs-paragraph > p:not(:first-child):not(:last-child) {
	display: none !important;
}

body #iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-accept-btn {
    background-color: #e55711 !important;
    color: #fff !important;
}

body #iubenda-cs-banner .iubenda-cs-opt-group button.iubenda-cs-reject-btn {
	background-color: #0073ce1c !important;
}

a.iubenda-tp-btn {
	opacity: 0.2 !important;
}

/* END Customize Banner */


/* Customize Instructor dashbord */

ul.tab-labels a[href="?tab=3"] {
    display: none !important;
}

.mantine-Card-cardSection button.mantine-UnstyledButton-root  {
	display: none;
}

.mantine-Group-root button.ir-danger-colour {
	display: none !important;
}

div.ir-filter-trash button.ir-dummy-btn, div.ir-filter-trash button.ir-danger-color {
	display: none;
}

/* CSS Baniere Promo LCF */


/* --- CONFIGURATION GLOBALE --- */
#learndash-focus-mode {
    --ud-blue: #0056d2;
    --ud-bg-sidebar: #f7f9fa;
    --ud-border: #d1d7dc;
    --ud-text: #1c1d1f;
}

/* --- SIDEBAR FIXE & ÉPURÉE --- */
#learndash-focus-mode .ld-focus-sidebar {
    width: 350px !important;
    background-color: var(--ud-bg-sidebar) !important;
    border-right: 1px solid var(--ud-border) !important;
    height: 100vh !important;
    position: sticky !important;
    top: 0;
}

/* Suppression des bordures inutiles pour un look "Flat" */
#learndash-focus-mode .ld-course-navigation-list .ld-lesson-item-preview,
#learndash-focus-mode .ld-table-list-item {
    border: none !important;
    background: transparent !important;
    padding: 15px 20px !important;
}

/* État Actif (Ligne bleue caractéristique) */
#learndash-focus-mode .ld-is-current, 
#learndash-focus-mode .ld-table-list-item.ld-is-current {
    background-color: #ffffff !important;
    border-left: 5px solid var(--ud-blue) !important;
    font-weight: 700;
}

/* --- ZONE DE CONTENU OPTIMISÉE --- */
#learndash-focus-mode .ld-focus-content {
    max-width: 900px !important;
    margin: 40px auto !important;
    line-height: 1.8;
    color: var(--ud-text);
}

#learndash-focus-mode .ld-focus-header {
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
    border-bottom: 1px solid var(--ud-border) !important;
}
/* Empêche tout mouvement du menu latéral lors du clic */
#learndash-focus-mode .ld-focus-sidebar {
    height: 100vh !important;
    position: fixed !important; /* Force la sidebar à rester fixe à l'écran */
    left: 0;
    top: 0;
    overflow-y: auto !important;
    z-index: 10;
}

/* Ajuste le contenu pour ne pas qu'il glisse sous la sidebar fixe */
#learndash-focus-mode .ld-focus-main {
    margin-left: 350px !important; /* Doit correspondre à la largeur de votre sidebar */
    width: calc(100% - 350px) !important;
}

/* Cache la barre de défilement pour un look plus clean (optionnel) */
.ld-focus-sidebar::-webkit-scrollbar {
    display: none;
}
/* FIXER LA SIDEBAR (Comme sur Udemy) */
#learndash-focus-mode .ld-focus-sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 350px !important;
    height: 100vh !important;
    z-index: 100;
    overflow-y: auto !important; /* Permet de scroller uniquement dans le menu */
    background-color: #f7f9fa !important;
    border-right: 1px solid #d1d7dc !important;
}

/* DECALER LE CONTENU POUR NE PAS QU'IL SOIT CACHÉ */
#learndash-focus-mode .ld-focus-main {
    margin-left: 350px !important; /* Doit être égal à la largeur de la sidebar */
    width: calc(100% - 350px) !important;
    min-height: 100vh;
}

/* ANIMATION FLUIDE LORS DU CHANGEMENT */
.ld-focus-content {
    transition: opacity 0.3s ease-in-out;
}

/* DESIGN DES ITEMS DE LA SIDEBAR (Dissocié de l'accent admin) */
#learndash-focus-mode .ld-lesson-item-preview, 
#learndash-focus-mode .ld-table-list-item {
    background: transparent !important;
    border: none !important;
}

#learndash-focus-mode .ld-is-current {
    background-color: #ffffff !important;
    border-left: 5px solid #0056d2 !important; /* Votre Bleu LCF */
}


