/* Dar Bouazza Elementor Widgets - Additional styles */

.dbs-basic-form input:focus,
.dbs-basic-form textarea:focus {
	outline: 2px solid var(--color-primary, #F7941D);
	border-color: transparent;
}

.dbs-contact-map iframe {
	width: 100%;
	height: 400px;
	border: 0;
}

.dbs-content-block {
	max-width: 900px;
	margin: 0 auto;
}
.dbs-content-block h3 { margin-top: 25px; }
.dbs-content-block ul { padding-left: 20px; }
.dbs-content-block li { margin-bottom: 8px; }

/* Pages légales */
.dbs-legal {
	max-width: 860px;
	margin: 40px auto;
	padding: 0 20px 60px;
	line-height: 1.7;
}
.dbs-legal h2 { margin-bottom: 8px; }
.dbs-legal h3 { margin-top: 28px; color: #0066B3; }
.dbs-legal table {
	width: 100%;
	border-collapse: collapse;
	margin: 16px 0 24px;
	font-size: 14px;
}
.dbs-legal th,
.dbs-legal td {
	border: 1px solid #E0E0E0;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
.dbs-legal th { background: #F5F7FA; }

/* Hero Slider — pleine largeur */
.dbs-hero-slider--fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	left: 0;
	right: 0;
}

/* Retirer le padding Elementor autour du slider */
.elementor-section:has(.dbs-hero-slider--fullwidth) > .elementor-container {
	max-width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.elementor-section:has(.dbs-hero-slider--fullwidth) {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.elementor-column:has(.dbs-hero-slider--fullwidth),
.elementor-widget:has(.dbs-hero-slider--fullwidth) {
	padding: 0 !important;
	margin: 0 !important;
}

.dbs-hero-slider {
	position: relative;
	min-height: clamp(520px, 85vh, 820px);
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}
.dbs-hero-slider__track {
	position: absolute;
	inset: 0;
}
.dbs-hero-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}
.dbs-hero-slider__slide.active { opacity: 1; z-index: 1; }
.dbs-hero-slider__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}
.dbs-hero-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 40, 80, 0.35) 0%,
		rgba(0, 102, 179, 0.55) 45%,
		rgba(0, 0, 0, 0.65) 100%
	);
	z-index: 2;
	pointer-events: none;
}
.dbs-hero-slider__content {
	position: relative;
	z-index: 3;
	min-height: clamp(520px, 85vh, 820px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 24px 72px;
	max-width: 900px;
	margin: 0 auto;
}
.dbs-hero-slider .dbs-hero__logo {
	max-width: min(220px, 55vw);
	margin: 0 auto 16px;
	filter: drop-shadow(0 2px 8px rgba(0,0,0,0.35));
}
.dbs-hero-slider .dbs-hero__title {
	font-size: clamp(1.35rem, 4.5vw, 2.75rem);
	line-height: 1.2;
	margin: 0 0 12px;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}
.dbs-hero-slider .dbs-hero__subtitle {
	font-size: clamp(0.95rem, 2.5vw, 1.15rem);
	margin: 0 0 24px;
	opacity: 0.95;
	max-width: 640px;
	text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.dbs-hero-slider .dbs-hero__buttons {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	width: 100%;
}
.dbs-hero-slider .dbs-hero__buttons .btn {
	min-width: 140px;
	padding: 14px 24px;
	font-size: 14px;
}
.dbs-hero-slider__dots {
	position: absolute;
	bottom: max(20px, env(safe-area-inset-bottom));
	left: 50%;
	transform: translateX(-50%);
	z-index: 4;
	display: flex;
	gap: 10px;
	padding: 8px 12px;
	background: rgba(0,0,0,0.25);
	border-radius: 999px;
	backdrop-filter: blur(4px);
}
.dbs-hero-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.85);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: transform 0.2s, background 0.2s;
}
.dbs-hero-slider__dot.active {
	background: #F7941D;
	border-color: #F7941D;
	transform: scale(1.15);
}
.dbs-hero-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	background: rgba(255,255,255,0.18);
	border: none;
	color: #fff;
	font-size: 32px;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	line-height: 1;
	backdrop-filter: blur(4px);
	transition: background 0.2s;
}
.dbs-hero-slider__arrow:hover,
.dbs-hero-slider__arrow:focus {
	background: rgba(255,255,255,0.35);
	outline: none;
}
.dbs-hero-slider__arrow--prev { left: 16px; }
.dbs-hero-slider__arrow--next { right: 16px; }

@media (max-width: 768px) {
	.dbs-hero-slider,
	.dbs-hero-slider__content {
		min-height: clamp(460px, 72svh, 620px);
	}
	.dbs-hero-slider__content {
		padding: 32px 16px 64px;
		justify-content: flex-end;
		padding-bottom: calc(64px + env(safe-area-inset-bottom));
	}
	.dbs-hero-slider .dbs-hero__logo {
		max-width: min(160px, 45vw);
		margin-bottom: 10px;
	}
	.dbs-hero-slider .dbs-hero__title {
		font-size: clamp(1.15rem, 5.5vw, 1.65rem);
		margin-bottom: 8px;
	}
	.dbs-hero-slider .dbs-hero__subtitle {
		font-size: 0.9rem;
		margin-bottom: 18px;
		line-height: 1.45;
	}
	.dbs-hero-slider .dbs-hero__buttons {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		max-width: 320px;
		margin: 0 auto;
	}
	.dbs-hero-slider .dbs-hero__buttons .btn {
		width: 100%;
		min-width: 0;
		padding: 14px 20px;
	}
	.dbs-hero-slider__img {
		object-position: center 35%;
	}
	.dbs-hero-slider__arrow {
		display: none;
	}
	.dbs-hero-slider__dot {
		width: 8px;
		height: 8px;
	}
}

@media (max-width: 480px) {
	.dbs-hero-slider,
	.dbs-hero-slider__content {
		min-height: clamp(420px, 68svh, 540px);
	}
}

/* Gallery lightbox */
.dbs-gallery-item { cursor: zoom-in; display: block; }
.dbs-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.92);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.dbs-lightbox img {
	max-width: 95vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: 4px;
}
.dbs-lightbox__close {
	position: absolute;
	top: 20px;
	right: 25px;
	background: none;
	border: none;
	color: #fff;
	font-size: 40px;
	cursor: pointer;
	line-height: 1;
}
.dbs-lightbox__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255,255,255,0.15);
	border: none;
	color: #fff;
	font-size: 48px;
	cursor: pointer;
	padding: 10px 18px;
	border-radius: 4px;
}
.dbs-lightbox__prev { left: 15px; }
.dbs-lightbox__next { right: 15px; }

/* Slider pleine largeur — fallback theme */
.site-main > .elementor:first-child .elementor-section:first-child,
.site-main .elementor-section.dbs-section-fullwidth {
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.site-main:has(.dbs-hero-slider--fullwidth) {
	overflow-x: hidden;
}
