/* couleur de fond su site bleu-clair*/
body {background-color: #d1d0d0;}
.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;}

h2, h1 {
  font-size: 16px;
  line-height: 20px;
  color: white;
  background-color: #696969;
  padding: 5px;
  text-align: center; 
}
/* Centrer le module lui-même dans le footer Cassiopeia */
.footer-logo {
    margin-left: auto;
    margin-right: auto;
}
/* Centrer l'image à l'intérieur  footer*/
.footer-logo img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   Sidebar gauche - Menu moderne compact
   Palette dans les tons de gris
   Joomla 5 - Cassiopeia child
   ============================================================ */

/* --- Conteneur général (card) --- */
body .sidebar-left.card {
  background: #f5f5f5 !important;   /* gris clair */
  border-radius: 10px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; /* ombre douce */
  overflow: hidden !important;
  border: none !important;
  margin-bottom: 25px !important;
}

/* --- Titre (card-header) --- */
body .sidebar-left.card .card-header {
  background: #555555 !important;   /* gris foncé */
  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: #333 !important;
  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: #e0e0e0 !important;   /* gris moyen */
  color: #111 !important;
  transform: translateX(4px);
}

/* --- Élément actif réel (.current) --- */
body .sidebar-left.card .mod-menu .nav-item.current > a {
  background: #d8d8d8 !important;    /* fond légèrement plus clair que hover */
  color: #111 !important;
  font-weight: 600 !important;
  padding-left: 14px !important;
  box-shadow: inset 0 0 0 0 rgba(0,0,0,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: #555555;  /* gris foncé */
  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 #555555;
}

/* 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: #555555;
  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: #333 !important;
}
