/* ==========================================================================
   Page d'accueil Cristime
   ==========================================================================
   Palette :
     Accent beige  #CAB49B
     Accent hover  #b9a389
     Texte         #1a1a1a
     Texte léger   #666
     Fond alt      #f5f2ec
     Fond sombre   #2c2c2c
     Bordure       #e5e5e5
   ========================================================================== */

/* --- Layout global ---
   Cible uniquement #inner-wrap (le <main> après le header)
   pour libérer l'espace du contenu homepage sans toucher au header. */

body.page-template-template-homepage #inner-wrap {
	max-width: none;
	padding: 0;
}

.cristime-homepage {
	margin: 0;
}

.cristime-hp-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

.cristime-hp-section {
	padding: 4rem 0;
}

.cristime-hp-section--alt {
	background-color: #f5f2ec;
}

/* --- Titres de section --- */

.cristime-hp-section__title {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 0 0 2rem;
	font-size: 1.4rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #1a1a1a;
	line-height: 1.3;
}

.cristime-hp-section__title::after {
	content: '';
	flex: 1;
	height: 2px;
	background-color: #CAB49B;
}

/* --- Pied de section (lien « Voir tout ») --- */

.cristime-hp-section__footer {
	text-align: center;
	margin-top: 2.5rem;
}

.cristime-hp-section__link {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.2s;
}

.cristime-hp-section__link:hover {
	color: #CAB49B;
}

/* ==========================================================================
   1. HERO
   ========================================================================== */

.cristime-hero {
	position: relative;
	min-height: 50vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: cover;
	background-position: center;
	color: #fff;
}

.cristime-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.cristime-hero__overlay {
	position: relative;
	z-index: 1;
	text-align: center;
	padding: 2rem;
}

.cristime-hero__subtitle {
	font-size: 1.125rem;
	font-style: italic;
	margin: 0 0 0.75rem;
	opacity: 0.9;
	font-weight: 400;
	color: #fff !important;
}

.cristime-hero__title {
	font-size: 2.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 2rem;
	color: #fff !important;
}

.cristime-hero__cta {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-wrap: wrap;
}

.cristime-hero__btn {
	display: inline-block;
	padding: 0.875rem 2rem;
	background: #1a1a1a !important;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	transition: background 0.2s;
}

.cristime-hero__btn:hover {
	background: #333 !important;
	color: #fff !important;
}

/* ==========================================================================
   2. MARQUES PHARES (logos)
   ========================================================================== */

.cristime-hp-brands {
	padding: 3rem 0;
}

.cristime-hp-brands__grid {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3.5rem;
	flex-wrap: wrap;
}

.cristime-hp-brands__item {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	opacity: 0.65;
	transition: opacity 0.2s;
	text-decoration: none;
}

.cristime-hp-brands__item:hover {
	opacity: 1;
}

.cristime-hp-brands__item img {
	max-height: 50px;
	max-width: 130px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: grayscale(100%);
	transition: filter 0.3s;
}

.cristime-hp-brands__item:hover img {
	filter: grayscale(0%);
}

.cristime-hp-brands__name {
	font-size: 0.875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #666;
}

/* ==========================================================================
   3. GRILLES PRODUITS (shortcode [products] natif + Kadence cards)
   ========================================================================== */

/* On laisse Kadence gérer les cards — on ajuste juste le wrapper */
.cristime-hp-products .wc-block-grid,
.cristime-hp-products ul.products {
	margin-top: 0;
	margin-bottom: 0;
}

/* ==========================================================================
   4. CATÉGORIES
   ========================================================================== */

.cristime-hp-categories__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.cristime-hp-categories__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2.5rem 2rem;
	background: #fff;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	text-align: center;
	transition: box-shadow 0.3s;
}

.cristime-hp-categories__card:hover {
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.cristime-hp-categories__title {
	font-size: 1.15rem;
	font-weight: 600;
	font-style: italic;
	margin: 0 0 1rem;
	color: #1a1a1a;
}

.cristime-hp-categories__image {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1rem;
}

.cristime-hp-categories__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s;
}

.cristime-hp-categories__card:hover .cristime-hp-categories__image img {
	transform: scale(1.05);
}

.cristime-hp-categories__desc {
	font-size: 0.85rem;
	color: #666;
	margin: 0;
	padding-bottom: 1.5rem;
	line-height: 1.5;
	flex: 1;
}

.cristime-hp-categories__btn {
	margin-top: auto;
	display: inline-block;
	padding: 0.5rem 1.5rem;
	border: 1px solid #CAB49B;
	color: #CAB49B;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	border-radius: 4px;
	transition: all 0.2s;
}

.cristime-hp-categories__card:hover .cristime-hp-categories__btn {
	background: #CAB49B;
	color: #fff;
}

/* ==========================================================================
   5. SHOWCASE MARQUE (image + produits)
   ========================================================================== */

.cristime-hp-showcase__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.cristime-hp-showcase--reversed .cristime-hp-showcase__image {
	order: 2;
}

.cristime-hp-showcase--reversed .cristime-hp-showcase__products {
	order: 1;
}

.cristime-hp-showcase__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
	max-height: 480px;
}

.cristime-hp-showcase__product {
	display: flex;
	gap: 1rem;
	align-items: center;
	padding: 0.875rem 1rem;
	text-decoration: none;
	color: inherit;
	border-radius: 8px;
	transition: background 0.2s;
}

.cristime-hp-showcase__product:hover {
	background: rgba(0, 0, 0, 0.04);
}

.cristime-hp-showcase__product-image {
	width: 100px;
	height: 100px;
	flex-shrink: 0;
}

.cristime-hp-showcase__product-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.cristime-hp-showcase__product-name {
	font-size: 0.875rem;
	font-weight: 500;
	margin: 0 0 0.25rem;
	color: #1a1a1a;
	line-height: 1.4;
}

.cristime-hp-showcase__product-price {
	font-size: 0.875rem;
	color: #CAB49B;
	font-weight: 600;
}

.cristime-hp-showcase__all {
	display: inline-block;
	margin-top: 1rem;
	padding-left: 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #CAB49B;
	text-decoration: none;
	transition: color 0.2s;
}

.cristime-hp-showcase__all:hover {
	color: #1a1a1a;
}


/* ==========================================================================
   7. À PROPOS
   ========================================================================== */

.cristime-hp-about__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.cristime-hp-about__image img {
	width: 100%;
	border-radius: 8px;
}

.cristime-hp-about__text {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #444;
}

.cristime-hp-about__text p {
	margin: 0 0 1rem;
}

.cristime-hp-about__text a {
	color: #CAB49B;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cristime-hp-about__text a:hover {
	color: #1a1a1a;
}

/* ==========================================================================
   8. AVIS CLIENTS (override CusRev)
   ========================================================================== */

.cristime-hp-reviews__wrapper {
	margin-bottom: 0.5rem;
}

/* Police Jost sur tout le bloc CusRev */
.cristime-hp-reviews .cr-reviews-slider,
.cristime-hp-reviews .cr-reviews-slider * {
	font-family: 'Jost', sans-serif !important;
}

/* Conteneur slider — supprime les bordures/fond CusRev */
.cristime-hp-reviews .cr-reviews-slider {
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
	overflow: visible !important;
}

/* Padding vertical pour que l'ombre des cards ne soit pas coupée */
.cristime-hp-reviews .slick-list {
	padding-top: 16px !important;
	padding-bottom: 16px !important;
	margin-top: -16px;
	margin-bottom: -16px;
}

/* Cards avis — override des styles inline CusRev */
.cristime-hp-reviews .cr-review-card-inner {
	background: #fff !important;
	border: 1px solid #f0ece7 !important;
	border-radius: 12px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
	padding: 1.75rem !important;
	transition: box-shadow 0.3s !important;
}

.cristime-hp-reviews .cr-review-card:hover .cr-review-card-inner {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07) !important;
}

/* Séparateur sous le nom — couleur harmonisée */
.cristime-hp-reviews .top-row {
	border-bottom-color: #e5e5e5 !important;
	border-bottom-width: 1px !important;
}

/* Avatar */
.cristime-hp-reviews .cr-avatar {
	border-radius: 50% !important;
}

/* Nom du reviewer */
.cristime-hp-reviews .reviewer-name {
	font-weight: 600 !important;
	color: #1a1a1a !important;
	font-size: 0.9rem !important;
}

/* Badge vérifié */
.cristime-hp-reviews .reviewer-verified {
	font-size: 0.75rem !important;
	color: #999 !important;
}

/* Étoiles — override du stroke inline #FFBC00 */
.cristime-hp-reviews .cr-rating-icon-bg {
	stroke: #CAB49B !important;
	fill: #CAB49B !important;
}

.cristime-hp-reviews .crstar-rating-svg svg {
	fill: #CAB49B !important;
}

/* Label note (ex: "5/5") */
.cristime-hp-reviews .rating-label {
	font-size: 0.8rem !important;
	color: #666 !important;
}

/* Texte de l'avis */
.cristime-hp-reviews .review-text {
	font-size: 0.9rem !important;
	line-height: 1.65 !important;
	color: #444 !important;
}

/* Date de l'avis */
.cristime-hp-reviews .datetime {
	font-size: 0.75rem !important;
	color: #999 !important;
}

/* Flèches de navigation Slick — simples, sans cercle */
.cristime-hp-reviews .slick-prev,
.cristime-hp-reviews .slick-next {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	z-index: 1;
}

.cristime-hp-reviews .slick-prev:hover,
.cristime-hp-reviews .slick-next:hover {
	background: transparent !important;
}

/* Override la police Slick (qui dessine un cercle) par une flèche simple */
.cristime-hp-reviews .slick-prev::before,
.cristime-hp-reviews .slick-next::before {
	font-family: 'Jost', sans-serif !important;
	content: '‹' !important;
	font-size: 2rem !important;
	color: #999 !important;
	opacity: 1 !important;
	transition: color 0.2s;
}

.cristime-hp-reviews .slick-next::before {
	content: '›' !important;
}

.cristime-hp-reviews .slick-prev:hover::before,
.cristime-hp-reviews .slick-next:hover::before {
	color: #CAB49B !important;
}

/* Masquer les dots de pagination */
.cristime-hp-reviews .slick-dots {
	display: none !important;
}

/* ==========================================================================
   10. RÉASSURANCE
   ========================================================================== */

.cristime-hp-reassurance {
	border-top: none;
}

.cristime-hp-reassurance__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 1.5rem;
	text-align: center;
}

.cristime-hp-reassurance__icon {
	color: #CAB49B;
	margin-bottom: 0.75rem;
}

.cristime-hp-reassurance__title {
	font-size: 0.875rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
	color: #1a1a1a;
}

.cristime-hp-reassurance__text {
	font-size: 0.8rem;
	color: #666;
	margin: 0;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
	.cristime-hp-categories__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cristime-hp-reassurance__grid {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 2rem;
	}

	.cristime-hp-brands__grid {
		gap: 2rem;
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
	}
}

@media (max-width: 768px) {
	.cristime-hp-container {
		padding: 0 1.25rem;
	}

	.cristime-hp-section {
		padding: 2.5rem 0;
	}


	.cristime-hero {
		min-height: 40vh;
	}

	.cristime-hero__title {
		font-size: 1.75rem;
	}

	.cristime-hero__subtitle {
		font-size: 0.95rem;
	}

	.cristime-hp-showcase__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.cristime-hp-showcase--reversed .cristime-hp-showcase__image {
		order: 0;
	}

	.cristime-hp-showcase--reversed .cristime-hp-showcase__products {
		order: 0;
	}

	.cristime-hp-showcase__image img {
		max-height: 300px;
	}

	.cristime-hp-about__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.cristime-hp-reassurance__grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 2rem;
	}

	.cristime-hp-brands__grid {
		gap: 1.5rem;
	}

	.cristime-hp-brands__item {
		flex-shrink: 0;
	}

	.cristime-hp-brands__item img {
		max-height: 35px;
		max-width: 90px;
	}

	.cristime-hp-section__title {
		font-size: 1.15rem;
	}
}

@media (max-width: 480px) {
	.cristime-hp-categories__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}

	.cristime-hp-categories__card {
		padding: 1rem 0.75rem 1.25rem;
	}

	.cristime-hp-categories__title {
		font-size: 1rem;
		margin-bottom: 0.5rem;
	}

	.cristime-hp-categories__desc {
		font-size: 0.78rem;
		padding-bottom: 1rem;
	}

	.cristime-hp-reassurance__grid {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 1.5rem;
	}

	.cristime-hero__btn {
		padding: 0.75rem 1.5rem;
		font-size: 0.8rem;
	}

}
