/* Rubrique vidéos de hassidout.org - téléphone d'abord (17 px), 18 px dès 768 px, proportions de pnimi.org. */
.hv {
	--hv-bleu: #0f4f97;
	--hv-bleu-fonce: #0b3b73;
	--hv-bleu-pale: #e8f0fa;
	--hv-fond: #f4f6fa;
	--hv-carte: #fff;
	--hv-bord: #e3e7ee;
	--hv-texte: #1d2a3a;
	--hv-doux: #5b6778;
	--hv-rayon: 10px;
	background: var(--hv-fond);
	color: var(--hv-texte);
	font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	font-size: 17px;
	line-height: 1.5;
	padding: 12px 0 32px;
	box-sizing: border-box;
	overflow-x: clip;
}
.hv *, .hv *::before, .hv *::after { box-sizing: border-box; }
.hv a { color: var(--hv-bleu); text-decoration: none; }
.hv a:hover { text-decoration: underline; }
.hv img { max-width: 100%; height: auto; display: block; }
:where(.hv) :where(h1, h2, h3, p, ul) { margin: 0; padding: 0; }
:where(.hv) ul { list-style: none; }

.hv-mise { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: block; }
.hv-main { min-width: 0; }
.hv-laterale { display: none; }

/* En-tête de page */
.hv-tete { margin: 4px 0 12px; }
.hv-tete h1 { font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--hv-texte); }
.hv-tete-icone { display: none; }
.hv-compte, .hv-fil { color: var(--hv-doux); font-size: .82rem; margin-top: 4px; }
.hv-fil { margin: 0 0 4px; }
.hv-h2 { font-size: 1.05rem; font-weight: 700; margin: 20px 0 12px; }
.hv-vide { color: var(--hv-doux); padding: 24px 0; }

/* Onglets */
.hv-onglets { display: flex; gap: 6px; margin: 0 0 16px; overflow-x: auto; scrollbar-width: none; }
.hv-onglets::-webkit-scrollbar { display: none; }
.hv-onglets a { flex: 0 0 auto; padding: 7px 12px; border-radius: 20px; background: var(--hv-carte); border: 1px solid var(--hv-bord); color: var(--hv-texte); font-size: .9rem; font-weight: 600; }
.hv-onglets a:hover { text-decoration: none; border-color: var(--hv-bleu); }
.hv-onglets a.est-actif { background: var(--hv-bleu); border-color: var(--hv-bleu); color: #fff; }

/* Carte */
.hv-flux { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hv-carte { background: var(--hv-carte); border: 1px solid var(--hv-bord); border-radius: var(--hv-rayon); overflow: hidden; display: flex; flex-direction: column; }
.hv-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 0; border: 0; background: #0b1624; cursor: pointer; overflow: hidden; color: #fff; font: inherit; }
.hv-facade img { width: 100%; height: 100%; object-fit: cover; }
.hv-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hv-facade.est-active { cursor: default; }
.hv-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(15, 79, 151, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); transition: transform .15s; }
.hv-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.hv-facade:hover .hv-play { transform: scale(1.08); }
.hv-duree { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .75rem; line-height: 1; padding: 4px 6px; border-radius: 4px; }
.hv-externe { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--hv-bleu); color: #fff; padding: 10px 16px; border-radius: 22px; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.hv-facade--externe:hover { text-decoration: none; }
.hv-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .35); }
.hv-prog > i { display: block; height: 100%; background: #ff4d4d; }
.hv-vu { position: absolute; left: 8px; top: 8px; background: rgba(15, 79, 151, .92); color: #fff; font-size: .72rem; padding: 3px 7px; border-radius: 4px; }

.hv-carte-corps { padding: 12px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.hv-carte-titre { font-size: 1rem; line-height: 1.35; font-weight: 700; }
.hv-carte-titre a { color: var(--hv-texte); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hv-carte-titre a:hover { color: var(--hv-bleu); text-decoration: none; }
.hv-meta { font-size: .82rem; color: var(--hv-doux); line-height: 1.4; }
.hv-meta-liens a { color: var(--hv-bleu); }
.hv-carte-actions { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; font-size: .85rem; font-weight: 600; }

/* Carte compacte (carrousels) */
.hv-carte--c .hv-carte-corps { padding: 8px 10px 10px; }
.hv-carte--c .hv-carte-titre { font-size: .92rem; }
.hv-carte--c .hv-carte-titre a { -webkit-line-clamp: 2; }

/* Carrousels */
.hv-carrousel { margin: 0 0 20px; }
.hv-carrousel-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hv-carrousel-tete h2 { font-size: 1.05rem; font-weight: 700; }
.hv-carrousel-tete a { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.hv-carrousel-zone { position: relative; }
.hv-piste { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
.hv-piste::-webkit-scrollbar { display: none; }
.hv-piste .hv-carte { flex: 0 0 72%; max-width: 280px; scroll-snap-align: start; }
.hv-fleche { display: none; }

/* Plus de vidéos */
.hv-plus-zone { text-align: center; margin: 20px 0 0; }
.hv-plus { display: inline-block; font: inherit; font-weight: 600; font-size: .95rem; padding: 10px 24px; border-radius: 22px; border: 1px solid var(--hv-bleu); background: var(--hv-carte); color: var(--hv-bleu); cursor: pointer; }
.hv-plus:hover { background: var(--hv-bleu); color: #fff; text-decoration: none; }
.hv-plus[disabled] { opacity: .5; cursor: default; }
.hv-sentinelle { height: 1px; }

/* Boutons, puces */
.hv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hv-bouton { display: inline-block; font: inherit; font-size: .9rem; font-weight: 600; padding: 9px 16px; border-radius: 20px; border: 1px solid var(--hv-bleu); background: var(--hv-bleu); color: #fff !important; cursor: pointer; line-height: 1.2; }
.hv-bouton:hover { background: var(--hv-bleu-fonce); text-decoration: none !important; }
.hv-bouton--clair { background: var(--hv-carte); color: var(--hv-bleu) !important; }
.hv-bouton--clair:hover { background: var(--hv-bleu-pale); }
.hv-puces { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.hv-puce { display: inline-block; background: var(--hv-bleu-pale); color: var(--hv-bleu); border-radius: 16px; padding: 4px 12px; font-size: .85rem; font-weight: 600; }
.hv-puce--inter { background: var(--hv-bleu); color: #fff; }
.hv .hv-puce--inter { color: #fff; }

/* Page vidéo */
.hv-titre-video { font-size: 22px; line-height: 1.3; font-weight: 700; margin: 4px 0 12px; }
.hv-lecteur { border-radius: var(--hv-rayon); overflow: hidden; background: #0b1624; }
.hv-lecteur--short { max-width: 320px; margin-inline: auto; }
.hv-lecteur--short .hv-facade { aspect-ratio: 9 / 16; }
.hv-lecteur .hv-facade img { object-fit: cover; }
.hv-meta-video { margin-top: 10px; }
.hv-reprise-avis { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 8px 12px; background: var(--hv-bleu-pale); border-radius: 8px; font-size: .88rem; }
.hv-reprise-avis button { font: inherit; font-weight: 600; color: var(--hv-bleu); background: none; border: 0; cursor: pointer; padding: 0; }
.hv-description { margin-top: 16px; background: var(--hv-carte); border: 1px solid var(--hv-bord); border-radius: var(--hv-rayon); padding: 12px 16px; font-size: .95rem; overflow-wrap: anywhere; max-height: 18rem; overflow: auto; }
.hv-pdf { margin-top: 12px; background: var(--hv-carte); border: 1px solid var(--hv-bord); border-radius: var(--hv-rayon); }
.hv-pdf > summary { cursor: pointer; padding: 10px 16px; font-weight: 600; color: var(--hv-bleu); }
.hv-pdf-corps { padding: 0 16px 16px; }
.hv-pdf-corps iframe { width: 100%; height: 70vh; min-height: 360px; border: 1px solid var(--hv-bord); border-radius: 8px; margin-bottom: 12px; background: #fff; }
.hv-pager { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 20px 0; }
.hv-pager a { display: block; background: var(--hv-carte); border: 1px solid var(--hv-bord); border-radius: var(--hv-rayon); padding: 10px 14px; color: var(--hv-texte); }
.hv-pager a:hover { border-color: var(--hv-bleu); text-decoration: none; }
.hv-pager small { display: block; color: var(--hv-doux); font-size: .78rem; margin-bottom: 2px; }
.hv-pager span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.hv-page-video .hv-carrousel { margin-top: 20px; }

/* Recherche */
.hv-champ { position: relative; margin-bottom: 8px; }
.hv-champ input, .hv-recherche-mini input { width: 100%; font: inherit; font-size: 1rem; padding: 10px 40px 10px 14px; border: 1px solid var(--hv-bord); border-radius: 22px; background: var(--hv-carte); color: var(--hv-texte); }
.hv-champ input:focus, .hv-recherche-mini input:focus { outline: 2px solid var(--hv-bleu); outline-offset: 0; border-color: var(--hv-bleu); }
.hv-effacer { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; font-size: 1.4rem; line-height: 1; color: var(--hv-doux); cursor: pointer; }
.hv-effacer:hover { background: var(--hv-bleu-pale); }
.hv-compteur { font-size: .85rem; color: var(--hv-doux); min-height: 1.3em; margin-bottom: 8px; }
.hv-resultats { display: grid; gap: 8px; }
.hv-ligne { display: flex; gap: 12px; background: var(--hv-carte); border: 1px solid var(--hv-bord); border-radius: var(--hv-rayon); padding: 8px; color: var(--hv-texte); }
.hv-ligne:hover { border-color: var(--hv-bleu); text-decoration: none; }
.hv-ligne-vignette { flex: 0 0 120px; }
.hv-ligne-vignette img { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; }
.hv-ligne-texte { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hv-ligne-titre { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .95rem; line-height: 1.3; }

/* Catégories */
.hv-acc { background: var(--hv-carte); border: 1px solid var(--hv-bord); border-radius: var(--hv-rayon); margin-bottom: 8px; }
.hv-acc > summary { cursor: pointer; padding: 12px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; list-style: none; }
.hv-acc > summary::-webkit-details-marker { display: none; }
.hv-acc > summary::after { content: "+"; font-size: 1.3rem; color: var(--hv-bleu); margin-left: 12px; }
.hv-acc[open] > summary::after { content: "\2212"; }
.hv-acc-nb { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--hv-doux); }
.hv-acc-livre { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hv-doux); padding: 8px 16px 0; }
.hv-acc-liste { padding: 4px 8px 12px; }
.hv-acc-liste a, .hv-laterale li a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 8px; border-radius: 6px; color: var(--hv-texte); font-size: .95rem; }
.hv-acc-liste a:hover, .hv-laterale li a:hover { background: var(--hv-bleu-pale); text-decoration: none; }
.hv-acc-liste b, .hv-laterale li b { flex: 0 0 auto; font-size: .8rem; font-weight: 600; color: var(--hv-bleu); }

/* Ordinateur */
@media (min-width: 768px) {
	.hv { font-size: 18px; padding-top: 20px; }
	.hv-flux { grid-template-columns: repeat(2, 1fr); }
	.hv-piste { margin: 0; padding: 0; }
	.hv-piste .hv-carte { flex-basis: 240px; }
	.hv-pager { grid-template-columns: 1fr 1fr; }
	.hv-pager-suiv { grid-column: 2; text-align: right; }
	.hv-pager-prec:only-child { grid-column: 1; }
	.hv-fleche { display: flex; position: absolute; top: 40%; z-index: 2; width: 36px; height: 36px; margin-top: -18px; align-items: center; justify-content: center; border: 1px solid var(--hv-bord); border-radius: 50%; background: #fff; color: var(--hv-bleu); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); padding: 0 0 3px; }
	.hv-fleche[hidden] { display: none; }
	.hv-fleche--g { left: -14px; }
	.hv-fleche--d { right: -14px; }
}
@media (min-width: 980px) {
	.hv-mise { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
	.hv-mise--seule { display: block; max-width: 760px; }
	.hv-laterale { display: block; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; background: var(--hv-carte); border: 1px solid var(--hv-bord); border-radius: var(--hv-rayon); padding: 12px; font-size: .95rem; }
	.hv-laterale h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hv-doux); margin: 16px 0 4px 8px; }
	.hv-recherche-mini input { padding: 8px 14px; font-size: .95rem; }
	.hv-accueil .hv-flux, .hv-groupe .hv-flux { grid-template-columns: repeat(3, 1fr); }
	.hv-page-video .hv-main { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .hv * { transition: none !important; } }
/* Le thème (Divi) redonne un display aux sections : « hidden » doit toujours cacher. */
.hv [hidden] { display: none !important; }

/* Séries du jour : téléphone seulement pour l'instant. */
@media (min-width: 980px) { .hv-carrousel--mobile { display: none; } }

/* Thème bleu nuit, textes beige (celui de la page du Maamar), téléphone seulement : rubrique, en-tête du site et barre du bas. */
@media (max-width: 979.98px) {
	body.hv-rubrique, body.hv-rubrique #page-container, body.hv-rubrique #main-content, body.hv-rubrique #et-main-area { background: #0b1a33 !important; }
	body.hv-rubrique #main-header, body.hv-rubrique #page-container #top-header { background: #0b1a33 !important; border-bottom-color: #0b1a33 !important; box-shadow: none !important; }
	/* Le logo du site est un JPG à fond blanc : on affiche à la place sa version blanche transparente, « .org » en beige comme les textes. */
	body.hv-rubrique #logo { content: url(logo-org-beige.png); }
	body.hv-rubrique #et-info, body.hv-rubrique #et-info a, body.hv-rubrique #et-info-email { color: #8ea2bf !important; }
	body.hv-rubrique .h-barre { background: #0f2140; border-top-color: #1c3158; box-shadow: none; }
	body.hv-rubrique .h-barre > a, body.hv-rubrique .h-barre > button { color: #8fc0ff; }
	body.hv-rubrique .h-barre [aria-current=page], body.hv-rubrique .h-barre [aria-expanded=true] { color: #dbbc91; box-shadow: inset 0 3px 0 #dbbc91; }
	.hv {
		--hv-bleu: #8fc0ff;
		--hv-bleu-fonce: #b9d8ff;
		--hv-bleu-pale: #1a3157;
		--hv-fond: #0b1a33;
		--hv-carte: #132647;
		--hv-bord: #22385f;
		--hv-texte: #dbbc91;
		--hv-doux: #9fb0c8;
		color-scheme: dark;
	}
	.hv h1, .hv h2, .hv h3, .hv .hv-titre-video { color: var(--hv-texte); }
	/* Titres des vidéos en blanc, le reste des textes en beige. */
	.hv .hv-carte-titre a, .hv .hv-ligne-titre, .hv .hv-titre-video { color: #fff; }
	/* Polices du site (Open Sans, déjà chargée par le thème). */
	.hv { font-family: "Open Sans", Arial, sans-serif; }
	/* Nombre de vidéos à côté du titre. */
	.hv-accueil .hv-tete { display: flex; align-items: center; flex-wrap: wrap; column-gap: 12px; }
	.hv-accueil .hv-tete .hv-compte { margin: 0; padding-top: 3px; }
	.hv-accueil .hv-tete h1 { display: flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .02em; }
	/* Même icône que « Vidéos » dans la barre du bas. */
	.hv-tete-icone { display: block; flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
	/* Titre de la playlist sur une ligne, lien « Toutes les vidéos » en dessous. */
	/* Titres plus bas, collés à leurs vidéos. */
	.hv-carrousel-tete { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 26px; margin-bottom: 6px; }
	/* Chaque carrousel sur une bande plus foncée, de bord à bord, pour qu'on voie qu'il défile. */
	.hv-carrousel { background: #071226; border-top: 1px solid #1c3158; border-bottom: 1px solid #1c3158; padding: 0 16px 16px; margin: 0 -16px 18px; overflow: hidden; }
	.hv-carrousel .hv-carrousel-tete { padding-top: 14px; }
	.hv-accueil .hv-h2 { text-transform: uppercase; letter-spacing: 0; font-size: min(1.2rem, 4.6vw); margin: 34px 0 8px; }
	.hv-carrousel-tete h2 { text-transform: uppercase; letter-spacing: 0; font-size: min(1.35rem, 4.6vw); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
	.hv-onglets a.est-actif, .hv-bouton, .hv-puce--inter, .hv-externe { background: #2a6fd1; border-color: #2a6fd1; color: #dbbc91; }
	/* Onglet sélectionné : beige, écriture bleu nuit. */
	.hv-onglets a.est-actif { background: #dbbc91; border-color: #dbbc91; color: #0b1a33; }
	.hv .hv-puce--inter, .hv .hv-bouton { color: #dbbc91 !important; }
	.hv-bouton:hover { background: #3a7fe0; }
	.hv-bouton--clair { background: var(--hv-carte); border-color: var(--hv-bleu); color: var(--hv-bleu) !important; }
	.hv-bouton--clair:hover { background: var(--hv-bleu-pale); }
	.hv-plus:hover { background: #2a6fd1; border-color: #2a6fd1; color: #dbbc91; }
}

/* Mobile : carrousels moins hauts, pour voir plus de vidéos sur un écran. */
@media (max-width: 979.98px) {
	.hv-piste .hv-carte { flex-basis: 58%; max-width: 230px; }
	.hv-carrousel { padding-bottom: 12px; margin-bottom: 12px; }
	/* Titres au ras de leurs vidéos ; même espace au-dessus du titre que sous les vidéos. */
	.hv-carrousel .hv-carrousel-tete { padding-top: 10px; margin-bottom: 4px; }
	.hv-carrousel .hv-carrousel-tete h2 { padding-bottom: 0; line-height: 1.15; }
	.hv-piste .hv-carte-titre { padding-bottom: 2px; }
	.hv-piste .hv-carte--c .hv-carte-corps { padding: 6px 10px 8px; }
}

/* Encart [hv_dernieres_videos] dans les pages du site (accueil mobile). */
.hv-encart { padding: 0; background: none; margin: 0 0 20px; }
.hv-encart .hv-carrousel { margin: 0; }
@media (max-width: 979.98px) {
	/* Bord à bord : l'encart sort de la colonne de la page. */
	.hv-encart { width: 100vw; margin-left: calc(50% - 50vw); }
	.hv-encart .hv-carrousel { margin: 0; border-radius: 0; }
	.hv-encart .hv-carrousel-tete h2 { color: #dbbc91; padding-top: 0; }
}

/* Mobile : page Catégories en majuscules, titres en beige, noms des catégories en blanc. */
@media (max-width: 979.98px) {
	.hv-categories .hv-tete h1, .hv-acc > summary, .hv-acc-liste a { text-transform: uppercase; letter-spacing: .02em; }
	.hv-acc > summary { color: var(--hv-texte); }
	.hv-acc-liste a { color: #fff; }
}
