/* Styles généraux */
body {
    font-size: 14px; /* Taille de police par défaut */
    line-height: 1.42857143; /* Hauteur de ligne */
    color: #333333; /* Couleur du texte */
    background: #f0f0f0; /* Couleur de fond */
    overflow-x: hidden; /* Empêche le scroll horizontal */
}

/* Style de la bannière */
#banier {
    width: 100%; /* Largeur totale */
    height: auto; /* Hauteur automatique selon le contenu */
}

/* col sm 8 styles*/

.col-sm-8 {
    text-align: center; /* specifie the horizontal alignement of text */
}

/* Images génériques */
#imgman {
    width: auto; /* Largeur automatique */
    height: 70px; /* Hauteur fixe */
}
#imgTh {
    display: block;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    max-height: 400px;
    width: 100%;
    object-fit: contain;
    padding: 20px 0px 10px;
}

@media (max-width: 768px) {
    #imgTh {
        max-height: 400px;
    }
}


.box {
    background: #ffffff;
    margin: 0 0 30px;
    border: solid 10px transparent;
    border-image: url(border1.png) 50 round;
    box-sizing: border-box;
    padding: 30px;
    box-shadow: 0px 5px 5px rgb(0, 0, 0, 0.8);
    color: #4fbfa8;
}
.col-sm-8 a .box h2 {
    position: relative;
    margin: 20 0 20px;
    font-weight: 300;
    z-index: 2;
    text-decoration: none;
}
.col-sm-8 .box p {
    position: relative;
    z-index: 2;
    color: #555555;
    font-size: 28px;
    text-decoration: none;
}

.product .text h3 a {
    color: rgb(85, 85, 85);
    position: relative;
    padding-left: 20px;
    padding-right: 20px;
}

/* nouveau pro mourajaa */
.col-sm-6:hover {
    text-decoration: none;
}
.col-sm-6:hover h2,
.col-sm-6:hover p {
    text-decoration: none;
}
.box {
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.col-sm-6:hover .box {
    background-color: #fbf2f0;
    transform: translateY(-5px);
}
a {
    text-decoration: none !important;
}
a:hover {
    text-decoration: none !important;
}

#bot .btn {
    font-size: 18px;
    border-radius: 8px;
    padding: 10px 20px;
    margin: 5px;
    transition: all 0.3s ease;
}

#bot .btn:hover { /*Rendre les boutons plus modernes*/
    transform: scale(1.05);
    opacity: 0.9;
}

.product:hover { /*Améliorer l'effet "hover" des .product*/
    background-color: #f5f5f5; /* Un gris doux */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Un effet de profondeur */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
#nouveau { /*Améliorer le lien "عرض المزيد أحدث الاضافات"*/
    font-size: 22px;
    padding: 14px;
    background-color: #2e983b;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#nouveau:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.product .text h3 { /*Ajoute ce CSS pour fixer une hauteur minimale au bloc titre*/
    min-height: 60px; /* ou ajuste selon ton besoin */
    overflow: hidden;
}
.col-sm-6  {
    margin: 0 0 30px;
}
/*
.row { /*Ajoute ce style CSS pour que la grille s’aligne proprement :
    display: flex;
    flex-wrap: wrap;
}

.col-sm-6.col-md-4 {
    display: flex;
    flex-direction: column;
}

.product {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
*/

@media(max-width:991px){
    
    .col-sm-12{
        padding: 0px;
    }
}
/* footer style */

#footer {
    background: #e0e0e0;
    padding: 20px 0;
}
#footer a {
    color: #999999;
    padding: 0;
    text-decoration: none;
}

#footer ul {
    list-style: none;
    padding-left: 0px;
}
#list {
    border: 10px solid transparent;

    border-image: url(border1.png) 30 stretch;
}
  /* Footer */
        footer {
            background: #333;
            color: white;
            text-align: center;
            padding: 2rem 0;
        }
/* copyright style */
#copyright {
    background: #333333;
    color: #cccccc;
    padding: 20px 0px;
    font-size: 12px;
}
#copyright p {
    margin: 0px;
}

/* sidebar style */

.col-sm-2.sidenav .panel.sidebar-menu {
    box-sizing: border-box;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.5);
}
.col-sm-2.sidenav .panel.sidebar-menu ul.nav.category-menu {
    margin-bottom: 20px;
}
.col-sm-2.sidenav .panel.sidebar-menu ul.nav.category-menu li a {
    font-size: 26px;
}

.col-sm-2.sidenav .panel.sidebar-menu h3 {
    padding: 5px 0px;
    margin: 0px;
}


/* Fil d’Ariane */
.breadcrumb {
    padding: 8px 15px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 5px;
    box-shadow: 0px 1px 5px rgba(0,0,0,.5);
    text-align: right;
}

.breadcrumb > li + li:before {
    content: "<\00a0"; /* Séparateur personnalisé */
    color: #cccccc;
}

/* Adaptation mobile du fil d’Ariane */
@media(max-width:991px){
    .breadcrumb {
        padding: 8px 0px;
        text-align: center;
    }
}

/* Tags */
#targ {
    float: center;
}

#targ a {
    width: auto;
    margin-left: 40px;
    margin-bottom: 10px;
}

#titleTag a {
    font-size: 30px;
    text-decoration: none;
}

.panel-heading #titleTag a:hover {
    text-decoration: none;
}
/* Accordion / Collapse */
.panel-heading .panel-title a {
    color: darkgreen;
    font-size: 24px;
    text-decoration: none;
}

panel-heading .panel-title a:hover {
    color: crimson;
}

/* Abonnement - Formulaire */
#formsub {
    border: 4px solid #f1f1f1;
}

#container {
    padding: 20px;
    background-color: #f1f1f1;
}

/* Entrées et bouton abonnement */
input[type=text], #boutonsubsc {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

/* Centrer le texte */
input[type=text] {
    text-align: center;
}

#boutonsubsc {
    background-color: #04AA6D;
    color: white;
    border: none;
}

#boutonsubsc:hover {
    opacity: 0.8;
}

#lect{
    background: #ffffff;
    border: solid 10px #e6e6e6;
    margin-bottom: 30px;
    box-sizing: border-box;
  padding: 20px;
  border-image: url(border.png) 30 stretch;
    margin-left: 80px;
}
@media(max-width:991px){
    #lect{
        margin-left: 0px;
        padding: 5px;
        
    }
}

.col-sm-12 #accordionL .panel-body .col-sm-4.col-sm-6{
    padding-right: 5px;
    padding-left: 5px;
}
.col-sm-12 #accordionL .panel-body{
    padding-right: 2px;
    padding-left: 2px;
}
/*
 * If the padding property has four values:

padding: 25px 50px 75px 100px;
top padding is 25px
right padding is 50px
bottom padding is 75px
left padding is 100px

If the padding property has three values:

padding: 25px 50px 75px;
top padding is 25px
right and left paddings are 50px
bottom padding is 75px

If the padding property has two values:

padding: 25px 50px;
top and bottom paddings are 25px
right and left paddings are 50px

If the padding property has one value:

padding: 25px;
all four paddings are 25px

*/