/* =========================================================================
   TOUBKAL-MAROC — Home extra sections
   Why choose us · How it works · Reviews · Tailor-made CTA · FAQ
   ========================================================================= */

/* Moved from a Bricks Code element on the home pages: custom slider buttons
   mirror the native Splide arrows' disabled state (see home.js). */
#tours-slide-prev[disabled],
#tours-slide-next[disabled] {
	opacity: 0.35;
	pointer-events: none;
	cursor: default;
}

.tbk-home {
	--tbk-ink-soft: rgba(var(--tbk-ink-rgb), 0.7);

	font-family: "Ubuntu", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--tbk-ink);
	padding: var(--tbk-section-space) 0;
}

/* Section rhythm: every section except the hero tops its content and shares
   one padding, so the vertical space between them is uniform. The hero keeps
   its own full-viewport, vertically-centred treatment. */
#passion {
	justify-content: flex-start !important;
	min-height: 0 !important;
	padding-top: var(--tbk-section-space) !important;
	padding-bottom: var(--tbk-section-space) !important;
}

/* Every home section shares the site background; cards stay white. */
.tbk-why,
.tbk-steps,
.tbk-reviews,
.tbk-faq { background: var(--tbk-bg); }

/* The footer wave takes the colour of the section above it: --tbk-cream on
   other pages (set in the footer template), --tbk-bg here. */
body.home #footer-wave { color: var(--tbk-bg); }

/* Trust row: equal-height cards */
#trust-row {
	align-items: stretch !important;
}

#trust-row .brxe-text-basic {
	white-space: nowrap;
	font-size: 1.25rem;
}

@media (max-width: 767px) {
	#trust-row {
		flex-direction: column;
	}

	/* Stacked cards: full width up to their 384px max width, centred. */
	#trust-row > * {
		min-height: 120px;
		width: 100%;
		margin-inline: auto;
	}
}

/* The hero clips its wave, so at fractional zoom levels its last pixel row
   blends the dark photo into the cream and shows as a hairline. Let the next
   section overlap that row by 1px and paint above it. */
#hero + .brxe-section {
	position: relative;
	z-index: 3;
	margin-top: -1px;
}

.tbk-home__inner {
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 20px;
	box-sizing: border-box;
}

.tbk-home__head {
	max-width: 640px;
	margin: 0 0 3rem;
	text-align: center;
}

.tbk-home__title {
	font-family: "Ubuntu", sans-serif;
	font-weight: 800;
	font-size: clamp(1.55rem, 1rem + 1.7vw, 2.15rem);
	line-height: 1.15;
	margin: 0 0 0.6rem;
	color: var(--tbk-ink);
}

.tbk-home__sub {
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--tbk-ink-soft);
	margin: 0;
}

/* -------------------------------------------------------------------------
   Why choose us
   ---------------------------------------------------------------------- */
.tbk-why__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch !important;
}

.tbk-why__card {
	background: #fff;
	border: 1px solid var(--tbk-line);
	border-radius: var(--tbk-r-card);
	padding: 26px 22px;
	min-height: 230px;
	box-shadow: 0 14px 34px rgba(var(--tbk-ink-rgb), 0.05);
}

.tbk-why__card::before {
	content: "";
	display: block;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--tbk-accent-soft) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12.5l4.2 4.2L19 6.9' stroke='%23b14e3e' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* Distinct icon per card */
.tbk-why__grid > .tbk-why__card:nth-child(1)::before {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b14e3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4 3 6v14l6-2 6 2 6-2V4l-6 2-6-2Z'/%3E%3Cpath d='M9 4v14M15 6v14'/%3E%3C/svg%3E");
}

.tbk-why__grid > .tbk-why__card:nth-child(2)::before {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b14e3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.tbk-why__grid > .tbk-why__card:nth-child(3)::before {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b14e3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3Cpath d='M9 16l2 2 4-4'/%3E%3C/svg%3E");
}

.tbk-why__grid > .tbk-why__card:nth-child(4)::before {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b14e3e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20'/%3E%3Cpath d='M6 15h4'/%3E%3C/svg%3E");
}

.tbk-why__title {
	font-family: "Ubuntu", sans-serif;
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.3;
	margin: 0 0 0.4rem;
	color: var(--tbk-ink);
}

.tbk-why__text {
	font-size: 0.94rem;
	line-height: 1.6;
	color: var(--tbk-ink-soft);
	margin: 0;
}

/* -------------------------------------------------------------------------
   How it works
   ---------------------------------------------------------------------- */
.tbk-steps__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}

.tbk-step {
	position: relative;
	text-align: center;
	padding: 0 6px;
}

.tbk-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--tbk-accent);
	color: #fff;
	font-family: "Ubuntu", sans-serif;
	font-weight: 800;
	font-size: 1.25rem;
	box-shadow: 0 12px 26px rgba(var(--tbk-primary-rgb), 0.28);
}

.tbk-step__title {
	font-family: "Ubuntu", sans-serif;
	font-weight: 800;
	font-size: 1.02rem;
	margin: 0 0 0.4rem;
	color: var(--tbk-ink);
}

.tbk-step__text {
	font-size: 0.92rem;
	line-height: 1.55;
	color: var(--tbk-ink-soft);
	margin: 0;
}

/* -------------------------------------------------------------------------
   Reviews
   ---------------------------------------------------------------------- */
.tbk-reviews__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch !important;
}

.tbk-review {
	background: #fff;
	border: 1px solid var(--tbk-line);
	border-radius: var(--tbk-r-card);
	padding: 28px 26px;
	box-shadow: 0 14px 34px rgba(var(--tbk-ink-rgb), 0.05);
}

.tbk-review__stars {
	color: var(--tbk-accent);
	letter-spacing: 2px;
	font-size: 1.05rem;
	margin: 0 0 12px;
}

.tbk-review__quote {
	font-size: 1.02rem;
	line-height: 1.65;
	color: var(--tbk-ink);
	margin: 0 0 18px;
}

.tbk-review__quote::before { content: "“"; }
.tbk-review__quote::after { content: "”"; }

.tbk-review__name {
	font-weight: 800;
	font-size: 0.92rem;
	color: var(--tbk-ink);
	margin: 0;
}

/* Home reviews — same card design as the single-tour reviews */
.tbk-reviews .tbk-review {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--tbk-line);
	border-radius: var(--tbk-r-card);
	padding: 24px;
	min-height: 208px;
	box-shadow: 0 8px 22px rgba(var(--tbk-ink-rgb), 0.05);
}

.tbk-reviews .tbk-review__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.tbk-reviews .tbk-review__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.tbk-reviews .tbk-review__avatar--initials {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--tbk-accent-soft);
	color: var(--tbk-accent-dark);
	font-weight: 800;
	font-size: 1.15rem;
}

.tbk-reviews .tbk-review__ident {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.tbk-reviews .tbk-review__name {
	font-weight: 600;
	color: var(--tbk-ink);
}

.tbk-reviews .tbk-review__score-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tbk-reviews .tbk-review__score-row .tbk-star {
	width: 16px;
	height: 16px;
	color: var(--tbk-accent);
}

.tbk-reviews .tbk-review__score {
	font-weight: 800;
	color: var(--tbk-ink);
}

.tbk-reviews .tbk-review__quote {
	margin: 16px 0 0;
	line-height: 1.6;
	color: var(--tbk-ink);
}

.tbk-reviews .tbk-review__quote::before,
.tbk-reviews .tbk-review__quote::after {
	content: none;
}

/* -------------------------------------------------------------------------
   Tailor-made CTA
   ---------------------------------------------------------------------- */
.tbk-cta {
	position: relative;
	background: var(--tbk-ink) url("../../../uploads/2026/09/Merzouga-1024x1024.jpg") center / cover no-repeat;
	overflow: hidden;
}

.tbk-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(var(--tbk-ink-rgb), 0.78), rgba(var(--tbk-ink-rgb), 0.4));
}

.tbk-cta__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	flex-wrap: wrap;
}

.tbk-cta__text {
	max-width: 620px;
}

.tbk-cta__title {
	font-family: "Ubuntu", sans-serif;
	font-weight: 800;
	font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem);
	line-height: 1.15;
	margin: 0 0 0.5rem;
	color: #fff;
}

.tbk-cta__sub {
	font-size: 1.05rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.82);
	margin: 0;
}

.tbk-home .tbk-btn,
.tbk-cta__btn {
	display: inline-flex;
	align-items: center;
	background: var(--tbk-accent) !important;
	border: 1.5px solid var(--tbk-accent) !important;
	color: #fff !important;
	font-weight: 800;
	font-size: 1rem;
	padding: 1rem 2rem;
	border-radius: 999px;
	text-decoration: none;
	transition: background 0.18s ease, transform 0.18s ease;
	white-space: nowrap;
}

.tbk-home .tbk-btn:hover {
	background: var(--tbk-accent-dark) !important;
	border-color: var(--tbk-accent-dark) !important;
	transform: translateY(-1px);
}

/* -------------------------------------------------------------------------
   FAQ
   ---------------------------------------------------------------------- */
.tbk-faq__inner {
	max-width: 860px;
}

.tbk-faq .tbk-home__head {
	margin-bottom: 2rem;
}

/* Bricks accordion */
.tbk-faq__accordion.brxe-accordion {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tbk-faq__accordion .accordion-item {
	background: #fff;
	border: 1px solid var(--tbk-line);
	border-radius: var(--tbk-r-card);
	margin-bottom: 12px;
	overflow: hidden;
}

.tbk-faq__accordion .accordion-title-wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
}

.tbk-faq__accordion .accordion-title {
	flex: 1;
	min-width: 0;
}

.tbk-faq__accordion .accordion-title .title {
	font-family: "Ubuntu", sans-serif;
	font-weight: 800;
	font-size: 1.25rem;
	line-height: 1.35;
	color: var(--tbk-ink);
	margin: 0;
}

.tbk-faq__accordion .accordion-title-wrapper::after {
	content: "+";
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--tbk-accent-soft);
	color: var(--tbk-accent-dark);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1;
}

.tbk-faq__accordion .accordion-title-wrapper[aria-expanded="true"] .accordion-title .title {
	color: var(--tbk-accent-dark);
}

.tbk-faq__accordion .accordion-title-wrapper[aria-expanded="true"]::after {
	content: "–";
	background: var(--tbk-accent);
	color: #fff;
}

.tbk-faq__accordion .accordion-content-wrapper {
	padding: 0 22px 20px;
	font-size: 1.25rem;
	line-height: 1.7;
	color: var(--tbk-ink-soft);
}

.tbk-faq__accordion .accordion-content-wrapper p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------------- */
@media (max-width: 991px) {
	/* Pre-existing "Conçu avec passion" grid: stack intro over the tours slider. */
	#passion-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 2rem !important;
	}

	#passion-intro,
	#tours-loop {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	#tours-loop .splide,
	#tours-loop .splide__track,
	#tours-loop .splide__list,
	#tours-loop .splide__slide {
		min-width: 0 !important;
	}

	#tours-loop img {
		max-width: 100%;
		height: auto;
	}

	.tbk-why__grid,
	.tbk-steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tbk-reviews__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 600px) {
	.tbk-home {
		padding: var(--tbk-section-space) 0;
	}

	.tbk-why__grid,
	.tbk-steps__list {
		grid-template-columns: 1fr;
	}

	.tbk-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* -------------------------------------------------------------------------
   Featured tours
   ---------------------------------------------------------------------- */
.tbk-featured {
	background: var(--tbk-bg);
}

.tbk-featured__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px;
}

.tbk-feat-card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	background: #fff;
	border: 1px solid rgba(var(--tbk-ink-rgb), 0.08);
	border-radius: var(--tbk-r-card);
	overflow: hidden;
	box-shadow: none;
	padding: 0.75rem 0.75rem 0.9rem;
}

.tbk-feat-card__media-wrap {
	display: block;
	overflow: hidden;
	border-radius: max(0px, calc(var(--tbk-r-card) - 0.75rem - 1px));
	aspect-ratio: 4 / 3;
}

.tbk-feat-card__media {
	display: block;
	margin: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: max(0px, calc(var(--tbk-r-card) - 0.75rem - 1px));
	transition: transform 0.5s ease;
}

.tbk-feat-card:hover .tbk-feat-card__media {
	transform: scale(1.06);
}

.tbk-feat-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	padding: 0.25rem 0.5rem;
}

.tbk-feat-card__tag {
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	font-weight: 800;
	color: var(--tbk-accent-dark);
}

.tbk-feat-card__title {
	position: relative;
	align-self: flex-start;
	font-family: "Ubuntu", sans-serif;
	font-weight: 800;
	font-size: 1.22rem;
	line-height: 1.25;
	margin: 0;
	color: var(--tbk-ink);
}

.tbk-feat-card__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -4px;
	width: 0;
	height: 2px;
	background: var(--tbk-accent, var(--tbk-primary));
	transition: width 0.35s ease;
}

.tbk-feat-card:hover .tbk-feat-card__title::after {
	width: 100%;
}

.tbk-feat-card__desc {
	margin: 0 0 6px;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--tbk-ink-soft);
}

.tbk-feat-card__foot {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 8px;
}

.tbk-feat-card__price {
	margin: 0;
	font-family: "Ubuntu", sans-serif;
	font-weight: 800;
	font-size: 1.15rem;
	color: var(--tbk-ink);
}

.tbk-featured .tbk-feat-card__btn {
	padding: 0.7rem 1.4rem;
	font-size: 0.9rem;
}

@media (max-width: 767px) {
	.tbk-featured__grid {
		grid-template-columns: 1fr;
	}
}

/* -------------------------------------------------------------------------
   Home tours slider: keep the price row aligned across cards
   ---------------------------------------------------------------------- */
#tours-loop .splide__slide {
	justify-content: flex-start;
}

/* Content block fills the card so the footer can be pinned to the bottom. */
#tours-loop .splide__slide > div:last-of-type {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
}

/* "À partir de" + price row pinned to the bottom. */
#tours-loop .splide__slide > div:last-of-type > div:last-of-type {
	margin-top: auto;
}

/* Keep titles to two lines so cards stay tidy. */
#tours-loop .splide__slide h3 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* -------------------------------------------------------------------------
   Tour cards: never print the attachment caption over the image.
   Bricks shows the media caption by default, which would overlay the photo.
   Covers both card types: the carousel (.tour-card-media) and the
   featured-tours grid (.tbk-feat-card).
   ---------------------------------------------------------------------- */
.tour-card-media .bricks-image-caption,
.tbk-feat-card .bricks-image-caption {
	display: none;
}

/* -------------------------------------------------------------------------
   Once an attachment has a caption, Bricks wraps the image in a <figure>.
   That wrapper must fill (and clip) its container, otherwise it stays
   inline-block, ends a few pixels short of the div and the photo loses the
   rounded corners every other card has.
   ---------------------------------------------------------------------- */
.tour-card-media figure,
.tbk-feat-card figure {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	overflow: hidden;
	border-radius: max(0px, calc(var(--tbk-r-card) - 0.75rem - 1px));
}

.tour-card-media figure img,
.tbk-feat-card figure img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}
