/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* =========================================================
   CREATOR LMS — JANIC BRANDING
   Scope principal
   ========================================================= */

body.page-template-crlms-profile.creator-lms-page .creator-lms {
  --jl-primary: #FFC700;
  --jl-primary-dark: #c99e13;
  --jl-black: #000000;
  --jl-text: #161616;
  --jl-text-soft: #5e5e5e;
  --jl-bg: #e6e6e6;
  --jl-surface: #ffffff;
  --jl-border: #FFC700;
  --jl-border-soft: rgba(0, 0, 0, 0.08);
  --jl-radius-sm: 0.8rem;
  --jl-radius-md: 1.2rem;
  --jl-radius-lg: 2rem;
  --jl-shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.04);
  --jl-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --jl-space-1: 0.75rem;
  --jl-space-2: 1rem;
  --jl-space-3: 1.5rem;
  --jl-space-4: 2rem;
  --jl-space-5: 3rem;
  color: var(--jl-text);
}

body.page-template-crlms-profile.creator-lms-page {
  background: var(--jl-bg);
}

body.page-template-crlms-profile.creator-lms-page .creator-lms,
body.page-template-crlms-profile.creator-lms-page .creator-lms * {
  box-sizing: border-box;
}

body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-container {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

/* =========================================================
   Creator LMS — Header unifié
   Profil + Page de cours
   ========================================================= */

/* 1) Variables dispo partout sur les pages Creator LMS */
body.creator-lms-page {
  --jl-black: #000000;
  --jl-surface: #ffffff;
  --jl-text: #2f2f2f;
  --jl-border: rgba(255, 199, 0, 0.32);
  --jl-border-soft: rgba(0, 0, 0, 0.08);
  --jl-radius-md: 18px;
  --jl-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
}

/* 2) Fond noir + ligne or */
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-header,
body.single-crlms-lesson.creator-lms-page .creator-lms-header {
  background: #000000 !important;
  border-bottom: 1px solid rgba(255, 199, 0, 0.22) !important;
}

/* 3) Wrapper interne : mêmes dimensions */
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-header-wrapper,
body.single-crlms-lesson.creator-lms-page .creator-lms-header-wrapper {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 88px !important;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-sizing: border-box;
}

/* 4) Zone logo */
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-header-left,
body.single-crlms-lesson.creator-lms-page .creator-lms-header-left {
  display: flex;
  align-items: center;
}

body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-header-left .custom-logo-link,
body.single-crlms-lesson.creator-lms-page .creator-lms-header-left .custom-logo-link {
  display: block;
  width: 170px;
  height: 48px;
  background: url("https://janic.ca/wp-content/uploads/2025/09/logo-inversed.svg") left center / contain no-repeat;
  text-indent: -9999px;
  overflow: hidden;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* 5) Zone user */
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-user,
body.single-crlms-lesson.creator-lms-page .creator-lms-user {
  position: relative;
}

body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-user-avatar,
body.single-crlms-lesson.creator-lms-page .creator-lms-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(255, 199, 0, 0.55);
  font-weight: 700;
  box-sizing: border-box;
}

/* 6) Dropdown */
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-user-dropdown,
body.single-crlms-lesson.creator-lms-page .creator-lms-user-dropdown {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.10);
  padding: 0.5rem 0;
}

body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-user-dropdown a,
body.single-crlms-lesson.creator-lms-page .creator-lms-user-dropdown a {
  color: #2f2f2f;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-user-dropdown a:hover,
body.single-crlms-lesson.creator-lms-page .creator-lms-user-dropdown a:hover {
  background: rgba(255, 199, 0, 0.12);
  color: #111111;
}

body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-user-dropdown a svg path,
body.single-crlms-lesson.creator-lms-page .creator-lms-user-dropdown a svg path {
  fill: currentColor !important;
  stroke: currentColor !important;
}

body.single-crlms-lesson.creator-lms-page .creator-lms-checkbox {
  background: #111111 !important;
  border: 1px solid #111111 !important;
  color: #ffffff !important;
  border-radius: 8px;
}

body.single-crlms-lesson.creator-lms-page .creator-lms-checkbox:hover {
  background: #000000 !important;
  border-color: #000000 !important;
}

body.single-crlms-lesson.creator-lms-page .creator-lms-checkbox-text {
  color: #ffffff !important;
}

body.single-crlms-lesson.creator-lms-page .creator-lms-checkbox .checkedbox {
  border-color: rgba(255,255,255,.35) !important;
  background: transparent !important;
}

/* =========================================================
   CREATOR LMS — section rhythm aligné au site
   ========================================================= */

body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-dashboard,
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-student-profile {
  padding-top: var(--space-3xl);
  padding-right: var(--space-m);
  padding-bottom: var(--space-3xl);
  padding-left: var(--space-m);
}

/* Container plus large pour respirer comme les sections du site */
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-container {
  width: 100%;
  max-width: 1280px; /* ajuste à 1240 / 1280 / 1360 selon ton site */
  margin-inline: auto;
  padding-inline: 0;
}

/* Supprime l'effet grosse carte boxed sur le dashboard */
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-dashboard-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Supprime l'effet grosse carte boxed sur la page profil */
body.page-template-crlms-profile.creator-lms-page .creator-lms .creator-lms-student-profile-sidebar-content {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}