/**
 * Homepage (front page) — layout helpers for the "Accueil2" redesign.
 *
 * Selectors are scoped to specific block classNames used only on this page
 * (fp-home-heading, fp-hero-*, fp-testimonial-*, fp-home-deposit) so nothing
 * here leaks into the header, footer or other pages. Colors reuse the
 * site's real design tokens (--fp-primary-color / --fp-secondary-color,
 * defined in the parent style.css) rather than inventing a new palette.
 *
 * @package Blocksy_Child_Freeperie
 * @since   2.1.0
 */

:root {
	--fp-cream: #faf8f3;
	--fp-ink: #20241f;
	--fp-muted-border: #e5e2d9;
}

/* Distinctive display face for the homepage's own section headings only —
   body copy and the rest of the site keep the theme's own font. Applied via
   an explicit "fp-home-heading" block className rather than a page-wide
   wrapper, so it can't leak into other templates. */
.fp-home-heading,
.fp-hero-heading,
.fp-home-deposit h2,
.fp-home-deposit h3 {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 600;
	letter-spacing: -0.01em;
}

.fp-eyebrow {
	display: inline-flex;
	align-items: center;
	color: var( --fp-secondary-color );
	background: color-mix( in srgb, var( --fp-primary-color ) 12%, #fff );
	font-weight: 700;
	font-size: 13px;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 6px 14px;
	border-radius: 999px;
}

.fp-hero-btn-secondary {
	background: #fff !important;
	color: var( --fp-primary-color ) !important;
	border: 2px solid var( --fp-primary-color ) !important;
}

.fp-hero-btn-secondary:hover {
	background: color-mix( in srgb, var( --fp-primary-color ) 8%, #fff ) !important;
}

/* ---------- Hero ---------- */

.fp-hero {
	display: flex;
	align-items: center;
	gap: 56px;
	padding: 56px 0;
	flex-wrap: wrap;
}

.fp-hero-text {
	flex: 1 1 460px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.fp-hero-heading {
	font-size: clamp( 32px, 4vw, 48px );
	line-height: 1.1;
	margin: 0;
	color: var( --fp-ink );
}

.fp-hero-text > p {
	font-size: 17px;
	color: var( --fp-text-muted );
	max-width: 480px;
}

.fp-hero-buttons {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.fp-hero-visual {
	flex: 1 1 380px;
	position: relative;
}

.fp-hero-visual img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 20px;
	display: block;
}

.fp-hero-trust-card {
	position: absolute;
	bottom: -22px;
	left: -22px;
	background: #fff;
	border-radius: 14px;
	box-shadow: var( --fp-card-shadow-hover, 0 8px 24px rgba( 0, 0, 0, .12 ) );
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 240px;
}

.fp-hero-trust-card .fp-icon-circle {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: color-mix( in srgb, var( --fp-primary-color ) 14%, #fff );
	color: var( --fp-secondary-color );
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.fp-hero-trust-card strong {
	display: block;
	font-size: 13.5px;
	color: var( --fp-ink );
}

.fp-hero-trust-card span {
	display: block;
	font-size: 12px;
	color: var( --fp-text-muted );
}

/* ---------- Section rhythm ---------- */

.fp-section-cream {
	background: var( --fp-cream );
}

/* ---------- Testimonial cards ---------- */

.fp-testimonial-grid {
	display: grid;
	grid-template-columns: repeat( 3, 1fr );
	gap: 24px;
}

.fp-testimonial-card {
	background: #fff;
	border: 1px solid var( --fp-muted-border );
	border-radius: 14px;
	padding: 28px;
	box-shadow: var( --fp-card-shadow );
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fp-testimonial-card .fp-stars-muted {
	color: #c7c9c4;
	letter-spacing: 2px;
	font-size: 15px;
}

.fp-testimonial-card p {
	margin: 0;
	font-size: 14.5px;
	color: var( --fp-text-muted );
	font-style: italic;
}

/* ---------- Deposit banner ---------- */

.fp-home-step-num {
	width: 56px;
	height: 56px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, .16 );
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 20px;
	margin: 0 auto 14px;
	color: #fff;
}

.fp-home-deposit h2,
.fp-home-deposit h3 {
	color: #fff;
}

.fp-home-deposit p {
	color: rgba( 255, 255, 255, .85 );
}

@media ( max-width: 999px ) {
	.fp-hero {
		gap: 32px;
	}

	.fp-testimonial-grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Section Headers (Section Head + Arrow link) ---------- */

.fp-section-head {
	margin-bottom: 32px;
}

.fp-section-head .fp-eyebrow {
	margin-bottom: 6px;
}

.fp-link-arrow {
	margin: 0;
	font-weight: 700;
	font-size: 14px;
}

.fp-link-arrow a {
	color: var( --fp-secondary-color );
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.15s ease, text-decoration 0.15s ease;
}

.fp-link-arrow a:hover {
	text-decoration: underline;
}

/* ---------- Harmonisation Cartes Produits (Coups de Cœur & Product Collection) ---------- */

/* Carte produit : fond blanc, bordure douce, ombre portée et coins arrondis */
.wp-block-woocommerce-product-collection .wc-block-product {
	background: #fff !important;
	border: 1px solid var( --fp-muted-border, #e5e2d9 ) !important;
	border-radius: 12px !important;
	box-shadow: var( --fp-card-shadow, 0 4px 16px rgba( 0, 0, 0, 0.06 ) ) !important;
	overflow: hidden !important;
	box-sizing: border-box !important;
	display: flex !important;
	flex-direction: column !important;
	margin: 0 !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.wp-block-woocommerce-product-collection .wc-block-product:hover {
	box-shadow: var( --fp-card-shadow-hover, 0 8px 24px rgba( 0, 0, 0, 0.12 ) ) !important;
	transform: translateY( -2px );
}

/* Image produit : suppression des marges et ratio carré uniforme */
.wp-block-woocommerce-product-collection .wc-block-components-product-image,
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image {
	margin: 0 !important;
	width: 100% !important;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-image img,
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-image img {
	display: block !important;
	width: 100% !important;
	aspect-ratio: 1 / 1 !important;
	object-fit: cover !important;
	border-radius: 0 !important;
}

/* Bloc prix double (standard + avec don) centré et aéré */
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-price {
	padding: 12px 14px 0 !important;
	margin: 0 0 12px !important;
	text-align: center !important;
	flex-grow: 1 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
}

/* Bouton d'ajout au panier : pleine largeur, pilule verte identique à Nouveautés */
.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button {
	padding: 0 14px 14px !important;
	margin: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	display: flex !important;
	justify-content: center !important;
}

.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button .wp-block-button__link {
	border-radius: 999px !important;
	width: 100% !important;
	min-height: 40px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	background-color: var( --fp-primary-color, #2e8b57 ) !important;
	color: #fff !important;
	border: none !important;
	transition: background-color 0.2s ease, transform 0.15s ease !important;
}

.wp-block-woocommerce-product-collection .wp-block-woocommerce-product-button .wp-block-button__link:hover {
	background-color: var( --fp-secondary-color, #246B43 ) !important;
}

