
.mask-left-right {
	mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
#sections-sub-nav{
    display: inline-flex;
    max-width: 100%;
}
.subnav-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.5em 0;
    scrollbar-width: none;
	margin: 0px 50px;
}
.subnav-wrapper::-webkit-scrollbar { display: none; }

.subnav {
    display: inline-flex;
    gap: 0.2em;
    font-size: 17pt;
    line-height: 32px;
}

.subnav-btn {
	position: absolute;
	background-color: transparent;
	border: none;
	font-size: 2rem;
	cursor: pointer;

	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;

	color: #f9d66c;
	border-radius: 6px;
	margin: auto 0px;
    padding: 0.2em 0.5em;

}
.subnav-btn:hover {
  background-color: rgba(224, 109, 41, 0.3);
  -webkit-mask-image: radial-gradient(black, transparent, transparent);
  mask-image: radial-gradient(black, transparent, transparent);
  color: #ffffcc;

}

.subnav-btn.left { left: 0; 

}
.subnav-btn.right { right: 0;
}



.category-container {
    margin: 0em auto;
    max-width: 48em;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

/* container section */
.biblio-section-title {
    font-size: 1.35rem;
    width: 100%;
    border-bottom: 1px groove rgba(245, 166, 35, 0.5);

    margin: 0;
    padding: 0rem 3rem;
    text-shadow: 0px 0px 10px rgba(230, 111, 32, 0.4);
    color: rgba(248, 186, 87, 1.0);
    font-family: 'bignoodle', Arial, sans-serif;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.biblio-section-title a{
    position: relative;
    top: -60px;
}


/* wrapper scrollable */
.biblio-container {
    position: relative;
    margin-bottom: 15px;
    
}

.biblio-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 48px; /* espace pour les boutons */
}
.biblio-wrapper p{
    letter-spacing: 0px;
    font-family: Arial, sans-serif;
}
.biblio-wrapper::-webkit-scrollbar { display: none; }

/* ligne de cartes */
.biblio-row {
    display: flex;
    gap: 5px;
    align-items: stretch;
    height: 170px;
}

/* carte */
.biblio-card:hover {
    transform: scale(1.05);
}
.biblio-card-img img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.biblio-card-content {
    padding: 12px;
    text-align: left;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    word-wrap: break-word;
    height: 180px;
}
.biblio-card-content h4 { 
	margin: 0 0 4px; 
	font-size: 1.1rem;
	color: rgba(63, 27, 13, 1.0);
    white-space: nowrap;
}
.biblio-card-content .desc {
    margin: 0 0 8px; 
    font-size: 0.8rem; 
    color: #7b594d;
    height: 24px;
    background: linear-gradient(-45deg, rgba(245, 166, 35, 0.3), rgba(255, 255, 204, 0.2));
    border-radius: 5%;
    padding: 2px;
}
.biblio-card-content .desc {
    flex: 1 1 auto;
    overflow-y: auto;
    scrollbar-width: none;
}
.biblio-card-content .desc::-webkit-scrollbar {
    display: none;
}

.biblio-card-content .author {
    margin: 4px;
    font-size: 0.85rem;
    color: #777;
    text-align: right;
}

.biblio-download-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #e06d29;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    align-self: flex-start;
}
.biblio-download-btn:hover { 
	background: #c85f22;
	 }

/* ===========================
   CARD BASE
   =========================== */

.biblio-card {
    flex: 0 0 280px;
    background: linear-gradient(-25deg, rgba(245, 166, 35, 0.9), rgba(255, 255, 204, 0.9));
 
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease;
}
.biblio-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #000;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform .25s ease, box-shadow .25s ease;
}

.biblio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

/* ===========================
   BACKGROUND IMAGE
   =========================== */
.card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.55);
    transition: filter .25s ease;
}

.biblio-card:hover .card-bg {
    filter: brightness(0.75);
}

/* ===========================
   LABEL (TOP LEFT)
   =========================== */
.card-label {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(224,109,41,0.8);
    padding: 4px 8px;
    border-radius: 0px;
    font-size: 0.95rem;
    color: #fff;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===========================
   DESCRIPTION (CENTER)
   =========================== */
.card-desc {
    position: absolute;
    top: 60px;
    left: 10px;
    right: 10px;
    bottom: 50px;
    font-size: 0.8rem;
    color: #fff;
    overflow-y: auto;
    scrollbar-width: none;
}

.card-desc::-webkit-scrollbar {
    display: none;
}

/* ===========================
   FOOTER (PRICE + AUTHOR)
   =========================== */
.card-footer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 0.85rem;
    color: #fff;
}

.card-footer .price {
    background: rgba(0,0,0,0.4);
    padding: 3px 6px;
    border-radius: 4px;
    font-weight: bold;
}

.card-footer .author {
    opacity: 0.9;
    font-weight: italic;
}











/* boutons scroll */
.biblio-scroll-btn {
	top: 0;
	height: 100%;
	position: absolute;
	background-color: transparent;
	border: none;
	font-size: 2rem;
	cursor: pointer;

	z-index: 20;
	display: flex;
	align-items: center;
	justify-content: center;

	color: #f9d66c;
	border-radius: 6px;
	margin: auto 0px;
    padding: 0.2em 0.5em;
}
.biblio-scroll-btn.left:hover { 
    color: #ffffcc; 
    transform: translateX(-4px) scale(1.2);
}
.biblio-scroll-btn.left {
    transition: transform 0.1s ease;
    left: 0;
    -webkit-mask-image: linear-gradient(90deg, gray, transparent);
    mask-image: linear-gradient(90deg, gray, transparent);
}
.biblio-scroll-btn.right:hover { 
    color: #ffffcc; 
    transform: translateX(4px) scale(1.2);
}
.biblio-scroll-btn.right {
    transition: transform 0.1s ease;
    right: -30px;
    -webkit-mask-image: linear-gradient(270deg, gray, transparent);
    mask-image: linear-gradient(270deg, gray, transparent);
}


#sections-root {
    width: 100%;
    display:flex;
    gap:8px;
    justify-content:center;
    align-items:center;
    margin:18px 0;
    flex-wrap:wrap;
}
.section-block {
    width: 95%;
}
.sections-pagination {
    width: 100%;
    display:flex;
    gap:8px;
    justify-content:center;
    align-items:center;
    margin:18px 0;
    flex-wrap:wrap;
}
.sections-pagination .page-btn {
    padding:8px 12px;
    background:#fff;
    border-radius:6px;
    border:1px solid rgba(0,0,0,0.06);
    cursor:pointer;
    color:#333;
    text-decoration:none;
}
.sections-pagination .page-btn.current {
    background:#e06d29;
    color:#fff;
    pointer-events:none;
    font-weight:600;
}
.sections-pagination .page-btn:disabled { opacity:0.6; cursor:not-allowed; }


#sections-search-wrap {
    height: 62px;
	margin:12px 0; 
	text-align:center;
	width: 80%;
}
#sections-search { 
	box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
	width: 70%;
	padding:10px 12px;
	border-radius:8px;
	border:1px solid #ddd;}
#sections-clear { 
	background:#f5f5f5;
	margin-left:8px;
	padding:10px 12px;
	border-radius:8px;
	border:none;
	background:#eee;
	cursor:pointer;
}
#sections-search:focus { 
	outline: none;
	border-color: #e06d29;
	box-shadow: 0 6px 18px rgba(224,109,41,0.12);
}
#sections-search-count { 
	text-align:center;
	margin-top:6px;
	color:#666;
	font-size:0.95rem;
}


 

