.bnep {
	--bnep-gold: #c8a951;
	--bnep-gold-dark: #a88b3a;
	--bnep-ink: #111;
	--bnep-line: #e7e2d6;
	--bnep-soft: #faf8f3;
	max-width: 900px;
	margin: 0 auto;
}

/* ---------- Connexion ---------- */

.bnep .bnep-login {
	position: relative;
	max-width: 440px;
	margin: 20px auto 40px;
	padding: 48px 40px 36px;
	background: #fff;
	border: 1px solid var(--bnep-line);
	border-top: 4px solid var(--bnep-gold);
	border-radius: 10px;
	box-shadow: 0 18px 50px -20px rgba(17, 17, 17, .25);
	text-align: center;
}
.bnep .bnep-login-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 14px;
	border-radius: 50%;
	background: var(--bnep-ink);
	color: var(--bnep-gold);
}
.bnep .bnep-login h2 { margin: 0 0 8px; }
.bnep .bnep-intro { margin: 0 auto 28px; max-width: 330px; font-size: .92em; line-height: 1.5; opacity: .75; }
.bnep .bnep-login form { text-align: left; }

.bnep .bnep-field { margin-bottom: 18px; }
.bnep .bnep-field label { display: block; margin-bottom: 6px; font-size: .85em; font-weight: 600; letter-spacing: .02em; }
.bnep .bnep-field input[type="text"],
.bnep .bnep-field input[type="password"] {
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 14px;
	box-sizing: border-box;
	background: var(--bnep-soft);
	border: 1px solid var(--bnep-line);
	border-radius: 6px;
	font-size: 16px;
	transition: border-color .2s, box-shadow .2s, background .2s;
}
.bnep .bnep-field input:focus {
	outline: none;
	background: #fff;
	border-color: var(--bnep-gold);
	box-shadow: 0 0 0 3px rgba(200, 169, 81, .25);
}
.bnep .bnep-pass-wrap { position: relative; }
.bnep .bnep-pass-wrap input { padding-right: 48px !important; }
.bnep .bnep-toggle {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	box-shadow: none;
	color: #8a8577;
	cursor: pointer;
}
.bnep .bnep-toggle:hover,
.bnep .bnep-toggle[aria-pressed="true"] { color: var(--bnep-gold-dark); background: none; }

.bnep .bnep-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 4px 0 24px;
	font-size: .88em;
}
.bnep .bnep-remember { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.bnep .bnep-remember input { margin: 0; accent-color: var(--bnep-gold); }
.bnep .bnep-lost { color: var(--bnep-gold-dark); text-decoration: none; }
.bnep .bnep-lost:hover { text-decoration: underline; }

.bnep .bnep-button {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 24px;
	background: linear-gradient(135deg, #d4b765 0%, var(--bnep-gold) 45%, var(--bnep-gold-dark) 100%);
	border: 0;
	border-radius: 6px;
	box-shadow: 0 8px 20px -8px rgba(168, 139, 58, .7);
	color: var(--bnep-ink);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform .15s, box-shadow .2s, filter .2s;
}
.bnep .bnep-button svg { transition: transform .2s; }
.bnep .bnep-button:hover {
	filter: brightness(1.05);
	box-shadow: 0 12px 26px -10px rgba(168, 139, 58, .85);
	transform: translateY(-1px);
}
.bnep .bnep-button:hover svg { transform: translateX(4px); }
.bnep .bnep-button:active { transform: translateY(0); box-shadow: 0 4px 12px -6px rgba(168, 139, 58, .7); }
.bnep .bnep-button:focus-visible { outline: 3px solid rgba(200, 169, 81, .5); outline-offset: 2px; }

.bnep .bnep-error {
	margin: 0 0 20px;
	padding: 10px 14px;
	background: #fbeaea;
	border-left: 4px solid #c0392b;
	border-radius: 4px;
	color: #8e2a20;
	font-size: .9em;
	text-align: left;
}

/* ---------- Espaces ---------- */

.bnep .bnep-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 30px;
	padding: 16px 20px;
	background: var(--bnep-soft);
	border: 1px solid var(--bnep-line);
	border-left: 4px solid var(--bnep-gold);
	border-radius: 6px;
}
.bnep .bnep-head p { margin: 0; }
.bnep .bnep-logout {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border: 1px solid var(--bnep-ink);
	border-radius: 6px;
	color: var(--bnep-ink);
	font-size: .88em;
	font-weight: 600;
	text-decoration: none;
	transition: background .2s, color .2s;
}
.bnep .bnep-logout:hover { background: var(--bnep-ink); color: #fff; }
.bnep .bnep-note, .bnep .bnep-empty { font-style: italic; opacity: .75; }
.bnep .bnep-espace { margin-bottom: 40px; }
.bnep .bnep-espace h3 { padding-bottom: 10px; border-bottom: 2px solid var(--bnep-gold); }
.bnep .bnep-files { list-style: none; margin: 0; padding: 0; }
.bnep .bnep-files li { margin: 0; padding: 0; border-bottom: 1px solid var(--bnep-line); }
.bnep .bnep-files a { display: flex; align-items: center; gap: 14px; padding: 11px 8px; text-decoration: none; transition: background .15s; }
.bnep .bnep-files a:hover { background: var(--bnep-soft); }
.bnep .bnep-ext { flex: 0 0 46px; padding: 4px 0; border-radius: 4px; background: var(--bnep-ink); color: var(--bnep-gold); font-size: 11px; font-weight: 700; text-align: center; }
.bnep .bnep-name { flex: 1; }
.bnep .bnep-size { flex: 0 0 auto; font-size: .85em; opacity: .6; }

@media (max-width: 600px) {
	.bnep .bnep-login { padding: 36px 22px 28px; margin-top: 0; }
	.bnep .bnep-size { display: none; }
}
