
:root {
	--primary: #1a3a5c;
	--primary-dark: #0f2540;
	--accent: #e8a020;
	--surface: #f4f6f9;
	--card: #fff;
	--text-muted: #6c757d;
	--navbar-h: 56px;
	--footer-h: 64px;
}

* { box-sizing: border-box; }

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	font-family: 'Segoe UI', system-ui, sans-serif;
	background: var(--surface);
	overflow: hidden;
}

[v-cloak] {
	display: none;
}
		
/* ── NAVBAR ── */
#topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: var(--navbar-h);
	background: var(--primary);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 12px;
	z-index: 1040;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

#topbar .btn-icon {
	width: 40px; height: 40px;
	border: none;
	background: rgba(255,255,255,0.12);
	color: #fff;
	border-radius: 8px;
	display: flex; align-items: center; justify-content: center;
	font-size: 18px;
	cursor: pointer;
	transition: background 0.18s;
	flex-shrink: 0;
}
#topbar .btn-icon:hover { background: rgba(255,255,255,0.22); }

#topbar h1 {
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	letter-spacing: 0.4px;
	flex: 1;
	text-align: center;
}

/* ── DRAWER MENU ── */
#overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 1050;
}
#overlay.open { display: block; }

#drawer {
	position: fixed;
	top: 0; left: -280px;
	width: 280px;
	height: 100%;
	background: var(--primary-dark);
	z-index: 1060;
	transition: left 0.28s cubic-bezier(.4,0,.2,1);
	display: flex;
	flex-direction: column;
}
#drawer.open { left: 0; }

#drawer-header {
	background: var(--primary);
	padding: 18px 20px 16px;
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}
#drawer-header .avatar {
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--accent);
	display: flex; align-items: center; justify-content: center;
	font-size: 18px; color: #fff; font-weight: 700;
}
#drawer-header .drawer-title {
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	margin: 0;
}
#drawer-header .drawer-sub {
	color: rgba(255,255,255,0.6);
	font-size: 12px;
	margin: 0;
}

#drawer nav { flex: 1; padding: 12px 0; overflow-y: auto; }

#drawer nav a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 24px;
	color: rgba(255,255,255,0.85);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	border-left: 3px solid transparent;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}
#drawer nav a i {
	width: 20px;
	text-align: center;
	font-size: 16px;
	opacity: 0.8;
}
#drawer nav a:hover,
#drawer nav a.active {
	background: rgba(255,255,255,0.08);
	border-left-color: var(--accent);
	color: #fff;
}
#drawer nav a.active i { opacity: 1; }

/* ── CORPS ── */
#main-content {
	position: fixed;
	top: var(--navbar-h);
	bottom: var(--footer-h);
	left: 0; right: 0;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: var(--surface);
}

#page-frame {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}

/* Accueil placeholder */
#home-placeholder {
	padding: 28px 20px;
}
.welcome-card {
	background: var(--primary);
	border-radius: 14px;
	padding: 28px 24px;
	color: #fff;
	margin-bottom: 20px;
}
.welcome-card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.welcome-card p { font-size: 14px; opacity: 0.8; margin: 0; }
.welcome-card .badge-date {
	display: inline-block;
	background: var(--accent);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 12px;
}

.quick-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 20px;
}
.quick-card {
	background: #fff;
	border-radius: 12px;
	padding: 18px 16px;
	text-align: center;
	cursor: pointer;
	border: 1px solid rgba(0,0,0,0.07);
	transition: transform 0.15s, box-shadow 0.15s;
	text-decoration: none;
	color: inherit;
	display: block;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.10); color: inherit; }
.quick-card i {
	font-size: 26px;
	color: var(--primary);
	margin-bottom: 8px;
	display: block;
}
.quick-card span { font-size: 13px; font-weight: 600; color: #333; }

/* ── BOTTOMBAR ── */
#bottombar {
	position: fixed;
	bottom: 0; left: 0; right: 0;
	height: var(--footer-h);
	background: #fff;
	border-top: 1px solid rgba(0,0,0,0.10);
	display: flex;
	z-index: 1040;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
}

.tab-btn {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	border: none;
	background: transparent;
	color: var(--text-muted);
	font-size: 10px;
	font-weight: 500;
	cursor: pointer;
	transition: color 0.18s;
	padding: 0;
	text-decoration: none;
}
.tab-btn i { font-size: 20px; transition: color 0.18s; }
.tab-btn:hover, .tab-btn.active { color: var(--primary); }
.tab-btn.active i { color: var(--primary); }

/* ── MODAL USER ── */
#user-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1070;
	align-items: flex-start;
	justify-content: flex-end;
	padding: 60px 12px 0;
}
#user-modal.open { display: flex; }
#user-modal-bg {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.3);
}
#user-card {
	position: relative;
	z-index: 1;
	background: #fff;
	border-radius: 14px;
	padding: 20px;
	width: 260px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.18);
	animation: slideDown 0.2s ease;
}
input::placeholder {
	text-align:right;
	font-size:7pt;
	opacity:.2;
	color: #AAA;
}

.input-group-text {
	width:25%;
}

.codeVal {
  letter-spacing: 0.5em;
  text-align: center;
  font-family: monospace;
}


@keyframes slideDown {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}
.user-avatar-lg {
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--primary);
	color: #fff;
	font-size: 22px; font-weight: 700;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 12px;
}
#user-card h3 { font-size: 16px; font-weight: 700; text-align: center; margin: 0 0 2px; }
#user-card p{ font-size: 13px; color: var(--text-muted); text-align: center; margin: 0 0 16px; }
#user-card hr { margin: 12px 0; border-color: rgba(0,0,0,0.08); }
#user-card .user-info-row {
	display: flex; align-items: center; gap: 10px;
	font-size: 13px; color: #444; margin-bottom: 8px;
}
#user-card .user-info-row i { color: var(--primary); width: 16px; text-align: center; }

#messAlert {
	position:fixed; top:10px; left:0;
	width:100%;
	padding:10px;
	background:rgba(99,99,99,.8); color:#FFF;
	z-index:10;
}