/*
Theme Name: Thryve Corporate Child
Template: thryve-corporate
Version: 1.0.6
*/

.thryve-author-sidebar {
	position: sticky;
	top: 88px;
	align-self: flex-start;
}

.thryve-author-sidebar .wp-block-latest-posts__post-title {
	font-size: 15px;
	font-weight: 400;
}

.thryve-author-sidebar .wp-block-latest-posts {
	margin: 0;
}

@media (max-width: 599px) {
	.thryve-author-sidebar {
		position: static;
		top: auto;
	}
}

.footer-articles-col {
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.footer-articles-col * {
	min-width: 0;
}

.footer-articles-col .wp-block-group {
	width: 100%;
	max-width: 100%;
	flex-basis: 100%;
}

.footer-latest-posts {
	width: 100%;
	max-width: 100%;
}

.footer-latest-posts li {
	width: 100%;
	max-width: 100%;
	margin-bottom: 10px;
}

.footer-latest-posts li:last-child {
	margin-bottom: 0;
}

.footer-latest-posts .wp-block-latest-posts__post-title {
	position: relative;
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

.footer-latest-posts .wp-block-latest-posts__post-title:hover {
	color: inherit;
}

.footer-latest-posts .wp-block-latest-posts__post-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--wp--preset--color--primary);
	transition: width 0.3s ease;
}

.footer-latest-posts .wp-block-latest-posts__post-title:hover::after {
	width: 100%;
}

/* About Us (homepage): photo before text on mobile only */
@media (max-width: 781px) {
	.thryve-aboutus-photo-col {
		order: -1;
	}
}

/* Hero homepage (mobile) : plus d'espace entre le texte d'intro et le bouton "Lire les articles" */
@media (max-width: 599px) {
	.thryve-hero-content .wp-block-buttons {
		margin-top: 44px !important;
	}
}

/* Hero homepage : plus d'espace entre l'accroche "Formation & Carrière Logistique" et le titre */
.thryve-hero-content > p:first-child {
	margin-bottom: 28px !important;
}

/* Hero homepage : plus d'espace entre le titre et le paragraphe de description */
.thryve-hero-content .thryve-heading + .wp-block-group p {
	margin-top: 48px !important;
}

/* Anti-spam commentaires : champ honeypot invisible (hors écran, pas display:none
   pour rester piégeux face aux bots qui filtrent ce style) et masqué aux lecteurs d'écran. */
.thryve-hp {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

/* Newsletter footer (The Newsletter Plugin – formulaire custom AJAX) */
.footer-wrapper .tnp-subscription-minimal {
	width: 100%;
	max-width: 320px;
	text-align: left;
}

/* Champs empilés, sans marge parasite des wrappers .tnp-field */
.footer-wrapper .tnp-subscription-minimal .tnp-field {
	margin: 0;
}

.footer-wrapper .tnp-subscription-minimal .tnp-email {
	display: block;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0 0 10px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.3;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid #3a3a3a;
	border-radius: 6px;
}

.footer-wrapper .tnp-subscription-minimal .tnp-email::placeholder {
	color: var(--wp--preset--color--base-2, #b9b9b9);
	opacity: 1;
}

.footer-wrapper .tnp-subscription-minimal .tnp-email:focus {
	outline: none;
	border-color: #D8613C;
}

.footer-wrapper .tnp-subscription-minimal .tnp-submit {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 600;
	color: #fff;
	background: #D8613C;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.footer-wrapper .tnp-subscription-minimal .tnp-submit:hover {
	opacity: 0.88;
}

/* Message affiché après inscription (remplace le contenu du formulaire en AJAX) */
.footer-wrapper .tnp-subscription-minimal p {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--base-2, #d8d8d8);
}

/* Tableaux responsives : scroll horizontal sur mobile */
.wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.wp-block-table table {
	min-width: 100%;
}
