/**** Definitions des variables couleur ****/

/***** Definitions des variables couleur mode normal (light) ****/
:root {
  --cassiopeia-color-primary: #9b0404;
  --cassiopeia-color-link: #9b0404;
  --cassiopeia-color-hover: #b61b1b;
  --body-color: #333;
  --body-bg:#fff;
  --link-color: #9b0404;
  --link-hover-color:#9b0404;
}

a:not([class]) {
    text-decoration: none;
}
a:hover{
  text-decoration: none; !important
}
.mod-list li a:hover  {
    text-decoration: none; !important
}

.page-link.active, .active>.page-link {
    background-color: #efb1b1; !important
}

.metismenu.mod-menu .mm-collapse {
  background-color: #d3cccc;
}

  /* Formulaire de contact*/
.form-check-input:checked {
    background-color: #9b0404;}


/***** Definitions des variables couleur dark mode ****/
@media (prefers-color-scheme: dark) {

:root {
  --cassiopeia-color-primary: #9b0404;
  --cassiopeia-color-link: #e24949;
  --cassiopeia-color-hover: #8f2a2a;
  --body-color: #cacaca;
  --body-bg:#2b2929;
  --link-color: #dd5a5a;
  --secondary-color: #cacaca;
  
}

  /* Formulaire de contact*/
.form-control {
    background-color: #b5b5b5;}
.form-control:focus {
    background-color: #e1dfdf;}
.form-check-input:checked {
    background-color: #9b0404;}

img {
	filter: grayscale(.4);}

}

/*GESTION COMPORTEMENT RECHERCHE*/
.form-search >.awesomplete:before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    pointer-events: none;
    font-size: 0.9rem;
}
input#mod-finder-searchword109::placeholder {
    padding-left: 0px;
    color: #d7d7d7;
}
input#mod-finder-searchword109 {
    width: 25px;
    background: transparent;
    transition: width 0.3s ease-in-out;
    border: var(--border-width) solid #ffffff;
    height: 34px;
    border-radius: 10px;
}
input#mod-finder-searchword109:focus {
    width: 200px !important;
    background:  #ffffff;
    box-shadow: none;
}
.container-header .container-search {
    background: unset;
   margin-top: -4.5em ;
}
.container-header nav{
margin-top:0;
}
.grid-child.container-nav{
padding-bottom: 0.5em;
}

/*FORMUALIRE CONTACT */
.form-control:focus {
    box-shadow: 0 0 0 .25rem #0000003b;
}


/**Adaptation styles template ****/

/*couleur recherche et formulaire contact */
input#mod-finder-searchword109::placeholder{
color:#434343;
}
input#mod-finder-searchword109{
color:#000000;
}
.form-control, .form-control:focus, .form-select{
color:#000000;
}

/* Styles pour le bouton "Image" */
.btn-image-modal {
    margin-top: 10px; /* Espace au-dessus du bouton */
    font-size: 0.9em;
    padding: 6px 12px;
    border-radius: 5px;
    background: linear-gradient(to bottom, rgb(155 0 0 / 60%) 0%, rgb(155 4 4) 50%, rgb(155 0 0 / 60%) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-image-modal:hover {
    background-color: #218838; /* Vert plus foncé au survol */
}


/* SUPPRIMER LE TEXTE DJ MORO SITE OFFICIEL EN-DESSOUS DU LOGO DANS LE HEADER */ 
.container-header .site-description {
/*display:none!important;*/
}

/**Suppression transparence banner ****/
.container-banner .banner-overlay .overlay {
    background-color: rgba(0,0,0,0);
}

/**Forçage couleur modules **/
.card {
    background-color: var(--body-bg);
}

/**Couleur table (playlsit) **/
td.list-date.small {
    color: var(--body-color) !important;
}

/**Position link top fixe en bas **/
a#back-top {
    position: fixed;
    bottom: 170px;
}

/**Informations catégorie **/
span.badge.bg-info {
    background-color: var(--cassiopeia-color-primary)!important;
    font-size: small;
}

/**Dimension image article dans blog **/
figure.item-image {
    max-width: 300px;
}

/**Dimension image contact **/
.com-contact__thumbnail.thumbnail {
    max-width: 200px;
}
/**Dimension container contact **/
.com-contact{
    max-width: 850px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}


/**Correction pagination pour écran étroits **/
ul.pagination {
display: flex;
flex-wrap: wrap;
}

@media only screen and (max-width: 979px) {
  .com-content-category-blog__counter{
    float: none !important;
  }
  
}


/*** social icons ***/
.moro_social_icons {
   /* padding-right: 80px;*/
}
.moro_social_icons ul {
    text-align: center;
}

.moro_social_icons li, .moro_social_icons a {
    list-style: none;
    display: inline-block;
	font-size: x-large; 
	padding: 2px;
    text-decoration: none;
}
/*** PLAYER ***/
a#playerlink {
    cursor: pointer;
}
/*************** SOUS CATEGORIE  class moroscat **************/
/* cibler ton module avec la classe ajoutée */
.moroscat ul.mod-articlescategories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* colonnes adaptatives */
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.moroscat ul.mod-articlescategories li {
  background:color: var(--card-cap-color);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
}
/* titre catégorie */
.moroscat ul.mod-articlescategories li a {
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 6px;
  font-size: larger;
}
.moroscat ul.mod-articlescategories li a:hover {
    filter: drop-shadow(2px 4px 6px black);
}
/* n'affiche que le premier  */
.moroscat ul.mod-articlescategories li p:not(:first-of-type) {
  display: none;
}
.moroscat ul.mod-articlescategories li p:first-of-type {
  font-size: 0.9em;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;     /* ajoute "…" si ça dépasse */
  max-width: 100%;             /* reste dans le bloc */
 font-size: smaller;
}
.moroscat ul.mod-articlescategories li hr {
  display: none;
}


/*************** Mise en forme menufooter ******* moromenufooter *******/

/* MENU FOOTER - ajustements */
/* --- FOOTER MENU --- */
.moromenufooter .mod-menu {
  display: flex;
  flex-direction: row;      /* horizontal */
  justify-content: flex-start;
  align-items: stretch;     /* chaque item occupe la même hauteur */
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Niveau 1 - même largeur */
.moromenufooter .mod-menu > li {
flex: 1 1 0;
margin: 0;
min-width: 200px;
border-left: 2px solid currentColor;
}

/* Liens niveau 1 */
.moromenufooter .mod-menu > li > a {
  display: block;
  padding:  0;    
  text-decoration: none;
}

/* Niveaux 2+ - compacts */
.moromenufooter .mod-menu li ul li {
  padding: 0;
  margin: 0;
}

/* --- FOOTER FLEX ALIGNMENT --- */
footer.container-footer .grid-child > .moromenufooter {
order: -1 !important;
align-self: flex-start !important; 
}

.moromenufooter button{
display: none;
}
:where(.moromenufooter  .mod-menu__sub[aria-hidden=true]) {
    display: block; !important
}




/*************** ACCORDION MORO - ajustements *******************/
.accordion-button:not(.collapsed)
 {
    background-color: var(--card-cap-bg);
    color: var(--card-cap-color);
    border-bottom: solid;
    border-color: VAR(--cassiopeia-color-primary);
}

.accordion-button:focus {
  box-shadow: none !important;
}

.accordion-button {
    font-size: 0.55em;
    font-weight: bold;
}


/************************************ RATINGS *******************************/


/* Taille des icones affichées dans les avis clients */ 
.CO, .ML, .GO, .FB, .WA, .WW, .SS {
width:28px!important;
height:28px!important;
/*
box-shadow: 0 0 2px rgba(0, 0, 0, 0.6);
border-radius: 6px; 
*/
}

/* Styles pour chaque avis individuel (ex- #mororating_rating) */
.review-card{
    margin-bottom: 5px; /* Espace entre les avis (ajusté à 5px) */
    padding: 15px 15px 8px 15px; /* Padding interne comme une carte Bootstrap (uniformisé) */
    border: 1px solid #ddd; /* Bordure subtile (uniformisé avec les albums) */
    border-radius: 8px; /* Coins arrondis */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Ombre légère (uniformisée avec les albums) */
    background-color: var(--body-bg);
    break-inside: avoid; /* Empêche les cartes d'être coupées entre les colonnes */
}


.mororating_stars{
display: contents;
}
.mororating_full {
overflow: hidden;
height: 20px; 
position: absolute;
}
.mororating_imgfull{
margin: 0px; 
padding: 0px; 
border: 0; 
top:-26px; 
width:93px;
position: absolute;
}
.mororating_stars img {
    max-width: none;
    vertical-align: unset;
    height: unset;
}
.mororating_empty{
overflow: hidden;
height: 20px; 
position: relative;
}

.mororating_imgempty{
margin: 0px; 
padding: 0px; 
border: 0; 
width:93px; 
right: 0px;
position: sticky; 
}
.mororating_autor{
font-size: large;
font-weight: bold;
}
.mororating_date{
font-size: small;
}
.mororating_value{

}
.mororating_moyenne{
font-size: x-large;
}

.mororating_nombrevotes{
font-size: x-small;
}
.mororating_text{
display: block;
}
.mororating_laisseavis{
font-size: small;
}
.mororating_reply{
display: block;
margin-top: 8px;
font-style: italic;
border-top: solid;
border-top-width: 1px;
}
.mororating_img{
max-width: 100%;
}
/* Styles pour le conteneur principal des avis */
#mororating_ratings{
    column-count: 1; /* Par défaut, une colonne sur les très petits écrans */
    column-gap: 5px; /* Espacement entre les colonnes (ajusté à 5px) */
    margin-bottom: 30px; /* Marge en bas du conteneur global */
    margin-top: 20px; /* Marge en haut du conteneur global */
}

/* Media queries pour ajuster le nombre de colonnes */
@media (min-width: 576px) { /* Petits écrans */
    #mororating_ratings {
        column-count: 2;
    }
}

@media (min-width: 768px) { /* Moyens écrans */
    #mororating_ratings {
        column-count: 3;
    }
}

@media (min-width: 992px) { /* Grands écrans */
    #mororating_ratings {
        column-count: 4;
    }
}

/* Ajustement pour la moyenne générale des ratings */
#mororating_moyennerating{
    text-align: center; /* Centrer le texte et les étoiles */
    margin-top: 30px; /* Marge au-dessus de la moyenne */
    padding: 15px;
    background-color: #f8f9fa; /* Fond clair pour la moyenne */
    border-radius: 8px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Correction du positionnement des étoiles pour la moyenne */
#mororating_moyennerating .mororating_stars {
    display: inline-block; /* Pour centrer les étoiles avec le texte */
    position: relative; /* Ajustement pour les full/empty stars */
    height: 20px; /* Hauteur des étoiles */
    width: 93px; /* Largeur totale des 5 étoiles */
    vertical-align: middle;
    margin-right: 10px;
}

#mororating_moyennerating .mororating_full {
    position: absolute; 
    top: 0;
    left: 0;
    height: 100%;
    overflow: hidden;
}

#mororating_moyennerating .mororating_empty {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
}

#mororating_moyennerating .mororating_imgfull, 
#mororating_moyennerating .mororating_imgempty {
    position: absolute; 
    top: -26px; /* Ajustement pour afficher la bonne partie de l'image sprite */
    width: 93px; /* Largeur de l'image sprite */
    height: 20px; /* Hauteur de l'image sprite */
    margin: 0; padding: 0; border: 0;
}

#mororating_moyennerating .mororating_imgempty { 
    left: 0; /* Pour s'assurer que l'image vide commence au début */
}



/******************************************* Albums *************************************************/


ul.album li {
    list-style: none;
}

ul h3 {
    cursor: pointer;
	margin-left: 5px;
	padding-top: 10px;
}

ul.album {
    margin: 5px;
    padding: 1px;
}

ul.albumelements {
	padding: 1px 1px 5px 10px;
    margin-left: 2px;
}

.cus-main-moro-album {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0 -15px; /* Pour compenser le padding des colonnes Bootstrap */
    list-style: none;
}

.cus-main-moro-album > li {
    flex: 0 0 100%; /* Par défaut, une colonne */
    max-width: 100%;
    padding: 15px 15px 8px 15px; /* Espacement ajusté pour les vignettes */
    overflow: hidden;
    border: 1px solid #ddd; /* Bordure légère */
    border-radius: 8px; /* Coins arrondis */
    margin-bottom: 30px; /* Espacement entre les lignes */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Ombre légère */
    background-color: var(--body-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pour pousser le titre en bas */
    align-items: center; /* Centrer l'image et le titre horizontalement */
    height: auto; /* Permettre au li de s'adapter au contenu */
}

.album-thumbnail {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    /* justify-content: space-between; */ /* Retiré car il peut causer un espace excessif si le contenu est petit */
}

.cus-main-moro-album > li img {
    max-width: 100%;
    width: 100%; /* S'assurer que l'image prend 100% de la largeur */
    height: 200px; /* Hauteur fixe pour toutes les images */
    object-fit: cover; /* Recadrer les images pour remplir la zone sans déformer */
    display: block;
    margin: 0 auto 0 auto; /* Centrer l'image, pas d'espace en dessous, le h4 gérera son propre espace */
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.7); /* Bordure avec la même couleur que le fond du h4 */
}

.album-thumbnail a {
    display: block; /* Rendre le lien de l'image block-level */
    width: 100%; /* S'assurer qu'il prend toute la largeur disponible */
}

.cus-main-moro-album h4 {
    font-size: 0.8em; /* Taille de police ajustée à 0.8em */
    text-align: center;
    padding: 10px;
    width: 100%;
    /* background-color: rgba(0, 0, 0, 0.7); */ /* Ancien fond uni */
    background: linear-gradient(to bottom, rgb(155 0 0 / 60%) 0%, rgb(155 4 4) 50%, rgb(155 0 0 / 60%) 100%); /* Dégradé 3D */
    color: #fff;
    box-sizing: border-box; /* Inclure le padding dans la largeur */
    font-weight: normal; /* Police moins grasse */
    border-radius: 4px; /* Coins arrondis pour le fond du h4 */
    margin-top: 10px; /* Marge au-dessus du h4 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Légère ombre pour l'effet 3D */
}

/* Responsive breakpoints (similaire à Bootstrap) */
@media (min-width: 576px) {
    .cus-main-moro-album > li {
        flex: 0 0 50%; /* 2 colonnes sur petits écrans */
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .cus-main-moro-album > li {
        flex: 0 0 33.333333%; /* 3 colonnes sur écrans moyens et grands (jusqu'à 1346px) */
        max-width: 33.333333%;
    }
}

@media (min-width: 1346px) {
    .cus-main-moro-album > li {
        flex: 0 0 25%; /* 4 colonnes sur très grands écrans */
        max-width: 25%;
    }
}

li.photo {
    display: inline-block;
    margin: 2px;

}

li.suite {

}

.suite img {
    max-height: 500px;
	max-width:100%;
}

.premiere img{
    cursor: pointer;
	max-height: 150px;
	max-width:100%;
}

.cus-main-moro-album span {
    font-size: xx-large;
    color: red;
    font-weight: bolder;
}



/******************************************* Mise en forme héritée de JF *************************************************/
div.moropochette {max-width: 350px;}
div.mejs-audio {width: 100% !important;}

.jf_col.grid_1, .jf_col.grid_2, .jf_col.grid_3, .jf_col.grid_4, .jf_col.grid_5, .jf_col.grid_6, .jf_col.grid_7, .jf_col.grid_8, .jf_col.grid_9, .jf_col.grid_10, .jf_col.grid_11, .jf_col.grid_12 {
    display: inline;
    float: left;
    position: relative;
    margin-right: 2%;
}

.jf_col.grid_1 {
  width: 6.5%;
}
.jf_col.grid_2 {
  width: 15%;
}
.jf_col.grid_3 {
  width: 23.5%;
}
.jf_col.grid_4 {
  width: 32%;
}
.jf_col.grid_5 {
  width: 40.5%;
}
.jf_col.grid_6 {
  width: 49%;
}
.jf_col.grid_7 {
  width: 57.5%;
}
.jf_col.grid_8 {
  width: 66%;
}
.jf_col.grid_9 {
  width: 74.5%;
}
.jf_col.grid_10 {
  width: 83%;
}
.jf_col.grid_11 {
  width: 91.5%;
}
.jf_col.grid_12 {
  width: 100%;
}

.jf_col.last-column {
    margin-right: 0px;
}


@media only screen and (max-width: 979px) {
  .jf_col.grid_1,
  .jf_col.grid_2,
  .jf_col.grid_3,
  .jf_col.grid_4,
  .jf_col.grid_5,
  .jf_col.grid_6,
  .jf_col.grid_7,
  .jf_col.grid_8,
  .jf_col.grid_9,
  .jf_col.grid_10,
  .jf_col.grid_11,
  .jf_col.grid_12 {
    width: 100%;
    margin: 0;
  }
}
.article-info {
    width: 100%;
    display: inline-block;
}


.jf_fa > li, .jf_fa > li > .fa {
    list-style: none;
    margin-right: 10px;
}

/* Mise en page tableaux playlist */
@media only screen and (max-width: 640px) {
.item-page table td:nth-child(4),
.item-page table th:nth-child(4),
.item-page table td:nth-child(5),
.item-page table th:nth-child(5){display: none;}
}
