/**
 * Téléchargez Notre Application — Full-Width App Promo Banner.
 *
 * CSS variables (set via inline style):
 *   --app-grad-start    gradient start color
 *   --app-grad-end      gradient end color
 *   --app-grad-angle    gradient angle (deg)
 *   --app-text          text color
 *   --app-accent        accent / button color
 *   --app-pad           section vertical padding
 *   --app-tilt          phone tilt angle (deg)
 *
 * @package DroxAuto
 */

/* ─── Section ─── */
.drox-app {
	position: relative;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
	background: linear-gradient(
		var(--app-grad-angle, 135deg),
		var(--app-grad-start, #1a1a2e) 0%,
		var(--app-grad-end, #f5700a) 100%
	);
	padding: var(--app-pad, 64px) 0;
	overflow: hidden;
	color: var(--app-text, #ffffff);
}

/* Subtle noise / texture overlay */
.drox-app::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
	pointer-events: none;
}

/* ─── Inner ─── */
.drox-app__inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: 1fr 380px;
	gap: 48px;
	align-items: center;
}

/* ─── Content (left) ─── */
.drox-app__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.drox-app__label {
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	color: var(--app-accent, #f5700a);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.drox-app__label::before {
	content: "";
	display: inline-block;
	width: 28px;
	height: 2px;
	background: var(--app-accent, #f5700a);
	border-radius: 1px;
}

.drox-app__headline {
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 36px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.15;
	letter-spacing: 0.5px;
	margin: 0;
	color: var(--app-text, #ffffff);
}

.drox-app__desc {
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.85;
	max-width: 520px;
	margin: 0;
}

/* ─── Features ─── */
.drox-app__features {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 4px 0;
}

.drox-app__feat {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 600;
}

.drox-app__feat-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
}

/* ─── Store Badges (live mode) ─── */
.drox-app__stores {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 4px;
}

.drox-app__store-badge {
	display: inline-block;
	height: 44px;
	transition: transform 0.25s, opacity 0.25s;
}

.drox-app__store-badge:hover {
	transform: scale(1.05);
}

.drox-app__store-badge img {
	height: 100%;
	width: auto;
}

/* ─── Coming Soon (notify mode) ─── */
.drox-app__notify {
	display: flex;
	gap: 0;
	max-width: 400px;
	margin-top: 4px;
}

.drox-app__notify-input {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid rgba(255,255,255,0.25);
	border-right: none;
	border-radius: 8px 0 0 8px;
	background: rgba(255,255,255,0.1);
	color: #fff;
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 14px;
	outline: none;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	transition: border-color 0.2s;
}

.drox-app__notify-input::placeholder {
	color: rgba(255,255,255,0.5);
}

.drox-app__notify-input:focus {
	border-color: var(--app-accent, #f5700a);
}

.drox-app__notify-btn {
	padding: 12px 24px;
	background: var(--app-accent, #f5700a);
	color: #fff;
	border: 2px solid var(--app-accent, #f5700a);
	border-radius: 0 8px 8px 0;
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	cursor: pointer;
	transition: background 0.2s, transform 0.2s;
	white-space: nowrap;
}

.drox-app__notify-btn:hover {
	background: var(--app-accent-hover, #e06000);
	border-color: var(--app-accent-hover, #e06000);
}

.drox-app__coming-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 16px;
	background: rgba(255,255,255,0.12);
	border-radius: 20px;
	font-family: "Barlow Condensed", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1.5px;
	margin-bottom: 4px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.drox-app__coming-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--app-accent, #f5700a);
	animation: drox-app-pulse 1.5s ease-in-out infinite;
}

@keyframes drox-app-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50%      { opacity: 0.4; transform: scale(0.7); }
}

/* ─── QR Code ─── */
.drox-app__qr {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}

.drox-app__qr img {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	border: 3px solid rgba(255,255,255,0.2);
}

.drox-app__qr-text {
	font-family: "Barlow", system-ui, sans-serif;
	font-size: 12px;
	opacity: 0.7;
	line-height: 1.4;
}

/* ─── Phone Area (right) ─── */
.drox-app__phone {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
}

/* Glow behind phone */
.drox-app__phone::before {
	content: "";
	position: absolute;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(245,112,10,0.25) 0%, transparent 70%);
	filter: blur(40px);
	pointer-events: none;
}

/* ─── Full Mockup Mode ─── */
.drox-app__mockup {
	max-height: 440px;
	width: auto;
	filter: drop-shadow(0 20px 60px rgba(0,0,0,0.35));
	transform: rotate(calc(var(--app-tilt, 5) * 1deg));
	transition: transform 0.4s;
}

.drox-app__phone:hover .drox-app__mockup {
	transform: rotate(0deg) translateY(-4px);
}

/* ─── CSS Phone Frame Mode ─── */
.drox-app__frame {
	position: relative;
	width: 240px;
	height: 480px;
	border-radius: 36px;
	background: #0d0d0d;
	padding: 12px;
	box-shadow:
		0 20px 60px rgba(0,0,0,0.35),
		inset 0 0 0 2px rgba(255,255,255,0.08);
	transform: rotate(calc(var(--app-tilt, 5) * 1deg));
	transition: transform 0.4s;
	overflow: hidden;
}

.drox-app__phone:hover .drox-app__frame {
	transform: rotate(0deg) translateY(-4px);
}

/* Notch */
.drox-app__frame::before {
	content: "";
	position: absolute;
	top: 12px;
	left: 50%;
	transform: translateX(-50%);
	width: 80px;
	height: 24px;
	background: #0d0d0d;
	border-radius: 0 0 16px 16px;
	z-index: 2;
}

.drox-app__frame-screen {
	width: 100%;
	height: 100%;
	border-radius: 24px;
	object-fit: cover;
	object-position: top center;
}

/* ─── Float Animation ─── */
.drox-app--float .drox-app__mockup,
.drox-app--float .drox-app__frame {
	animation: drox-app-float 4s ease-in-out infinite;
}

@keyframes drox-app-float {
	0%, 100% { transform: rotate(calc(var(--app-tilt, 5) * 1deg)) translateY(0); }
	50%      { transform: rotate(calc(var(--app-tilt, 5) * 1deg)) translateY(-12px); }
}

.drox-app--float .drox-app__phone:hover .drox-app__mockup,
.drox-app--float .drox-app__phone:hover .drox-app__frame {
	animation-play-state: paused;
	transform: rotate(0deg) translateY(-4px);
}

/* ─── Tablet ─── */
@media (max-width: 991px) {
	.drox-app__inner {
		grid-template-columns: 1fr 300px;
		gap: 32px;
		padding: 0 24px;
	}

	.drox-app__headline {
		font-size: 28px;
	}

	.drox-app__mockup {
		max-height: 360px;
	}

	.drox-app__frame {
		width: 200px;
		height: 400px;
		border-radius: 30px;
	}
}

/* ─── Mobile ─── */
@media (max-width: 639px) {
	.drox-app {
		padding: calc(var(--app-pad, 64px) * 0.65) 0;
	}

	.drox-app__inner {
		grid-template-columns: 1fr;
		gap: 32px;
		padding: 0 20px;
		text-align: center;
	}

	.drox-app__label {
		justify-content: center;
	}

	.drox-app__desc {
		max-width: 100%;
	}

	.drox-app__headline {
		font-size: 24px;
	}

	.drox-app__features {
		align-items: center;
	}

	.drox-app__stores {
		justify-content: center;
	}

	.drox-app__notify {
		max-width: 100%;
	}

	.drox-app__qr {
		justify-content: center;
	}

	.drox-app__phone {
		order: -1;
	}

	.drox-app__mockup {
		max-height: 280px;
	}

	.drox-app__frame {
		width: 180px;
		height: 360px;
		border-radius: 28px;
	}
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
	.drox-app--float .drox-app__mockup,
	.drox-app--float .drox-app__frame {
		animation: none;
	}

	.drox-app__coming-badge::before {
		animation: none;
	}
}
