/* ==========================================================================
   BLOG SIDEBAR - SOFT POP
   ========================================================================== */

/* Zoom doux sur l'image au survol de l'article */
.blog-sidebar-post:hover .transition-scale {
    transform: scale(1.05);
}
.transition-scale {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Changement de couleur du titre au survol */
.blog-sidebar-post:hover .transition-color {
    color: var(--primary-color) !important;
}
.transition-color {
    transition: color 0.2s ease-in-out;
}

/* On s'assure que les badges "bg-soft-primary" héritent bien de notre thème */
.bg-soft-primary {
    background-color: rgba(106, 17, 203, 0.08) !important;
}

/* ==========================================================================
   BLOG SIDEBAR CATEGORIES - SOFT POP
   ========================================================================== */

/* Retire les marges inutiles générées par le module */
.soft-pop-category-list li {
    margin-bottom: 5px;
    list-style: none !important;
}

/* Transforme les vieux liens texte en "pilules" cliquables */
.soft-pop-category-list li a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
    background-color: transparent;
}

/* Petite puce ou icône devant chaque catégorie */
.soft-pop-category-list li a::before {
    content: '\f105'; /* Petit chevron FontAwesome (>) */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    font-size: 0.9em;
    color: #ccc;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Effet au survol (Soft Hover) */
.soft-pop-category-list li a:hover,
.soft-pop-category-list li.active > a {
    background-color: rgba(106, 17, 203, 0.05); /* Ton violet en transparent */
    color: var(--primary-color);
}

.soft-pop-category-list li a:hover::before,
.soft-pop-category-list li.active > a::before {
    color: var(--primary-color);
    transform: translateX(3px); /* Le chevron avance un peu */
}

/* Gestion des sous-catégories (indentation propre) */
.soft-pop-category-list ul {
    padding-left: 20px !important;
    margin-top: 5px;
    border-left: 2px solid rgba(0,0,0,0.03);
    margin-left: 15px;
}
.soft-pop-category-list ul li a {
    font-size: 0.9rem;
    padding: 8px 15px;
}

/* ==========================================================================
   BLOG SIDEBAR SEARCH - SOFT POP
   ========================================================================== */

/* Création de la forme "Pilule" unifiée */
.soft-pop-search-group {
    border-radius: 50px;
    overflow: hidden; /* Empêche les éléments enfants de déborder de l'arrondi */
    border: 1px solid rgba(0,0,0,0.05);
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Le champ de saisie */
.soft-pop-search-group .form-control {
    height: 50px;
    background: transparent !important;
    box-shadow: none !important; /* On enlève le halo bleu Bootstrap classique */
    font-size: 0.95rem;
    color: #555;
}

/* Effet au focus (clic dans le champ) : on anime tout le groupe */
.soft-pop-search-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.1) !important;
    transform: translateY(-2px);
}

/* Le bouton d'envoi */
.soft-pop-search-group .btn {
    border-radius: 0; /* Les coins sont gérés par le parent (overflow: hidden) */
    background: var(--gradient-main) !important;
    color: white;
    transition: all 0.3s ease;
}

.soft-pop-search-group .btn:hover {
    background: var(--gradient-main) !important;
    opacity: 0.9;
}

/* ==========================================================================
   BLOG SIDEBAR ARCHIVES - SOFT POP
   ========================================================================== */

/* Retire la marge basse du dernier élément pour éviter les espaces vides */
.soft-pop-archive-list .last-child-mb-0:last-child {
    margin-bottom: 0 !important;
}

/* --- L'Année --- */
.soft-pop-archive-list .year-link {
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
}

.soft-pop-archive-list .year-link:hover {
    color: var(--primary-color) !important;
    transform: translateX(4px); /* Petit décalage ludique vers la droite */
}

.soft-pop-archive-list .year-link:hover i {
    color: var(--primary-color) !important;
    opacity: 1 !important;
}

/* --- Les Mois (Sous-liste) --- */
.soft-pop-archive-list .month-list {
    border-color: rgba(106, 17, 203, 0.1) !important; /* Ligne verticale violette très claire */
}

.soft-pop-archive-list .month-link {
    transition: all 0.2s ease;
    position: relative;
    display: inline-block;
}

/* Petit tiret qui apparaît au survol d'un mois */
.soft-pop-archive-list .month-link::before {
    content: '-';
    position: absolute;
    left: -12px;
    color: var(--primary-color);
    opacity: 0;
    transition: all 0.2s ease;
}

.soft-pop-archive-list .month-link:hover {
    color: var(--primary-color) !important;
    transform: translateX(6px);
}

.soft-pop-archive-list .month-link:hover::before {
    opacity: 1;
}

/* ==========================================================================
   BLOG LISTING - SOFT POP
   ========================================================================== */

/* Cartes des articles */
.soft-pop-post-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.soft-pop-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

/* Bouton dans la carte */
.transition-hover-btn {
    transition: all 0.2s ease;
}
.soft-pop-post-card:hover .transition-hover-btn {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Troncature CSS Propre (Ajoute des "..." à la fin de X lignes) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Rendre la pagination native du module plus jolie */
.soft-pop-pagination .pagination {
    gap: 5px;
}
.soft-pop-pagination .pagination li a,
.soft-pop-pagination .pagination li span {
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: #555;
    font-weight: 500;
}
.soft-pop-pagination .pagination li.active span {
    background: var(--gradient-main) !important;
    color: white !important;
}

/* ==========================================================================
   BLOG CATEGORIES GRID - SOFT POP
   ========================================================================== */

/* Carte principale de catégorie */
.soft-pop-category-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.soft-pop-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}

/* Zoom délicat de l'image au survol de la carte */
.soft-pop-category-card:hover .transition-scale {
    transform: scale(1.05);
}

/* Changement de couleur du titre au survol */
.soft-pop-category-card:hover .transition-color {
    color: var(--primary-color) !important;
}

/* Badges des sous-catégories */
.soft-pop-subcat-badge {
    font-weight: 500;
    transition: all 0.2s ease;
}

.soft-pop-subcat-badge:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   BLOG SINGLE POST - SOFT POP
   ========================================================================== */

/* La zone de lecture centrale */
.blog_description p {
    font-size: 1.15rem; /* Un peu plus grand pour faciliter la lecture */
    line-height: 1.8;
    color: #444;
    margin-bottom: 1.5rem;
}

.blog_description h2,
.blog_description h3 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.blog_description img {
    border-radius: 20px;
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.blog_description blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem 2rem;
    background: rgba(106, 17, 203, 0.03);
    border-radius: 0 15px 15px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: #555;
    margin: 2rem 0;
}

/* Le système d'étoile natif du module forcé en Soft Pop */
.blog_rating_box .star {
    display: inline-block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #ccc; /* Étoile vide */
}

.blog_rating_box .star_on i {
    color: #ffc107; /* Étoile jaune Bootstrap pleine */
}