/* couleur de fond su site bleu-clair*/
body {background-color: #DCB178;}
.site-grid .container-component {background-color: white;}

/* marge gauche-droite des articles à 20px si couleur de fond su site active*/
.com-content-article__body {padding-left: 20px;}
.blog-items {padding: 0 15px 0 15px;}
.com-content-article {padding: 0 15px 0 15px;}

.page-header h1 {
  font-size: 18px;
  line-height: 20px;
  color: white;
  padding: 5px;
  text-align: center;}
.page-header {background-color: #b28547;}


/*.card-header{
  background-color:#b28547;
  color: white;
}*/
/*h2, h1 {
  font-size: 16px;
  line-height: 20px;
  color: white;
  background-color: #b28547;
  padding: 5px;
  text-align: center; 
}*/
 /* diminuer la police des titre de module left-side*/
/*.card-header { font-size: 1.30rem;}


/* ============================================================
   Sidebar gauche - Menu moderne compact
   Palette autour de #b28547 (cuivré/orangé)
   Joomla 5 - Cassiopeia child
   ============================================================ */

/* --- Conteneur général (card) --- */
body .sidebar-left.card {
  background: #f9f3ed !important;  /* fond général clair */
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(178,133,71,0.2) !important; /* halo doux */
  border: 1px solid rgba(178,133,71,0.2); /* contour léger */
  overflow: hidden !important;
  margin-bottom: 25px !important;
}

/* --- Titre (card-header) --- */
body .sidebar-left.card .card-header {
  background: #b28547 !important;  /* couleur principale */
  color: #ffffff !important;
  padding: 12px 18px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border-radius: 10px 10px 0 0 !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 !important;
}

/* --- Contenu (card-body) --- */
body .sidebar-left.card .card-body {
  padding: 12px 16px !important;
}

/* --- Liste UL --- */
body .sidebar-left.card .mod-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* --- Élément LI --- */
body .sidebar-left.card .mod-menu .nav-item {
  margin-bottom: 2px !important; /* ultra compact */
  position: relative;
}

/* --- Liens A --- */
body .sidebar-left.card .mod-menu .nav-item a {
  display: block;
  padding: 4px 8px !important;    
  border-radius: 4px !important;
  color: #5a3d1d !important;         /* texte brun chaud */
  line-height: 1.1 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.3s ease;
}

/* --- Hover dynamique --- */
body .sidebar-left.card .mod-menu .nav-item a:hover {
  background: #e6d4b3 !important;   /* clair et harmonieux */
  color: #3c2610 !important;        /* plus foncé pour contraste */
  transform: translateX(4px);
}

/* --- Élément actif réel (.current) --- */
body .sidebar-left.card .mod-menu .nav-item.current > a {
  background: #f1e0c8 !important;    /* fond légèrement plus chaud */
  color: #5a3d1d !important;
  font-weight: 600 !important;
  padding-left: 14px !important;
  box-shadow: inset 0 0 0 0 rgba(178,133,71,0);
}

/* Ligne verticale active */
body .sidebar-left.card .mod-menu .nav-item.current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background-color: #b28547;  /* couleur principale */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Ombre subtile sur hover de l’actif */
body .sidebar-left.card .mod-menu .nav-item.current:hover > a {
  box-shadow: inset 4px 0 0 #b28547;
}

/* Flèche discrète pour l’élément actif */
body .sidebar-left.card .mod-menu .nav-item.current > a::after {
  content: '▸';
  margin-left: 6px;
  color: #b28547;
  font-size: 0.9em;
}

/* --- Neutraliser .active qui n'est pas .current --- */
body .sidebar-left.card .mod-menu .nav-item.active:not(.current) > a {
  background: transparent !important;
  color: #5a3d1d !important;
}
