/* Icône dans la barre de navigation */
.pl-login-nav-item {
	list-style: none;
	float: right;
	margin-left: 12px;
}

.pl-login-nav-item .pl-login-trigger,
.pl-login-fallback .pl-login-trigger {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	line-height: 1;
}

.pl-login-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #fff;
	color: #50575e;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), 0 1px 3px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.pl-login-icon:hover,
.pl-login-trigger:hover .pl-login-icon,
.pl-login-trigger:focus .pl-login-icon {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.14);
	color: #2271b1;
}

.pl-login-icon--active {
	background: #2271b1;
	color: #fff;
}

.pl-login-initials {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
}

/* Icône de secours (thèmes sans menu) */
.pl-login-fallback {
	position: fixed;
	top: 18px;
	right: 24px;
	z-index: 9998;
}

.pl-login-fallback.is-hidden {
	display: none;
}

/* Modale */
.pl-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pl-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.pl-modal-overlay[hidden] {
	display: none;
}

.pl-modal-overlay.is-open[hidden] {
	display: flex;
}

.pl-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	padding: 28px 28px 24px;
	max-height: 90vh;
	overflow-y: auto;
}

.pl-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
}

.pl-modal-close:hover {
	color: #000;
}

.pl-modal h2 {
	margin: 0 0 18px;
	font-size: 1.35rem;
}

.pl-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.pl-tab {
	flex: 1;
	background: none;
	border: none;
	border-bottom: 3px solid transparent;
	padding: 10px 8px;
	font-size: 14px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	margin-bottom: -1px;
}

.pl-tab.is-active {
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.pl-panel {
	display: none;
}

.pl-panel.is-active {
	display: block;
}

.pl-field {
	margin: 0 0 14px;
}

.pl-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}

.pl-field input[type="text"],
.pl-field input[type="email"],
.pl-field input[type="password"],
.pl-field input[type="file"],
.pl-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
}

.pl-field small {
	display: block;
	margin-top: 4px;
	color: #666;
	font-size: 12px;
}

.pl-field-inline label {
	font-weight: normal;
	display: flex;
	align-items: center;
	gap: 8px;
}

.pl-submit {
	margin-top: 18px;
}

.pl-btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 6px;
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	text-align: center;
}

.pl-btn-primary {
	background: #2271b1;
	color: #fff;
	border-color: #2271b1;
}

.pl-btn-primary:hover {
	background: #135e96;
	color: #fff;
}

.pl-btn-secondary {
	background: #f0f0f1;
	color: #1d2327;
	border-color: #c3c4c7;
}

.pl-btn-danger {
	background: #fff;
	color: #b32d2e;
	border-color: #b32d2e;
}

.pl-links {
	margin-top: 12px;
	text-align: center;
}

.pl-link-btn {
	background: none;
	border: none;
	color: #2271b1;
	cursor: pointer;
	text-decoration: underline;
	font-size: 13px;
	padding: 0;
}

.pl-info {
	background: #f0f6fc;
	border-left: 4px solid #2271b1;
	padding: 10px 12px;
	margin: 0 0 16px;
	font-size: 13px;
	color: #1d2327;
}

.pl-alert {
	padding: 12px 14px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}

.pl-alert-success {
	background: #edfaef;
	border: 1px solid #68de7c;
	color: #1e4620;
}

.pl-alert-error {
	background: #fcf0f1;
	border: 1px solid #f1aeb5;
	color: #721c24;
}

.pl-welcome {
	font-size: 16px;
	margin: 0 0 6px;
}

.pl-user-email {
	color: #666;
	margin: 0 0 20px;
}

.pl-account-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pl-modal-overlay--wide .pl-modal {
	max-width: 640px;
}

.pl-documents h3 {
	margin: 0 0 14px;
	font-size: 1.05rem;
}

.pl-documents-list {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.pl-file-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pl-file-item {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.pl-file-item:last-child {
	border-bottom: none;
}

.pl-file-meta,
.pl-file-desc {
	display: block;
	font-size: 0.85em;
	color: #666;
	margin-top: 3px;
}

.pl-file-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.pl-btn-small {
	padding: 5px 10px;
	font-size: 12px;
}

.pl-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.pl-empty {
	color: #888;
	font-style: italic;
}

.pl-notice {
	padding: 12px;
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
}

.pl-shortcode-info {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 24px 0;
}

.pl-shortcode-info code {
	display: inline-block;
	background: #fff;
	padding: 6px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
}

.pl-documents--page {
	max-width: 720px;
	margin: 0 auto;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
}

@media (max-width: 600px) {
	.pl-login-fallback {
		top: 12px;
		right: 12px;
	}

	.pl-modal {
		padding: 22px 18px 18px;
	}
}
