/* =========================================================================
 * ELVERA — Gate de vérification chercheur
 * ========================================================================= */

.elvera-gate {
	position: fixed;
	inset: 0;
	z-index: var(--elvera-z-gate, 99999);
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

/* Fond flouté : le site reste perceptible mais illisible tant que
   la vérification n'est pas faite. */
.elvera-gate__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 10, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}

.elvera-gate__box {
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: auto;
	padding: 40px 36px 28px;
	background: #fff;
	border-radius: var(--elvera-radius, 12px);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
	text-align: center;
	animation: elvera-gate-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes elvera-gate-in {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.elvera-gate__box { animation: none; }
}

/* --- Logo --- */
.elvera-gate__logo {
	margin-bottom: 28px;
}

.elvera-gate__logo img {
	max-width: 180px;
	height: auto;
	margin: 0 auto;
}

.elvera-gate__logo--text {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--elvera-black, #0a0a0a);
}

/* --- Textes --- */
.elvera-gate__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--elvera-black, #0a0a0a);
}

.elvera-gate__intro {
	margin: 0 0 26px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--elvera-grey, #6b6b6b);
}

/* --- Cases à cocher --- */
.elvera-gate__checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
	text-align: left;
}

.elvera-gate__check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--elvera-line, #e5e5e5);
	border-radius: var(--elvera-radius-sm, 8px);
	cursor: pointer;
	transition: border-color 0.18s ease, background 0.18s ease;
}

.elvera-gate__check:hover {
	border-color: #c4c4c4;
}

/* La vraie checkbox est masquée mais reste focusable au clavier. */
.elvera-gate__check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.elvera-gate__box-mark {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border: 1.5px solid #c4c4c4;
	border-radius: 5px;
	background: #fff;
	transition: all 0.18s ease;
}

.elvera-gate__check input:checked ~ .elvera-gate__box-mark {
	border-color: var(--elvera-black, #0a0a0a);
	background: var(--elvera-black, #0a0a0a);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
	background-size: 15px;
	background-position: center;
	background-repeat: no-repeat;
}

.elvera-gate__check input:checked ~ .elvera-gate__check-text {
	color: var(--elvera-black, #0a0a0a);
}

.elvera-gate__check input:focus-visible ~ .elvera-gate__box-mark {
	outline: 2px solid var(--elvera-black, #0a0a0a);
	outline-offset: 2px;
}

.elvera-gate__check-text {
	font-size: 13px;
	line-height: 1.55;
	color: #4a4a4a;
}

/* --- Bouton principal --- */
.elvera-gate__submit {
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: var(--elvera-radius-sm, 8px);
	background: var(--elvera-black, #0a0a0a);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: opacity 0.18s ease, transform 0.1s ease;
}

.elvera-gate__submit:hover:not(:disabled) {
	opacity: 0.88;
}

.elvera-gate__submit:active:not(:disabled) {
	transform: scale(0.99);
}

.elvera-gate__submit:disabled {
	opacity: 0.28;
	cursor: not-allowed;
}

/* --- Disclaimer + sortie --- */
.elvera-gate__disclaimer {
	margin: 20px 0 0;
	font-size: 11px;
	line-height: 1.55;
	color: #8a8a8a;
	text-align: left;
}

.elvera-gate__disclaimer a {
	color: #8a8a8a;
	text-decoration: underline;
}

.elvera-gate__exit {
	margin-top: 18px;
	padding: 6px;
	border: 0;
	background: none;
	color: #8a8a8a;
	font-family: inherit;
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
}

.elvera-gate__exit:hover {
	color: var(--elvera-black, #0a0a0a);
}

/* --- Mobile --- */
@media (max-width: 480px) {
	.elvera-gate {
		padding: 0;
		align-items: flex-end;
	}

	.elvera-gate__box {
		max-width: 100%;
		padding: 32px 22px 24px;
		border-radius: 18px 18px 0 0;
		margin: 0;
	}

	.elvera-gate__logo {
		margin-bottom: 22px;
	}
}
