:root{
	--tc-bg: #f6f3fb;
	--tc-panel: rgba(255,255,255,0.82);
	--tc-border: #e8dff6;
	--tc-text: #2f2948;
	--tc-muted: #857ea1;
	--tc-primary: #8b5cf6;
	--tc-primary-dark: #7447df;
	--tc-white: #ffffff;
	--tc-shadow: 0 12px 35px rgba(107, 78, 160, 0.08);
	--tc-radius-xl: 26px;
	--tc-radius-lg: 20px;
	--tc-radius-md: 14px;
}

*{
	box-sizing: border-box;
}

.tc-page-amis{
	background:
		radial-gradient(circle at top left, rgba(156, 112, 255, 0.10), transparent 25%),
		linear-gradient(180deg, #f8f5fc 0%, #f4f0fa 100%);
	min-height: 100vh;
	padding: 24px 12px;
	color: var(--tc-text);
	margin-top:70px;
}

.tc-app{
	display: grid;
	grid-template-columns: 300px minmax(0, 1fr) 340px;
	gap: 18px;
	align-items: start;
}

/* sidebar */

.tc-sidebar{
	background: var(--tc-panel);
	border: 1px solid var(--tc-border);
	border-radius: var(--tc-radius-xl);
	box-shadow: var(--tc-shadow);
	padding: 22px;
	position: sticky;
	top: 20px;
}

.tc-brand{
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
}

.tc-brand-logo{
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #9d72ff, #7d58ee);
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
}

.tc-brand-name{
	font-size: 20px;
	font-weight: 700;
}

.tc-profile-card{
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px;
	background: rgba(255,255,255,0.75);
	border: 1px solid var(--tc-border);
	border-radius: 20px;
	margin-bottom: 22px;
}

.tc-profile-avatar{
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	flex-shrink: 0;
	border: 3px solid #fff;
	box-shadow: 0 5px 16px rgba(0,0,0,0.08);
}

.tc-profile-name{
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.tc-profile-username{
	font-size: 14px;
	color: var(--tc-muted);
	margin-top: 4px;
}

.tc-menu{
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 22px;
}

.tc-menu-link{
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 16px;
	border-radius: 16px;
	text-decoration: none;
	color: var(--tc-text);
	font-weight: 600;
	transition: all 0.2s ease;
}

.tc-menu-link:hover{
	background: rgba(139, 92, 246, 0.08);
	color: var(--tc-primary-dark);
	text-decoration: none;
}

.tc-menu-link.active{
	background: linear-gradient(90deg, rgba(155,120,255,0.20), rgba(155,120,255,0.08));
	color: var(--tc-primary-dark);
}

.tc-side-box{
	background: rgba(255,255,255,0.72);
	border: 1px solid var(--tc-border);
	border-radius: 22px;
	padding: 18px;
	margin-bottom: 16px;
}

.tc-side-box h3{
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 14px;
}

.tc-stats-list{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tc-stat-line{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	color: var(--tc-muted);
	font-size: 14px;
}

.tc-stat-line strong{
	color: var(--tc-text);
	font-size: 15px;
}

.tc-tags{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tc-tags-column{
	flex-direction: column;
	align-items: flex-start;
}

.tc-tag{
	display: inline-flex;
	align-items: center;
	padding: 9px 14px;
	border-radius: 999px;
	background: #fbf9fe;
	border: 1px solid var(--tc-border);
	color: #5a5277;
	font-size: 14px;
	font-weight: 600;
}

/* main */

.tc-main{
	min-width: 0;
}

.tc-main-top{
	margin-bottom: 18px;
}

.tc-searchbar{
	background: var(--tc-panel);
	border: 1px solid var(--tc-border);
	border-radius: 22px;
	box-shadow: var(--tc-shadow);
	padding: 14px 20px;
}

.tc-searchbar input{
	width: 100%;
	border: none;
	outline: none;
	background: transparent;
	font-size: 16px;
	color: var(--tc-text);
}

.tc-panel{
	background: var(--tc-panel);
	border: 1px solid var(--tc-border);
	border-radius: 28px;
	box-shadow: var(--tc-shadow);
	padding: 26px;
}

.tc-panel-space{
	margin-top: 18px;
}

.tc-panel-header h1{
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 800;
}

.tc-panel-header p{
	margin: 0;
	color: var(--tc-muted);
	font-size: 16px;
	line-height: 1.6;
}

.tc-section-title{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
	margin-top: 6px;
}

.tc-section-title h2{
	margin: 0;
	font-size: 22px;
	font-weight: 800;
}

.tc-section-title span{
	font-size: 14px;
	color: var(--tc-muted);
	font-weight: 600;
}

.tc-suggestions-grid{
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.tc-user-card{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px;
	border-radius: 18px;
	border: 1px solid var(--tc-border);
	background: rgba(255,255,255,0.82);
	min-height: 92px;
}

.tc-user-left{
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.tc-user-avatar,
.tc-list-avatar,
.tc-popular-avatar{
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 3px solid #fff;
	box-shadow: 0 5px 16px rgba(0,0,0,0.08);
	border-radius: 50%;
	flex-shrink: 0;
}

.tc-user-avatar{
	width: 62px;
	height: 62px;
}

.tc-list-avatar,
.tc-popular-avatar{
	width: 52px;
	height: 52px;
}

.tc-user-info,
.tc-list-info,
.tc-popular-info{
	min-width: 0;
}

.tc-user-name,
.tc-list-name,
.tc-popular-name{
	font-size: 17px;
	font-weight: 800;
	line-height: 1.2;
	word-break: break-word;
}

.tc-user-sub,
.tc-list-sub,
.tc-popular-sub{
	margin-top: 5px;
	font-size: 14px;
	color: var(--tc-muted);
	word-break: break-word;
}

.tc-btn-outline{
	height: 42px;
	padding: 0 18px;
	border-radius: 14px;
	border: 1px solid #d9c9fb;
	background: #f6f0ff;
	color: var(--tc-primary-dark);
	font-weight: 700;
	cursor: pointer;
	transition: 0.2s ease;
}

.tc-btn-outline:hover{
	background: #ede2ff;
}

.tc-list{
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tc-list-item{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px;
	border-radius: 18px;
	border: 1px solid var(--tc-border);
	background: rgba(255,255,255,0.82);
}

.tc-list-left{
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.tc-status{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 800;
	white-space: nowrap;
}

.tc-status.pending{
	background: #fff4df;
	color: #b57700;
}

.tc-status.accepted{
	background: #e7f8ec;
	color: #168447;
}

.tc-empty-state,
.tc-empty-mini{
	padding: 18px;
	border-radius: 16px;
	background: rgba(255,255,255,0.72);
	border: 1px dashed var(--tc-border);
	color: var(--tc-muted);
}

/* rightbar */

.tc-rightbar{
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.tc-panel-small{
	padding: 22px;
}

.tc-card-title{
	margin-bottom: 12px;
}

.tc-card-title h3{
	margin: 0;
	font-size: 20px;
	font-weight: 800;
}

.tc-card-text,
.tc-card-note{
	color: var(--tc-muted);
	font-size: 15px;
	line-height: 1.7;
	margin: 0;
}

.tc-email-form{
	margin-top: 18px;
}

.tc-email-inline{
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
}

.tc-email-inline input{
	flex: 1;
	height: 46px;
	padding: 0 16px;
	border-radius: 14px;
	border: 1px solid var(--tc-border);
	background: rgba(255,255,255,0.85);
	outline: none;
	font-size: 15px;
}

.tc-btn-add{
	height: 46px;
	padding: 0 18px;
	border: none;
	border-radius: 14px;
	background: linear-gradient(135deg, #9a6bff, #7f59ef);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
}

.tc-btn-primary{
	height: 50px;
	border: none;
	border-radius: 16px;
	background: linear-gradient(135deg, #9565ff, #7b55eb);
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 12px 24px rgba(139, 92, 246, 0.20);
}

.tc-btn-full{
	width: 100%;
}

.tc-card-note{
	margin-top: 16px;
}

.tc-popular-list{
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tc-popular-item{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid rgba(232,223,246,0.8);
}

.tc-popular-item:last-child{
	border-bottom: none;
	padding-bottom: 0;
}

.tc-popular-left{
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.tc-popular-badge{
	padding: 8px 12px;
	border-radius: 999px;
	background: #f4eeff;
	border: 1px solid #e1d5fb;
	color: #7d5ae7;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
}

/* formulaires existants */
.tcFriendRequest__error{
	display: none;
	margin-bottom: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: #c0392b;
}

.tcFriendRequest__loader{
	display: none;
	margin-bottom: 8px;
}

.tcFriendRequest__loader img{
	width: 20px;
	height: 20px;
	display: block;
}

.form-ajout-ami.is-sent .tc-btn-outline,
.form-ajout-ami .tc-btn-outline.is-success{
	background: #e8f7ee;
	border-color: #b7dfc2;
	color: #1f7a3d;
	cursor: default;
}

/* responsive */

@media (max-width: 1399px){
	.tc-app{
		grid-template-columns: 270px minmax(0, 1fr) 320px;
	}
}

@media (max-width: 1199px){
	.tc-app{
		grid-template-columns: 260px minmax(0, 1fr);
	}

	.tc-rightbar{
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 18px;
	}
}

@media (max-width: 991px){
	.tc-app{
		grid-template-columns: 1fr;
	}

	.tc-sidebar{
		position: static;
	}

	.tc-rightbar{
		grid-template-columns: 1fr;
	}

	.tc-suggestions-grid{
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px){
	.tc-page-amis{
		padding: 14px 8px;
	}

	.tc-sidebar,
	.tc-panel,
	.tc-panel-small,
	.tc-searchbar{
		border-radius: 20px;
	}

	.tc-panel{
		padding: 18px;
	}

	.tc-panel-header h1{
		font-size: 22px;
	}

	.tc-section-title{
		flex-direction: column;
		align-items: flex-start;
	}

	.tc-user-card,
	.tc-list-item{
		flex-direction: column;
		align-items: flex-start;
	}

	.tc-user-action,
	.tc-list-right{
		width: 100%;
	}

	.tc-user-action .tc-btn-outline,
	.tc-user-action .tc-status,
	.tc-list-right .tc-status{
		width: 100%;
		justify-content: center;
	}

	.tc-email-inline{
		flex-direction: column;
	}
}

@media (max-width: 575px){
	.tc-brand-name{
		font-size: 18px;
	}

	.tc-profile-name{
		font-size: 18px;
	}

	.tc-user-avatar{
		width: 56px;
		height: 56px;
	}

	.tc-popular-badge{
		display: none;
	}
}