/* ===================================================================
   PROMOTIONAL BANNER COMPONENT
   
   Full-width promotional banner with orange background, discount text,
   and call-to-action button. Responsive design for all screen sizes.
=================================================================== */

/* Main Banner Container */
.promo-banner {
	height: 200px;
	width: 100vw;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin: 60px 0 0;
	box-sizing: border-box;
	background-color: var(--color-vitamine) !important;
	box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.15), inset 0 -4px 8px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Banner Content Wrapper */
.promo-content {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 32px;
	padding: 0 40px;
	max-width: 1400px;
	margin: 0 auto;
	height: 100%;
}

/* Text Container */
.promo-text {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
	text-align: center;
}

/* Text Elements */
.promo-text {
	color: var(--color-white) !important;
	text-align: center;
	font-family: var(--font-arial) !important;
	font-size: 30px !important;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	margin-bottom: 0 !important;
}
.promo-text .promo-text-large {
	display: block;
	color: var(--color-white) !important;
	text-align: center;
	font-family: var(--font-arial) !important;
	font-size: 30px !important;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
	margin-bottom: 0 !important;
}
.promo-text .promo-text-small {
	display: none;
}
.promo-text .promo-text-large strong {
	color: var(--color-white) !important;
	font-family: var(--font-arial) !important;
	font-size: 36px !important;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

/* Alternative Text Classes (for different layouts) */
.promo-discount,
.promo-title-remise {
	font-family: var(--font-arial) !important;
	font-size: 48px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	color: var(--color-white) !important;
	margin: 0 4px !important;
}

.promo-message,
.promo-intro {
	font-family: var(--font-arial) !important;
	font-size: 30px !important;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	color: var(--color-white) !important;
}

/* Call-to-Action Button */
.promo-button {
	text-decoration: none;
	background: var(--color-myrtille-100) !important;
	color: var(--color-white) !important;
	font-family: var(--font-arial) !important;
	font-size: 18px !important;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	width: auto;
	height: auto;
	flex-shrink: 0;
	border-radius: 25px;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(33, 42, 58, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border: none;
	min-width: 212px;
}

.promo-button:active {
	transform: translateY(0);
}

/* ===================================================================
   TESTIMONIALS SECTION COMPONENT
   
   Section header for customer testimonials with title and description.
=================================================================== */

.bva-testimonials-header h2 {
	text-align: center;
	font-size: var(--font-size-h1);
	font-family: var(--font-arial-bold);
	margin-bottom: 15px !important;
}

.bva-testimonials-header p {
	text-align: center;
	font-size: var(--font-size-product-description) !important;
	font-family: var(--font-arial-bold) !important;
	margin: 0 auto 40px !important;
}

/* ===================================================================
   VIDEO SECTION COMPONENT
   
   Grid layout for video testimonials with responsive behavior.
   Uses 3-column grid on desktop, adapts for smaller screens.
=================================================================== */

.video-section {
	margin-top: 40px;
	padding: 0 40px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.video-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 30px;
	align-items: start;
}

.video-container {
	width: 100%;
	max-width: 320px;
	flex: 0 1 320px;
}

.video-wrapper {
	width: 100%;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	background: var(--color-black) !important;
}

.video-wrapper > div {
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	padding-top: 177.78% !important;
}

.video-wrapper iframe,
.video-wrapper video {
	border: none;
	border-radius: 12px;
}

/* ===================================================================
   PAGE LAYOUT COMPONENTS
   
   General page layout elements including containers and headers.
=================================================================== */

.container {
	padding: 15px;
}

.page-header {
	margin-bottom: 30px;
	padding: 30px 0;
}

.page-header h1 {
	font-size: 2.5rem;
	margin-bottom: 15px !important;
}

.page-header p {
	font-size: 1.1rem;
	padding: 0 20px;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   
   Mobile-first responsive design with progressive enhancement.
   Breakpoints: 1140px, 1024px, 900px, 768px, 480px
=================================================================== */

/* Large Tablet (1140px and down) */
@media (max-width: 1140px) {
	/* Promotional Banner Adjustments */
	.promo-content {
		padding: 0 30px;
		gap: 28px;
	}

	.promo-text {
		gap: 6px;
		flex-wrap: wrap;
	}

	.promo-button {
		font-size: 16px;
		padding: 12px 20px;
		min-width: 180px;
	}

	/* Video Section Adjustments */
	.video-section {
		padding: 0 30px;
	}

	.video-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 20px;
	}
}

/* Standard Tablet (1024px and down) */
@media (max-width: 1024px) {
	/* Promotional Banner - Stacked Layout */
	.promo-banner {
		height: 400px;
		min-height: 400px;
		padding: 30px 0;
	}

	.promo-content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 25px 20px;
		gap: 20px;
		width: 100%;
		margin: 0;
		height: auto;
	}

	.promo-text {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0px;
		text-align: center;
		line-height: 0.9;
	}

	.promo-button {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto;
		font-size: 18px !important;
	}

	/* Video Grid - Single Row */
	.video-grid {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		justify-content: flex-start;
		gap: 15px;
		padding: 0 20px;
	}

	.video-container {
		flex: 0 0 300px;
		max-width: 300px;
	}

	/* Page Header Adjustments */
	.page-header h1 {
		font-size: 2.5rem;
	}

	.page-header p {
		font-size: 1.1rem;
	}
}

/* Small Tablet (900px and down) */
@media (max-width: 900px) {
	.bva-testimonials-header h2 {
		font-size: 27px;
		font-family: var(--font-futura-ndalt);
	}

	.bva-testimonials-header p {
		font-family: var(--font-arial-bold) !important;
		font-size: var(--font-size-20) !important;
	}
}

/* Mobile (768px and down) */
@media (max-width: 768px) {
	/* Promotional Banner - Full Width Mobile */
	.promo-banner {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 250px;
		height: auto;
		padding: 30px 0;
		width: 100vw;
		left: 50%;
		transform: translateX(-50%);
		position: relative;
		box-sizing: border-box;
	}

	.promo-content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 0 10px;
		width: 100%;
		margin: 0;
		height: 100%;
		gap: 20px;
	}

	.promo-text {
		width: 100%;
		margin-bottom: 18px;
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 0px;
		text-align: center;
		line-height: 0.8;
	}

	.promo-button {
		display: flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto;
	}

	/* Video Grid - Single Column */
	.video-grid {
		flex-direction: column;
		align-items: center;
		gap: 20px;
		max-width: 400px;
		margin: 0 auto;
	}

	.video-container {
		width: 100%;
		max-width: 400px;
		flex: none;
	}

	/* Page Layout */
	.container {
		padding: 15px;
	}

	.page-header {
		margin-bottom: 30px;
		padding: 30px 0;
	}

	.page-header h1 {
		font-size: 27px;
		margin-bottom: 15px !important;
	}

	.page-header p {
		font-size: 1rem;
		padding: 0 20px;
	}
}

/* Small Mobile (480px and down) */
@media (max-width: 480px) {
	/* Promotional Banner - Compact Mobile */
	.promo-banner {
		height: auto;
		min-height: 200px;
		padding: 20px 0;
		width: 100vw;
		left: 50%;
		transform: translateX(-50%);
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		overflow: visible;
		margin: 60px 0 0 0;
		box-sizing: border-box;
	}

	.promo-content {
		padding: 20px 15px;
		align-items: center;
		flex-direction: column;
		gap: 20px;
		max-width: 100%;
	}

	.promo-text {
		flex-direction: column;
		align-items: center;
		gap: 0px;
		line-height: 0.8;
		text-align: center;
		font-size: 26px;
	}
	.promo-text .promo-text-large {
		display: none;
	}
	.promo-text p.promo-text-small {
		display: block;
		flex-direction: column;
		align-items: center;
		gap: 0px;
		line-height: 1.2;
		text-align: center;
		font-size: 26px !important;
	}
	.promo-text .promo-text-small strong {
		font-size: 80px;
	}

	.promo-button {
		font-size: 18px !important;
		padding: 12px 24px;
		width: 100%;
		max-width: 280px;
	}

	/* Page Layout - Compact */
	.container {
		padding: 10px;
	}

	.video-wrapper,
	.video-wrapper > div,
	.video-wrapper iframe,
	.video-wrapper video {
		border-radius: 8px;
	}

	.page-header {
		padding: 20px 0;
	}

	.page-header h1 {
		font-size: 27px;
	}

	.page-header p {
		font-size: 0.95rem;
		padding: 0 10px;
	}
}

/* ===================================== */
/* MAIN LAYOUT                          */
/* ===================================== */

.slider-avis-section {
	padding: 0px 32px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.slider-avis-container {
	max-width: 1800px;
	width: 100%;
	display: flex;
	gap: 32px;
	align-items: center;
	border-radius: 14px;
	padding: 0;
}

/* ===================================== */
/* WIDGET CONTAINER                     */
/* ===================================== */

.slider-avis-widget {
	flex: 0 0 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 16px;
	border-radius: 12px;
	min-height: 280px;
	cursor: pointer;
}

/* ===================================== */
/* SLIDER STRUCTURE                     */
/* ===================================== */

.slider-avis-wrapper {
	flex: 1;
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	min-height: 320px;
	padding: 0 5%;
}

.slider-avis-inner {
	position: relative;
	height: 100%;
}

.slider-avis-slide {
	display: none;
	justify-content: center;
	align-items: flex-start;
	gap: 16px;
	padding: 20px 0;
}

.slider-avis-slide.active {
	display: flex;
}

/* ===================================== */
/* REVIEW CARDS                         */
/* ===================================== */

@media screen and (min-width: 1100px) {
	.slider-avis-card {
		display: flex !important;
	}
}

.slider-avis-card {
	background: var(--color-white);
	border-radius: 5px;
	padding: 18px;
	border: 1px solid rgb(206, 206, 206);
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 280px;
	max-width: 320px;
	min-height: 200px;
	height: 350px;
	margin: 0 8px;
}

.card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.stars {
	display: flex;
	gap: 5px;
}

.star {
	color: var(--color-myrtille-4);
	font-size: var(--font-size-menu);
	line-height: 1;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #9b4b161f;
	position: relative;
	opacity: 0.5;
}

.star.filled {
	color: var(--color-white);
	background: var(--color-canelle);
	opacity: 1;
}

.star::after {
	content: '';
	position: absolute;
	width: calc(100% - 4px);
	height: calc(100% - 4px);
	background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMS41NzUiIGhlaWdodD0iMzAuNDAyIiB2aWV3Qm94PSIwIDAgMzEuNTc1IDMwLjQwMiI+CiAgICA8cGF0aCBkYXRhLW5hbWU9IlRyYWPDqSAxIiBkPSJtOTc3LjIyMyA2ODUuMjQxLTcuNzc1IDcuOCAyLjAzMSAxMC45ODgtOS44MzYtNS4xNjgtOS42NzggNS4yMTEgMS43LTExLTguMDEyLTcuNzY3IDEwLjg4NS0xLjYyOCA0LjcyNi0xMC4wMTEgNS4wMzEgOS45OXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC05NDUuNjQ4IC02NzMuNjcxKSIgc3R5bGU9ImZpbGw6I2ZmZiIvPgo8L3N2Zz4K);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
	z-index: 2;
}

.star:not(.filled)::after {
	background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMS41NzUiIGhlaWdodD0iMzAuNDAyIiB2aWV3Qm94PSIwIDAgMzEuNTc1IDMwLjQwMiI+CiAgICA8cGF0aCBkYXRhLW5hbWU9IlRyYWPDqSAxIiBkPSJtOTc3LjIyMyA2ODUuMjQxLTcuNzc1IDcuOCAyLjAzMSAxMC45ODgtOS44MzYtNS4xNjgtOS42NzggNS4yMTEgMS43LTExLTguMDEyLTcuNzY3IDEwLjg4NS0xLjYyOCA0LjcyNi0xMC4wMTEgNS4wMzEgOS45OXoiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC05NDUuNjQ4IC02NzMuNjcxKSIgc3R5bGU9ImZpbGw6I2FmNmY0NyIvPgo8L3N2Zz4K);
	background-size: 100% 100%;
	background-repeat: no-repeat;
	background-position: center;
}

.rating-text {
	font-family: var(--font-arial-bold);
	font-weight: var(--font-weight-bold);
	color: var(--color-grey);
	margin-left: 8px;
}

.rating-number {
	font-size: var(--font-size-20);
	color: var(--color-canelle);
}

.rating-separator {
	font-size: var(--font-size-menu);
}

.review-text {
	font-family: var(--font-arial);
	font-size: var(--font-size-16);
	text-align: left;
	line-height: 1.5;
	color: var(--color-myrtille);
	margin: 0 0 8px 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1;
}

.review-text.truncated {
	position: relative;
}

.voir-plus-btn {
	color: var(--color-canelle);
	background: none;
	border: none;
	font-size: inherit;
	font-family: var(--font-arial-bold);
	cursor: pointer;
	text-decoration: underline;
	padding: 0;
	margin-left: 4px;
	display: inline;
}

.voir-plus-btn:hover {
	color: var(--color-vitamine-hover);
}

/* Modal styles */
.review-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-modal.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background: var(--color-white);
	padding: 32px;
	border-radius: 12px;
	max-width: 600px;
	max-height: 80vh;
	overflow-y: auto;
	margin: 20px;
	position: relative;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
}

.modal-rating {
	display: flex;
	align-items: center;
	gap: 12px;
}

.modal-close {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--color-grey);
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover {
	color: var(--color-canelle);
}

.modal-text {
	font-family: var(--font-arial);
	font-size: var(--font-size-16);
	line-height: 1.6;
	color: var(--color-myrtille);
	margin-bottom: 20px;
}

.modal-info {
	opacity: 0.7;
	font-family: var(--font-arial);
	color: #2c3139 !important;
	font-size: var(--font-size-12);
	line-height: 1.3;
}

.modal-info strong {
	font-weight: 700;
	font-family: var(--font-arial-bold);
}

/* Mobile modal adjustments */
@media (max-width: 600px) {
	.modal-content {
		margin: 10px;
		padding: 24px;
		max-height: 90vh;
	}

	.modal-header {
		margin-bottom: 16px;
	}

	.modal-text {
		font-size: var(--font-size-15);
	}
}

.card-footer {
	padding-top: 12px;
	margin-top: auto;
	text-align: left;
}

.review-info {
	opacity: 0.7;
	font-family: var(--font-arial);
	color: #2c3139 !important;
	font-size: var(--font-size-12);
	line-height: 1.3;
}

.review-info strong {
	font-weight: 700;
	font-family: var(--font-arial-bold);
}
/* ===================================== */
/* NAVIGATION                           */
/* ===================================== */

.slider-avis-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	font-size: var(--font-size-22);
	color: var(--color-canelle);
	cursor: pointer;
	padding: 10px;
	z-index: 10;
}

.slider-avis-btn:hover {
	color: var(--color-vitamine-hover);
}

.slider-avis-btn.prev {
	left: -10px;
}

.slider-avis-btn.next {
	right: -10px;
}

.slider-avis-nav {
	text-align: center;
	margin-top: 24px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 12px;
}

.slider-avis-dot {
	width: 18px;
	height: 18px;
	background: grey;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
}

.slider-avis-dot:hover,
.slider-avis-dot.active {
	background: var(--color-accent);
}

.slider-avis-dot.active::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 6px;
	height: 6px;
	background: var(--color-white);
	border-radius: 50%;
}

/* ===================================== */
/* RESPONSIVE                           */
/* ===================================== */

@media (max-width: 1600px) {
	.slider-avis-wrapper {
		padding: 0 3%;
	}

	.slider-avis-card {
		min-width: 260px;
		max-width: 280px;
		height: 350px;
	}
}
/* Mobile: under 768px - 1 card per slide */
@media (max-width: 767px) {
	.slider-avis-container {
		flex-direction: column;
		gap: 24px;
		padding: 24px 20px;
	}

	.slider-avis-widget {
		flex: none;
		width: 100%;
		max-width: 400px;
	}

	.slider-avis-wrapper {
		width: 100%;
		padding: 0;
	}

	.slider-avis-slide {
		justify-content: center;
		align-items: center;
		width: 90%;
		margin: auto;
	}

	.slider-avis-card {
		flex: none;
		max-width: 100%;
		min-width: auto;
		width: 100%;
		margin: 0;
	}

	/* Hide other cards on mobile - controlled by JS */
	.slider-avis-card:not(:first-child) {
		display: none;
	}

	/* Allow JS to force display */
	.slider-avis-card[style*='display: flex'] {
		display: flex !important;
	}
}

/* Tablet: 768px to 1099px - 2 cards per slide */
@media (min-width: 768px) and (max-width: 1099px) {
	.slider-avis-container {
		flex-direction: column;
		gap: 24px;
		padding: 24px 20px;
	}

	.slider-avis-widget {
		flex: none;
		width: 100%;
		max-width: 400px;
	}

	.slider-avis-wrapper {
		width: 100%;
		padding: 0 50px;
	}

	.slider-avis-slide {
		justify-content: center;
		align-items: flex-start;
		gap: 20px;
	}

	.slider-avis-card {
		flex: 1 1 calc(50% - 10px);
		max-width: calc(50% - 10px);
		min-width: 280px;
		margin: 0;
	}

	/* Hide cards beyond the first 2 on tablet - controlled by JS */
	.slider-avis-card:nth-child(n + 3) {
		display: none;
	}

	/* Allow JS to force display */
	.slider-avis-card[style*='display: flex'] {
		display: flex !important;
	}

	.slider-avis-btn.next {
		right: 20px;
	}
	.slider-avis-btn.prev {
		left: 20px;
	}
}

/* General adjustments */
@media (max-width: 1200px) {
	.slider-avis-section {
		padding: 32px 20px;
	}
	.slider-avis-container {
		gap: 28px;
		padding: 24px 18px;
	}
	.slider-avis-wrapper {
		padding: 0 2%;
	}
}

@media (max-width: 900px) {
	.slider-avis-section {
		padding: 28px 18px;
	}
	.slider-avis-container {
		gap: 24px;
		padding: 20px 16px;
	}
	.slider-avis-widget {
		flex: 0 0 140px;
		min-height: 240px;
		padding: 12px;
	}
	.slider-avis-wrapper {
		padding: 0px;
	}
}

@media (max-width: 600px) {
	.slider-avis-section {
		padding: 20px 16px;
	}
	.slider-avis-widget {
		padding: 16px;
	}
	.slider-avis-wrapper {
		padding: 0;
	}
	.slider-avis-card {
		padding: 16px;
	}
	.review-text {
		font-size: var(--font-size-16);
	}
	.slider-avis-btn {
		font-size: var(--font-size-24);
		padding: 12px;
	}

	.slider-avis-btn.prev {
		left: 0px;
		font-size: 30px;
	}

	.slider-avis-btn.next {
		right: 0px;
		font-size: 30px;
	}
}

@media (max-width: 480px) {
	.slider-avis-card {
		padding: 14px;
		min-height: 200px;
		height: auto;
		width: 250px;
	}

	.slider-avis-btn.prev {
		left: 0px;
		font-size: 30px;
	}

	.slider-avis-btn.next {
		right: 0px;
		font-size: 30px;
	}
}
