/*
 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
*/
/* --------------------------------------------------------- */
/* 1. TUNNEL DE VENTE (FORMINATOR) - Cartes & Formulaires    */
/* --------------------------------------------------------- */

/* Typographie globale du formulaire */
.forminator-ui .forminator-label {
    font-size: 1.8rem !important;
    color: #1C1C1C !important;
    font-weight: 500 !important;
    margin-bottom: 25px !important;
    line-height: 1.4;
}

/* Transformation des choix en "Cartes Premium" */
.forminator-ui .forminator-radio {
    background-color: #FDFBF7 !important;
    border: 1px solid #EAEAEA !important;
    border-radius: 8px !important;
    padding: 18px 25px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center;
    cursor: pointer;
}

.forminator-ui .forminator-radio:hover {
    border-color: #B8860B !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03) !important;
}

.forminator-ui .forminator-radio[data-is-checked="true"] {
    border-color: #B8860B !important;
    background-color: #F8F5EE !important;
    box-shadow: 0 5px 15px rgba(184, 134, 11, 0.1) !important;
}

.forminator-ui .forminator-radio .forminator-radio-bullet { border-color: #B8860B !important; }
.forminator-ui .forminator-radio .forminator-radio-bullet:before { background-color: #B8860B !important; }
.forminator-ui .forminator-radio-label { color: #2C2C2C !important; font-size: 1.6rem !important; font-weight: 400 !important; margin-left: 10px !important; }

/* Boutons d'action Forminator */
.forminator-ui .forminator-button-next,
.forminator-ui .forminator-button-submit {
    background-color: #B8860B !important;
    color: #FFFFFF !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    transition: all 0.3s ease !important;
    border: none !important;
}
.forminator-ui .forminator-button-next:hover,
.forminator-ui .forminator-button-submit:hover {
    transform: scale(1.05) !important;
    background-color: #8B6914 !important;
}
.forminator-ui .forminator-button-back {
    background-color: transparent !important;
    color: #1C1C1C !important;
    border: 1px solid #1C1C1C !important;
    padding: 15px 30px !important;
    border-radius: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
}
.forminator-ui .forminator-button-back:hover {
    color: #B8860B !important;
    border-color: #B8860B !important;
}

/* ========================================================= */
/* 💎 PREMIUM UI – TUTOR LMS EXPERIENCE (APP STYLE)          */
/* ========================================================= */

/* ----------------------------- */
/* 1. CARTES LEÇONS (effet app)  */
/* ----------------------------- */

.tutor-course-topic-item {
  background: #FFFFFF;
  border: 1px solid #EEE;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 10px;
  transition: all 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hover = effet "vivant" */
.tutor-course-topic-item:hover {
  border-color: #B8860B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* Leçon active */
.tutor-course-topic-item.is-active {
  border-color: #B8860B;
  background: #FDF8F0;
}

/* ----------------------------- */
/* 2. TITRE LEÇON                */
/* ----------------------------- */

.tutor-course-topic-item-title a {
  font-weight: 500;
  transition: color 0.2s ease;
}

.tutor-course-topic-item-title a:hover {
  color: #B8860B;
}

/* ----------------------------- */
/* 3. DURÉE + META               */
/* ----------------------------- */

.tutor-course-topic-item-duration {
  background: #F5F5F5;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  color: #666;
}

/* ----------------------------- */
/* 4. SECTION (chapitres)        */
/* ----------------------------- */

.tutor-course-topic {
  margin-bottom: 25px;
}

.tutor-course-topic-title {
  padding-bottom: 8px;
  border-bottom: 2px solid #F0E6CC;
}

/* ----------------------------- */
/* 5. BARRE DE PROGRESSION       */
/* ----------------------------- */

.tutor-progress-bar {
  height: 6px;
  border-radius: 20px;
  overflow: hidden;
}

.tutor-progress-filled {
  transition: width 0.4s ease;
}

/* ----------------------------- */
/* 6. BOUTONS PREMIUM            */
/* ----------------------------- */

.tutor-btn-primary {
  box-shadow: 0 4px 12px rgba(184,134,11,0.2);
}

.tutor-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(184,134,11,0.3);
}

/* ----------------------------- */
/* 7. SIDEBAR STYLE APP          */
/* ----------------------------- */

.tutor-course-single-sidebar {
  position: sticky;
  top: 100px;
}

/* ----------------------------- */
/* 8. CONTENU LEÇON (lecture)    */
/* ----------------------------- */

.tutor-lesson-content {
  max-width: 750px;
  margin: auto;
}

/* ----------------------------- */
/* 9. CHECK LEÇON TERMINÉE       */
/* ----------------------------- */

/* cercle à gauche */
.tutor-course-topic-item::before {
  content: "";
  width: 10px;
  height: 10px;
  background: #DDD;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
}

/* complété */
.tutor-course-topic-item.completed::before {
  background: #B8860B;
}

/* ----------------------------- */
/* 10. SCROLL SMOOTH             */
/* ----------------------------- */

html {
  scroll-behavior: smooth;
}

/* ----------------------------- */
/* 11. MICRO INTERACTIONS        */
/* ----------------------------- */

/* léger fade au chargement */
.tutor-course-topic-item {
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================================= */
/* 🔥 FIX TAILLE TEXTES SIDEBAR (liste cours)                */
/* ========================================================= */

/* 📌 TITRES DES SECTIONS (gros blocs gris) */
.tutor-course-topic-title {
  font-size: 20px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}

/* 📌 TITRES DES LEÇONS */
.tutor-course-topic-item-title,
.tutor-course-topic-item-title a {
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

/* 📌 CONTENU TEXTE DANS LES BLOCS (sécurité) */
.tutor-course-topic-item-content {
  font-size: 17px !important;
}

/* 📌 ESPACEMENT POUR RESPIRATION */
.tutor-course-topic-item {
  padding: 16px 18px !important;
}

/* Hover plus lisible */
.tutor-course-topic-item:hover .tutor-course-topic-item-title a {
  color: #B8860B;
}

/* ========================================================= */
/* 💎 LUXE UI – WELLNESS ACADEMY (SIDEBAR PREMIUM)           */
/* ========================================================= */

/* ----------------------------- */
/* 1. CONTENEUR GLOBAL           */
/* ----------------------------- */

.tutor-course-content-list {
  background: #FAF8F3;
  padding: 20px;
  border-radius: 10px;
}

/* ----------------------------- */
/* 2. TITRES DE SECTIONS         */
/* ----------------------------- */

.tutor-course-topic-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px !important;
  font-weight: 600;
  color: #B8860B;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  margin-top: 25px;
}

/* ligne élégante sous titre */
.tutor-course-topic-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: #E8D8B0;
  margin-top: 6px;
}

/* ----------------------------- */
/* 3. BLOCS LEÇONS               */
/* ----------------------------- */

.tutor-course-topic-item {
  background: #FFFFFF;
  border-radius: 10px;
  padding: 18px 18px;
  margin-bottom: 12px;
  border: 1px solid #F0ECE4;
  transition: all 0.3s ease;
}

/* effet luxe hover */
.tutor-course-topic-item:hover {
  background: #FFFCF6;
  border-color: #E8D8B0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

/* ----------------------------- */
/* 4. TITRES LEÇONS              */
/* ----------------------------- */

.tutor-course-topic-item-title a {
  font-size: 18px !important;
  font-weight: 500;
  color: #2C2C2C;
  line-height: 1.5;
  transition: all 0.2s ease;
}

/* hover texte */
.tutor-course-topic-item:hover .tutor-course-topic-item-title a {
  color: #B8860B;
}

/* ----------------------------- */
/* 5. DURÉE (badge premium)      */
/* ----------------------------- */

.tutor-course-topic-item-duration {
  background: #F4EFE6;
  color: #8C7A5A;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 500;
}

/* ----------------------------- */
/* 6. LEÇON ACTIVE               */
/* ----------------------------- */

.tutor-course-topic-item.is-active {
  background: #FDF8F0;
  border: 1px solid #E8D8B0;
}

/* ----------------------------- */
/* 7. POINT DE PROGRESSION       */
/* ----------------------------- */

.tutor-course-topic-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #DDD;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

/* leçon complétée */
.tutor-course-topic-item.completed::before {
  background: #B8860B;
}

/* ----------------------------- */
/* 8. ESPACE & RESPIRATION       */
/* ----------------------------- */

.tutor-course-topic {
  margin-bottom: 30px;
}

/* ----------------------------- */
/* 9. TITRE "Contenu du cours"   */
/* ----------------------------- */

.tutor-course-content-list h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  color: #1C1C1C;
  margin-bottom: 20px;
}

/* ========================================================= */
/* 💎 ULTIMATE EXPERIENCE – TUTOR LMS (APP LEVEL)            */
/* ========================================================= */

/* ----------------------------- */
/* 1. STRUCTURE APP              */
/* ----------------------------- */

.tutor-course-single-content-wrapper {
  display: flex;
}

/* Sidebar type app */
.tutor-course-content-list {
  width: 380px;
  max-width: 100%;
  height: 100vh;
  overflow-y: auto;
  position: sticky;
  top: 0;
  padding: 25px;
  background: #FAF8F3;
  border-right: 1px solid #EEE;
}

/* Scroll luxe */
.tutor-course-content-list::-webkit-scrollbar {
  width: 6px;
}

.tutor-course-content-list::-webkit-scrollbar-thumb {
  background: #E0D6C3;
  border-radius: 10px;
}

/* ----------------------------- */
/* 2. CONTENU PRINCIPAL          */
/* ----------------------------- */

.tutor-course-single-content {
  flex: 1;
  padding: 40px;
  background: #FFFFFF;
}

/* zone lecture premium */
.tutor-lesson-content {
  max-width: 760px;
  margin: auto;
}

/* ----------------------------- */
/* 3. LEÇON ACTIVE (FOCUS)       */
/* ----------------------------- */

.tutor-course-topic-item.is-active {
  transform: scale(1.02);
  border: 1px solid #B8860B;
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}

/* glow subtil */
.tutor-course-topic-item.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: 0 0 0 2px rgba(184,134,11,0.15);
  pointer-events: none;
}

/* ----------------------------- */
/* 4. LOCK VISUEL (NETFLIX)      */
/* ----------------------------- */

/* leçons non accessibles */
.tutor-course-topic-item.locked {
  opacity: 0.5;
  pointer-events: none;
  filter: blur(0.3px);
}

/* icône lock */
.tutor-course-topic-item.locked::after {
  content: "🔒";
  margin-left: auto;
  font-size: 14px;
}

/* ----------------------------- */
/* 5. PROGRESSION PAR SECTION    */
/* ----------------------------- */

.tutor-course-topic {
  position: relative;
}

/* barre verticale */
.tutor-course-topic::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: #EEE;
}

/* progression active */
.tutor-course-topic.completed::before {
  background: #B8860B;
}

/* ----------------------------- */
/* 6. BADGE TERMINÉ              */
/* ----------------------------- */

.tutor-course-topic-item.completed {
  background: #FBF7EF;
}

.tutor-course-topic-item.completed .tutor-course-topic-item-title::after {
  content: "✓";
  color: #B8860B;
  margin-left: 8px;
  font-weight: bold;
}

/* ----------------------------- */
/* 7. HEADER FLOTTANT            */
/* ----------------------------- */

.tutor-single-course-segment {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,0.85);
  border-bottom: 1px solid #EEE;
}

/* ----------------------------- */
/* 8. BOUTON ACTION PREMIUM      */
/* ----------------------------- */

.tutor-lesson-sidebar-card .tutor-btn {
  width: 100%;
  font-size: 15px;
  padding: 14px;
  border-radius: 6px;
}

/* ----------------------------- */
/* 9. ANIMATION PROGRESSION      */
/* ----------------------------- */

.tutor-progress-filled {
  transition: width 0.6s ease;
}

/* ----------------------------- */
/* 10. MICRO INTERACTION VIDEO   */
/* ----------------------------- */

.tutor-video-player iframe {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* ----------------------------- */
/* 11. RESPONSIVE                */
/* ----------------------------- */

@media (max-width: 1024px) {

  .tutor-course-content-list {
    width: 100%;
    height: auto;
    position: relative;
  }

  .tutor-course-single-content {
    padding: 20px;
  }

}

/* ========================================================= */
/* ✅ FIX BARRE HEADER – CLASSES RÉELLES TUTOR LMS           */
/* ========================================================= */

/* ── TITRE DU COURS ── */
body .tutor-course-topic-single-header-title,
body .tutor-course-topic-single-header-title.tutor-fs-6 {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #FFFFFF !important;
}

/* ── TEXTE "Votre progression" ── */
body .tutor-progress-content,
body .tutor-progress-content.tutor-color-primary-60 {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #FFFFFF !important;
}


/* ── CONTENU DU COURS ── 
body .tutor-course-single-sidebar-title,
body .tutor-course-single-sidebar-title.tutor-fs-6 {
    font-size: 18px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1C1C1C !important;
}*/

/* ── TEXTE "Contenu du cours" ── 
body .tutor-fs-6.tutor-fw-medium.tutor-color-secondary {
    font-size: 18px !important;
    font-weight: 600 !important;
}*/


/* ── TEXTE "Contenu du cours" ── */
html body .tutor-course-single-sidebar-title .tutor-fs-6 {
    font-size: 18px !important;
    font-weight: 600 !important;
}

/* ── BOUTON "Marquer comme complété" ── */
body .tutor-topbar-mark-btn,
body .tutor-topbar-mark-btn span {
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 10px 22px !important;
    min-height: 44px !important;
}

/* ── ICÔNE dans le bouton ── */
body .tutor-topbar-mark-btn .tutor-icon-circle-mark-line::before {
    font-size: 18px !important;
}

/* FORCE BRUTE – OVERRIDE TUTOR LMS */

:is(.tutor-course-topic-single-header-title,
    .tutor-course-single-sidebar-title .tutor-fs-6,
    .tutor-progress-content,
    .tutor-topbar-mark-btn,
    .tutor-topbar-mark-btn span) {
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* ── TEXTE "Contenu du cours" ── */
.tutor-course-single-sidebar-title .tutor-fs-6 {
    font-size: 18px !important;
    font-weight: 600 !important;
}

.tutor-course-topic-single-header-title {
    font-size: 18px !important;
}

/* ── VIDÉOS FORMAT VERTICAL (Instagram/Vimeo 9:16) ── */
.plyr__video-wrapper[style*="aspect-ratio: 9 / 16"],
.plyr__video-wrapper[style*="aspect-ratio: 9/16"] {
    max-width: 400px !important;
    margin: 0 auto !important;
    display: block !important;
}

.plyr--video:has(.plyr__video-wrapper[style*="aspect-ratio: 9 / 16"]) {
    max-width: 400px !important;
    margin: 0 auto !important;
}

/* ========================================================= */
/* ✅ FIX PAGE DÉTAIL COURS – TEXTES TROP PETITS             */
/* ========================================================= */

/* ── TITRES H2 (À propos du cours) ── */
html body h2.tutor-fs-5 {
    font-size: 22px !important;
    font-weight: 700 !important;
}

/* ── TITRES H3 (Qu'allez-vous apprendre, Ce matériel, Public) ── */
html body h3.tutor-course-details-widget-title {
    font-size: 20px !important;
    font-weight: 700 !important;
}

/* ── TEXTE DESCRIPTION (À propos) ── */
html body .tutor-fs-6.tutor-color-secondary,
html body .tutor-fs-6.tutor-color-secondary p {
    font-size: 16px !important;
    line-height: 1.7 !important;
}

/* ── LISTES (Ce matériel inclut, Public) ── */
html body .tutor-course-details-widget-list.tutor-fs-6 li span,
html body .tutor-course-details-widget-list.tutor-fs-6 li {
    font-size: 16px !important;
    line-height: 1.6 !important;
}