/* ===============================
   GRID STYLE K2-LIKE pour Joomla 5
================================ */
/* couleur de fond su site bleu-clair*/
body {background-color: #dcae9b;}
.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 3px 0 17px;}
.com-content-article {padding: 0 15px 0 15px;}

/* 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-logo img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}


/*.card-header{
  background-color:#ae6c55;
  color: white;
}*/
h2, h1 {
  font-size: 16px;
  line-height: 20px;
  color: white;
  background-color: #ae6c55;
  padding: 5px;
  text-align: center; 
}

/* Conteneur global pour tous les articles */
.blog-items {
    display: flex;
    flex-wrap: wrap; /* Permet plusieurs lignes */
    margin: -5px; /* Pour compenser le padding des items */
}

/* Chaque article (5 par ligne) */
.blog-item {
    width: 20%; /* 100% ÷ 5 colonnes = 20% */
    padding: 5px;
    box-sizing: border-box;
    float: left; /* Pour compatibilité si tu veux float */
}

/* Conteneur image */
.blog-item .item-image {
    display: block;
    text-align: center;
    margin-bottom: 8px;
}

/* Image miniature */
.blog-item .item-image img {
    width: 180px;   /* plus grand que Joomla3 */
    height: 223px;  /* garder ratio vertical type K2 */
    max-width: 100%;
    object-fit: cover;
    display: inline-block;
    border: 1px solid #ccc;
    box-shadow: 3px 3px 6px #666;
    transition: transform 0.3s ease, opacity 0.3s ease; /* hover fluide */
}

/* Hover effect (zoom) */
.blog-item .item-image a:hover img {
    transform: scale(1.1);
    opacity: 0.9;
    cursor: pointer;
}

/* Texte sous l'image */
.blog-item .item-content p {
    margin: 0 0 5px 0;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
}

/* Responsive : tablettes et mobiles */
@media screen and (max-width: 1200px) {
    .blog-item {
        width: 25%; /* 4 colonnes */
    }
}

@media screen and (max-width: 900px) {
    .blog-item {
        width: 33.33%; /* 3 colonnes */
    }
}

@media screen and (max-width: 600px) {
    .blog-item {
        width: 50%; /* 2 colonnes */
    }
}

@media screen and (max-width: 400px) {
    .blog-item {
        width: 100%; /* 1 colonne sur mobile */
    }
}
/* Cacher uniquement la première figure.item-image automatique d'un article complet */
.view-article .com-content-article > figure.item-image:first-of-type {
    display: none;
}
 /* diminuer la police des titre de module left-side*/
/*.card-header { font-size: 1.30rem;}*/


/* ============================================================
   Sidebar gauche - Menu premium glassmorphism
   Couleur principale : #ae6c55
   Joomla 5 - Cassiopeia child
   ============================================================ */

/* --- Conteneur général (card) --- */
body .sidebar-left.card {
  background: #F5DFD1 !important; /* semi-transparent */
  backdrop-filter: blur(12px); /* effet glass */
  border-radius: 12px !important;
  border: 1px solid rgba(174,108,85,0.3); /* contour léger cuivré */
  box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important; /* ombre douce et profonde */
  overflow: hidden !important;
  margin-bottom: 10px !important;
  transition: all 0.3s ease;
}

/* --- Titre (card-header) --- */
body .sidebar-left.card .card-header {
  background: #ae6c55 !important;  /* couleur principale */
  color: #ffffff !important;
  padding: 12px 18px !important;
  font-size: 1.1rem !important;
  font-weight: 600 !important;
  border-radius: 12px 12px 0 0 !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* --- 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: 6px 10px !important;    
  border-radius: 6px !important;
  color: #5c3a2a !important;         /* brun cuivré */
  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: #F5C2AC !important; /* léger survol */
  color: #3c1f10 !important;
  transform: translateX(4px);
}

/* --- Élément actif réel (.current) --- */
body .sidebar-left.card .mod-menu .nav-item.current > a {
  background: rgba(174,108,85,0.15) !important;    /* fond actif plus chaud */ 
  color: #3c1f10 !important;
  font-weight: 600 !important;
  padding-left: 14px !important;
  box-shadow: inset 0 0 0 0 rgba(0,0,0,0);
  transition: all 0.3s ease;
}

/* Ligne verticale active */
body .sidebar-left.card .mod-menu .nav-item.current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 6px



  /* ============================================================
   Sidebar gauche - Menu professionnel scientifique
   Couleur principale : #ae6c55
   Joomla 5 - Cassiopeia child
   ============================================================ */

/* --- Conteneur général (card) --- */
body .sidebar-left.card {
  background: #F5DFD1 !important; /* fond clair semi-transparent */
  backdrop-filter: blur(6px); /* léger effet glass */
  border-radius: 10px !important;
  border: 1px solid rgba(174,108,85,0.2); /* contour discret */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important; /* ombre douce */
  overflow: hidden !important;
  margin-bottom: 25px !important;
  transition: all 0.3s ease;
}

/* --- Titre (card-header) --- */
body .sidebar-left.card .card-header {
  background: #ae6c55 !important;  /* couleur principale */
  color: #ffffff !important;
  padding: 12px 18px !important;
  font-size: 1.05rem !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: 10px 14px !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; /* compact */
  position: relative;
}

/* --- Liens A --- */
body .sidebar-left.card .mod-menu .nav-item a {
  display: block;
  padding: 5px 8px !important;    
  border-radius: 4px !important;
  color: #5c3a2a !important;         /* brun cuivré sobre */
  line-height: 1.1 !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

/* --- Hover subtil --- */
body .sidebar-left.card .mod-menu .nav-item a:hover {
  background: rgba(174,108,85,0.15) !important; /* léger survol */
  color: #3c1f10 !important;
}

/* --- Élément actif réel (.current) --- */
body .sidebar-left.card .mod-menu .nav-item.current > a {
  background: #F5DFD1 !important; /* actif plus marqué */
  color: #3c1f10 !important;
  font-weight: 600 !important;
  padding-left: 12px !important;
}

/* Ligne verticale active */
body .sidebar-left.card .mod-menu .nav-item.current::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background-color: #ae6c55;  /* couleur principale */
  border-radius: 2px;
}

/* 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: #ae6c55;
  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: #5c3a2a !important;
}

/* réduire l'interligne des items menu-gauche*/
.mod-list li {
  padding:.10em 0;
  }