/* ── Typographie ────────────────────────────────────── */

/* Lora : auto-hébergée, voir fonts/lora.css (chargée dans -head.php) */

/* ── Layout ─────────────────────────────────────────── */

body {
	background-color: var(--fond);
	color: var(--texte);
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
}

/* ── Cards ──────────────────────────────────────────── */

.card {
	border: 1px solid var(--bordure);
	border-radius: .75rem;
	background: var(--surface);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.item-video .card:hover {
	border-color: #cc0000;
}

.shadow-hover {
	box-shadow: 0 1px 3px var(--bordure);
}

.shadow-hover:hover {
	box-shadow: 0 4px 16px rgba(70,45,10,.16);
	transform: translateY(-2px);
}

/* ── Thumbnail + play overlay ───────────────────────── */

.card-img-wrapper {
	border-radius: .75rem .75rem 0 0;
	background: #000;
}

.card-img-top {
	aspect-ratio: 16 / 9;
	height: auto; /* l’attribut height de l’<img> ne doit pas écraser le ratio */
	object-fit: cover;
	object-position: center;
	display: block;
	width: 100%;
	opacity: 1;
	transition: opacity .2s ease;
}

.card:hover .card-img-top {
	opacity: .85;
}

.play-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,.25);
	opacity: 0;
	transition: opacity .2s ease;
	pointer-events: none;
}

.card:hover .play-overlay {
	opacity: 1;
}

/* ── Card body ──────────────────────────────────────── */

.card-body {
	padding: .75rem .75rem .25rem;
}

.card-title {
	font-size: .9rem;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-title a:hover,
.card-title-liste a:hover {
	color: #cc0000 !important;
}

.card-footer {
	padding: .25rem .75rem .6rem;
	font-size: .78rem;
}

/* ── Badge numéro ───────────────────────────────────── */

.badge.bg-secondary-subtle {
	font-weight: 500;
	font-size: .72rem;
	letter-spacing: .02em;
}

/* ── En-tête page ───────────────────────────────────── */

h1 {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -.02em;
}

/* ── Liens auteurs vidéo ────────────────────────────── */

.auteur-link {
	position: relative;
	z-index: 2;
	font-style: italic;
}

.auteur-link:hover {
	color: #cc0000 !important;
	text-decoration: underline !important;
}

/* ── Divers ─────────────────────────────────────────── */

.opacity-hover:hover {
	opacity: 1 !important;
	transition: opacity .3s ease;
}

.list-group-item-action:hover {
	color: #cc0000!important;
}


/* =================================================== */
/*  Vue liste vidéos  */
/* =================================================== */

.item-video-liste:first-of-type {
	margin-top: 30px!important;
}

.item-video-liste .card {
	border-radius: 0;
	border-left: 0;
	border-right: 0;
	border-top: 0;
}

.item-video-liste + .item-video-liste .card {
	border-top: 1px solid var(--bordure);
}

.item-video-liste img {
	width: 120px;
	height: 68px;
	object-fit: cover;
	flex-shrink: 0;
	border-radius: .375rem 0 0 .375rem;
}

.item-video-liste .card-body {
	padding: 0.3rem 0.6rem;
}

.item-video-liste .card-title-liste {
	font-size: .9rem;
	font-weight: 500;
	margin-bottom: 0.1rem;
	line-height: 1.35;
}

.item-video-liste .text-auteur {
	font-size: .875rem;
}

.item-video-liste .col-meta {
	font-size: .75rem;
	min-width: 80px;
	padding-right: 0.6rem;
	text-align: right;
}


/* =================================================== */
/*  Liste auteurs  */
/* =================================================== */

#auteurs {
	column-width: 250px;
	column-gap: 1rem;
	margin-bottom: 2rem;
}

.lien-auteur {
	display: block;
	padding: 1px 0;
	font-size: .95rem;
	color: var(--texte);
	text-decoration: none;
}

.lien-auteur:hover {
	color: #cc0000;
}

.lien-auteur.hidden {
	display: none;
}

.lien-auteur .quantite {
	font-family: var(--font-sans);
	font-size: 10px;
	margin-left: 5px;
	font-weight: 700;
	color: #bbb;
}

.lien-auteur.prolific .quantite {
	color: #fff;
	background: #cc0000;
	border-radius: 20px;
	padding: 1px 5px;
}

/* ── Navigation alphabétique ────────────────────────── */

.alpha-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin-bottom: 1rem;
}

.alpha-nav a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 6px;
	font-size: .78rem;
	font-family: system-ui, sans-serif;
	font-weight: 500;
	color: var(--texte-doux);
	text-decoration: none;
	border-radius: 4px;
	border: 1px solid var(--bordure);
	background: var(--surface);
	transition: background .15s, color .15s;
}

.alpha-nav a:hover,
.alpha-nav a.active {
	background: #cc0000;
	color: #fff;
	border-color: #cc0000;
}

.alpha-nav a.disabled {
	color: #ccc;
	border-color: transparent;
	background: transparent;
	pointer-events: none;
}

.text-sans {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}


/* =================================================== */
/*  Polices : serif (Lora) pour les titres, sans-serif pour les métadonnées  */
/* =================================================== */

:root {
	/* Palette chaude */
	--fond: #f9f5ee;
	--surface: #fffcf7;
	--clair: #fffefa;
	--bordure: rgba(90,65,30,.14);
	--texte: #221d17;
	--texte-doux: #6b6257;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.card-footer,
.col-meta,
.badge,
.pagination,
.page-link,
.nav-site {
	font-family: var(--font-sans);
}


/* =================================================== */
/*  Conteneur  */
/* =================================================== */

.conteneur-site {
	max-width: 1400px;
	margin-inline: auto;
}


/* =================================================== */
/*  En-tête et navigation  */
/* =================================================== */

h1 a {
	color: #cc0000;
	font-size: .85em;
	margin-left: .15em;
	text-decoration: none;
}

h1 a:hover {
	color: #990000;
}

.tagline {
	margin-top: .4rem;
	font-size: 1.1rem;
	font-style: italic;
	color: var(--texte-doux);
}

.nav-site {
	display: flex;
	justify-content: center;
	gap: 1.75rem;
	max-width: 28rem;
	margin: 1.5rem auto 1.5rem;
	border-bottom: 1px solid var(--bordure);
	font-size: .9rem;
}

.nav-site a {
	padding: .5rem .15rem;
	margin-bottom: -1px;
	color: var(--texte-doux);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}

.nav-site a:hover {
	color: var(--texte);
}

.nav-site a[aria-current="page"] {
	color: #cc0000;
	font-weight: 500;
	border-bottom-color: #cc0000;
}

.lien-retour:hover {
	color: #cc0000 !important;
}


/* =================================================== */
/*  Liste auteurs : lettres et surlignage  */
/* =================================================== */

.lettre-titre {
	break-after: avoid;
	break-inside: avoid;
	margin: 1rem 0 .25rem;
	padding-bottom: .1rem;
	font-size: 1.1rem;
	font-weight: 700;
	color: #cc0000;
	border-bottom: 1px solid var(--bordure);
}

.lettre-titre:first-child {
	margin-top: 0;
}

.lettre-titre.hidden {
	display: none;
}

mark.hl {
	padding: 0;
	color: inherit;
	background: rgba(204,0,0,.15);
	border-radius: 2px;
}


/* =================================================== */
/*  Accessibilité  */
/* =================================================== */

:focus-visible {
	outline: 2px solid #cc0000;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
		scroll-behavior: auto !important;
	}
}


/* =================================================== */
/*  Filtre des auteurs  */
/* =================================================== */

.filtre-auteurs {
	width: 100%;
	max-width: 20rem;
}

.filtre-icone {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 15px;
	color: var(--bs-secondary-color);
	pointer-events: none;
}

.filtre-champ {
	width: 100%;
	box-sizing: border-box;
	padding: .35rem 2rem .35rem 2.25rem;
	font-family: var(--font-sans);
	font-size: .9rem;
	background: var(--surface);
	border: 1px solid var(--bordure);
	border-radius: .375rem;
}

.filtre-effacer {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	padding: 2px 4px;
	line-height: 1;
	color: #999;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.filtre-effacer:hover {
	color: #cc0000;
}

.filtre-effacer[hidden] {
	display: none;
}


/* =================================================== */
/*  Surcharges Bootstrap (tons chauds)  */
/* =================================================== */

.bg-clair {
	background-color: var(--clair);
}

.badge.bg-secondary-subtle {
	background-color: #eee5d6 !important;
	color: #6b5a42 !important;
}

.text-muted,
.text-body-secondary {
	color: var(--texte-doux) !important;
}


/* =================================================== */
/*  Barre de pagination (élément secondaire) : le crème est la couleur d’accent  */
/* =================================================== */

:root {
	--bs-border-color: rgba(90,65,30,.14);
	--accent-doux: #e3d6bd;
	--accent-texte: #4a3f2e;
}

.pagination {
	--bs-pagination-color: var(--texte-doux);
	--bs-pagination-bg: var(--surface);
	--bs-pagination-border-color: #e2d6c0;
	--bs-pagination-hover-color: var(--accent-texte);
	--bs-pagination-hover-bg: #f1e8d8;
	--bs-pagination-hover-border-color: #d9cbb1;
	--bs-pagination-focus-color: var(--accent-texte);
	--bs-pagination-focus-bg: #f1e8d8;
	--bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(140,110,60,.25);
	--bs-pagination-active-color: var(--accent-texte);
	--bs-pagination-active-bg: var(--accent-doux);
	--bs-pagination-active-border-color: #cbb994;
	--bs-pagination-disabled-color: #b5a994;
	--bs-pagination-disabled-bg: var(--surface);
	--bs-pagination-disabled-border-color: #ece3d2;
}

.pagination .active > .page-link {
	font-weight: 600;
}

.form-select {
	background-color: var(--surface);
	border-color: #e2d6c0;
}

.form-select:focus {
	border-color: #cbb994;
	box-shadow: 0 0 0 .2rem rgba(140,110,60,.2);
	outline: 0;
}

.filtre-champ:focus {
	border-color: #cc0000;
	box-shadow: 0 0 0 .2rem rgba(204,0,0,.15);
	outline: 0;
}

.pagination .page-link:focus-visible,
.btn-vue:focus-visible {
	outline-color: #b8a47c;
}


/* =================================================== */
/*  Boutons de vue (vignettes / liste) : groupe d’icônes  */
/* =================================================== */

.btn-vue {
	padding-inline: .7rem;
	color: var(--texte-doux);
	background: var(--surface);
	border: 1px solid #e2d6c0;
}

.btn-vue:hover {
	color: var(--accent-texte);
	background: #f1e8d8;
	border-color: #d9cbb1;
}

.btn-vue[aria-pressed="true"] {
	position: relative;
	z-index: 1;
	color: var(--accent-texte);
	background: var(--accent-doux);
	border-color: #cbb994;
}

.btn-vue:focus-visible {
	box-shadow: 0 0 0 .2rem rgba(140,110,60,.25);
}
