/* ================= Variables (light / dark) ================= */
:root {
	--axofiles_colorborder: #ededed;
	--axofiles_colortitle: #3f3f3f;
	--axofiles_colortxt: #4e4e4e;
	--axofiles_backcolor: #fff;
	--axofiles_shadowcolor: rgba(17, 12, 46, 0.08);
	--axofiles_chipbg: rgba(0, 0, 0, 0.04);
}

.axo-files_container.dark-module {
	--axofiles_colorborder: rgba(255, 255, 255, 0.15);
	--axofiles_colortitle: rgba(255, 255, 255, 0.95);
	--axofiles_colortxt: rgba(255, 255, 255, 0.9);
	--axofiles_backcolor: rgba(0, 0, 0, 0.3);
	--axofiles_shadowcolor: rgba(255, 255, 255, 0.05);
	--axofiles_chipbg: rgba(255, 255, 255, 0.08);
}

.axo-files_container {
	width: 1440px;
	max-width: 100%;
}

/* ================= Top bar ================= */
.axo-files_topbar {
	position: relative;
	z-index: 5;
	background: var(--axofiles_backcolor);
	border: 1px solid var(--axofiles_colorborder);
	border-radius: 12px;
	padding: 12px;
	margin: 10px 0 22px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
}

@media (max-width:768px) {
	.axo-files_topbar {
		grid-template-columns: 1fr;
	}
}

.axo-files_filters {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	width: 100%;
	padding: 2px 2px 4px;
}

@media (max-width:576px) {
	
}

#filesFilters a.axo-files_chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	background: #fff;
	color: var(--axofiles_colortitle);
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	border: 1px solid var(--axofiles_colorborder);
	cursor: pointer;
	user-select: none;
	transition: .25s;
	white-space: nowrap;
	text-decoration: none !important;
}

#filesFilters a.axo-files_chip:hover {
	border-color: var(--axo_module_maincolor);
}

#filesFilters a.axo-files_chip.active {
	background: var(--axo_module_maincolor);
	color: #fff;
	border-color: transparent;
}

#filesFilters a.axo-files_chip i {
	font-size: 12px;
	opacity: .7;
}

#filesFilters .dropdown-menu {
	background: transparent;
	border: none;
	min-width: 100%;
	margin: 0;
	padding: 0;
}

#filesFilters .axo-files_chip.dropdown-item {
	margin: 1px auto
}

.axo-files_tools {
	display: flex;
	gap: 10px;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
}

.axo-files_mobilefilter {
	position: relative;
	width: 100%;
}

.axo-files_filter_trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	border: 1px solid rgba(0, 0, 0, .12);
	background: #fff;
	border-radius: 12px;
	padding: 10px 14px;
	font-weight: 600;
	cursor: pointer;
}

.axo-files_filter_dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 100;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
	overflow: hidden;
}

.axo-files_filter_group {
	border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.axo-files_filter_group:last-child {
	border-bottom: 0;
}

.axo-files_filter_item,
.axo-files_filter_group_toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 14px;
	color: inherit;
	text-decoration: none;
	background: transparent;
	border: 0;
	text-align: left;
	cursor: pointer;
	position: relative;
	font-weight: 600;
}

.axo-files_filter_item:hover,
.axo-files_filter_group_toggle:hover {
	background: rgba(0, 0, 0, .06);
	color: inherit;
	text-decoration: none;
}

.axo-files_filter_item.active {
	background: var(--axo_module_maincolor);
	color: #fff;
	text-decoration: none;
}

.axo-files_filter_check {
	display: none;
}

.axo-files_filter_item.active .axo-files_filter_check {
	display: inline-block;
}

.axo-files_filter_children {
	background: rgba(0, 0, 0, .03);
}

.axo-files_filter_child {
	padding-left: 28px;
	font-size: 13px;
}

.axo-files_filter_child::before {
    content: "";
    position: absolute;
    left: .95rem;
    top: .5rem;
    bottom: .5rem;
    width: 2px;
    border-radius: 2px;
    background: rgba(0, 0, 0, .18);
}

.axo-files_filter_group_toggle[aria-expanded="true"] .axo-files_filter_group_caret {
	transform: rotate(90deg);
}

.axo-files_filter_group_caret {
	transition: transform .2s ease;
}



@media (max-width:768px) {
	.axo-files_tools {
		justify-content: stretch;
	}
}

/* ====== Recherche (loupe DANS l’input) ====== */
.axo-files_search {
	position: relative;
	min-width: 260px;
	display: inline-block;
}

@media (max-width:768px) {
	.axo-files_search {
		width: 100%;
	}
}

.axo-files_search input {
	width: 100%;
	height: 40px;
	border-radius: 10px;
	border: 1.5px solid var(--axofiles_colorborder);
	background: var(--axofiles_backcolor);
	color: var(--axofiles_colortitle);
	font-weight: 600;
	font-size: 14px;
	padding: 0 38px 0 12px;
	outline: none !important;
	position: relative;
	z-index: 1;
}

.axo-files_search .fa-search {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: #a3a3a3;
	z-index: 2;
	pointer-events: none;
	font-size: 14px;
	line-height: 1;
}

.axo-files_selectwrap {
	position: relative;
	min-width: 220px;
}

@media (max-width:768px) {
	.axo-files_selectwrap {
		width: 100%;
	}
}

.axo-files_selectwrap select {
	width: 100%;
	height: 40px;
	border-radius: 10px;
	border: 1.5px solid var(--axofiles_colorborder);
	background: var(--axofiles_backcolor);
	color: var(--axofiles_colortitle);
	font-weight: 600;
	font-size: 14px;
	padding: 0 2.5rem 0 10px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	outline: none !important;
}

.axo-files_selectwrap::after {
	content: "\f107";
	font-family: "Font Awesome 5 Free";
	font-weight: 900;
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(0, 0, 0, .45);
	pointer-events: none;
}

.axo-files_container.dark-module .axo-files_selectwrap::after {
	color: rgba(255, 255, 255, .7);
}

/* ================= Login (zone privée) ================= */
.axo-files_auth {
	background: var(--axofiles_backcolor);
	border: 1px solid var(--axofiles_colorborder);
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 22px;
	box-shadow: 0 12px 30px var(--axofiles_shadowcolor);
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.axo-files_auth h3 {
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 22px;
	color: var(--axofiles_colortitle);
}

.axo-files_auth p.lead {
	margin: 0 0 14px;
	font-size: 16px;
	color: var(--axofiles_colortxt);
}

.axo-files_form .form-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	justify-content: center;
}

.axo-files_form .form-group {
	flex: 1 1 260px;
	min-width: 260px;
	text-align: left;
}

.axo-files_form label {
	font-size: 12px;
	font-weight: 700;
	color: var(--axofiles_colortitle);
	margin-bottom: 6px;
}

.axo-files_form input {
	width: 100%;
	height: 40px;
	border-radius: 10px;
	border: 1.5px solid var(--axofiles_colorborder);
	background: var(--axofiles_backcolor);
	color: var(--axofiles_colortitle);
	font-weight: 600;
	font-size: 14px;
	padding: 0 12px;
	outline: none !important;
}

.axo-files_actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.axo-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 7px 14px;
	border-radius: 9px;
	border: 1.5px solid var(--axofiles_colorborder);
	background: var(--axofiles_backcolor);
	color: var(--axofiles_colortitle);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	transition: all .3s;
	cursor: pointer;
}

.axo-btn:hover {
	opacity: .7;
}

.axo-btn.primary {
	background: var(--axo_module_maincolor);
	color: #fff;
	border-color: transparent;
}

/* ================= Grille fichiers ================= */
.axo-files_list .axo-files_card {
	padding: 15px;
}

a.axo-files_tile {
	text-decoration: none;
	display: block;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	background: var(--axofiles_backcolor);
	color: var(--axofiles_colortitle);
	border: 1.5px solid rgba(0, 0, 0, 0);
	transition: .35s;
	text-decoration: none;
	box-shadow: var(--axofiles_shadowcolor) 0 48px 100px 0;
}

.axo-files_tile:hover {
	border-color: var(--axofiles_colorborder);
	box-shadow: 0 0 40px 3px rgba(0, 0, 0, 0);
}

.axo-files_media {
	position: relative;
	width: 100%;
	height: 180px;
	border-bottom: 1px solid var(--axofiles_colorborder);
	background: #f7f7f7;
	display: flex;
	align-items: center;
	justify-content: center;
}

.axo-files_media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform .35s ease;
}

.axo-files_tile:hover .axo-files_media img {
	transform: scale(1.04);
}

.axo-files_media .ext-badge {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #fff;
	background: var(--axo_module_maincolor);
	box-shadow: rgba(50, 50, 93, 0.25) 0 50px 100px -20px, rgba(0, 0, 0, 0.3) 0 30px 60px -30px;
}

.axo-files_media .date-badge {
	background: var(--axo_module_secondcolor);
	position: absolute;
	left: 10px;
	top: 10px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
	backdrop-filter: blur(10px);
}

.axo-files_icon {
	font-size: 42px;
	color: #9aa3ad;
	display: flex;
	align-items: center;
	justify-content: center;
}

.axo-files_body {
	padding: 14px;
}

.axo-files_title {
	font-size: 14.5px;
	font-weight: 800;
	margin: 0 0 6px;
	color: var(--axofiles_colortitle);
}

.axo-files_meta {
	font-size: 12px;
	color: #8b8b8b;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.axo-files_cta {
	height: 30px;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	border-top: 1.5px solid var(--axofiles_colorborder);
	padding: 10px 12px;
	font-size: 12px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--axofiles_colortitle);
	background: var(--axofiles_backcolor);
	transition: .35s;
	opacity: 0;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

.axo-files_tile:hover .axo-files_cta {
	opacity: 1;
}

.axo-files_tile:hover .axo-files_cta {
	height: 100px;
	background: var(--axo_module_maincolor);
	color: #fff;
	border-color: transparent;
}

/* Empty states */
.axo-files_empty {
	text-align: center;
	padding: 50px 10px;
	color: var(--axofiles_colortxt);
}

.axo-files_empty i {
	font-size: 28px;
	margin-bottom: 8px;
	display: block;
	opacity: .7;
}