/* CSS Document */

/* =============================================
   CONTAINER PRINCIPAL
   ============================================= */

#menuFull {
	color: #337ab7 !important;
	font-weight: bold;
	width: 100%;
	font-family: 'Baloo Tammudu', cursive;
}

/* =============================================
   BARRE DE NAVIGATION PRINCIPALE
   ============================================= */

#menuFull ul.menu {
	padding: 0;
	margin: 0;
	padding-left: 10px;
	list-style: none;
	height: 50px;
	align-content: center;
	align-items: center;
	display: flex;
	width: 100%;
	justify-content: space-around;
}

/* =============================================
   ITEMS DE PREMIER NIVEAU
   ============================================= */

#menuFull ul.menu > li {
	align-self: center;
	vertical-align: middle;
	display: flex;
	height: 100%;
	position: relative;
	flex-grow: 1;
	cursor: pointer;
	text-align: center;
	list-style: none;
	margin: 0;
}

/* Ligne de soulignement animée */
#menuFull ul.menu > li::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	right: 50%;
	height: 3px;
	background-color: #337ab7; /* bleu visible sur fond blanc */
	-webkit-transition: left 0.3s ease, right 0.3s ease, background-color 0.25s ease;
	-moz-transition: left 0.3s ease, right 0.3s ease, background-color 0.25s ease;
	-o-transition: left 0.3s ease, right 0.3s ease, background-color 0.25s ease;
	transition: left 0.3s ease, right 0.3s ease, background-color 0.25s ease;
	border-radius: 2px 2px 0 0;
}

#menuFull ul.menu > li:hover::after {
	left: 0;
	right: 0;
	background-color: #fff; /* blanc sur fond bleu au hover */
}

/* Fond au hover */
#menuFull ul.menu > li {
	-webkit-transition: background-color 0.25s ease;
	-moz-transition: background-color 0.25s ease;
	-o-transition: background-color 0.25s ease;
	transition: background-color 0.25s ease;
}

/* Fond hover BLEU SOLIDE → texte blanc visible sur fond blanc du header */
#menuFull ul.menu > li:hover {
	background-color: #337ab7;
}

/* Hover sous-menus : assombrissement sur fond déjà sombre */
#menuFull ul.sub_menu li:hover,
#menuFull ul.ssub_menu li:hover,
#popupMonProfil li:hover {
	text-decoration: none;
	background-color: rgba(0, 0, 0, 0.22);
}

/* =============================================
   LIENS PREMIER NIVEAU
   ============================================= */

#menuFull ul.menu > li > a,
#menuFull ul.menu > li > a:link {
	color: #337ab7;
	margin: 0 auto;
	padding: 0 5px;
	text-decoration: none;
	letter-spacing: 0.02em;
	-webkit-transition: color 0.25s ease, text-shadow 0.25s ease;
	-moz-transition: color 0.25s ease, text-shadow 0.25s ease;
	-o-transition: color 0.25s ease, text-shadow 0.25s ease;
	transition: color 0.25s ease, text-shadow 0.25s ease;
}

#menuFull ul.menu > li:hover > a {
	color: #fff; /* blanc lisible sur fond bleu #337ab7 */
	/*text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);*/
}

#menuFull ul.menu > li > a i {
	font-family: 'Baloo Tammudu', cursive;
	font-size: 20px;
	font-style: normal;
}

/* =============================================
   SOUS-MENUS (niveau 1) — DROPDOWN
   ============================================= */

.sub_menu {
	list-style: none;
	position: absolute;
	padding: 4px 0;
	margin: 0;
	margin-top: 48px;
	z-index: 100;
	min-width: 100%;
	/* Fond distinct avec !important pour écraser le style inline PHP */
	background-color: #1e3f70 !important;
	/* Bordure bleue en haut pour bien délimiter le dropdown */
	border-top: 3px solid #337ab7;
	border-radius: 0 0 5px 5px;
	/* Ombre portée forte pour faire "flotter" le menu */
	-webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(51, 122, 183, 0.3);
	-moz-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(51, 122, 183, 0.3);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(51, 122, 183, 0.3);
	/* Animation : caché par défaut */
	display: block !important;
	opacity: 0;
	pointer-events: none;
	-webkit-transform: translateY(-8px);
	-moz-transform: translateY(-8px);
	-ms-transform: translateY(-8px);
	-o-transform: translateY(-8px);
	transform: translateY(-8px);
	-webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
	-moz-transition: opacity 0.25s ease, -moz-transform 0.25s ease;
	-o-transition: opacity 0.25s ease, -o-transform 0.25s ease;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Affichage au hover du li parent */
#menuFull > ul > li:hover > ul.sub_menu {
	opacity: 1;
	pointer-events: auto;
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-ms-transform: translateY(0);
	-o-transform: translateY(0);
	transform: translateY(0);
}

#popupMonProfil ul.sub_menu li,
#menuFull ul.sub_menu li {
	color: #fff;
	text-align: left;
	width: 100%;
	white-space: nowrap;
	position: relative;
	-webkit-transition: background-color 0.2s ease, padding-left 0.2s ease;
	-moz-transition: background-color 0.2s ease, padding-left 0.2s ease;
	-o-transition: background-color 0.2s ease, padding-left 0.2s ease;
	transition: background-color 0.2s ease, padding-left 0.2s ease;
}

/* Séparateur subtil entre les items du dropdown */
#menuFull ul.sub_menu li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Barre latérale animée au hover */
#menuFull ul.sub_menu li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	background-color: rgba(255, 255, 255, 0.25);
	-webkit-transition: width 0.2s ease;
	-moz-transition: width 0.2s ease;
	-o-transition: width 0.2s ease;
	transition: width 0.2s ease;
}

#menuFull ul.sub_menu li:hover::before {
	width: 3px;
}

#menuFull ul.sub_menu li:hover {
	color: #fff;
	padding-left: 4px;
}

/* Exception : sous-menu dans le popup profil (toujours visible) */
#popupMonProfil .sub_menu {
	opacity: 1 !important;
	pointer-events: auto !important;
	-webkit-transform: none !important;
	-moz-transform: none !important;
	-ms-transform: none !important;
	-o-transform: none !important;
	transform: none !important;
	position: relative !important;
	margin-top: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	border-top: none !important;
	border-radius: 0 !important;
}

/* =============================================
   SOUS-SOUS-MENUS (niveau 2)
   ============================================= */

#menuFull ul.menu_article,
#menuFull ul.ssub_menu {
	display: none;
	text-decoration: none;
	list-style: none;
	padding: 0;
	background-color: #162d4e !important;
	left: 100%;
	top: 0;
	position: absolute;
	border-left: 3px solid #337ab7;
	-webkit-box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.35);
	-moz-box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.35);
	box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.35);
}

#menuFull ul.ssub_menu li {
	position: relative;
	color: #fff;
	text-align: left;
	width: 100%;
	white-space: nowrap;
}

#menuFull ul.menu .sub_menu .ssub_menu {
	/* géré via jQuery slideToggle */
}

/* =============================================
   LIENS GÉNÉRAUX
   ============================================= */

#menuFull a,
#menuFull a:hover,
#menuFull a:link,
#menuFull a:link:hover {
	text-decoration: none;
}

#menuFull li a {
	padding: 6px 10px;
	display: inline-block;
	align-self: center;
	line-height: 18px;
	width: 100%;
	-webkit-transition: color 0.2s ease;
	-moz-transition: color 0.2s ease;
	-o-transition: color 0.2s ease;
	transition: color 0.2s ease;
}

/* =============================================
   BOUTON DROP (flèche sous-menu)
   ============================================= */

#menuFull .drop {
	display: inline-block;
	width: 26px;
	height: 26px;
	text-align: center;
	vertical-align: bottom;
	right: 0;
	opacity: 0.7;
	-webkit-transition: opacity 0.2s ease, -webkit-transform 0.3s ease;
	-moz-transition: opacity 0.2s ease, -moz-transform 0.3s ease;
	-o-transition: opacity 0.2s ease, -o-transform 0.3s ease;
	transition: opacity 0.2s ease, transform 0.3s ease;
}

#menuFull .drop .mdi {
	position: absolute;
	top: -12px;
	right: 0;
	font-size: 32px;
	-webkit-transition: -webkit-transform 0.3s ease;
	-moz-transition: -moz-transform 0.3s ease;
	-o-transition: -o-transform 0.3s ease;
	transition: transform 0.3s ease;
}

/* Pas de rotation CSS : le changement d'icône (mdi-menu-down ↔ mdi-menu-up)
   gère déjà la direction de la flèche via le glyphe */
#menuFull .drop .mdi-menu-up,
#menuFull .drop .mdi-menu-down {
	-webkit-transform: rotate(0deg);
	-moz-transform: rotate(0deg);
	-ms-transform: rotate(0deg);
	-o-transform: rotate(0deg);
	transform: rotate(0deg);
}

/* =============================================
   POPUP MON PROFIL — CARTE MODERNE
   ============================================= */

.popupProfilCard {
	background-color: #1e3f70 !important;
	min-width: 260px;
	border-radius: 0 0 8px 8px;
	-webkit-box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(51,122,183,0.3);
	-moz-box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(51,122,183,0.3);
	box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(51,122,183,0.3);
	border-top: 3px solid #337ab7;
	overflow: hidden;
}

.profil-card-header {
	display: flex;
	align-items: center;
	padding: 16px 16px 12px 16px;
	border-bottom: 1px solid rgba(255,255,255,0.1);
}

.profil-card-avatar {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	border: 2px solid #337ab7;
	flex-shrink: 0;
}

.profil-card-info {
	margin-left: 12px;
	display: flex;
	flex-direction: column;
}

.profil-card-name {
	color: #fff;
	font-size: 15px;
	font-weight: bold;
	line-height: 1.3;
}

.profil-card-login {
	color: rgba(255,255,255,0.6);
	font-size: 12px;
	line-height: 1.3;
}

.profil-card-links {
	padding: 8px 0;
}

.profil-card-links li {
	list-style: none;
}

.profil-card-links li a {
	display: block;
	padding: 8px 16px;
	color: #fff !important;
	text-decoration: none;
	font-size: 14px;
	-webkit-transition: background-color 0.2s ease, padding-left 0.2s ease;
	-moz-transition: background-color 0.2s ease, padding-left 0.2s ease;
	-o-transition: background-color 0.2s ease, padding-left 0.2s ease;
	transition: background-color 0.2s ease, padding-left 0.2s ease;
}

.profil-card-links li a:hover {
	background-color: rgba(255,255,255,0.12);
	padding-left: 20px;
}

.profil-card-links li a i {
	font-style: normal;
}

.profil-card-links li + li {
	border-top: 1px solid rgba(255,255,255,0.06);
}

.profil-card-footer {
	padding: 10px 16px;
	border-top: 1px solid rgba(255,255,255,0.1);
	text-align: center;
}

.profil-card-logout {
	display: inline-block;
	padding: 8px 24px;
	background-color: #c0392b;
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 4px;
	font-size: 13px;
	font-weight: bold;
	-webkit-transition: background-color 0.2s ease;
	-moz-transition: background-color 0.2s ease;
	-o-transition: background-color 0.2s ease;
	transition: background-color 0.2s ease;
}

.profil-card-logout:hover {
	background-color: #e74c3c;
	color: #fff !important;
	text-decoration: none !important;
}

.profil-card-logout i {
	margin-right: 4px;
	vertical-align: middle;
}


/* =============================================
   POPUP MON GROUPE — CARTE MODERNE
   ============================================= */

.popupGroupCard {
	background-color: #1e3f70 !important;
	min-width: 250px;
	border-radius: 0 0 8px 8px;
	-webkit-box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(51,122,183,0.3);
	-moz-box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(51,122,183,0.3);
	box-shadow: 0 8px 24px rgba(0,0,0,0.45), 0 2px 6px rgba(51,122,183,0.3);
	border-top: 3px solid #337ab7;
	overflow: hidden;
	padding: 0 !important;
}

.group-card-header {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	gap: 7px;
	padding: 10px 16px 9px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
	color: rgba(255,255,255,0.65);
	font-size: 11px;
	font-weight: bold;
	text-transform: uppercase;
	letter-spacing: 0.6px;
}

.group-card-header i {
	font-size: 16px;
	opacity: 0.8;
}

/* Liste des membres */
.group-member-list {
	margin: 0;
	padding: 4px 0;
	list-style: none;
	max-height: 280px;
	overflow-y: auto;
}

.group-member-list::-webkit-scrollbar {
	width: 4px;
}

.group-member-list::-webkit-scrollbar-track {
	background: rgba(255,255,255,0.05);
}

.group-member-list::-webkit-scrollbar-thumb {
	background: rgba(255,255,255,0.2);
	border-radius: 2px;
}

.group-member-item {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	padding: 7px 16px;
	gap: 10px;
	cursor: default;
	-webkit-transition: background-color 0.15s;
	transition: background-color 0.15s;
}

.group-member-item:hover {
	background-color: rgba(255,255,255,0.08);
}

.group-member-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border: 2px solid rgba(255,255,255,0.25);
	-ms-flex-negative: 0;
	    flex-shrink: 0;
}

.group-member-info {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	-webkit-box-flex: 1;
	    -ms-flex: 1;
	        flex: 1;
	min-width: 0;
}

.group-member-name {
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.group-member-name.group-expired {
	color: #ff9191;
}

.group-member-login {
	color: rgba(255,255,255,0.5);
	font-size: 11px;
	line-height: 1.4;
}

/* Badges statut cotisation */
.group-member-badge {
	min-width: 44px;
	height: 20px;
	border-radius: 10px;
	padding: 0 7px;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	font-size: 10px;
	font-weight: bold;
	white-space: nowrap;
	-ms-flex-negative: 0;
	    flex-shrink: 0;
	cursor: default;
	letter-spacing: 0.2px;
}

.group-member-badge.badge-ok {
	background-color: rgba(92,184,92,0.2);
	color: #7ed47e;
	border: 1px solid rgba(92,184,92,0.45);
}

.group-member-badge.badge-ko {
	background-color: rgba(255,100,100,0.2);
	color: #ff9191;
	border: 1px solid rgba(255,100,100,0.45);
}

/* Pied de popup */
.group-card-footer {
	padding: 8px 16px 10px;
	border-top: 1px solid rgba(255,255,255,0.1);
	text-align: center;
}

.group-card-link,
.group-card-link:link {
	display: inline-block;
	color: rgba(255,255,255,0.75) !important;
	font-size: 12px;
	text-decoration: none !important;
	padding: 5px 14px;
	border: 1px solid rgba(255,255,255,0.2);
	border-radius: 4px;
	-webkit-transition: background-color 0.15s, color 0.15s;
	transition: background-color 0.15s, color 0.15s;
}

.group-card-link:hover,
.group-card-link:link:hover {
	background-color: rgba(255,255,255,0.12);
	color: #fff !important;
	text-decoration: none !important;
}


