/* GAP Captain Auto Promo - bandeau + popup. Tout est scopé sous .gap-ca-* */

/* ---------- Bandeau ---------- */

.gap-ca-banner {
	position: relative;
	width: 100%;
	background: linear-gradient(100deg, #0f0f1e 0%, #16213e 55%, #1a1a2e 100%);
	border-bottom: 1px solid rgba(212, 168, 67, .45);
	color: #fff;
	z-index: 5;
}

.gap-ca-banner[hidden] {
	display: none;
}

.gap-ca-banner__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 52px 12px 20px;
	text-align: center;
}

.gap-ca-banner__badge {
	display: inline-block;
	flex: none;
	padding: 3px 10px;
	border-radius: 3px;
	background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%);
	color: #0f0f1e;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.6;
}

.gap-ca-banner__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #e2e5ea;
}

.gap-ca-banner__text strong {
	color: #d4a843;
	font-weight: 700;
}

.gap-ca-banner__short {
	display: none;
}

.gap-ca-banner__cta {
	flex: none;
	display: inline-block;
	padding: 9px 20px;
	border: 1px solid #d4a843;
	border-radius: 3px;
	background: transparent;
	color: #d4a843 !important;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	transition: background-color .25s ease, color .25s ease;
}

.gap-ca-banner__cta:hover,
.gap-ca-banner__cta:focus {
	background: #d4a843;
	color: #0f0f1e !important;
}

.gap-ca-banner__close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .55);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease;
}

.gap-ca-banner__close:hover,
.gap-ca-banner__close:focus {
	color: #d4a843;
}

@media (max-width: 900px) {
	.gap-ca-banner__inner {
		gap: 8px 12px;
		padding: 10px 44px 10px 16px;
	}

	.gap-ca-banner__text {
		font-size: 14px;
	}

	.gap-ca-banner__long {
		display: none;
	}

	.gap-ca-banner__short {
		display: inline;
	}

	.gap-ca-banner__cta {
		padding: 8px 16px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.gap-ca-banner__inner {
		flex-direction: column;
		gap: 8px;
		padding: 12px 40px 12px 14px;
	}

	.gap-ca-banner__text {
		font-size: 13.5px;
	}
}

/* ---------- Popup ---------- */

.gap-ca-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.gap-ca-modal[hidden] {
	display: none;
}

.gap-ca-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(9, 9, 18, .78);
	animation: gap-ca-fade .3s ease both;
}

.gap-ca-modal__box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 38px 40px 34px;
	border: 1px solid rgba(212, 168, 67, .35);
	border-radius: 6px;
	background: linear-gradient(160deg, #0f0f1e 0%, #16213e 100%);
	box-shadow: 0 30px 70px rgba(0, 0, 0, .55);
	color: #e2e5ea;
	animation: gap-ca-pop .35s cubic-bezier(.2, .8, .3, 1) both;
}

.gap-ca-modal__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, .55);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease;
}

.gap-ca-modal__close:hover,
.gap-ca-modal__close:focus {
	color: #d4a843;
}

.gap-ca-modal__eyebrow {
	display: block;
	margin-bottom: 10px;
	color: #d4a843;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}

/* !important requis : Avada/Elementor imposent leur couleur sur les h2 */
.gap-ca-modal .gap-ca-modal__box h2.gap-ca-modal__title {
	margin: 0 0 14px;
	color: #fff !important;
	font-size: 27px;
	line-height: 1.25;
	font-weight: 700;
}

.gap-ca-modal__lead {
	margin: 0 0 20px;
	font-size: 15.5px;
	line-height: 1.65;
	color: #c9ced8;
}

.gap-ca-modal__list {
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.gap-ca-modal__list li {
	position: relative;
	margin: 0 0 9px;
	padding-left: 26px;
	font-size: 14.5px;
	line-height: 1.5;
	color: #e2e5ea;
}

.gap-ca-modal__list li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 6px;
	width: 6px;
	height: 10px;
	border: solid #d4a843;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.gap-ca-modal__cta {
	display: block;
	width: 100%;
	padding: 15px 22px;
	border-radius: 4px;
	background: linear-gradient(135deg, #d4a843 0%, #b8922e 100%);
	color: #0f0f1e !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none !important;
	transition: filter .25s ease, transform .25s ease;
}

.gap-ca-modal__cta:hover,
.gap-ca-modal__cta:focus {
	filter: brightness(1.08);
	transform: translateY(-1px);
}

.gap-ca-modal__note {
	margin: 14px 0 0;
	font-size: 12.5px;
	text-align: center;
	color: #8f97a6;
}

@media (max-width: 560px) {
	.gap-ca-modal__box {
		padding: 32px 22px 26px;
	}

	.gap-ca-modal__title {
		font-size: 22px;
	}

	.gap-ca-modal__lead {
		font-size: 14.5px;
	}
}

body.gap-ca-modal-open {
	overflow: hidden;
}

@keyframes gap-ca-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes gap-ca-pop {
	from { opacity: 0; transform: translateY(18px) scale(.97); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.gap-ca-modal__overlay,
	.gap-ca-modal__box {
		animation: none;
	}
}
