/* Lieux, mots-clés et personnes en tête des résultats de recherche (tmv-suggestions.php), en étiquettes comme dans la réécriture */
.tmv-suggestions { margin: 0 0 24px; }
.tmv-suggestions p { margin: 0 0 8px; line-height: 2; }
.tmv-suggestions strong { margin-right: 6px; }
/* Classe doublée : le CSS additionnel du thème met « article .entry a:hover » en orange !important */
a.tmv-etiquette.tmv-etiquette { display: inline-block; padding: 0 .3em; border-radius: .25rem; background: #60a5fa; color: #000 !important; font-weight: normal; line-height: 1.6; text-decoration: none; }
a.tmv-etiquette.tmv-etiquette:hover { background: #eab308; color: #374151 !important; text-shadow: -0.02ex 0 0 currentColor, 0.02ex 0 0 currentColor; }
.tmv-etiquette span { opacity: .6; font-size: .85em; }
.tmv-etiquettes { line-height: 2; }
/* Références sous la vidéo (tmv-content.php) */
.tmv_references { margin: 14px 0 20px; }
.tmv_references .tmv-etiquettes { margin: 0 0 4px; }
.tmv_references strong { margin-right: 4px; }
.tmv-licence i { font-size: 1.2em; }

/* Icônes des réseaux au-dessus de la recherche : grises, en couleur au survol */
#header-widgets .social-links a { color: rgba(255, 255, 255, .45) !important; transition: color .2s; }
#header-widgets .social-links i { font-size: 24px; vertical-align: middle; }
#header-widgets .social-links img { filter: brightness(0) invert(1); opacity: .45 !important; vertical-align: middle; position: relative; top: 6px; transition: filter .2s, opacity .2s; }
#header-widgets .social-links a:hover img { filter: none; opacity: 1 !important; }
#header-widgets .social-links a:hover .fa-envelope { color: #ffc832; }
#header-widgets .social-links a:hover .fa-mastodon { color: #6364ff; }
#header-widgets .social-links a:hover .fa-rss { color: #f26522; }
#header-widgets .social-links a:hover .fa-facebook { color: #1877f2; }
#header-widgets .social-links a:hover .fa-youtube { color: #ff0000; }
#header-widgets .social-links a:hover .fa-instagram { color: #e4405f; }

/* Une ligne par vidéo (tmv-lignes.php) : résultats de recherche, fiches des lieux et mots-clés */
.tmv-lignes { display: flex; flex-direction: column; gap: 16px; margin: 12px 0 24px; }
.tmv-ligne { display: flex; gap: 16px; height: 11rem; overflow: hidden; color: inherit !important; text-decoration: none !important; }
.tmv-ligne-image { position: relative; flex: 0 0 auto; height: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: #ddd; }
.tmv-ligne-image img, .tmv-ligne-sans-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.tmv-ligne-texte { display: flex; flex-direction: column; min-width: 0; }
.tmv-ligne-titre { font-size: 1.15em; font-weight: 600; line-height: 1.3; color: #333; }
.tmv-ligne:hover .tmv-ligne-titre { color: #eab308; }
.tmv-ligne-meta { margin: 2px 0 4px; color: #888; font-size: .75em; font-weight: 700; text-transform: uppercase; }
.tmv-ligne-resume { color: #444; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; line-height: 1.45; }

/* Aperçu vidéo au survol des vignettes (tmv-apercus.js) */
.post-grid .element-media { position: relative; }
.post-grid .tmv-apercu, .tmv-ligne-image .tmv-apercu { position: absolute; inset: 0; pointer-events: none; background-color: #000; background-repeat: no-repeat; }
.tmv-apercu-attente { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #eab308; transform-origin: left; animation: tmv-attente 1.5s ease-out forwards; pointer-events: none; }
@keyframes tmv-attente { from { transform: scaleX(0); } to { transform: scaleX(.9); } }

@media (max-width: 719px) {
	/* Vidéos d'un bord à l'autre de l'écran, comme dans la réécriture */
	.tmv_video_principale, .tmv-ligne-image { width: 100vw !important; max-width: none !important; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; border-radius: 0 !important; }
	.tmv-ligne-image img { border-radius: 0; }
	.tmv-ligne { flex-direction: column; height: auto; gap: 6px; overflow: visible; }
	.tmv-ligne-image { height: auto; max-height: 80vh; }
	.tmv-ligne-resume { display: none; }

	/* Les grilles de l'accueil défilent à l'horizontale au lieu de s'empiler */
	.home .post-grid .grid-items { display: flex; align-items: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; height: auto !important; }
	.home .post-grid .grid-items .item { flex: 0 0 78% !important; width: auto !important; max-width: none !important; height: auto !important; position: static !important; scroll-snap-align: center; }
	.home .post-grid .grid-items .item img { aspect-ratio: 16 / 9; height: auto !important; object-fit: cover; }
	.home .post-grid .grid-items .item .tmv_excerpt { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
}

/* « Retour en haut » comme dans la réécriture : bouton gris à droite du pied de page (le lien #back-to-top de Hueman, restylé) */
#footer #footer-bottom .container-inner { position: relative; }
#footer #footer-bottom #back-to-top { position: absolute; right: 30px; top: 50%; transform: translateY(-50%); width: auto; height: auto; margin: 0; padding: .5rem 1rem; z-index: 2; overflow: visible;
	background: #4b5563; color: #e5e7eb; border-radius: 0; box-shadow: none; font-size: 15px; line-height: 1.4; white-space: nowrap; }
#footer #footer-bottom #back-to-top:hover { background: #1f2937; color: #e5e7eb; }
#footer #footer-bottom #back-to-top i { font-size: 1em; position: static; top: 0; margin-right: .5em; }
#footer #footer-bottom #back-to-top i::before { content: "\f062"; }
#footer #footer-bottom #back-to-top::after { content: "retour en haut"; }
@media (max-width: 719px) {
	#footer #footer-bottom #back-to-top { position: static; transform: none; display: table; margin: 12px auto; }
}

/* En-tête sur mobile : le logo et la recherche seulement, les icônes des réseaux vont au pied de page (tmv-mobile.js) */
.tmv-reseaux-pied { display: none; }
@media (max-width: 719px) {
	#header-widgets .widget:has(.social-links) { display: none; }
	#header-widgets { margin: 0; padding: 0 0 14px; }
	#header-widgets .widget_search, #header-widgets .search-form { margin: 0; padding: 0; }
	#header-widgets .search-form { display: flex; gap: 6px; }
	#header-widgets .search-form label { flex: 1; }
	#header-widgets .search-form .search-field { width: 100%; }
	.tmv-reseaux-pied { display: block; text-align: center; padding: 10px 0 4px; }
	#footer .tmv-reseaux-pied .social-links { display: inline-flex !important; gap: 16px; float: none; margin: 0; padding: 0; }
	.tmv-reseaux-pied .social-links li { float: none; margin: 0; }
	#footer .tmv-reseaux-pied a { color: rgba(255, 255, 255, .45) !important; }
	#footer .tmv-reseaux-pied i { font-size: 24px; vertical-align: middle; }
	#footer .tmv-reseaux-pied img { filter: brightness(0) invert(1); opacity: .45 !important; vertical-align: middle; }
}
