/*
Theme Name: Herau
Template: storefront
Description: Theme enfant Storefront pour Herau, produits phytosanitaires en Côte d'Ivoire.
Author: Herau
Version: 1.0.0
*/

:root {
	--herau-gutter: clamp(16px, 2vw, 40px);
}

.home .entry-content,
.storefront-full-width-content .entry-content {
	text-align: left;
}

/* wpautop wraps stray comments/whitespace in page content into empty <p>
   tags with default margin — collapse those so they can't add phantom gaps. */
.entry-content > p:empty {
	display: none;
}

/* Storefront caps .col-full at a fluid ~1064px on wide screens. hereau.tallac-ci.com
   runs truly edge-to-edge (no max-width at all) — match that: full viewport width,
   just a small gutter so content isn't glued to the browser edge. */
.col-full {
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: var(--herau-gutter) !important;
	padding-right: var(--herau-gutter) !important;
}

/* Storefront also caps .entry-content to a readable ~723px for blog-post text.
   This site has no blog — the homepage/page content (hero carousel, trust bar,
   etc.) should use the full width like the rest of the layout. */
.entry-content {
	max-width: none !important;
}

/* Storefront pads #main/the page wrapper vertically (~110px combined) before
   content starts. Kill that so the hero carousel sits flush under the header. */
.site-main,
.page {
	padding-top: 0 !important;
}

/* Storefront also pads .site-header itself (~42px) above the logo/search/
   contact row — collapse that so the row sits flush under the announcement bar. */
.site-header {
	padding-top: 8px !important;
}

/* Header row 1: logo — wide rounded search — contact, like eas.ci. Scoped to the
   direct .col-full child of .site-header so it doesn't affect .col-full elsewhere
   (product grids, footer, etc. all reuse that class). */
.site-header > .col-full {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 24px;
	padding-top: 0;
	padding-bottom: 4px;
}
.site-header > .col-full > .site-branding {
	order: 1;
	flex: 0 0 auto;
	width: auto;
	max-width: max-content;
	margin: 0;
}
.site-header > .col-full > .site-branding img {
	max-height: 56px;
	width: auto;
}
.site-header > .col-full > .site-search {
	order: 2;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 640px;
	margin: 0 auto;
}
.site-header > .col-full > .site-search .woocommerce-product-search {
	display: flex;
	width: 100%;
}
.site-header > .col-full > .site-search .woocommerce-product-search::before {
	display: none;
}
.site-header > .col-full > .site-search input[type="search"] {
	flex: 1 1 auto !important;
	width: auto !important;
	height: 46px;
	border: 1px solid #dcdcdc;
	border-radius: 999px 0 0 999px;
	padding: 0 22px;
	font-size: 0.95em;
	box-sizing: border-box;
}
.site-header > .col-full > .site-search button[type="submit"] {
	position: static !important;
	clip-path: none !important;
	clip: auto !important;
	flex: 0 0 auto;
	width: auto !important;
	height: 46px !important;
	line-height: 46px !important;
	min-height: 46px;
	border-radius: 0 999px 999px 0 !important;
	padding: 0 22px;
	background: #2E7D32;
	border: 1px solid #2E7D32;
	color: #fff;
	box-sizing: border-box;
	overflow: visible;
}
.herau-header-contact {
	order: 3;
	flex: 0 0 auto;
	display: flex;
	gap: 24px;
}
.herau-header-contact__item {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}
.herau-header-contact__icon {
	font-size: 1.4em;
}
.herau-header-contact__label {
	display: block;
	font-size: 0.75em;
	color: #777;
}
.herau-header-contact__item a {
	color: #1B5E20;
	font-weight: 700;
	text-decoration: none;
}
/* Account / wishlist / cart circular icon buttons in the nav row, like eas.ci. */
.herau-account-icons {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
}
.herau-icon-btn,
#site-header-cart .cart-contents {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #F1F8E9;
	color: #1B5E20;
	text-decoration: none;
}
.herau-icon-btn svg {
	width: 26px;
	height: 26px;
}
.herau-icon-btn:hover,
#site-header-cart .cart-contents:hover {
	background: #DCEDC8;
	color: #1B5E20;
}
.herau-icon-badge {
	position: absolute;
	top: -2px;
	right: -2px;
	min-width: 19px;
	height: 19px;
	padding: 0 4px;
	border-radius: 999px;
	background: #E65100;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}
@media (max-width: 900px) {
	.herau-header-contact {
		display: none;
	}
	.site-header > .col-full > .site-search {
		order: 3;
		max-width: 100%;
		flex-basis: 100%;
	}
}

/* Fix WooCommerce Blocks cart/checkout order summary collapsing product name to a sliver:
   the price/savings badge column claims a fixed min-content width, squeezing the name
   column to almost nothing. Give the name its own row and drop price to a second row. */
.wc-block-components-order-summary-item {
	flex-wrap: wrap;
}
.wc-block-components-order-summary-item__description {
	flex: 1 1 120px;
	min-width: 120px;
}
.wc-block-components-order-summary-item__total-price {
	flex: 1 0 100%;
	margin-left: 48px;
	width: calc(100% - 48px);
	text-align: right;
}

/* Rotating announcement bar, above the header (like hereau.tallac-ci.com's top strip). */
.herau-announce {
	position: relative;
	height: 42px;
	background: #8BC34A;
	overflow: hidden;
}
.herau-announce__item {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #1B5E20;
	font-weight: 700;
	font-size: 0.9em;
	opacity: 0;
	transition: opacity 0.6s ease;
	padding: 0 16px;
	text-align: center;
}
.herau-announce__item.is-active {
	opacity: 1;
}

/* Shared full-bleed treatment: breaks an element out of the .col-full gutter
   with matching negative margins so it's exactly as wide as the hero carousel. */
.herau-full-bleed {
	margin-left: calc(-1 * var(--herau-gutter));
	margin-right: calc(-1 * var(--herau-gutter));
}

/* Hero carousel: crossfading slides with clickable dots. Breaks out of the
   .col-full gutter with matching negative margins so it runs edge-to-edge,
   flush against the browser window like hereau.tallac-ci.com's hero. */
.hero-carousel {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	margin-left: calc(-1 * var(--herau-gutter));
	margin-right: calc(-1 * var(--herau-gutter));
	margin-bottom: 12px;
	min-height: 360px;
}
.hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	z-index: 2;
	transition: opacity 0.9s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 44px var(--herau-gutter);
	color: #fff;
}
.hero-slide.is-active {
	opacity: 1;
	z-index: 3;
}
.hero-slide__inner {
	flex: 2;
	min-width: 0;
	max-width: 100%;
	text-align: center;
}
.hero-slide__eyebrow {
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #C5E1A5;
	font-weight: 600;
	margin: 0 0 12px;
}
.hero-slide__title {
	font-size: 2.6em;
	line-height: 1.15;
	margin: 0 0 18px;
	color: #fff;
}
.hero-slide__text {
	font-size: 1.15em;
	max-width: 560px;
	margin: 0 auto 28px;
	color: #E8F5E9;
}
.hero-slide__cta {
	display: inline-block;
	font-weight: 700;
	padding: 14px 30px;
	border-radius: 4px;
	text-decoration: none;
	margin: 0 12px 28px 0;
}
.hero-slide__cta--solid {
	background: #8BC34A;
	color: #1B5E20;
}
.hero-slide__cta--outline {
	background: transparent;
	border: 2px solid #fff;
	color: #fff;
	padding: 12px 28px;
}
.hero-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	flex-shrink: 0;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	border: 1px solid rgba(255,255,255,0.5);
	color: #fff;
	cursor: pointer;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, background 0.2s ease, visibility 0.25s;
}
.hero-carousel:hover .hero-arrow {
	opacity: 1;
	visibility: visible;
}
.hero-arrow.is-hidden {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none;
}
.hero-arrow svg {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
}
.hero-arrow:hover {
	background: rgba(255,255,255,0.3);
}
.hero-arrow--prev {
	left: var(--herau-gutter);
}
.hero-arrow--next {
	right: var(--herau-gutter);
}
@media (max-width: 700px) {
	.hero-arrow {
		width: 44px;
		height: 44px;
	}
	.hero-arrow svg {
		width: 20px;
		height: 20px;
	}
	.hero-arrow--prev {
		left: 10px;
	}
	.hero-arrow--next {
		right: 10px;
	}
	/* No hover on touch devices — keep arrows visible so they're discoverable. */
	.hero-arrow {
		opacity: 1;
		visibility: visible;
		background: rgba(255,255,255,0.18);
	}
}
.hero-dots {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	display: flex;
	gap: 8px;
}
.hero-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: rgba(255,255,255,0.5);
	border: none;
	padding: 0;
	cursor: pointer;
}
.hero-dot.is-active {
	background: #fff;
}
@media (max-width: 600px) {
	.hero-carousel {
		min-height: 440px;
	}
	.hero-slide {
		padding: 28px 16px;
	}
	.hero-slide__title {
		font-size: 1.9em;
	}
}

.whatsapp-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #25D366;
	color: #fff;
	border-radius: 50%;
	width: 58px;
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0,0,0,0.25);
	z-index: 9999;
	text-decoration: none;
	font-size: 28px;
}
.whatsapp-float:hover {
	background: #1DA851;
	color: #fff;
}

.site-footer-herau {
	background: #1B5E20;
	color: #E8F5E9;
	padding: 48px 0 20px;
	border-top: 3px solid #8BC34A;
}
.site-footer-herau .col-full {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
}
/* Storefront's .col-full::before/::after clearfix (content:"";display:table) becomes an
   invisible extra grid item once .col-full is a grid container, shifting every real
   column over by one and wrapping the last column onto its own row. Kill it here. */
.site-footer-herau .col-full::before,
.site-footer-herau .col-full::after {
	content: none;
	display: none;
}
.site-footer-herau h4 {
	color: #fff;
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: 0.3px;
}
.site-footer-herau p {
	margin: 0 0 10px;
	line-height: 1.6;
}
/* WooCommerce injects an inline `.site-footer a:not(.button):not(.components-button){color:#333}`
   rule whose :not() chain out-specifies a plain `.site-footer-herau a` selector, so footer
   links rendered near-black on the dark green background. !important wins regardless. */
.site-footer-herau a {
	color: #C5E1A5 !important;
	text-decoration: none;
	transition: color 0.2s ease;
}
.site-footer-herau a:hover {
	color: #fff !important;
	text-decoration: underline;
}
.site-footer-herau .footer-contact-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.site-footer-herau .footer-contact-icon {
	flex-shrink: 0;
}
.site-footer-herau .footer-bottom {
	grid-column: 1 / -1;
	border-top: 1px solid rgba(255,255,255,0.15);
	margin-top: 24px;
	padding-top: 18px;
	font-size: 0.85em;
	color: #A5D6A7;
	text-align: center;
}
@media (max-width: 782px) {
	.site-footer-herau .col-full {
		grid-template-columns: 1fr 1fr;
	}
}

/* "À propos" page. */
.page-id-36 .entry-header {
	text-align: center;
}
.about-hero {
	max-width: 760px;
	margin: 8px auto 48px;
	text-align: center;
}
.about-eyebrow {
	text-transform: uppercase;
	letter-spacing: 2px;
	color: #2E7D32;
	font-weight: 700;
	font-size: 0.85em;
	margin: 0 0 12px;
}
.about-hero__title {
	font-size: 2.2em;
	line-height: 1.2;
	color: #1B5E20;
	margin: 0 0 18px;
}
.about-hero__lead {
	font-size: 1.1em;
	color: #43454b;
	max-width: 640px;
	margin: 0 auto;
}
.about-mission {
	display: flex;
	align-items: center;
	gap: 28px;
	max-width: 900px;
	margin: 0 auto 56px;
	background: #F1F8E9;
	border-radius: 12px;
	padding: 36px 40px;
}
.about-mission__icon {
	flex: 0 0 auto;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: #1B5E20;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.4em;
}
.about-mission__text h2 {
	margin-top: 0;
	margin-bottom: 10px;
	color: #1B5E20;
}
.about-mission__text p {
	margin: 0;
	color: #43454b;
}
.about-heading-centered {
	text-align: center;
	color: #1B5E20;
	margin-bottom: 32px;
}
.about-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1100px;
	margin: 0 auto 56px;
}
.about-feature {
	background: #fff;
	border: 1px solid #E8ECE8;
	border-radius: 10px;
	padding: 28px 22px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about-feature:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(27,94,32,0.12);
}
.about-feature__icon {
	font-size: 2.2em;
	margin-bottom: 12px;
}
.about-feature h3 {
	color: #1B5E20;
	margin: 0 0 8px;
	font-size: 1.05em;
}
.about-feature p {
	margin: 0;
	color: #666;
	font-size: 0.92em;
	line-height: 1.5;
}
.about-contact-cta {
	background: #1B5E20;
	color: #fff;
	border-radius: 12px;
	padding: 48px 40px;
	text-align: center;
	max-width: 1100px;
	margin: 0 auto;
}
.about-contact-cta h2 {
	color: #fff;
	margin-top: 0;
	margin-bottom: 10px;
}
.about-contact-cta__lead {
	color: #E8F5E9;
	max-width: 520px;
	margin: 0 auto 24px;
}
.about-contact-item {
	color: #C5E1A5;
	margin: 0 0 8px;
}
.about-contact-item a {
	color: #fff !important;
	text-decoration: none;
	font-weight: 700;
}
.about-contact-item a:hover {
	text-decoration: underline;
}
.about-contact-buttons {
	margin: 24px 0 0;
}
.about-contact-buttons .hero-slide__cta {
	margin: 0 12px;
}
@media (max-width: 900px) {
	.about-features {
		grid-template-columns: 1fr 1fr;
	}
}
@media (max-width: 600px) {
	.about-mission {
		flex-direction: column;
		text-align: center;
		padding: 28px 24px;
	}
	.about-features {
		grid-template-columns: 1fr;
	}
	.about-hero__title {
		font-size: 1.6em;
	}
	.about-contact-cta {
		padding: 36px 22px;
	}
	.about-contact-buttons .hero-slide__cta {
		display: block;
		margin: 0 0 14px;
	}
}
