/**
Theme Name: OTS ASTRA Theme
Author: Karam Medjahdi
Author URI: https://www.linkedin.com/in/medjahdikaram/
Description: Oral test pro is a website to simulate french 
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ots-astra-theme
Template: astra
*/
.ast-woo-form-actions,
#nav a[href*="register"] {
    display: none !important;
}

/* 1) Réinitialise la capitalisation sur tous les niveaux de titre + descendants */
h1, h1 *, h2, h2 *, h3, h3 *, h4, h4 *, h5, h5 *, h6, h6 * {
  text-transform: none !important;
}

/* 2) Ciblage spécifique Astra (titres site, pages, articles, archives, produits) */
.site-title, .site-title a,
.entry-title, .entry-title a,
.ast-archive-title, .ast-archive-title *, 
.page-title, .page-title *,
.ast-single-post .entry-title,
.ast-archive-description .ast-archive-title,
.woocommerce div.product .product_title {
  text-transform: none !important;
}
/* === LearnDash modules: barre verticale bleue + nuances === */
.learndash-wrapper .ld-item-list-item,
.learndash-wrapper .ld-accordion__item,
.learndash-wrapper .ld-section-heading,
.learndash-wrapper .ld-lesson-section-heading {
  border-left: 6px solid #0B3D91 !important;
  padding-left: 18px !important;
  margin-bottom: 14px !important;
  border-radius: 8px !important;
}

.learndash-wrapper .ld-item-list-item:nth-of-type(1),
.learndash-wrapper .ld-accordion__item:nth-of-type(1) { border-left-color:#0B3D91 !important; }

.learndash-wrapper .ld-item-list-item:nth-of-type(2),
.learndash-wrapper .ld-accordion__item:nth-of-type(2) { border-left-color:#1F5FBF !important; }

.learndash-wrapper .ld-item-list-item:nth-of-type(3),
.learndash-wrapper .ld-accordion__item:nth-of-type(3) { border-left-color:#2E74D1 !important; }

.learndash-wrapper .ld-item-list-item:nth-of-type(4),
.learndash-wrapper .ld-accordion__item:nth-of-type(4) { border-left-color:#4A8FE7 !important; }

.learndash-wrapper .ld-item-list-item:nth-of-type(5),
.learndash-wrapper .ld-accordion__item:nth-of-type(5) { border-left-color:#6AA9F2 !important; }
/* === FTS / LearnDash : Barre verticale bleue par module (nuances) === */

/* Base: carte module */
.learndash-wrapper .ld-item-list-item,
.learndash-wrapper .ld-accordion__item{
  position: relative !important;
  border-left: 7px solid #0B3D91 !important;
  padding-left: 18px !important;
  border-radius: 10px !important;
}

/* Nuances par module (ordre d'affichage) */
.learndash-wrapper .ld-item-list-item:nth-of-type(1),
.learndash-wrapper .ld-accordion__item:nth-of-type(1){ border-left-color:#0B3D91 !important; }

.learndash-wrapper .ld-item-list-item:nth-of-type(2),
.learndash-wrapper .ld-accordion__item:nth-of-type(2){ border-left-color:#1F5FBF !important; }

.learndash-wrapper .ld-item-list-item:nth-of-type(3),
.learndash-wrapper .ld-accordion__item:nth-of-type(3){ border-left-color:#2E74D1 !important; }

.learndash-wrapper .ld-item-list-item:nth-of-type(4),
.learndash-wrapper .ld-accordion__item:nth-of-type(4){ border-left-color:#4A8FE7 !important; }

.learndash-wrapper .ld-item-list-item:nth-of-type(5),
.learndash-wrapper .ld-accordion__item:nth-of-type(5){ border-left-color:#6AA9F2 !important; }

/* Petit effet chic au survol */
.learndash-wrapper .ld-item-list-item:hover,
.learndash-wrapper .ld-accordion__item:hover{
  box-shadow: 0 10px 25px rgba(6,27,176,0.12) !important;
  transform: translateY(-1px) !important;
  transition: all .2s ease !important;
}
/* ======================================================
   LearnDash Focus Mode – Progress Bar CLEAN
   (LESSONS + TOPICS)
====================================================== */

/* Container */
.learndash-wrapper .ld-focus-header .ld-progress{
  max-width: 520px !important;
  width: 100% !important;
  margin-top: 8px !important;
}

/* Texte progression */
.learndash-wrapper .ld-focus-header .ld-progress-stats{
  color: #061BB0 !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

/* Barre grise */
.learndash-wrapper .ld-focus-header .ld-progress-bar{
  position: relative !important;
  height: 10px !important;
  background: #E5E7EB !important;
  border-radius: 999px !important;
  overflow: hidden !important;
}

/* Barre bleue (progression réelle) */
.learndash-wrapper .ld-focus-header .ld-progress-bar-percentage{
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  height: 100% !important;
  background: #061BB0 !important;
  border-radius: 999px !important;
}
/* ===== FTS – Table des matières LearnDash (style institutionnel) ===== */

/* Bloc des topics ouvert */
.ld-lesson-item-expanded .ld-topic-list,
.ld-lesson-item-expanded .ld-lesson-list {
    background: #F1F4FB !important;
    border-left: 3px solid #061BB0 !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
}

/* Modules – titre */
.ld-section-heading h2,
.ld-lesson-item-section-heading {
    color: #061BB0 !important;
    font-weight: 600 !important;
}

/* Module actif */
.ld-lesson-item-expanded {
    background: #F1F4FB !important;
    border-radius: 10px !important;
}

/* Topics cochés (complétés) */
.ld-status-complete {
    color: #1F7A3E !important;
}

.ld-status-complete .ld-icon {
    background: #1F7A3E !important;
    color: white !important;
}

/* Animation douce */
.ld-lesson-item-expanded .ld-topic-list,
.ld-lesson-item-expanded .ld-lesson-list {
    transition: all 0.3s ease-in-out;
}
/* === Navigation Previous / Next LearnDash === */

.learndash-wrapper .ld-content-actions a {
    color: #061BB0 !important;
    opacity: 1 !important;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

/* Icônes flèches */
.learndash-wrapper .ld-content-actions a .ld-icon {
    color: #061BB0 !important;
    opacity: 1 !important;
}

/* Effet hover doux */
.learndash-wrapper .ld-content-actions a:hover {
    color: #1F3CCF !important;
    text-decoration: underline;
}
/* === Navigation Previous / Next LearnDash === */

.learndash-wrapper .ld-content-actions a {
    color: #061BB0 !important;
    opacity: 1 !important;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

/* Icônes flèches */
.learndash-wrapper .ld-content-actions a .ld-icon {
    color: #061BB0 !important;
    opacity: 1 !important;
}

/* Effet hover doux */
.learndash-wrapper .ld-content-actions a:hover {
    color: #1F3CCF !important;
    text-decoration: underline;
}
/* Force visibilité des liens Previous/Next LearnDash (desktop + mobile) */
.learndash-wrapper .ld-content-actions a,
.learndash-wrapper .ld-content-actions a:link,
.learndash-wrapper .ld-content-actions a:visited,
.learndash-wrapper .ld-content-action a,
.learndash-wrapper .ld-content-action a:link,
.learndash-wrapper .ld-content-action a:visited,
.learndash-wrapper .ld-button,
.learndash-wrapper .ld-button:link,
.learndash-wrapper .ld-button:visited {
  color: #061BB0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Icônes */
.learndash-wrapper .ld-content-actions .ld-icon,
.learndash-wrapper .ld-content-action .ld-icon {
  color: #061BB0 !important;
  opacity: 1 !important;
}
/* ===== Breadcrumb Quiz - Version FTS ===== */

.learndash-wrapper .ld-breadcrumbs {
    background-color: #A0D9B4 !important;
    padding: 10px 18px !important;
    border-radius: 8px !important;
    font-size: 17px !important; /* légèrement plus grand */
}

/* Forcer la couleur bleue en permanence */
.learndash-wrapper .ld-breadcrumbs,
.learndash-wrapper .ld-breadcrumbs a,
.learndash-wrapper .ld-breadcrumbs span,
.learndash-wrapper .ld-breadcrumbs a:visited,
.learndash-wrapper .ld-breadcrumbs a:active,
.learndash-wrapper .ld-breadcrumbs a:hover,
.learndash-wrapper .ld-breadcrumbs .ld-breadcrumbs-segments span {
    color: #061BB0 !important;
    font-weight: 600 !important;
}
/* ==============================
   LearnDash - Previous/Next (Topics + Quizzes)
   Même taille + couleurs fixes
============================== */

/* Zone (barre) */
.learndash-wrapper .ld-content-actions{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Boutons (liens) */
.learndash-wrapper .ld-content-actions a.ld-button,
.learndash-wrapper .ld-content-actions a.ld-button:visited{
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

/* Texte: toujours bleu (même sans hover) */
.learndash-wrapper .ld-content-actions a.ld-button .ld-text,
.learndash-wrapper .ld-content-actions a.ld-button:visited .ld-text{
  color: #061bb0 !important;
  font-size: 18px !important;   /* ajuste à 17/19 si tu veux */
  font-weight: 600 !important;
}

/* Hover/focus: garder EXACTEMENT le même bleu */
.learndash-wrapper .ld-content-actions a.ld-button:hover .ld-text,
.learndash-wrapper .ld-content-actions a.ld-button:focus .ld-text{
  color: #061bb0 !important;
}

/* Flèches (icônes): plus grandes + vert A0D9B4 */
.learndash-wrapper .ld-content-actions .ld-icon:before{
  color: #A0D9B4 !important;
  font-size: 26px !important;  /* taille flèche */
  font-weight: 700 !important;
}

/* Espace entre flèche et texte */
.learndash-wrapper .ld-content-actions .ld-icon{
  margin-right: 10px !important;
}
.learndash-wrapper .ld-content-actions .ld-content-action:last-child .ld-icon{
  margin-right: 0 !important;
  margin-left: 10px !important;
}
