/* PureEV – recherche header + ajustements layout */

/* --- Header : éviter que la nav casse --- */
.pureev-header {
	gap: 16px;
	align-items: center;
}

.pureev-brand {
	flex: 0 0 auto;
}

.pureev-nav {
	flex: 1 1 auto;
	min-width: 0;
	justify-content: flex-end;
}

.pureev-nav-list {
	gap: clamp(10px, 1.1vw, 22px);
	flex-wrap: nowrap;
}

.pureev-nav-item a {
	font-size: 12px;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.pureev-header-tools {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
}

/* Baseline : masquer tôt pour libérer de la place */
@media (max-width: 1280px) {
	.pureev-brand-baseline {
		display: none;
	}
}

/* --- Recherche : icône seule, champ au focus --- */
.pureev-search-form {
	display: flex;
	align-items: center;
	width: 32px;
	height: 32px;
	margin: 0;
	border: 1px solid #e6e6e6;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
	transition: width 0.22s ease, border-color 0.2s ease;
}

.pureev-search-form:focus-within {
	width: 168px;
	border-color: #0a7cff;
}

.pureev-search-toggle {
	flex: 0 0 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	font-size: 15px;
	line-height: 1;
	color: #555;
	cursor: pointer;
}

.pureev-search-field {
	flex: 1 1 auto;
	min-width: 0;
	width: 0;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 12px;
	color: #222;
	outline: none;
	opacity: 0;
	transition: opacity 0.15s ease;
}

.pureev-search-form:focus-within .pureev-search-field {
	width: auto;
	padding-right: 10px;
	opacity: 1;
}

.pureev-search-field::placeholder {
	color: #999;
}

@media (max-width: 900px) {
	.pureev-header-tools .pureev-search-form {
		display: none;
	}
}
