/* Novamore – fiches autrices & livres */
.nm {
	--nm-ink: #170c4e;
	--nm-text: #28264f;
	--nm-pink: #e02ca4;
	--nm-soft: #f6f4fb;
	--nm-line: #e4e0f0;
	color: var(--nm-text);
	font-family: owners, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}
.nm-page { padding: 56px 0 80px; }
.nm-container { max-width: 1080px; }
.nm-page .container:before, .nm-page .container:after { display: none !important; }
.nm h1, .nm h2, .nm h3 { font-family: owners-wide, "Helvetica Neue", Arial, sans-serif; color: var(--nm-ink); font-style: normal; padding: 0; }
.nm a { color: var(--nm-ink); }
.nm-label { margin: 16px 0 6px !important; padding: 0 !important; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--nm-pink); }

/* Bandeau autrice */
.nm-author {
	display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center;
	background: var(--nm-soft); border: 1px solid var(--nm-line); border-radius: 28px; padding: 40px 48px;
}
.nm-author__photo, .nm-authors__photo {
	width: 200px; height: 200px; border-radius: 50%; overflow: hidden; background: #fff;
	border: 4px solid #fff; box-shadow: 0 0 0 2px var(--nm-pink);
	display: flex; align-items: center; justify-content: center;
}
.nm-author__photo img, .nm-authors__photo img { width: 100%; height: 100%; object-fit: cover; }
.nm-author__initial { font-family: owners-wide, Arial, sans-serif; font-size: 64px; color: var(--nm-pink); }
.nm-author__name { font-size: 36px !important; line-height: 1.15 !important; margin: 0 0 4px !important; }
.nm-author__role { color: var(--nm-pink); font-weight: 700; margin: 0 0 16px; padding: 0; }
.nm-author__bio p { padding: 0 0 .8em; }
.nm-author__social { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.nm-author__social span { font-weight: 700; color: var(--nm-ink); }
.nm-author__social ul { display: flex; gap: 10px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.nm-author__social li { padding: 0 !important; }
.nm-author__social a {
	display: flex; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--nm-line); color: var(--nm-ink); transition: background .2s, color .2s, border-color .2s;
}
.nm-author__social a:hover, .nm-author__social a:focus-visible { background: var(--nm-pink); border-color: var(--nm-pink); color: #fff; }
.nm-author__social svg { width: 20px; height: 20px; }

/* Bibliographie */
.nm-biblio { margin-top: 64px; }
.nm-section-title { font-size: 28px !important; margin: 0 0 24px !important; padding-bottom: 12px !important; border-bottom: 2px solid var(--nm-pink); display: inline-block; }
.nm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.nm-book {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nm-line); border-radius: 22px; padding: 26px;
	box-shadow: 0 6px 24px rgba(23, 12, 78, .06);
}
.nm-book__top { display: grid; grid-template-columns: 145px 1fr; gap: 20px; }
.nm-book__cover img, .nm-book__nocover { display: block; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 16px rgba(23, 12, 78, .18); }
.nm-book__nocover { background: var(--nm-soft); }
.nm-book__title { font-size: 21px !important; line-height: 1.25 !important; margin: 0 0 6px !important; }
.nm-book__title a { text-decoration: none; }
.nm-book__title a:hover { color: var(--nm-pink); }
.nm-book__genre, .nm-single__authors { margin: 0; padding: 0 !important; font-style: italic; }
.nm-book__resume { padding: 0 !important; font-size: 16px; }
.nm-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none !important; margin: 0 !important; padding: 0 !important; }
.nm-tags li { padding: 3px 10px !important; border-radius: 999px; background: var(--nm-soft); border: 1px solid var(--nm-line); font-size: 16px; line-height: 1.4; }
.nm-buttons { display: flex; gap: 12px; margin-top: auto; padding-top: 20px; flex-wrap: wrap; }
.nm-btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 120px; padding: 10px 22px;
	border-radius: 999px; font-weight: 700; text-decoration: none !important; border: 2px solid var(--nm-pink); transition: background .2s, color .2s;
}
.nm-btn--primary { background: var(--nm-pink); color: #fff !important; }
.nm-btn--primary:hover { background: var(--nm-ink); border-color: var(--nm-ink); }
.nm-btn--ghost { color: var(--nm-pink) !important; background: #fff; }
.nm-btn--ghost:hover { background: var(--nm-pink); color: #fff !important; }
.nm-empty { padding: 24px; background: var(--nm-soft); border-radius: 16px; }

/* Page livre */
.nm-single { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.nm-single__cover img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 16px 40px rgba(23, 12, 78, .22); }
.nm-single__title { font-size: 40px !important; line-height: 1.12 !important; margin: 0 0 6px !important; }
.nm-single__authors { font-size: 18px; }
.nm-single__authors a { color: var(--nm-pink); }
.nm-single__facts { display: flex; gap: 32px; margin: 20px 0 0; }
.nm-single__facts dt { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--nm-pink); }
.nm-single__facts dd { margin: 0; }
.nm-single__resume p { padding: 0 0 1em; }
.nm-single .nm-buttons { margin-top: 12px; }

/* Grille des auteurices */
.nm-back { margin: 0 0 18px !important; padding: 0 !important; }
.nm-back a { color: var(--nm-pink); font-weight: 700; text-decoration: none; }
.nm-back a:hover { text-decoration: underline; }
.nm-authors { margin: 8px 0 40px; }
.nm-authors__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; list-style: none !important; padding: 0 !important; margin: 0 !important; }
.nm-authors__grid li { padding: 0 !important; }
.nm-acard a {
	height: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; text-decoration: none;
	background: #fff; border: 1px solid var(--nm-line); border-radius: 22px; padding: 30px 24px 26px;
	box-shadow: 0 6px 24px rgba(23, 12, 78, .06); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.nm-acard a:hover, .nm-acard a:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23, 12, 78, .12); border-color: var(--nm-pink); }
.nm-authors__photo { width: 140px; height: 140px; margin-bottom: 12px; }
.nm-authors__photo .nm-author__initial { font-size: 48px; }
.nm-authors__name { font-family: owners-wide, "Helvetica Neue", Arial, sans-serif; color: var(--nm-ink); font-size: 20px; font-weight: 700; line-height: 1.25; }
.nm-authors__role { color: var(--nm-pink); font-size: 16px; font-weight: 700; }
.nm-authors__bio { color: var(--nm-text); font-size: 16px; line-height: 1.55; margin-top: 8px; }
.nm-authors__more { margin-top: auto; padding-top: 14px; color: var(--nm-pink); font-weight: 700; font-size: 16px; }

/* Nos livres : filtres */
.nm-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 22px 24px; margin: 8px 0 14px; background: var(--nm-soft); border: 1px solid var(--nm-line); border-radius: 20px; }
.nm-filter { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; margin: 0; }
.nm-filter span { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--nm-pink); }
.nm-filter select { appearance: none; -webkit-appearance: none; width: 100%; padding: 11px 40px 11px 14px; border: 1px solid var(--nm-line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23170c4e' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--nm-ink); font: inherit; font-size: 16px; cursor: pointer; }
.nm-filter select:focus-visible { outline: 2px solid var(--nm-pink); outline-offset: 2px; }
.nm-filters__reset { padding: 11px 18px; border-radius: 999px; border: 2px solid var(--nm-pink); background: #fff; color: var(--nm-pink); font: inherit; font-weight: 700; cursor: pointer; }
.nm-filters__reset:hover { background: var(--nm-pink); color: #fff; }
.nm-filters__reset[hidden] { display: none; }
.nm-filters__count { margin: 0 0 18px !important; padding: 0 !important; font-weight: 700; color: var(--nm-ink); }
.nm-book[hidden] { display: none !important; }
.nm-book__authors { margin: 0 0 2px !important; padding: 0 !important; color: var(--nm-pink); font-weight: 700; font-size: 16px; }

/* Nos actualités */
.nm-page__title { font-size: 40px !important; line-height: 1.15 !important; margin: 0 0 32px !important; padding: 0 !important; }
.nm-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.nm-news { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--nm-line); border-radius: 22px; overflow: hidden; box-shadow: 0 6px 24px rgba(23, 12, 78, .06); transition: transform .2s, box-shadow .2s; }
.nm-news:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23, 12, 78, .12); }
.nm-news__img { display: block; aspect-ratio: 4 / 3; background: var(--nm-soft); overflow: hidden; }
.nm-news__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.nm-news:hover .nm-news__img img { transform: scale(1.03); }
.nm-news__noimg { display: block; width: 100%; height: 100%; }
.nm-news__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.nm-news__date { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--nm-pink); }
.nm-news__title { font-size: 20px !important; line-height: 1.3 !important; margin: 0 !important; padding: 0 !important; }
.nm-news__title a { text-decoration: none; }
.nm-news__title a:hover { color: var(--nm-pink); }
.nm-news__excerpt { margin: 0 !important; padding: 0 !important; font-size: 16px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.nm-news__more { margin-top: auto; padding-top: 10px; color: var(--nm-pink) !important; font-weight: 700; text-decoration: none; }
.nm-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.nm-pagination .page-numbers { min-width: 42px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--nm-line); background: #fff; color: var(--nm-ink); text-align: center; text-decoration: none; font-weight: 700; }
.nm-pagination .page-numbers.current, .nm-pagination a.page-numbers:hover { background: var(--nm-pink); border-color: var(--nm-pink); color: #fff; }
.nm-pagination .dots { border: 0; background: none; }

@media (max-width: 900px) {
	.nm-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nm-authors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nm-grid { grid-template-columns: 1fr; }
	.nm-single { grid-template-columns: 1fr; gap: 32px; }
	.nm-single__cover { max-width: 300px; }
}
@media (max-width: 640px) {
	.nm-news-grid { grid-template-columns: 1fr; }
	.nm-page__title { font-size: 30px !important; }
	.nm-authors__grid { grid-template-columns: 1fr; }
	.nm-page { padding: 32px 0 56px; }
	.nm-author { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 20px; gap: 20px; }
	.nm-author__photo { width: 150px; height: 150px; }
	.nm-author__social { justify-content: center; }
	.nm-author__name { font-size: 28px !important; }
	.nm-book { padding: 20px; }
	/* Cartes livres : tropes sous la couverture, sur toute la largeur */
	.nm-book__top { grid-template-columns: 96px 1fr; column-gap: 16px; row-gap: 0; align-items: start; }
	.nm-book__meta { display: contents; }
	.nm-book__cover { grid-row: span 3; }
	.nm-book__meta .nm-label,
	.nm-book__meta .nm-tags { grid-column: 1 / -1; }
	.nm-book__meta .nm-label { margin-top: 18px !important; }
	.nm-book__cover img, .nm-book__nocover { width: 96px; }
	.nm-single__title { font-size: 30px !important; }
}