/**
 * Member area — branding, layout polish and components on top of Skote.
 */

:root {
	--bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--aae-brand: #556ee6;
	--aae-brand-dark: #3f4fa8;
	--aae-line: #eff2f7;
	--aae-muted: #74788d;
}

body.aae-app,
body.aae-auth {
	font-family: var(--bs-body-font-family);
	-webkit-font-smoothing: antialiased;
}

/* ---------- Brand ---------- */
.aae-brand {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	text-decoration: none;
	padding: 0;
}

.navbar-brand-box .aae-brand {
	padding: 0 6px;
}

.aae-brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: linear-gradient(135deg, var(--aae-brand-dark), var(--aae-brand));
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .3px;
	flex: 0 0 auto;
}

.aae-brand-text {
	font-size: 15px;
	font-weight: 600;
	color: #343a40;
	letter-spacing: -.2px;
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aae-brand--light .aae-brand-text {
	color: #fff;
}

.aae-brand--light .aae-brand-mark {
	background: rgba(255, 255, 255, .18);
	backdrop-filter: blur(4px);
}

/* ---------- Topbar ---------- */
.aae-app .header-profile-user {
	width: 32px;
	height: 32px;
	object-fit: cover;
}

.aae-app #page-topbar .noti-icon .badge {
	font-size: 10px;
	padding: .25em .45em;
}

.aae-app .app-search .form-control {
	background-color: #f3f3f9;
	border-color: #f3f3f9;
}

/* ---------- Sidebar ---------- */
.aae-app .vertical-menu .metismenu > li > a.active {
	color: #fff;
}

.aae-app .vertical-menu .metismenu > li.mm-active > a {
	color: #fff;
}

.aae-sidebar-card {
	margin: 8px 18px 22px;
	padding: 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .05);
}

/* ---------- Charts ---------- */
.aae-chart {
	min-height: 280px;
}

.aae-chart--donut {
	min-height: 300px;
}

/* ---------- Badges & pills ---------- */
.aae-pill {
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .2px;
	padding: .38em .7em;
	border-radius: 6px;
}

/* ---------- Service cards ---------- */
.aae-service-card {
	border: 1px solid var(--aae-line);
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.aae-service-card:hover {
	box-shadow: 0 10px 28px rgba(18, 38, 63, .08);
	transform: translateY(-2px);
	border-color: rgba(85, 110, 230, .35);
}

.aae-feature-list li {
	display: flex;
	align-items: flex-start;
	font-size: 13px;
	color: #495057;
	margin-bottom: 6px;
	line-height: 1.45;
}

.aae-feature-list li i {
	margin-top: 2px;
}

/* ---------- Key/value lists ---------- */
.aae-summary-list li {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 14px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--aae-line);
	font-size: 14px;
}

.aae-summary-list li:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.aae-summary-list li > span:first-child {
	flex: 0 0 auto;
}

.aae-summary-list li > span:last-child {
	text-align: right;
}

.aae-help-steps {
	padding-left: 18px;
	margin: 0;
	font-size: 13px;
	color: var(--aae-muted);
}

.aae-help-steps li {
	margin-bottom: 8px;
	line-height: 1.55;
}

.aae-help-steps li:last-child {
	margin-bottom: 0;
}

/* ---------- Progress steps ---------- */
.aae-steps {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aae-steps li {
	position: relative;
	padding: 0 0 22px 44px;
}

.aae-steps li:last-child {
	padding-bottom: 0;
}

.aae-steps li::before {
	content: "";
	position: absolute;
	left: 15px;
	top: 32px;
	bottom: 0;
	width: 2px;
	background: var(--aae-line);
}

.aae-steps li:last-child::before {
	display: none;
}

.aae-step-dot {
	position: absolute;
	left: 0;
	top: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
	color: #adb5bd;
	font-size: 16px;
}

.aae-step-label {
	display: block;
	font-size: 14px;
	line-height: 32px;
	color: var(--aae-muted);
}

.aae-steps li.is-done .aae-step-dot {
	background: rgba(52, 195, 143, .16);
	color: #34c38f;
}

.aae-steps li.is-done::before {
	background: rgba(52, 195, 143, .4);
}

.aae-steps li.is-done .aae-step-label {
	color: #343a40;
	font-weight: 500;
}

/* ---------- Conversation ---------- */
.aae-thread {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.aae-msg {
	display: flex;
	gap: 12px;
}

.aae-msg-avatar {
	flex: 0 0 auto;
}

.aae-msg-avatar img,
.aae-msg-avatar .avatar-title {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	object-fit: cover;
	font-size: 13px;
	font-weight: 600;
}

.aae-msg-body {
	flex: 1 1 auto;
	background: #f8f9fa;
	border-radius: 10px;
	padding: 13px 16px;
	min-width: 0;
}

.aae-msg--staff .aae-msg-body {
	background: rgba(85, 110, 230, .07);
}

.aae-msg--note .aae-msg-body {
	background: rgba(241, 180, 76, .12);
	border: 1px dashed rgba(241, 180, 76, .55);
}

.aae-msg-text {
	font-size: 14px;
	line-height: 1.6;
	color: #495057;
	overflow-wrap: anywhere;
}

.aae-msg-text p:last-child {
	margin-bottom: 0;
}

.aae-system {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	color: #adb5bd;
	text-align: center;
}

.aae-system time {
	color: #ced4da;
}

/* ---------- Files ---------- */
.aae-files {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aae-files--inline {
	margin-top: 10px;
}

.aae-file {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 7px 12px;
	border: 1px solid var(--aae-line);
	border-radius: 8px;
	background: #fff;
	color: #495057;
	font-size: 13px;
	text-decoration: none;
}

.aae-file:hover {
	border-color: var(--aae-brand);
	color: var(--aae-brand);
}

.aae-file-name {
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aae-file-size {
	color: #adb5bd;
	font-size: 11px;
}

/* ---------- Prose ---------- */
.aae-prose {
	font-size: 14px;
	line-height: 1.7;
	color: #495057;
	overflow-wrap: anywhere;
}

.aae-prose p:last-child {
	margin-bottom: 0;
}

/* ---------- Forms ---------- */
.aae-form .form-label {
	font-weight: 500;
	color: #343a40;
}

.aae-form .form-control,
.aae-form .form-select {
	border-color: #e4e6ef;
}

.aae-form .form-control:focus,
.aae-form .form-select:focus {
	border-color: var(--aae-brand);
	box-shadow: 0 0 0 .15rem rgba(85, 110, 230, .15);
}

/* ---------- Pagination ---------- */
.pagination-rounded .page-link {
	border-radius: 30px !important;
	margin: 0 3px;
	border: 0;
	min-width: 34px;
	text-align: center;
	color: var(--aae-muted);
}

.pagination-rounded .page-item.active .page-link {
	background-color: var(--aae-brand);
	color: #fff;
}

.pagination-rounded .page-item.disabled .page-link {
	opacity: .45;
}

/* ---------- Tables ---------- */
.aae-app .table > :not(caption) > * > * {
	padding: .85rem .75rem;
}

.aae-app .table thead.table-light th {
	font-size: 12px;
	letter-spacing: .3px;
	text-transform: uppercase;
	color: var(--aae-muted);
	font-weight: 600;
}

/* ---------- Auth ---------- */
.aae-auth .auth-full-bg {
	position: relative;
	overflow: hidden;
	background: linear-gradient(140deg, #2f3c85 0%, #556ee6 55%, #8ea1f7 100%);
}

.aae-auth .auth-full-bg::before {
	content: "";
	position: absolute;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	right: -140px;
	top: -120px;
	background: rgba(255, 255, 255, .12);
}

.aae-auth .auth-full-bg::after {
	content: "";
	position: absolute;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	left: -120px;
	bottom: -110px;
	background: rgba(255, 255, 255, .08);
}

.aae-auth .auth-full-bg .bg-overlay {
	position: absolute;
	inset: 0;
	opacity: .12;
	mix-blend-mode: overlay;
}

.aae-auth-claim {
	font-size: 26px;
	line-height: 1.3;
	max-width: 480px;
}

.aae-auth .auth-full-page-content {
	background-color: #fff;
}

@media (min-width: 1200px) {
	.aae-auth .auth-full-bg {
		min-height: 100vh;
	}
}

/* ---------- Scheduling calendar ---------- */
.aae-planning {
	border: 1px solid var(--aae-line);
	border-radius: 10px;
	padding: 16px;
	background: #fbfbfe;
	margin-bottom: 1.25rem;
}

.aae-calendar {
	margin-bottom: 14px;
}

.aae-calendar-head,
.aae-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
}

.aae-calendar-head span {
	text-align: center;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--aae-muted);
	padding-bottom: 4px;
}

.aae-calendar-day {
	aspect-ratio: 1 / 1;
	border: 1px solid var(--aae-line);
	background: #fff;
	border-radius: 8px;
	font-size: 13px;
	color: #343a40;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
	padding: 0;
}

.aae-calendar-day:hover:not(:disabled) {
	border-color: var(--aae-brand);
	color: var(--aae-brand);
}

.aae-calendar-day.is-selected {
	background: rgba(85, 110, 230, .12);
	border-color: rgba(85, 110, 230, .45);
	color: var(--aae-brand-dark);
	font-weight: 600;
}

.aae-calendar-day.is-valid {
	background: var(--aae-brand);
	border-color: var(--aae-brand);
	color: #fff;
}

.aae-calendar-day.is-past {
	background: #f8f9fa;
	color: #adb5bd;
}

.aae-calendar-day.is-past:hover {
	border-color: var(--aae-brand);
	color: var(--aae-brand);
}

.aae-calendar-day.is-past.is-selected,
.aae-calendar-day.is-past.is-valid {
	color: #fff;
}

.aae-days {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.aae-day-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	background: #fff;
	border: 1px dashed var(--aae-line);
	border-radius: 8px;
	padding: 8px 10px;
}

.aae-day-date {
	min-width: 96px;
	font-size: 13px;
	font-weight: 600;
	color: #343a40;
}

.aae-day-time {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--aae-muted);
	margin: 0;
}

.aae-day-time input {
	width: 108px;
}

.aae-day-remove {
	margin-left: auto;
	padding: .15rem .4rem;
}

@media (max-width: 575.98px) {
	.aae-day-date {
		min-width: 100%;
	}

	.aae-day-time input {
		width: 96px;
	}
}

/* ---------- Notifications ---------- */
.aae-app .notification-item {
	display: block;
	padding: 12px 16px;
	border-bottom: 1px solid var(--aae-line);
}

.aae-app .notification-item:hover {
	background: #f8f9fc;
}

.aae-app .notification-item.aae-notification--unread {
	background: rgba(85, 110, 230, .05);
}

.aae-app .notification-item.aae-notification--unread:hover {
	background: rgba(85, 110, 230, .09);
}

.aae-notification-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--aae-brand);
	flex: 0 0 auto;
	margin-top: 6px;
}

/* ---------- Misc ---------- */
.aae-app .card {
	border: 1px solid var(--aae-line);
	box-shadow: 0 2px 6px rgba(18, 38, 63, .02);
}

.aae-app .card-title {
	font-size: 15px;
	font-weight: 600;
}

.aae-app .page-title-box {
	padding-bottom: 18px;
}

.aae-app .avatar-title.bg-secondary-subtle {
	min-width: 38px;
	min-height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 600;
}

/* ---------- Planning (prestations) ---------- */
.aae-plan-card .table-sm td,
.aae-plan-card .table-sm th {
	padding: .35rem .5rem;
	font-size: 13px;
}

.aae-plan-totals {
	background: #f8f9fa;
	border: 1px solid var(--aae-line);
	border-radius: 6px;
	padding: 12px 14px;
}

.aae-plan-totals .border-top {
	border-color: var(--aae-line) !important;
	font-size: 14px;
}

.aae-variance-list li {
	padding: 6px 0;
	border-bottom: 1px dashed var(--aae-line);
}

.aae-variance-list li:last-child {
	border-bottom: 0;
}

.aae-variance-form {
	background: #fdf3f3;
	border: 1px solid rgba(244, 106, 106, .25);
	border-radius: 6px;
	padding: 10px 12px;
	margin: 0;
}

.aae-agenda-table td,
.aae-agenda-table th {
	font-size: 13px;
}

.aae-app .btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0;
}
/* ---------- Planning: ajout de jour ---------- */
.aae-add-day {
	background: #f2f6ff;
	border: 1px dashed rgba(85, 110, 230, .35);
	border-radius: 6px;
	padding: 10px 12px;
	margin: 0;
}

.aae-add-day input[type="date"],
.aae-add-day input[type="time"] {
	min-height: 31px;
}
/* ---------- Planning : édition des créneaux ---------- */
.aae-plan-card .table-sm th,
.aae-plan-card .table-sm td {
	padding: .35rem .3rem;
	white-space: nowrap;
}

.aae-plan-card .table-sm input[type="date"] {
	min-width: 118px;
}

.aae-plan-card .table-sm input[type="time"] {
	min-width: 92px;
}

.aae-plan-card .table-sm input[type="date"],
.aae-plan-card .table-sm input[type="time"] {
	font-size: 12px;
	height: 30px;
	padding: .15rem .3rem;
}

.aae-plan-card .table-sm td {
	vertical-align: middle;
}

.aae-plan-card .btn-icon i {
	font-size: 15px;
	line-height: 1;
}