/*
 * Page-specific rules: About, Blog, Contact, Features.
 *
 * Part of the Web Weasel child theme. Loaded from inc/enqueue-assets.php.
 * Order matters: this file is printed after the previous module.
 */

/* Page A propos */
.ww-pillar-card {
	background: #fff;
	border-radius: 16px;
	padding: 16px 20px;
	font-size: 15px;
	line-height: 1.55;
	box-shadow: 0 3px 0 rgba(25,78,79,0.1);
	margin: 0 !important;
}
.ww-pillar-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
}
.ww-photo-card {
	background: #fff;
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 3px 0 rgba(25,78,79,0.1);
	max-width: 340px;
}
.ww-photo-card img {
	display: block;
	width: 100%;
}
.ww-parcours-badge {
	display: block;
	background: none;
	color: var(--wp--preset--color--ww-mint-300) !important;
	font-family: var(--wp--preset--font-family--nunito-sans);
	font-weight: 800;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: center;
	padding: 0;
	margin: 0 !important;
}
.cb-slide .ww-step-card figure + p {
	color: var(--wp--preset--color--ww-sun) !important;
	font-family: var(--wp--preset--font-family--archivo) !important;
	font-weight: 800 !important;
	font-stretch: 88%;
	text-transform: uppercase;
	font-size: 14px !important;
	margin: 0 !important;
}
.ww-skill-card {
	background: #fff;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 3px 0 rgba(25,78,79,0.1);
	margin-bottom: 24px;
	transition: transform 0.2s ease;
}
.ww-skill-card:hover {
	transform: translateY(-4px);
}
.ww-skill-disc {
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: var(--wp--preset--color--ww-mint-100);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	overflow: hidden;
}
.ww-skill-disc img {
	width: 65%;
	height: auto;
	object-fit: contain;
}

/* Page Blog */
.ww-blog-card {
	background: #fff !important;
	border-radius: 18px !important;
	overflow: hidden;
	transition: transform 0.2s ease;
}
.ww-blog-card:hover {
	transform: translateY(-6px);
}
.ww-blog-card .wp-block-post-featured-image {
	margin: 0 !important;
	border-radius: 0 !important;
}
.ww-blog-card .wp-block-post-featured-image img {
	border-radius: 0 !important;
}
.ww-blog-card .wp-block-post-title a {
	font-family: var(--wp--preset--font-family--archivo);
	font-weight: 800;
	font-stretch: 88%;
	text-transform: uppercase;
	line-height: 1.25 !important;
	color: var(--wp--preset--color--main) !important;
}
.ww-blog-card time {
	font-size: 12.5px;
	color: var(--wp--preset--color--ww-slate) !important;
}
.ww-blog-card .wp-block-post-excerpt p {
	color: var(--wp--preset--color--ww-slate) !important;
}
.ww-blog-card .wp-block-post-terms a {
	font-size: 12.5px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--ww-teal-500) !important;
}

.ww-pagination .wp-block-query-pagination-previous,
.ww-pagination .wp-block-query-pagination-next,
.ww-pagination .page-numbers {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 14px;
	border: 2px solid var(--wp--preset--color--ww-teal-700);
	color: var(--wp--preset--color--ww-teal-700) !important;
	text-decoration: none !important;
}
.ww-pagination .page-numbers.current {
	background: var(--wp--preset--color--ww-teal-700);
	color: #fff !important;
}
.ww-pagination .wp-block-query-pagination-previous:hover,
.ww-pagination .wp-block-query-pagination-next:hover,
.ww-pagination .page-numbers:hover {
	background: var(--wp--preset--color--ww-teal-700);
	color: #fff !important;
}

/* Page Contact : formulaire Forminator */
.ww-contact-card {
	background: #fff;
	border-radius: 20px;
	padding: 32px;
	box-shadow: 0 3px 0 rgba(25,78,79,0.1);
}
.ww-contact-card .forminator-row {
	margin-bottom: 14px !important;
}
.ww-contact-card input[type=text],
.ww-contact-card input[type=email],
.ww-contact-card input[type=tel],
.ww-contact-card input[type=url],
.ww-contact-card select,
.ww-contact-card textarea {
	border: 2px solid var(--wp--preset--color--ww-mint-100) !important;
	border-radius: 10px !important;
	padding: 11px 14px !important;
	font-family: var(--wp--preset--font-family--nunito-sans) !important;
}
.ww-contact-card .forminator-button-submit {
	background: var(--wp--preset--color--custom-biche-orange) !important;
	border-color: var(--wp--preset--color--custom-biche-orange) !important;
	border-radius: 999px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding: 14px 26px !important;
}
.ww-contact-card .forminator-label,
.ww-contact-card label {
	font-weight: 700 !important;
	color: var(--wp--preset--color--main) !important;
}

/* Page FAQ */
/* Accordion question buttons: some measured as little as 24px of clickable
   height (short questions like "Que proposez-vous exactement ?"), well
   under the 44px comfort recommendation for what is the most-tapped
   element on the page. min-block-size is a floor, not a fixed height, so
   longer two-line questions can still grow past it. */
.wp-block-wpseopress-faq-block-v2 .wp-block-details > summary {
	min-block-size: 44px;
	padding-block: 10px;
	cursor: pointer;
}

/* ===================================================================
   Page Fonctionnalites : grille de 6 cartes (design B mis a jour)
   =================================================================== */
.ww-feature-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 8px;
}
@media (max-width: 989px) {
	.ww-feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 781px) {
	.ww-feature-grid { grid-template-columns: 1fr; }
}
.ww-feature-card {
	background: var(--wp--preset--color--ww-mint-100);
	border-radius: 20px;
	padding: 26px;
	display: flex !important;
	flex-direction: column;
	gap: 14px;
	height: 100%;
	box-sizing: border-box;
}
.ww-feature-card .ww-card-icon {
	width: 52px;
	height: 52px;
}
.ww-feature-card h3 {
	margin: 0 !important;
	font-size: 21px !important;
}
.ww-feature-card > p:first-of-type {
	margin: 0 !important;
	color: var(--wp--preset--color--ww-slate-deep) !important;
	font-size: 15px;
}
.ww-feature-card .ww-feature-arrow {
	margin: auto 0 0 !important;
	padding-top: 8px;
	font-weight: 700 !important;
	color: var(--wp--preset--color--ww-teal-700) !important;
	font-size: 15px;
}
.ww-feature-card .wp-block-list {
	gap: 9px !important;
}


/* Partenaires page: consistent card treatment for every partner entry
   (previously each was a bare heading + columns row, no shared component,
   which is why Indy in particular looked out of place -- it wasn't
   structurally different, just as unstyled as the rest, and its square
   logo made that more visible). object-fit:contain on a fixed-height image
   box normalises square vs. wide logos across all partners. */
/* One partner per row (updated spec): title on top, logo left + text right,
   button below spanning the row. */
.ww-partners-grid {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 20px;
	margin-bottom: var(--wp--preset--spacing--large);
}
.ww-partner-cta {
	margin-top: 16px;
	justify-content: center;
}
.ww-partner-cta .wp-block-button {
	width: 100%;
	max-width: 280px;
}
.ww-partner-cta .wp-block-button__link {
	display: block;
	text-align: center;
}
.ww-partner-card {
	background: #fff;
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 3px 0 rgba(25, 78, 79, 0.08);
}
.ww-partner-card h3 {
	margin: 0 0 16px !important;
}
.ww-partner-card .wp-block-columns {
	gap: 20px !important;
	align-items: flex-start !important;
}

.ww-partner-card .wp-block-column:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 140px;
}
.ww-partner-card .wp-block-column:first-child img {
	width: auto !important;
	max-width: 100%;
	max-height: 140px;
	object-fit: contain;
}
.ww-partner-card .wp-block-column:first-child figure {
	margin: 0;
}
.ww-partner-card p {
	margin: 0 0 14px !important;
	line-height: 1.55;
}
.ww-partner-card .wp-block-buttons {
	margin-top: 4px;
}
@media (max-width: 781px) {
	.ww-partners-grid {
		grid-template-columns: 1fr;
	}
}
/* The labels/logos row (Brevo, Du cote des pros, Entrepreneurs Sud Oise)
   is a lighter showcase, not full partner cards -- just give it more
   breathing room to match the rest of the page. */
.wp-block-post-content > .wp-block-group h2 + .wp-block-group[style*="flex"] {
	gap: 32px !important;
	margin-top: 18px;
	margin-bottom: var(--wp--preset--spacing--large);
}
