/* ==========================================================================
   PROCHAINS SETS LEGO RETIRÉS ([pb_eol_top_list])
   ========================================================================== */

/* Set - Indice EOL */

.pb-eol-timeline { margin: 16px 30px 0 30px; }
.pb-eol-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.pb-eol-title { font-size: 0.80em; text-transform: uppercase; font-weight: 700; color: #888; }
.pb-eol-score { font-size: 1.3em; font-weight: 900; }
.pb-eol-rail { background: rgba(0,0,0,0.06); height: 6px; border-radius: 3px; position: relative; margin: 15px 0 18px 0; }
.pb-eol-bar { height: 100%; border-radius: 3px; transition: width 0.8s ease-out; }
.pb-eol-cursor { position: absolute; top: -6px; width: 18px; height: 18px; background: #fff; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.15); z-index: 2; border-width: 4px; border-style: solid; }
.pb-eol-footer { line-height: 1.3; text-align: center; }
.pb-eol-label { font-weight: 800; font-size: 1.1em; color: #242424; }
.pb-eol-desc { font-size: 0.85em; color: #666; font-style: italic; margin-top: 3px; }

    /* Par statut */
    .status-recent .pb-eol-score, .status-recent .pb-eol-cursor { color: #00AE4C; border-color: #00AE4C; }
    .status-recent .pb-eol-bar { background-color: #00AE4C; }
    
    .status-stable .pb-eol-score, .status-stable .pb-eol-cursor { color: #FECC02; border-color: #FECC02; }
    .status-stable .pb-eol-bar { background-color: #FECC02; }
    
    .status-end-cycle .pb-eol-score, .status-end-cycle .pb-eol-cursor { color: #f57c00; border-color: #f57c00; }
    .status-end-cycle .pb-eol-bar { background-color: #f57c00; }
    
    .status-last-chance .pb-eol-score, .status-last-chance .pb-eol-cursor { color: #DD1A21; border-color: #DD1A21; }
    .status-last-chance .pb-eol-bar { background-color: #DD1A21; }
    
    .status-retire .pb-eol-score, .status-retire .pb-eol-cursor { color: #88898a; border-color: #88898a; }
    .status-retire .pb-eol-bar { background-color: #88898a; }

    /* Par archive */
    .pb-clean-grid {
        display: grid;
        gap: 20px;
        margin: 40px 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        grid-template-columns: repeat(1, 1fr);
    }
    
    @media (min-width: 600px) { .pb-clean-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 1024px) { .pb-clean-grid { grid-template-columns: repeat(4, 1fr); } }
    @media (min-width: 1400px) { .pb-clean-grid { grid-template-columns: repeat(6, 1fr); } }
    
    .pb-clean-card {
        background: #ffffff;
        border: 1px solid #e0e0e0;
        border-radius: 12px;
        text-decoration: none !important;
        display: flex;
        flex-direction: column;
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        overflow: hidden;
        height: 100%;
        box-shadow: none !important;
    }
    
    .pb-clean-card:hover {
        transform: translateY(-8px);
        border-color: #bbb;
        box-shadow: none !important;
    }
    
    .pb-clean-img-box {
        height: 150px;
        padding: 15px;
        background: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
    }
    
    .pb-clean-img-box img {
        max-width: 100% !important;
        max-height: 100% !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
        transition: transform 0.5s ease;
        display: block;
        pointer-events: none;
    }
    
    .pb-clean-card:hover .pb-clean-img-box img { transform: scale(1.08); }
    
    .pb-clean-content { padding: 15px; border-top: 1px solid #f2f2f2; flex-grow: 1; display: flex; flex-direction: column; }
    .pb-clean-type { font-size: 9px; font-weight: 700; color: #999; text-transform: uppercase; margin-bottom: 4px; }
    
    .pb-clean-title { 
        font-size: 13px !important; font-weight: 700 !important; color: #1d1d1f !important; 
        line-height: 1.2 !important; margin: 0 0 10px 0 !important; padding: 0 !important; 
        height: 2.4em; min-height: 2.4em; overflow: hidden; display: block !important; border: none !important; 
    }
    
    /* Nettoyage des parasites */
    .pb-clean-title::before, .pb-clean-title::after { content: none !important; display: none !important; }
    
    .pb-clean-eol-info { display: flex; justify-content: space-between; font-size: 10px; font-weight: 800; margin-bottom: 5px; text-transform: uppercase; }
    .pb-clean-bar-bg { height: 4px; background: #eee; border-radius: 2px; overflow: hidden; margin-bottom: 12px;}
    .pb-clean-bar-fill { height: 100%; border-radius: 2px; }
    
    .pb-clean-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid #f2f2f2; display: flex; justify-content: space-between; align-items: center; color: #555; }
    .pb-clean-ref { font-size: 11px; font-weight: 600; color: #888; }
    .pb-clean-pieces { font-size: 11px; font-weight: 700; }
    
    /* Couleurs dynamiques selon le score */
    .status-last-chance .pb-clean-bar-fill, .status-last-chance .pb-clean-eol-info { color: #DD1A21; }
    .status-last-chance .pb-clean-bar-fill { background-color: #DD1A21; }
    .status-end-cycle .pb-clean-bar-fill, .status-end-cycle .pb-clean-eol-info { color: #f57c00; }
    .status-end-cycle .pb-clean-bar-fill { background-color: #f57c00; }
    .status-stable .pb-clean-bar-fill, .status-stable .pb-clean-eol-info { color: #FECC02; }
    .status-stable .pb-clean-bar-fill { background-color: #FECC02; }


/* Bouton Lire Plus */

.read-more-wrapper { margin: 15px 0; font-family: inherit; }

.read-more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    opacity: 0;
}

.read-more-content.ouvert {
    max-height: 2000px; /* Assez haut pour tout contenu */
    transition: max-height 0.5s ease-in-out;
    opacity: 1;
    margin-top: 15px;
}

.read-more-btn {
    display: inline-block;
    padding: 8px 22px;
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #eee;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.read-more-btn:hover { background-color: #eee; border-color: #bbb; }

/* ==========================================================================
   CALENDRIER DES PROCHAINES SORTIES LEGO ([pb_future_set_list])
   ========================================================================== */

/* Bannière discrète de maillage interne (sorties des 60 derniers jours) */
.pb-recent-releases-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	padding: 12px 16px;
	margin: 20px 0 24px 0;
	background-color: #f8fafc;
	border-left: 3px solid #009ba4;
	border-radius: 0 6px 6px 0;
	font-size: 14px;
	color: #334155;
}

.pb-recent-releases-banner a,
.pb-recent-releases-banner a:link,
.pb-recent-releases-banner a:visited {
	font-weight: 700;
	color: #009ba4 !important;
	text-decoration: none;
}

.pb-recent-releases-banner a:hover,
.pb-recent-releases-banner a:focus {
	text-decoration: underline;
}

/* Phrase d'introduction du menu des mois */
.pb-future-nav-label {
	margin: 15px 0 10px 0;
	font-size: 14px;
	color: #475569;
}

.pb-future-nav-label strong {
	color: #0f172a;
	font-weight: 700;
}

/* Barre de navigation rapide par mois (UX & Sitelinks SEO) */
.pb-future-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 30px 0;
}

.pb-future-nav-pill,
.pb-future-nav-pill:link,
.pb-future-nav-pill:visited {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 14px;
	background-color: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: #1e293b !important;
	text-decoration: none;
	text-transform: capitalize;
	transition: all 0.15s ease;
}

.pb-future-nav-pill:hover,
.pb-future-nav-pill:focus {
	background-color: #009ba4;
	border-color: #009ba4;
	color: #ffffff !important;
}

.pb-future-nav-pill span {
	font-size: 12px;
	opacity: 0.8;
}

/* Intertitres mensuels épurés (sans bordure) */
.pb-future-month-section {
	margin-bottom: 40px;
	scroll-margin-top: 90px;
}

.pb-future-month-heading {
	font-size: 22px;
	font-weight: 800;
	color: #111827;
	margin: 30px 0 18px 0;
	padding-bottom: 4px;
	text-transform: capitalize;
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.pb-future-month-section:first-of-type .pb-future-month-heading {
	margin-top: 10px;
}

.pb-future-month-count {
	font-size: 15px;
	font-weight: 600;
	color: #009ba4;
}

/* Carte 100 % cliquable via Stretched Link */
.pb-future-wrapper article.pb-clean-card.status-future {
	position: relative;
	display: flex;
	flex-direction: column;
}

.pb-future-wrapper article.pb-clean-card.status-future .pb-clean-content {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.pb-future-wrapper article.pb-clean-card.status-future .pb-clean-title {
	margin-bottom: 10px;
}

/* Lien principal étendu à toute la surface de la carte (sans changement de couleur au survol, comme EOL) */
.pb-future-wrapper a.pb-stretched-link,
.pb-future-wrapper a.pb-stretched-link:link,
.pb-future-wrapper a.pb-stretched-link:visited,
.pb-future-wrapper a.pb-stretched-link:hover,
.pb-future-wrapper a.pb-stretched-link:focus,
.pb-future-wrapper article.pb-clean-card.status-future:hover a.pb-stretched-link {
	text-decoration: none;
	color: inherit !important;
}

.pb-future-wrapper a.pb-stretched-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* Date de sortie : alignement vertical parfait et couleur officielle #009ba4 */
.pb-future-wrapper article.pb-clean-card.status-future .pb-clean-eol-info {
	margin-top: auto;
	padding-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	color: #009ba4;
}

.pb-future-wrapper article.pb-clean-card.status-future .pb-clean-eol-info span {
	color: #009ba4;
	line-height: 1.2;
}

.pb-future-wrapper article.pb-clean-card.status-future .pb-clean-eol-info::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: #009ba4;
	flex-shrink: 0;
}

/* Pied de carte sous la bordure : lien isolé vers la fiche set (neutre au repos, #009ba4 au survol) */
.pb-future-wrapper article.pb-clean-card.status-future .pb-clean-footer {
	padding-top: 9px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.pb-future-wrapper a.pb-card-fiche-link,
.pb-future-wrapper a.pb-card-fiche-link:link,
.pb-future-wrapper a.pb-card-fiche-link:visited {
	position: relative;
	z-index: 2;
	display: inline-block;
	padding: 6px 0 4px 12px;
	margin: -6px 0 -4px 0;
	font-size: 12px;
	font-weight: 600;
	color: #64748b !important;
	text-decoration: none;
	transition: color 0.15s ease;
}

.pb-future-wrapper a.pb-card-fiche-link:hover,
.pb-future-wrapper a.pb-card-fiche-link:focus,
.pb-future-wrapper a.pb-card-fiche-link:active {
	color: #009ba4 !important;
	text-decoration: underline;
}