/* Styles pour les titres de catégorie */

/* Conteneur pour les titres de catégorie dans les pages produits */
.category-titles-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

/* Style du titre principal dans une bulle blanche */
.category-title {
    background-color: white;
    color: #37A069; /* Sera remplacé dynamiquement par la couleur de catégorie */
    font-size: 1.4rem;
    font-weight: bold;
    padding: 0.5rem 2rem;
    margin: 0;
    border-radius: 50px;
    display: inline-block;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Style de la sous-catégorie (niveau 2) */
.subcategory-name {
    color: white;
    font-size: 1rem;
    font-weight: normal;
    margin: 0;
    margin-left: auto; /* Pousse l'élément complètement à droite */
    margin-right: 0; /* Espace à droite */
    padding: 0.5rem 1.5rem;
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px; /* Plus arrondi comme dans l'image */
    display: inline-block;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    max-width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-style: italic; /* Comme dans l'image */
    margin-top: 0.5rem;
}
.category-title-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
    flex-wrap: nowrap;
}

/* Styles supplémentaires pour le wrapper de titre si nécessaire */
.category-title-wrapper {
    display: flex;
    align-items: center;
}

.chapter-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    padding: 20px 40px 20px 40px !important;
    color: inherit;
    line-height: 1.2;
}

.chapter-subtitle {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0;
    color: inherit;
    opacity: 0.8;
}
