/* Hintel Bibliothèque — interface publique */
.hnb {
	--shelf: #c9a56a;
	--shelf-d: #a8823f;
	--card-w: 176px;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	color: var(--navy);
	font-family: var(--font);
}
.hnb *, .hnb *::before, .hnb *::after { box-sizing: border-box; }
.hnb ul, .hnb ol { list-style: none; margin: 0; padding: 0; }
.hnb a { color: inherit; }
.hnb :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
.hnb-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.hnb .hnb-ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.18em; }
.hnb-page .site-footer { margin-top: 0; }

/* ───── Boutons ───── */
.hnb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	padding: .85em 1.35em; border-radius: 999px; border: 2px solid transparent;
	font: 600 .98rem/1.1 var(--font); text-decoration: none !important; cursor: pointer;
	transition: transform .18s, box-shadow .18s, background .18s, color .18s; white-space: nowrap;
}
.hnb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgb(0 28 59 / 18%); }
.hnb-btn--navy { background: var(--navy); color: #fff !important; }
.hnb-btn--navy:hover { background: var(--navy-2); }
.hnb-btn--sun { background: var(--sun); color: var(--navy) !important; }
.hnb-btn--sun:hover { background: #ffc43a; }
.hnb-btn--ghost { background: transparent; color: var(--navy) !important; border-color: var(--line); }
.hnb-btn--outline { background: transparent; color: #fff !important; border-color: rgb(255 255 255 / 45%); }
.hnb-btn--outline:hover { background: rgb(255 255 255 / 12%); }
.hnb-btn--block { display: flex; width: 100%; }
.hnb-btn--sm { padding: .6em 1.1em; font-size: .88rem; }
.hnb-btn small { display: block; font: 500 .72rem/1 var(--font); opacity: .75; margin-left: .3em; }

/* ───── En-tête de page ───── */
.hnb-head {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(900px 420px at 85% -10%, rgb(42 111 219 / 55%), transparent 60%), linear-gradient(160deg, #001c3b 0%, #0a2d57 100%);
	padding: clamp(36px, 6vw, 72px) 0 clamp(96px, 12vw, 150px);
	isolation: isolate;
}
.hnb-head--leaf { background: radial-gradient(900px 420px at 85% -10%, rgb(30 158 120 / 55%), transparent 60%), linear-gradient(160deg, #06302a 0%, #0b4a3f 100%); }
.hnb-head--brick { background: radial-gradient(900px 420px at 85% -10%, rgb(179 57 38 / 60%), transparent 60%), linear-gradient(160deg, #1c0d03 0%, #3b1a05 100%); }
.hnb-head__glow {
	position: absolute; inset: 0; z-index: -1; opacity: .5;
	background: radial-gradient(circle at 12% 30%, rgb(242 179 27 / 22%), transparent 32%);
}
.hnb-head__in { position: relative; z-index: 2; }
.hnb-head h1 { margin: 0 0 .35em; font: 600 clamp(2.3rem, 5.8vw, 4.4rem)/1.04 var(--serif); letter-spacing: -0.025em; max-width: 22ch; text-wrap: balance; }
.hnb-head__lead { margin: 0; max-width: 58ch; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgb(255 255 255 / 82%); line-height: 1.55; }
.hnb-head .crumbs { color: rgb(255 255 255 / 85%); }
.hnb-head .crumbs a { color: #fff; }
.hnb-head__search { margin-top: 28px; max-width: 760px; }
.hnb-head__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hnb-head__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hnb-head.is-center { text-align: center; padding-top: clamp(48px, 8vw, 96px); }
.hnb-head.is-center h1 { margin-inline: auto; max-width: 17ch; }
.hnb-head.is-center .hnb-head__lead { margin-inline: auto; }
.hnb-head.is-center .hnb-head__search { margin-inline: auto; }
.hnb-head.is-center .hnb-head__chips { justify-content: center; }

.hnb-pillink {
	display: inline-flex; align-items: center; gap: .5em; padding: .5em 1em; border-radius: 999px;
	background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 22%); color: #fff !important;
	font: 600 .88rem/1 var(--font); text-decoration: none !important; transition: background .18s, transform .18s;
}
a.hnb-pillink:hover { background: rgb(255 255 255 / 24%); transform: translateY(-1px); }
.hnb-pillink.is-on { background: var(--sun); color: var(--navy) !important; border-color: var(--sun); }
.hnb-pillink.is-static { cursor: default; }

/* Dos de livres sur l'étagère */
.hnb-spines {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: clamp(64px, 9vw, 96px);
	display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-inline: 8px; overflow: hidden;
	border-bottom: 10px solid var(--shelf); box-sizing: content-box;
	box-shadow: 0 10px 0 -2px var(--shelf-d);
}
.hnb-spines i {
	display: block; flex: none; width: calc(var(--w) * .8); height: var(--h); border-radius: 3px 3px 0 0;
	background: linear-gradient(90deg, rgb(0 0 0 / 28%) 0 6%, transparent 6% 14%, rgb(255 255 255 / 14%) 14% 20%, transparent 20%), linear-gradient(180deg, var(--a), var(--b));
	box-shadow: inset 0 3px 0 rgb(255 255 255 / 24%);
	transform-origin: bottom; animation: hnb-rise .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d);
}
.hnb-spines i.is-lean { transform: rotate(8deg); margin-inline: 8px; animation: none; }
@keyframes hnb-rise { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }

/* ───── Recherche ───── */
.hnb-search {
	position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
	padding: 7px 7px 7px 20px; box-shadow: 0 18px 44px rgb(0 0 0 / 30%); color: var(--navy);
}
.hnb-search--bar { box-shadow: var(--shadow); border: 1px solid var(--line); }
.hnb-search .hnb-search__ic { color: var(--muted); width: 1.4em; height: 1.4em; }
.hnb-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; background: transparent; font: 500 1.05rem/1.2 var(--font); color: var(--navy);
	padding: .8em .4em; outline: 0; -webkit-appearance: none; appearance: none; border-radius: 0; box-shadow: none;
}
.hnb-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.hnb-search:focus-within { box-shadow: 0 0 0 4px rgb(242 179 27 / 55%), 0 18px 44px rgb(0 0 0 / 30%); }
.hnb-search--bar:focus-within { box-shadow: 0 0 0 4px rgb(42 111 219 / 35%); }
.hnb-search .hnb-btn { padding: .95em 1.6em; }
.hnb-suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20; background: #fff; border-radius: 18px;
	box-shadow: 0 24px 60px rgb(0 28 59 / 28%); overflow: hidden; text-align: left; padding: 6px; border: 1px solid var(--line);
}
.hnb-suggest[hidden] { display: none; }
.hnb-suggest li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--navy); }
.hnb-suggest li a:hover, .hnb-suggest li.is-act a { background: var(--paper); }
.hnb-suggest__t { display: block; font-weight: 600; line-height: 1.25; }
.hnb-suggest__s { display: block; font-size: .8rem; color: var(--muted); }
.hnb-suggest__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--paper); color: var(--cobalt); flex: none; }
.hnb-suggest__all a { font-weight: 600; color: var(--cobalt); justify-content: center; }
.hnb-suggest__none { padding: 14px; color: var(--muted); }

/* ───── Bande de chiffres ───── */
.hnb-stats { margin-top: -54px; position: relative; z-index: 3; }
.hnb-stats dl { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.hnb-stats dl > div { padding: 22px 24px; display: flex; flex-direction: column-reverse; gap: 4px; border-left: 1px solid var(--line); }
.hnb-stats dl > div:first-child { border-left: 0; }
.hnb-stats dt { font-size: .86rem; color: var(--muted); font-weight: 500; }
.hnb-stats dd { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 clamp(1.8rem, 3.4vw, 2.6rem)/1 var(--serif); }
.hnb-stats dd .hnb-ic { width: 1.1rem; height: 1.1rem; color: var(--cobalt); padding: 0; flex: none; }
.hnb-stats dl > div:nth-child(2) .hnb-ic { color: var(--leaf); }
.hnb-stats dl > div:nth-child(3) .hnb-ic { color: var(--brick); }
.hnb-stats dl > div:nth-child(4) .hnb-ic { color: #c98f00; }

/* ───── Sections ───── */
.hnb-sec { padding: clamp(40px, 6vw, 76px) 0 0; }
.hnb-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.hnb-sec__head h2 { margin: 0; font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.1 var(--serif); letter-spacing: -0.015em; }
.hnb-sec__head p { margin: 6px 0 0; color: var(--muted); max-width: 60ch; }
.hnb-sec__tools { display: flex; align-items: center; gap: 14px; }
.hnb-more { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--cobalt) !important; text-decoration: none !important; white-space: nowrap; }
.hnb-more:hover .hnb-ic { transform: translateX(4px); }
.hnb-more .hnb-ic { transition: transform .18s; }
.hnb-arrows { display: inline-flex; gap: 8px; }
.hnb-arrows[hidden] { display: none; }
.hnb-arrows button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); display: grid; place-items: center; cursor: pointer; transition: background .18s, color .18s; }
.hnb-arrows button:hover:not(:disabled) { background: var(--navy); color: #fff; }
.hnb-arrows button:disabled { opacity: .35; cursor: default; }

/* Types */
.hnb-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.hnb-types a {
	display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; align-items: center;
	padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.hnb-types a:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--c2); }
.hnb-types__ic { grid-row: 1 / 3; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)); }
.hnb-types li:nth-child(6) .hnb-types__ic { color: var(--navy); }
.hnb-types__ic .hnb-ic { width: 24px; height: 24px; }
.hnb-types__t { font-weight: 700; line-height: 1.2; align-self: end; overflow-wrap: anywhere; hyphens: auto; }
.hnb-types__n { font-size: .82rem; color: var(--muted); align-self: start; }

/* ───── Couvertures ───── */
.hnb-cover {
	position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; isolation: isolate;
	border-radius: 4px 12px 12px 4px; background: linear-gradient(155deg, var(--c1) 10%, var(--c2) 150%);
	box-shadow: 0 1px 0 rgb(255 255 255 / 30%) inset, 0 14px 24px -10px rgb(0 28 59 / 55%), 0 3px 6px rgb(0 28 59 / 18%);
	padding: 14px 14px 12px 22px; display: flex; flex-direction: column; gap: 6px;
}
.hnb-cover::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 10px; z-index: 2; background: linear-gradient(90deg, rgb(0 0 0 / 30%), rgb(0 0 0 / 5%) 60%, rgb(255 255 255 / 20%) 80%, rgb(0 0 0 / 12%)); }
.hnb-cover::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, rgb(255 255 255 / 16%), transparent 40%); pointer-events: none; }
.hnb-cover__art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; color: rgb(255 255 255 / 20%); }
.hnb-cover > *:not(.hnb-cover__art) { position: relative; z-index: 3; }
.hnb-cover__type { font: 700 .62rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.hnb-cover__title { font: 600 .96rem/1.18 var(--serif); letter-spacing: -0.005em; margin-top: 4px; text-wrap: balance; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; }
.hnb-cover__author { margin-top: auto; font: 500 .7rem/1.2 var(--font); opacity: .85; }
.hnb-cover.is-dark { color: var(--navy); }
.hnb-cover.is-dark .hnb-cover__art { color: rgb(0 28 59 / 14%); }
.hnb-cover__play { position: absolute !important; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--sun); color: var(--navy); display: grid; place-items: center; box-shadow: 0 6px 14px rgb(0 0 0 / 30%); z-index: 4 !important; }
.hnb-cover__play .hnb-ic { width: 16px; height: 16px; margin-left: 2px; }
.hnb-cover--photo { padding: 0; background: var(--navy); }
.hnb-cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hnb-cover--wide { aspect-ratio: 16 / 10; border-radius: 12px 12px 0 0; padding: 16px 18px; box-shadow: none; }
.hnb-cover--wide::before { display: none; }
.hnb-cover--wide .hnb-cover__title { font-size: 1.15rem; -webkit-line-clamp: 3; }
.hnb-cover.is-video:not(.hnb-cover--wide) .hnb-cover__play { right: 10px; bottom: 44px; }

/* ───── Cartes ───── */
.hnb-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hnb-card__cover { display: block; text-decoration: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.hnb-card:hover .hnb-card__cover { transform: translateY(-6px) rotate(-.6deg); }
.hnb-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hnb-card__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hnb-pill { font: 700 .66rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hnb-card__title { margin: 0; font: 700 .98rem/1.25 var(--font); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hnb-card__title a { text-decoration: none; }
.hnb-card__title a::after { content: ""; position: absolute; inset: 0; }
.hnb-card { position: relative; }
.hnb-card:hover .hnb-card__title a { color: var(--cobalt); }
.hnb-card__by { margin: 0; font-size: .82rem; color: var(--muted); }
.hnb-card--wide { background: #fff; border: 1px solid var(--line); border-radius: 14px; gap: 0; transition: box-shadow .2s, transform .2s; }
.hnb-card--wide:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.hnb-card--wide .hnb-card__cover { transform: none !important; }
.hnb-card--wide .hnb-card__body { padding: 14px 16px 16px; }

.hnb-acc { display: inline-flex; align-items: center; gap: .3em; font: 700 .64rem/1 var(--font); text-transform: uppercase; letter-spacing: .06em; padding: .38em .6em; border-radius: 999px; }
.hnb-acc .hnb-ic { width: .95em; height: .95em; }
.hnb-acc.is-free { background: #dff5ec; color: #0e6a4f; }
.hnb-acc.is-account { background: #e4edfd; color: #1e4fa8; }
.hnb-acc.is-members { background: #fdeede; color: #8a4b05; }

/* Étagères */
.hnb-shelf { padding-top: clamp(40px, 6vw, 72px); }
.hnb-wrap--bleed { position: relative; }
.hnb-row {
	display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
	padding: 14px 4px 34px; margin: 0 -4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; outline-offset: -2px;
	background:
		linear-gradient(to bottom, transparent calc(100% - 22px), var(--shelf) calc(100% - 22px) calc(100% - 12px), var(--shelf-d) calc(100% - 12px) calc(100% - 8px), transparent calc(100% - 8px) 100%) local;
	background-size: 100% 100%;
}
.hnb-row::-webkit-scrollbar { display: none; }
.hnb-row .hnb-card { flex: 0 0 var(--card-w); scroll-snap-align: start; }
.hnb-row .hnb-card__body { padding-bottom: 6px; }

/* Espaces */
.hnb-spaces { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hnb-spaces li a {
	position: relative; display: flex; flex-direction: column; min-height: 320px; height: 100%; padding: 24px 22px; border-radius: 22px; overflow: hidden;
	background: var(--hb); color: #fff; text-decoration: none; isolation: isolate; transition: transform .25s, box-shadow .25s;
}
.hnb-spaces li a:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -16px rgb(0 28 59 / 55%); }
.hnb-spaces__art { position: absolute; right: 0; top: 0; width: 85%; height: 58%; color: var(--ha); opacity: .6; z-index: -1; transition: transform .4s; }
.hnb-spaces li a:hover .hnb-spaces__art { transform: scale(1.06); }
.hnb-spaces li a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgb(0 0 0 / 28%)); }
.hnb-spaces__n { font: 700 .72rem/1 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--tx); background: rgb(255 255 255 / 92%); align-self: flex-start; padding: .5em .8em; border-radius: 999px; }
.hnb-spaces h3 { margin: auto 0 .35em; padding-top: 70px; font: 600 1.45rem/1.12 var(--serif); }
.hnb-spaces p { margin: 0 0 16px; font-size: .9rem; color: rgb(255 255 255 / 80%); line-height: 1.5; }
.hnb-spaces__go { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--sun); }

/* Bandeaux */
.hnb-band { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: clamp(24px, 4vw, 42px); border-radius: 24px; background: linear-gradient(120deg, #eaf1fd, #fdf3d9); border: 1px solid var(--line); }
.hnb-band h2 { margin: 0 0 .3em; font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.15 var(--serif); }
.hnb-band p { margin: 0; max-width: 56ch; color: var(--muted); }
.hnb-staff { padding-bottom: clamp(48px, 7vw, 88px); }
.hnb-staff__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border-radius: 28px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgb(42 111 219 / 55%), transparent 60%), linear-gradient(150deg, #001c3b, #0a2d57); }
.hnb-kicker { margin: 0 0 .6em; font: 700 .76rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); }
.hnb-staff h2 { margin: 0 0 .6em; font: 600 clamp(1.7rem, 3.2vw, 2.5rem)/1.1 var(--serif); }
.hnb-ticks { display: grid; gap: .55em; max-width: 56ch; }
.hnb-ticks li { position: relative; padding-left: 1.9em; color: rgb(255 255 255 / 86%); }
.hnb-ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.2em; height: 1.2em; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 80% no-repeat; }
.hnb-staff__act { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }

/* ───── Catalogue ───── */
.hnb-cat { padding-top: 0; }
.hnb-cat .hnb-wrap { padding-top: 0; }
.hnb-cat__form { margin-top: -34px; position: relative; z-index: 4; }
.hnb-chipbar { border: 0; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.hnb-chip { position: relative; }
.hnb-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hnb-chip span { display: inline-flex; align-items: center; gap: .5em; padding: .55em 1em; border-radius: 999px; background: #fff; border: 1px solid var(--line); font: 600 .88rem/1 var(--font); transition: all .18s; }
.hnb-chip span .hnb-ic { width: 1em; height: 1em; color: var(--c2, var(--cobalt)); }
.hnb-chip em { font-style: normal; font-size: .74rem; color: var(--muted); background: var(--paper); padding: .25em .55em; border-radius: 999px; }
.hnb-chip:hover span { border-color: var(--c2, var(--cobalt)); }
.hnb-chip input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.hnb-chip input:checked + span .hnb-ic { color: var(--sun); }
.hnb-chip input:checked + span em { background: rgb(255 255 255 / 18%); color: #fff; }
.hnb-chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.hnb-filters { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.hnb-filters summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: .6em; }
.hnb-filters summary::-webkit-details-marker { display: none; }
.hnb-filters summary::after { content: "+"; margin-left: auto; font-size: 1.3rem; color: var(--muted); }
.hnb-filters[open] summary::after { content: "–"; }
.hnb-filters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; padding: 0 18px 18px; align-items: end; }
.hnb-filters label span, .hnb-field > span { display: block; font: 600 .8rem/1 var(--font); margin-bottom: 6px; color: var(--muted); }
.hnb-field em { font-style: normal; font-weight: 500; opacity: .75; }
.hnb-filters select, .hnb-field input[type="text"], .hnb-field input[type="email"], .hnb-field input[type="password"], .hnb-field input[type="number"], .hnb-field input[type="url"], .hnb-field select, .hnb-field textarea, .hnb-me__edit select, .hnb-me__edit input {
	width: 100%; padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font: 500 1rem/1.3 var(--font); color: var(--navy); transition: border-color .18s, box-shadow .18s;
}
.hnb-filters select:focus, .hnb-field input:focus, .hnb-field select:focus, .hnb-field textarea:focus, .hnb-me__edit select:focus, .hnb-me__edit input:focus { outline: 0; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgb(42 111 219 / 18%); }
.hnb-results { padding-top: 26px; min-height: 280px; transition: opacity .2s; }
.hnb-results.is-loading { opacity: .45; pointer-events: none; }
.hnb-count { margin: 0 0 18px; color: var(--muted); }
.hnb-count strong { color: var(--navy); font-size: 1.1em; }
.hnb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 30px 22px; }
.hnb-grid--tight { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 24px 18px; }
.hnb-grid--wide { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.hnb-nojs-only { align-self: end; }
.hnb-js .hnb-nojs-only { display: none; }
.hnb-cat { padding-bottom: clamp(48px, 7vw, 88px); }

.hnb-pager { margin-top: 40px; }
.hnb-pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hnb-pager a { display: inline-flex; align-items: center; gap: .4em; min-width: 42px; height: 42px; justify-content: center; padding: 0 .9em; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; transition: all .18s; }
.hnb-pager a:hover { border-color: var(--navy); }
.hnb-pager a.is-cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.hnb-pager__gap { align-self: center; color: var(--muted); }

/* États vides */
.hnb-empty { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; border: 2px dashed var(--line); border-radius: 24px; background: linear-gradient(180deg, #fff, var(--paper)); }
.hnb-empty .hnb-empty__ic { width: 56px; height: 56px; margin: 0 auto 14px; padding: 14px; border-radius: 18px; background: #e4edfd; color: var(--cobalt); display: block; }
.hnb-empty h3 { margin: 0 0 .35em; font: 600 1.5rem/1.15 var(--serif); }
.hnb-empty p { margin: 0 auto 20px; max-width: 46ch; color: var(--muted); }

/* ───── Départements ───── */
.hnb-depts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.hnb-depts li a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 200px; padding: 22px; border-radius: 22px; background: var(--hb); color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.hnb-depts li a:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -16px rgb(0 28 59 / 50%); }
.hnb-depts__ini { position: absolute; right: -6px; bottom: -34px; z-index: -1; font: 700 9rem/1 var(--serif); color: var(--ha); opacity: .22; }
.hnb-depts h3 { margin: auto 0 0; font: 600 1.4rem/1.15 var(--serif); }
.hnb-depts p { margin: 0; font-size: .88rem; color: rgb(255 255 255 / 76%); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 30ch; }
.hnb-depts__n { font: 700 .74rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--sun); }

.hnb .hnb-depts__go { position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgb(255 255 255 / 16%); transition: transform .2s; }
.hnb-depts li a:hover .hnb-depts__go { transform: translateX(4px); background: var(--sun); color: var(--navy); }
.hnb-dept { padding-bottom: clamp(48px, 7vw, 88px); }
.hnb-dept .hnb-shelf:first-child { padding-top: clamp(24px, 4vw, 40px); }

/* Étapes mémoires */
.hnb-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; margin-top: -62px; position: relative; z-index: 3; }
.hnb-steps li { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.hnb-steps span { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--leaf); color: #fff; font: 700 1.1rem/1 var(--serif); }
.hnb-steps li:nth-child(2) span { background: var(--sun); color: var(--navy); }
.hnb-steps li:nth-child(3) span { background: var(--navy); }
.hnb-steps h3 { margin: 0 0 .2em; font: 700 1rem/1.2 var(--font); }
.hnb-steps p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.hnb-steps + * { margin-top: 0; }
.hnb-sec:has(> .hnb-wrap > .hnb-steps) { padding-top: 0; }
.hnb-sec:has(> .hnb-wrap > .hnb-steps) + .hnb-cat .hnb-cat__form { margin-top: 20px; }
.hnb-media .hnb-cat__form { margin-top: -34px; }

/* ───── Fiche ───── */
.hnb-one { padding-top: 0; padding-bottom: 8px; }
.hnb-one__in { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.hnb-one__side { margin-top: -86px; position: sticky; top: 100px; z-index: 5; }
.hnb-one__cover { max-width: 260px; margin-inline: auto; filter: drop-shadow(0 24px 30px rgb(0 28 59 / 35%)); }
.hnb-one__cover .hnb-cover { box-shadow: 0 1px 0 rgb(255 255 255 / 30%) inset; }
.hnb-one__act { margin-top: 22px; display: grid; gap: 10px; }
.hnb-one__stats { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin: 6px 0 0; font-size: .85rem; color: var(--muted); }
.hnb-one__stats span { display: inline-flex; align-items: center; gap: .4em; }
.hnb-one__none { color: var(--muted); text-align: center; margin: 0; }
.hnb-lock { text-align: center; padding: 20px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); display: grid; gap: 10px; justify-items: center; }
.hnb-lock > .hnb-ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #fdeede; color: #8a4b05; }
.hnb-lock p { margin: 0; line-height: 1.45; }
.hnb-one__main { padding-top: clamp(28px, 4vw, 48px); min-width: 0; }
.hnb-one__h { font: 600 1.5rem/1.15 var(--serif); margin: 1.4em 0 .6em; }
.hnb-prose { max-width: 68ch; font-size: 1.06rem; line-height: 1.7; color: #1b2f4a; }
.hnb-prose p { margin: 0 0 1em; }
.hnb-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 0; }
.hnb-meta > div { background: #fff; padding: 14px 18px; box-shadow: 0 0 0 .5px var(--line); }
.hnb-meta dt { font: 700 .68rem/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.hnb-meta dd { margin: 0; font-weight: 600; line-height: 1.35; }
.hnb-meta a { color: var(--cobalt); text-decoration: none; }
.hnb-meta a:hover { text-decoration: underline; }
.hnb-player { position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; margin-bottom: 28px; box-shadow: var(--shadow); }
.hnb-player iframe, .hnb-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hnb-single .hnb-shelf { padding-bottom: clamp(40px, 6vw, 72px); }

/* ───── Mon espace ───── */
.hnb-dash { padding-top: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.hnb-dash__in { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.hnb-dash__side { margin-top: -70px; position: sticky; top: 100px; z-index: 5; }
.hnb-me { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: var(--shadow); }
.hnb-me__av { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(145deg, var(--brick), var(--sun)); color: #fff; font: 700 1.9rem/1 var(--serif); margin-bottom: 14px; }
.hnb-me h2 { margin: 0; font: 700 1.2rem/1.2 var(--font); }
.hnb-me__role { margin: 2px 0 14px; color: var(--muted); font-size: .9rem; }
.hnb-me dl { margin: 0 0 14px; display: grid; gap: 8px; }
.hnb-me dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.hnb-me dt { color: var(--muted); }
.hnb-me dd { margin: 0; font-weight: 600; text-align: right; }
.hnb-me__v { display: flex; align-items: center; gap: .5em; margin: 0 0 12px; font: 600 .86rem/1.3 var(--font); padding: .6em .8em; border-radius: 12px; }
.hnb-me__v.is-ok { background: #dff5ec; color: #0e6a4f; }
.hnb-me__v.is-wait { background: #fff1c9; color: #7a5300; }
.hnb-me__edit { margin-bottom: 14px; }
.hnb-me__edit summary { cursor: pointer; font-weight: 600; color: var(--cobalt); font-size: .9rem; }
.hnb-me__edit form { display: grid; gap: 10px; margin-top: 12px; }
.hnb-me__edit label { display: grid; gap: 4px; font: 600 .78rem/1 var(--font); color: var(--muted); }
.hnb-me__links { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 10px; }
.hnb-me__links a { display: flex; align-items: center; gap: .6em; padding: .6em .4em; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.hnb-me__links a:hover { background: var(--paper); }
.hnb-dash__main { padding-top: clamp(24px, 4vw, 40px); min-width: 0; display: grid; gap: 40px; }
.hnb-block .hnb-sec__head h2 { font-size: 1.5rem; }
.hnb-course { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.hnb-course summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.hnb-course summary::-webkit-details-marker { display: none; }
.hnb-course summary em { font-style: normal; font-size: .78rem; background: var(--paper); color: var(--muted); padding: .3em .7em; border-radius: 999px; }
.hnb-course[open] summary { border-bottom: 1px solid var(--line); background: var(--paper); }
.hnb-course li { display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); }
.hnb-course li:first-child { border-top: 0; }
.hnb-course__ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--c1), var(--c2)); }
.hnb-course__ic .hnb-ic { width: 17px; height: 17px; }
.hnb-course a { font-weight: 600; text-decoration: none; }
.hnb-course a:hover { color: var(--cobalt); }
.hnb-course__t { font-size: .78rem; color: var(--muted); }

.hnb-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.hnb-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.hnb-table th { text-align: left; font: 700 .7rem/1 var(--font); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 14px 16px; background: var(--paper); }
.hnb-table td { padding: 13px 16px; border-top: 1px solid var(--line); }
.hnb-table a { font-weight: 600; text-decoration: none; }
.hnb-status { display: inline-block; font: 700 .72rem/1 var(--font); padding: .45em .8em; border-radius: 999px; white-space: nowrap; }
.hnb-status.is-ok { background: #dff5ec; color: #0e6a4f; }
.hnb-status.is-wait { background: #fff1c9; color: #7a5300; }
.hnb-status.is-no { background: #fbe3df; color: #8f2b1b; }

.hnb-flash { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; margin: 18px 0 0; font-weight: 500; line-height: 1.45; }
.hnb-flash > .hnb-ic { margin-top: .15em; width: 1.3em; height: 1.3em; }
.hnb-flash p { margin: 0; }
.hnb-flash--ok { background: #dff5ec; color: #0e6a4f; }
.hnb-flash--err { background: #fbe3df; color: #8f2b1b; }
.hnb-flash--wait { background: #fff1c9; color: #7a5300; }
.hnb > .hnb-wrap > .hnb-flash:first-child { margin-top: 20px; }

/* ───── Formulaires ───── */
.hnb-auth { max-width: 720px; margin: -54px auto 0; position: relative; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.hnb-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-bottom: 1px solid var(--line); }
.hnb-auth__tabs button { padding: 18px 12px; border: 0; background: transparent; font: 700 .98rem/1.2 var(--font); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.hnb-auth__tabs button[aria-selected="true"] { color: var(--navy); background: #fff; border-bottom-color: var(--sun); }
.hnb-auth__panel { padding: clamp(22px, 4vw, 40px); }
.hnb-auth__panel[hidden] { display: none; }
.hnb-auth__note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; }
.hnb-auth__note a { color: var(--cobalt); font-weight: 600; }
.hnb-sec:has(> .hnb-wrap > .hnb-auth) { padding-top: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.hnb-form { display: grid; gap: 16px; }
.hnb-form--2 { grid-template-columns: 1fr 1fr; }
.hnb-field--full { grid-column: 1 / -1; }
.hnb-field { display: block; }
.hnb-field textarea { resize: vertical; min-height: 110px; }
.hnb-check { display: flex; align-items: center; gap: .6em; font-size: .92rem; }
.hnb-check input { width: 18px; height: 18px; accent-color: var(--navy); }
.hnb-form__alt { margin: 0; text-align: center; font-size: .9rem; }
.hnb-form__alt a { color: var(--cobalt); }
.hnb-form__hint { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.hnb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hnb-form .hnb-flash { margin: 0 0 4px; }
.hnb-auth .hnb-flash { margin: 0 0 18px; }

.hnb-deposit { max-width: 880px; margin: -54px auto 0; position: relative; z-index: 3; gap: 20px; }
.hnb-deposit__box { margin: 0; min-width: 0; padding: clamp(18px, 3vw, 30px); padding-top: clamp(26px, 3vw, 34px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hnb-deposit__box legend { display: flex; align-items: center; gap: 10px; font: 700 1.05rem/1 var(--font); padding: 0 8px; background: #fff; margin-left: -8px; float: none; }
.hnb-deposit__box legend span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--navy); color: #fff; font: 700 .9rem/1 var(--serif); }
.hnb-sec:has(> .hnb-wrap > .hnb-deposit) { padding-top: 0; padding-bottom: clamp(48px, 7vw, 88px); }
.hnb-drop { position: relative; text-align: center; padding: 30px 20px; border: 2px dashed #b8c3d8; border-radius: 18px; background: var(--paper); transition: all .18s; }
.hnb-drop.is-over { border-color: var(--cobalt); background: #eaf1fd; }
.hnb-drop > .hnb-ic { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: #e4edfd; color: var(--cobalt); margin: 0 auto 8px; display: block; }
.hnb-drop p { margin: 0; }
.hnb-drop__hint { font-size: .82rem; color: var(--muted); margin-top: 4px !important; }
.hnb-drop__pick { color: var(--cobalt); font-weight: 700; cursor: pointer; text-decoration: underline; }
.hnb-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.hnb-drop__name { margin-top: 12px !important; font-weight: 700; color: #0e6a4f; }
.hnb-drop__name[hidden] { display: none; }
.hnb-drop__name.is-err { color: var(--brick); }
.hnb-deposit__send { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.hnb-deposit__send .hnb-form__hint { margin: 0; flex: 1; min-width: 240px; }

/* ───── Responsive ───── */
@media (max-width: 1100px) {
	.hnb-spaces { grid-template-columns: repeat(2, 1fr); }
	.hnb-spaces li a { min-height: 280px; }
}
@media (max-width: 860px) {
	.hnb-one__in, .hnb-dash__in { grid-template-columns: 1fr; }
	.hnb-one__side { position: static; margin-top: -60px; }
	.hnb-dash__side { position: static; margin-top: -50px; }
	.hnb-one__cover { max-width: 210px; }
	.hnb-steps { grid-template-columns: 1fr; margin-top: -48px; }
	.hnb-stats dl { grid-template-columns: repeat(2, 1fr); }
	.hnb-stats dl > div:nth-child(3) { border-left: 0; }
	.hnb-stats dl > div:nth-child(n+3) { border-top: 1px solid var(--line); }
	.hnb-course li { grid-template-columns: 34px 1fr auto; }
	.hnb-course__t { display: none; }
}
@media (max-width: 640px) {
	.hnb { --card-w: 150px; }
	.hnb-head h1 { max-width: none; }
	.hnb-search { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
	.hnb-search .hnb-search__ic { display: none; }
	.hnb-search input[type="search"] { flex: 1 1 100%; padding: .7em .8em; }
	.hnb-search .hnb-btn { width: 100%; }
	.hnb-spaces { grid-template-columns: 1fr; }
	.hnb-spaces li a { min-height: 230px; }
	.hnb-types { grid-template-columns: 1fr 1fr; gap: 10px; }
	.hnb-types a { grid-template-columns: 1fr; padding: 14px; row-gap: 4px; }
	.hnb-types__ic { grid-row: auto; width: 44px; height: 44px; margin-bottom: 6px; }
	.hnb-stats { margin-top: -40px; }
	.hnb-stats dl > div { padding: 16px; }
	.hnb-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
	.hnb-grid--wide { grid-template-columns: 1fr; }
	.hnb-grid--tight { grid-template-columns: repeat(2, 1fr); }
	.hnb-form--2, .hnb-deposit__box { grid-template-columns: 1fr; }
	.hnb-depts { grid-template-columns: 1fr; }
	.hnb-sec__head { align-items: flex-start; }
	.hnb-arrows { display: none !important; }
	.hnb-auth, .hnb-deposit { margin-top: -40px; }
	.hnb-table thead { display: none; }
	.hnb-table, .hnb-table tbody, .hnb-table tr, .hnb-table td { display: block; }
	.hnb-table tr { padding: 12px 16px; border-top: 1px solid var(--line); }
	.hnb-table tr:first-child { border-top: 0; }
	.hnb-table td { border: 0; padding: 3px 0; }
	.hnb-table td::before { content: attr(data-l) " : "; color: var(--muted); font-size: .8rem; }
	.hnb-staff__act { width: 100%; }
	.hnb-spines i { width: calc(var(--w) * .6); }
}
@media (prefers-reduced-motion: reduce) {
	.hnb *, .hnb *::before, .hnb *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.hnb-head__search, .hnb-spines, .hnb-one__act, .hnb-shelf { display: none !important; }
}

.hnb-cover--wide .hnb-cover__art { opacity: .55; width: 70%; left: auto; right: -4%; }

@media (max-width: 640px) {
	.hnb-chipbar { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
	.hnb-chipbar::-webkit-scrollbar { display: none; }
	.hnb-chip { flex: none; }
}
