/********************* DEFINITION DES VARIABLES DE COULEUR ***************/
	:root {
		/* On crée des "alias" pour nos couleurs */
		--main-bg: #4b2d7a;
		--menu-color:#E4E0F0;
		--menu-bg: #1a0b2e;
		--active-color: #1A0B2E;
		--active-bg: #F1F0FA;
		--hover-color: #FEFBAD;
		/*--hover-color: #F1F0FA;*/
		--hover-bg: #533f78;
		--mobile-bg: #8c6ac7;
		--titlemobile-bg: #1a0b2e;
		--date-color:#FEFBAD;
		--stats-color:white;
		--statspoints-bg:#3A2A5C;
		--statsmobile-color: white;
		--scoring-bg:#3A2A5C;
		--date-color: #FEFBAD;
		--legendprogression-color:white;
		--progression-color:#FEFBAD;
		--eprogression-color:#3A2A5C;
		--totop-color: black;
		--totop-bg: #FEFBAD;
		--totop-bg: #F1F0FA;
		--totophover-color: black;	
		--totophover-bg: white;
		--burger-color:white;
		--menumobile-bg:#1a0b2e;
		--task-bg:#F1F0FA;
		--taskmenu-bg: #dcd6f7;
		--taskpoints-bg: #FEFBAD;
		--min-pageheight:75vh;
		--taskabandon-bg: #D6D2DD;
		--taskabandon-color: #6A6473;
				
	}
	/******************* FIN DEFINITION DES VARIABLES DE COULEUR *************/
	
	/********************** AJUSTEMENT DE STYLE GENERIQUES *******************/
	/* Ajout d'une tabulation de paragraphe extra compacte */
	.well-xxs {
		padding-top: 20px;
		padding-bottom: 20px; 
	}
	
	.well-xxs.dernier {
		padding-bottom: 0 !important;
	}
	
	@media (max-width: 991px) {
		.well-xxs-2 {
			padding-top: 35px;
			padding-bottom: 20px; 
		}
	}
	/******************** FIN AJUSTEMENT DE STYLE GENERIQUES *****************/
  
	/************************** GESTION DU MENU MOBILE ***********************/
	/* Menu mobile caché par défaut */
	.rd-navbar-collapse {
		display: none;
	}
	/* Mais menu mobile visible quand activé */
	.rd-navbar-collapse.active {
	  display: block;
	}
	@media (min-width: 992px) {
	  .rd-navbar-collapse {
		display: none !important;
	  }
	  .titre_enfant {
			display:none;
		}
	}
	
	/* Définir les couleurs de l'ensemble des éléments du menu mobile */
	.rd-navbar-fixed .rd-navbar-collapse.active:before {
		background: var(--menumobile-bg);
	}
	.rd-navbar-fixed .rd-navbar-collapse.active li {
		color:var(--menu-color) ;
	}
	.rd-navbar-fixed .rd-navbar-collapse.active li:hover {
		background-color:var(--hover-color) ;
	}
	.rd-navbar-fixed .rd-navbar-collapse.active li:hover {
		color:var(--active-color) ;
	}

	/* Logo mobile masqué par défaut */
	.logomobile img {
	  display: none !important;
	}
	/* Mais logo mobile visible en mobile */
	@media (max-width: 991px) {
		.logomobile img {
		display: block !important;
		}
		.rd-navbar-brand {
			margin-left:0px !important;
		}
		/* Egalement écarter le contenu du menu en mobile */
		.tasks-grid {
			padding-top:50px;
		}
		.titre_enfant {
			display:block;
			height:80px;
			padding-top:75px;
		}
	}
	
	/* ajuster le conteneur */
	.rd-navbar-outer {
		height:96px;
		align-items: center; /* centre verticalement tout le contenu */
	}
	/* Mais modifié en mobile */
	@media (max-width: 991px) {
		.rd-navbar-outer {
		height:0px;;
		}
		.page-footer {
			display:none;
		}
	}
	

	/************************** FIN GESTION DU MENU MOBILE *******************/
	
	/*************************** GESTION DU MENU STANDARD ********************/
	.rd-navbar-outer .rd-navbar-inner {
		height:96px;
	}
	/*  Supprimer les marges internes du conteneur Menu*/
	.rd-navbar-inner {
	  padding-left: 0 !important;
	  max-width: 100% !important;
	  display: flex;
	  align-items: center;
	}
	/* Pour forcer le logo à gauche */
	.rd-navbar-brand {
	  margin-right: auto;
	  margin-left: 15px;
	  display: flex;
	  align-items: center;
	}
	/* Et le Menu à droite */
	.rd-navbar-nav-wrap {
	  margin-left: auto;
	}

	/* Mise en forme du menu : Ecarter les libellés des icones */
	.rd-navbar-nav span {
		/*width:50px !important;*/
		margin-left: 10px;
	}
	/* Et assurer une largeur minimale aux icones */
	.rd-navbar-nav li {
		min-width:50px !important;
	}

	/* Changer l'aspect de la rubrique active */
	.rd-navbar-nav li.active a, .rd-navbar-nav li.active a:hover{
		background-color: var(--active-bg);
		color: var(--active-color) !important;
		border-radius: 50px;
	}
	.rd-navbar-nav li.active {
		background-color: transparent !important;
	}

	/* Customiser les liens survolés */
	.rd-navbar-nav li:hover {
		border-radius: 50px;
		background-color: var(--hover-bg);
	}
	.rd-navbar-nav li:hover a {
		color: var(--hover-color) !important;
	}
	
	/* En dessous de 1400px cacher les libellés */
	@media (max-width: 1700px) {
	/*@media (max-width: 3000px) {*/
		.rd-navbar .libelle {
			display: none;
		}
	}
	/************************* FIN GESTION DU MENU STANDARD ******************/
	
	/************************ PARTIE STATISTIQUES MOBILE *********************/

	/* Conteneur de l'ensemble des statistiques mobiles */
	.info-bar-mobile {
	  color: var(--stats-color);
	  padding: 0px 0px;
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  gap: 30px;
	}

	/* Conteneur de l'ensemble du scoring mobile */
	.info-points-mobile {
		background: var(--statspoints-bg);
		padding-left:10px;
		padding-right:11px;
		padding-top:2px;
		padding-bottom:0px;
		border-radius: 8px;
		font-weight: 600;
		display: flex;
		flex-direction: column; 	/* empile points + progression */
		align-items: flex-end;  	/* aligné à droite comme avant */
		min-width:1.2rem;
		height:48px;
		line-height:0.3rem;
	}
	
	/* Conteneur de récompense mobile */
	.points-main-mobile {
	  display: flex;
	  align-items: center;
	  gap: 6px;
	}

	/* Conteneur du comptage de tâches mobile */
	.progress-compact-mobile {
	  color: var(--statsmobile-color);
	}
	
	/* Statistiques mobiles masquées par défaut */
	.info-bar-mobile {
	  display: none;
	}
	/* Mais affichés en mobile */
	@media (max-width: 991px) {
		.info-bar-mobile {
		display: flex !important;
		}
	}
	
	/* Ajustement de la position par rapport au menu mobile */
	.decalage {
			display: block;
			position: fixed;
			top: 4px;
			right: 55px;
			/*font-family: 'Material Icons';*/
			/*width: 48px;*/
			height: 48px;
			z-index: 20;
	}
	/* Ajustement de la position par rapport au menu mobile */
	.decalage2 {
			display: block;
			position: fixed;
			top: 4px;
			right: 43%;
			/*font-family: 'Material Icons';*/
			width: 20%;
			height: 48px;
			z-index: 20;
	}
	/******************** FIN PARTIE STATISTIQUES MOBILE *********************/

	/*************************** PARTIE STATISTIQUES *************************/
	/* Conteneur de l'ensemble des statistiques */
	.info-bar {
	  color: var(--stats-color);
	  padding: 15px 25px;
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  gap: 30px;
	}
	/* Conteneur du calendrier */
	.info-date {
	  display: flex;
	  flex-direction: column;
	  gap: 2px;
	}
	/* Conteneur de la date */
	.info-date .date-line {
	  font-size: 16px;
	  color: var(--date-color); 
	  font-weight: 500;
	}
	/* Conteneur de l'heure */
	.info-date .time-line {
	  font-size: 26px; 
	  color: var(--time-color); 
	  font-weight: 600;
	  line-height: 1.1;
	  font-variant-numeric: tabular-nums;
	}
	/* Conteneur de la progression */
	.info-progress {
		flex: 1;
		text-align: center;
		color: var(--legendprogression-color);
		padding: 0 40px;
		align-items: center;
		display:flex;
		flex-direction:column;
		min-width:315px;
	}
	/* Conteneur de la barre de progression */
	.progress-bar {
		background: var(--eprogression-color);
		height: 10px;
		border-radius: 8px;
		margin: 5px 0;
		overflow: hidden;
		max-width: 380px; 
		width: 100%; 
	}
	/* Remplissage de la barre de progression */
	.progress-fill {
	  background: var(--progression-color);
	  height: 100%;
	  border-radius: 8px;
	  transition: width 0.4s ease;
	}
	/* Animation sur la barre de progression */
	.progress-fill.animate {
		animation: pulse 0.4s ease;
	}

	@keyframes pulse {
	  0% { transform: scaleY(1); }
	  50% { transform: scaleY(1.4); }
	  100% { transform: scaleY(1); }
	}
	/* Conteneur de l'ensemble du scoring */
	.info-points {
		background: var(--scoring-bg);
		padding-left:10px;
		padding-right:15px;
		padding-top:10px;
		padding-bottom:5px;
		border-radius: 8px;
		font-weight: 600;
		display: flex;
		flex-direction: column; 	/* empile points + progression */
		align-items: flex-end;  	/* aligné à droite comme avant */
		min-width:125px;
	}
	/* Icone du scoring */
	.info-points .icon {
	  font-size: 20px;
	}
	/* Affichage des points */
	.points-main {
	  display: flex;
	  align-items: center;
	  gap: 6px;
	}
	/* Affichage compact des points */
	.progress-compact {
	  display: none;
	  font-weight:600;
	  margin-left: 10px;
	  font-weight: 600;
	  color: var(--statsmobile-color);
	}
	/* Masquage de l'affichage standard sous 1100 px */
	@media (max-width: 1100px) {
	  .info-progress {
		display: none;
	  }
	  .progress-compact {
		display: block;
	  }
	}
	/* Points et heure affichés par défaut */
	.info-points, info-date {
	  display: block;
	}
	/* Mais masqués en mobile */
	@media (max-width: 991px) {
		.info-points, .info-date {
		display: none !important;
		}
	}
	/************************* FIN PARTIE STATISTIQUES ***********************/

	/************************* GESTION DES BLOCS DE TACHES *******************/
	/* Gestion des blocs de tâches : les faire flotter en grille*/
	.tasks-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, 340px);
		gap: 20px; 
		width: 100%;
		justify-content: center;
	}
	/*********************** FIN GESTION DES BLOCS DE TACHES *****************/

	/*************************** GESTION DES TACHES **************************/
	/* Définir les caractéristiques pour chaque bloc */
	.task-card {
		width: 340px;
		height: 210px;
		background: var(--task-bg);
		border-radius: 20px;
		position: relative;
		box-sizing: border-box;
		font-family: sans-serif;
		
		/* Ajout pour effet */
		will-change: transform;
		transition: transform 0.3s ease, opacity 0.3s ease;
		user-select: none;
		touch-action: pan-y; /* Empêche le scroll vertical pendant qu'on swipe horizontalement */
		
		z-index:2;
	}

	/* Contenu */
	.task-content {
		height: 100%;
		width: 100%;
		padding: 15px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		
		/* --- AJOUTS POUR LE SWIPE --- */
		position: relative;
		z-index: 3; 
		background: var(--task-bg); 
		width: 100%;
		border-radius: 20px; /* Doit matcher la carte */
		padding: 15px; 
		box-sizing: border-box;
		transition: transform 0.3s ease; 
		scale: 1;
	}
	/* Optionnel : Une ombre plus forte quand la carte est "soulevée" */
	.task-card.active .task-content {
		scale: 1.05;
		box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	}

	/* Menu (loupe) */
	.task-menu {
		position: absolute;
		top:115px;
		right: 15px;
		background: var(--taskmenu-bg);
		color: var(--active-color);
		width: 28px;
		height: 28px;
		border-radius: 50%;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
	}
	.task-menu:hover {
		background: var(--hover-bg);
		color: var(--hover-color);
	}

	/* Points */
	.task-points {
		position: absolute;
		top: 12px;
		right: 15px;
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 6px 12px;
		border-radius: 20px;
		font-weight: 900;
		font-size: 15px;
		color: #1a0b2e;
		background: linear-gradient(
			135deg,
			#fff3a0 0%,
			#ffd84d 25%,
			#ffbf00 50%,
			#f59e0b 75%,
			#d97706 100%
		);
		box-shadow:
		0 4px 8px rgba(0,0,0,0.35),
		inset 0 2px 4px rgba(255,255,255,0.7),
		inset 0 -3px 6px rgba(0,0,0,0.25);
		border: 2px solid rgba(255,255,255,0.5);
	}
	/* étoile */
	.task-points .star {
		font-size: 16px;
		filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4));
	}
	/* nombre de points */
	.task-points .points {
		letter-spacing: 0.5px;
		width:25px;
		text-align:right
	}
	
	.task-points .points.negative {
		color: white; 
		font-weight: bold;
	}
	.task-points:has(.points.negative){
		background-color: var(--taskabandon-color) !important;
	}
	
	/* Titre */
	.task-title {
		margin: 0;
		text-align: left;
		margin-left:10px;
		font-size: 18px;
		color: var(--active-color);
		font-weight: 700;
	}
	.task-main {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  gap: 10px;
	}

	/* Image à gauche */
	.task-image {
	  width: 125px;
	  height: 100px;
	  object-fit: contain;
	  margin-left: 6px;
	}

	/* Deadline à droite */
	.task-deadline {
	  flex: 1;
	  text-align: left;
	  line-height: 1.3;
	}
	.deadline-label {
	  font-size: 12px;
	  opacity: 0.7;
	}
	.deadline-date, .deadline-time {
	  font-size: 14px;
	  font-weight: bold;
	}
	.task-deadline span {
	  display: block;
	}

	/* Footer */
	.task-footer {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	}

	/* Status */
	.task-status {
		padding: 6px 12px;
		border-radius: 14px;
		font-size: 12px;
		font-weight: 500;
		width:120px;
		height:40px;
		line-height:28px;
		background: var(--taskmenu-bg);
		color: var(--active-color);
	}
	/***************************** FIN GESTION DES TACHES ********************/

	/********************* GESTION DES ACTIONS SUR LES TACHES ****************/
	/* Bouton */
	.task-btn {
		border: none;
		border-radius: 14px;
		margin-left:10px;
		/*padding: 10px 14px;*/
		width:180px;
		height:40px;
		font-weight: 600;
		cursor: pointer;
		transition: 0.2s;
		background: var(--scoring-bg);
		color: var(--menu-color);
	}
	/* Survol du Bouton */
	.task-btn:hover {
	  background: var(--hover-bg);
	  color: var(--hover-color);
	}
	.end {
		display:none;
	}
	/* Style d'une tâche réalisée */
	.realisee {
		height: 210px;	
	}	
	.realisee .task-content{
		background-color: #E8E1F4 !important;
	}
	.realisee .task-points {
		background: #E8E1F4 !important;
	}
	
	/* Style d'une tâche validée */	
	.validee {
		height:67px;
	}
	.validee .deadline-date{
		padding-left:10px;
	}
	.validee .task-content{
		background-color: #FEFBAD !important;
		padding-top:11px;		
	}
	.validee .task-points {
		background: #FEFBAD !important;
	}
	.validee .task-main img, .validee .deadline-label, .validee .task-footer /*, .validee .task-menu*/ {
		display:none;
	}
	.validee .deadline-date, .validee .deadline-time {
		display:inline ;
		align-items:center;		
	}
	
	.view_detail .task-menu {
		top:20px;
		right:80px;
	}
	.view_detail .star{
		display:none;
	}
		
	/* Colorisation des tâches abandonnées et terminées */
	.terminee {
		height:67px;
	}
	.terminee .deadline-date{
		padding-left:10px;
	}
	.terminee .task-content {
		background-color: var(--taskabandon-bg) !important;
		padding-top:11px;
	}
	.terminee .task-points {
		background: var(--taskabandon-color) !important;
	}
	.terminee .task-points .star {
		filter: sepia(1) saturate(5) hue-rotate(300deg) brightness(1.4);
	}	
	
	.terminee .task-main img, .terminee .deadline-label, .terminee .task-footer /*, .terminee .task-menu */ {
	 display:none;
	}
	.terminee .deadline-date, .terminee .deadline-time {
		display:inline ;
		align-items:center;		
	}
	
	/* Colorisation des tâches historique */
	.historique {
		height:67px;
	}
	.historique .deadline-date{
		padding-left:10px;
	}
	.historique .task-content {
		background-color: var(--taskabandon-bg) !important;
		padding-top:11px;
	}
	.historique .task-points {
		cursor: pointer;
	}
	.historique .points {
		width:35px;
	}
	.historique .task-main img, .historique .deadline-label, .historique .deadline-time, .historique .task-footer {
	 display:none;
	}
	/* Menu (loupe) */
	.historique .task-menu {
		top:20px;
		right: 120px;
	}
	/******************** FIN GESTION DES ACTIONS SUR LES TACHES *************/

	/******************************* GESTION DU SWIPE ************************/	
	/* Le panneau de fond */
	.swipe-reveal {
		position: absolute; 
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		
		display: flex;
		align-items: center;
		justify-content: center;
		
		z-index: 1; 
		background: #FEFBAD;
		border-radius: 20px;
		opacity: 1 !important;
		pointer-events: none;
		
		font-size: 21px !important;  
		font-weight: 600 !important;   
		color: #1A0B2E !important;      
		text-shadow: 1px 1px 0px rgba(0,0,0,0.1); 
	}	
	/**************************** FIN GESTION DU SWIPE ***********************/

	/***************************** AFFICHAGE RECOMPENSE **********************/
	.sticky-footer {
		position: fixed !important;
		bottom: 0; 
		left: 0;
		width: 100%; 
		height: 50px;
		
		background: rgba(26, 11, 46, 0.98); 
		/*border-top: 2px solid #FFFB00;      */
		
		display: flex;
		align-items: center;
		justify-content: center; 
		z-index: 9999;
		/*box-shadow: 0 -5px 20px rgba(0,0,0,0.4);*/
		
		pointer-events: none;
		opacity: 0;
		transform: translateY(50px);
		transition: transform 0.4s ease-out, opacity 0.3s;
	}
	/* --- ADAPTATION BUREAU --- */
	@media (min-width: 991px) {
		.sticky-footer {
			height: 110px;
			transform: translateY(100px);
		}
	}
	/* Affichage */
	.sticky-footer.show {
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
	}
	/* Contenu */
	.footer-content {
		display: flex;
		align-items: center;
		gap: 12px;
	}
	.wait-text {
		font-weight: 900;
		color: #FFFB00;
		font-size: 16px;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		margin: 0;
		padding: 0;
		line-height: 1;
	}
	.icon-wait {
		font-size: 20px;
		line-height: 1;
	}
	/************************ FIN AFFICHAGE RECOMPENSE ***********************/

	/************************ AFFICHAGE DETAIL RECOMPENSE ********************/
	/* Conteneur pour le détail des récompenses */
	.details-card {
		border-radius: 20px;
		overflow: hidden;
		background: var(--taskabandon-bg);
		margin-top:5px;
		opacity: 0;
		transition: all 0.4s ease;
		max-height: 0;
	}
	/* Etat ouvert */
	.task-card.open .details-card {
	  opacity: 1;
	  /*display:block;*/
	  max-height: 1000px;
	  z-index:10;
	}
	
	/////////////////////
	
	/* FORCE LA CARTE OUVERTE AU PREMIER PLAN */
	.task-card.historique.open {
		/* Un index supérieur à 2 (les autres cartes) mais inférieur à 1000 (le footer) */
		z-index: 100 !important; 
		/* On s'assure que la carte ne coupe pas le contenu qui dépasse */
		height: auto !important; 
	}

	/* COMPORTEMENT DE LA DETAILS-CARD */
	.task-card.historique.open .details-card {
		display:block;
		opacity: 1;
		max-height: none;
		/* On garantit qu'elle s'affiche par dessus tout le reste du flux */
		position: relative; 
		z-index: 101;
		/* Optionnel : un petit effet d'ombre pour bien marquer qu'elle passe "devant" */
		box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	}
	///////////////////////
	
	
	/* Ajustement de la position du logo récompense
	.details-card img{
	  padding:0px;
	}
	/* Conteneur du chevron de fermeture*/
	.toggle-details {
	  cursor: pointer;
	   margin-left: auto;
	   margin-right:15px;
	  transition: transform 0.3s ease;
	}
	/* Rotation du chevron pour fermeture */
	.task-card.open .toggle-details {
	  transform: rotate(180deg);
	}
	/* chevron */
	.chevron {
	  display: inline-block;
	  width: 10px;
	  height: 10px;
	  border-right: 2px solid #333;
	  border-bottom: 2px solid #333;
	  transform: rotate(-135deg); /* pointe vers le haut */
	  transition: transform 0.3s ease;
	}
	/* pointe vers le bas (situation ouverte) */
	.task-card.open .chevron {
	  transform: rotate(45deg); 
	}
	/* En-tête du tableau de détails */
	.details-card .details-header {
	  display: flex;
	  align-items: center;
	  gap: 10px;
	  margin-left:5px;
	  padding: 5px;
	  font-weight: bold;
	  font-size:13px;
	  line-height:13px;
	}
	/* Tableau de détails */
	.details-card .table {
	  display: flex;
	  flex-direction: column;
	  text-align:left;
	   width:340px;
	   padding:0px;
	   margin:0px;
	   font-size:13px;
	}
	/* Lignes du tableau de détail */
	.details-card .row {
		display: grid;
		grid-template-columns: 2fr 1fr 80px;
		border-top: 1px solid rgba(0,0,0,0.1);
		padding:0px;
		padding-left:10px;
		margin:0px;   
	}
	/* Mise en forme spécifique de l'en-tête */
	.details-card .row.header {
	  font-weight: bold;
	  padding:2px;
	  padding-left:10px;
		width:100%;
	  background: rgba(255,255,255,0.3);
	}
	/* Affichage des points */
	.details-card .points {
		text-align:right;
		padding-right:5px;
		width:50px;
	}
	/* Nom de la tâche */
	.details-card .tache {
		width:190px;
	}
	/* Affichage de la date */
	.details-card .date {
		width:80px;
	}
	/********************** FIN AFFICHAGE DETAIL RECOMPENSE ******************/	
	
	/*********************** AFFICHAGE SWEET ALERT CUSTO *********************/
	.swal2-popup {
	  font-size: 14px !important;
	}
	.swal2-confirm.swal2-styled, .swal2-cancel.swal2-styled {
	  min-width: 10em;
	  padding: 0.8em 2em;
	}
	.swal2-image {
		margin: 0 auto !important;
	}
	/********************* FIN AFFICHAGE SWEET ALERT CUSTO *******************/
	
	/***************************** GESTION DU CADDIE *************************/
	.rd-navbar-static .rd-navbar-cart.active {
		z-index:5000;
	}
	
	/* En mode bureau */
	@media (min-width: 992px) {
		
		.rd-navbar .rd-navbar-cart-wrap  {
			padding:0;
			margin:0;
		}
		.rd-navbar .rd-navbar-cart-wrap span  {
			color: var(--menu-color);
			border-radius:50px;
			font-size:1.5em
		}
		.rd-navbar .rd-navbar-cart-wrap span:hover  {
			background-color: var(--hover-bg);
			color: var(--hover-color);
			border-radius:50px;
		}

		/* Couleur du checkout */
		.rd-navbar-static .rd-navbar-cart-buy {
			background: var(--task-bg);
			color: var(--main-bg);
		}
		
		.rd-navbar-static .rd-navbar-cart-buy:hover {
			background: #FEFBAD;
			color: var(--active-color);
		}	
	
	}
	/* En mode mobile */
	@media (max-width: 991px) {
		.rd-navbar-fixed .rd-navbar-cart-floating {
				bottom:125px;
				z-index:800;
		}		
		.rd-navbar-fixed .rd-navbar-cart {
				min-height:500px;
		}
		.rd-navbar-fixed .rd-navbar-cart-floating.active {
			bottom:110px;

		}
		.rd-navbar-fixed .rd-navbar-cart-floating .rd-navbar-cart-buy {
			background: var(--task-bg);
			color: var(--main-bg);
		}
		.rd-navbar-fixed .rd-navbar-cart-floating .rd-navbar-cart-buy:hover {
			background: #FEFBAD;
			color: var(--active-color);
		}	
	
	}
	
	.rd-navbar-cart-item__remove {
		color: #888;
		transition: color 0.2s ease, transform 0.2s ease;
	}

	.rd-navbar-cart .rd-navbar-cart-item__body {
		vertical-align: middle;
	}

	.rd-navbar-cart-item__remove:hover {
		color: #e53935; /* rouge */
		transform: translateY(-2px);
	}
	
	.rd-navbar-cart-items li {
		transition: all 0.2s ease;
	}
	
	/* Gestion de la fermeture du caddie -> Caché par défaut (Bureau) */
	.cart-close-mobile {
		display: none;
	}
	/* Utilisable uniquement sur écrans mobiles */
	@media (max-width: 991px) {
		.cart-close-mobile {
			display: flex;
			align-items: center;
			justify-content: center;
			position: absolute;
			top: 10px;
			right: 10px;
			width: 40px;
			height: 40px;
			background: rgba(254, 251, 173, 0.05)
			border: 1px solid #C0C0C0;
			border-radius: 50%;
			color: #C0C0C0;
			font-size: 20px;
			z-index: 101;
			cursor: pointer;
			transition: all 0.3s ease; 
			box-shadow: 0 0 10px rgba(254, 251, 173, 0.3); 
		}
		
		/* Effet au survol (ou au toucher) */
		.cart-close-mobile:hover, .cart-close-mobile:active {
			background: rgba(254, 251, 173, 0.2);
			box-shadow: 0 0 20px rgba(254, 251, 173, 0.5); /* Glow renforcé */
			transform: scale(1.05); /* Léger grossissement */
		}
	
		/* On ajoute un peu d'espace en haut du panier pour que la croix ne chevauche pas le premier item */
		.rd-navbar-cart {
			padding-top: 25px !important;
		}
	}
	/***************************** GESTION DU CADDIE *************************/
	
	/****************************** GESTION DES CONSOMMATIONS ****************/
	.profil_parents {
		cursor:pointer;
	}
	.profil_parents:hover {
		transform: scale(1.01);
	}
	.rd-navbar-cart-items li {
		transition: all 0.2s ease;
	}
	.task-card.added {
		transform: scale(0.90);
	}
	.rd-navbar-cart-buy.disabled {
		pointer-events: none;
	}

	.rd-navbar-cart-buy.loading {
		pointer-events: none;
		opacity: 0.7;
	}

	.rd-navbar-cart-buy.loading .btn-label {
		visibility: hidden;
	}
	.btn-label {
		font-size:18px !important;
		color:var(--main-bg) !important;
	}
	
	.rd-navbar-cart-buy.loading::after {
		content: "";
		width: 16px;
		height: 16px;
		border: 2px solid white;
		border-top-color: transparent;
		border-radius: 50%;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		animation: spin 0.8s linear infinite;
	}

	@keyframes spin {
		to {
			transform: translate(-50%, -50%) rotate(360deg);
		}
	}

	.rd-navbar-cart {
		transition: opacity 0.3s ease, transform 0.3s ease;
	}

	.rd-navbar-cart:not(.active) {
		opacity: 0;
		transform: translateY(-10px);
		pointer-events: none;
	}
	/********************** FIN DE LA GESTION DES CONSOMMATIONS **************/

	/************************** GESTION DES VALIDATIONS **********************/
		
	.task-actions {
		display: flex;
		gap: 6px;
		width: 100%;
		height: 40px;
	}

	.btn-action {
		flex: 1;
		border: none;
		border-radius: 14px;
		font-size: 12px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.2s ease;
		color: #fff;
		height:40px;
		
	}

	/* Couleurs */
	.btn-action.ok {
		background: #4CAF50;
		margin-right:4px;
	}

	.btn-action.ko {
		background: #F44336;
		margin-right:4px;
	}

	.btn-action.bonus {
		background: #FFC107;
		color: #333;
		margin-right:4px;
	}

	.btn-action.malus {
		background: #FF9800;
	}

	/* Hover */
	.btn-action:hover {
		transform: scale(1.05);
		opacity: 0.9;
	}

	/* Click */
	.btn-action:active {
		transform: scale(0.95);
	}	
	/********************* FIN DE LA GESTION DES VALIDATIONS *****************/

	/************************ BANDEAU UTILISATEUR ****************************/
	/* Conteneur de bandeau */
	.children-switcher {
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 80px;
		background: #2c1a4d;
		z-index: 1000;
		display: flex;
		align-items: center;
		
		opacity: 1;
		transform: translateY(0);
		pointer-events: auto;
		height: 110px;
		padding-top:6px;
		justify-content: flex-start;		
	}
	/* Conteneur de pastille utilisateur */
	.children-container {
		display: flex;
		overflow-x: auto;
		padding: 0 10px;
		width: 100%;
		scrollbar-width: none;
		padding-top:4px;
	}
	/* gestion du scroll */
	.children-container::-webkit-scrollbar {
		display: none;
	}
	/* pastille utilisateur */
	.child-item {
		width: 90px;
		text-align: center;
		cursor: pointer;
		opacity: 0.7;
		transition: all 0.2s ease;

	}
	/* avatar */
	.child-avatar {
		width: 50px;
		height: 50px;
		border-radius: 50%;
		border: 2px solid transparent;
		transition: all 0.2s ease;
		background-color: transparent;
	}
	/* informations */
	.child-info {
		font-size: 14px;
		color: #fff;
					
	}
	/* prénom */
	.child-name {
		display: block;
		font-weight: bold;
		line-height:14px;
		margin-top:10px;
	}
	/* points */
	.child-points {
		font-size: 12px;
		opacity: 0.8;
		
		margin-bottom:0px;
	}
	/* Hover */
	.child-item:hover {
		opacity: 1;
		transform: translateY(-2px);
	}
	/* Actif */
	.child-item.active {
		opacity: 1;
	}
	.child-item.active .child-avatar {
		border-color: #ffd54f;
		box-shadow: 0 0 8px rgba(255, 213, 79, 0.7);
		transform: scale(1.05);
	}	
	/* Ajouter une marge de sécurité pour le reste de l'affichage */
	.page-content {
		//padding-bottom: 120px;
		padding-bottom: 400px;
	}
	
	@keyframes bumpPoints {
		0% { transform: scale(1); color: inherit; }
		50% { transform: scale(1.3); color: #2ecc71; font-weight: bold; }
		100% { transform: scale(1); color: inherit; }
	}

	.animate-points {
		display: inline-block; 
		animation: bumpPoints 0.6s ease-out;
	}
	
	/********************* FIN BANDEAU UTILISATEUR*****************************/

	/*********************** BOUTON TACHE PONCTUELLE **************************/
	.btn-quick-ajout {
		/*width: 140px;*/
		height: 45px;
		border-radius: 25px;
		border: 2px solid;
		background: #1a0b2e;
		font-weight: 900;
		font-size: 14px;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		padding-left:20px;
		padding-right:20px;
		transition: all 0.3s ease;
		text-transform: uppercase;
		color: #FEFBAD;
		border-color: #FEFBAD;
		box-shadow: 0 0 10px rgba(254, 251, 173, 0.3);
	}
	.btn-quick-ajout:hover {
		transform: scale(1.05);
		background: #2c1a4d;
		box-shadow: 0 0 20px rgba(254, 251, 173, 0.6);
	}
	/* Mobile : on réduit un peu si l'écran est vraiment petit (sous 320px) */
	@media (max-width: 350px) {
		.btn-quick-ajout { width: 120px; font-size: 12px; }
	}
	
	/* Le conteneur qui contient Heure : Minute */
	.flatpickr-time {
		height: 80px !important;      
		max-height: 80px !important;
		line-height: 80px !important; 
	}

	/* On ajuste la boîte qui entoure chaque nombre */
	.flatpickr-time .numInputWrapper {
		height: 100% !important; 
		width: 60px !important;  
	}	

	/* On customise les flèches (Haut et Bas) */
	.flatpickr-time .arrowUp, 
	.flatpickr-time .arrowDown {
		width: 50px !important;    
		height: 40px !important; 
		padding-left:20px;
	}

	/* On agrandit l'icône à l'intérieur (le petit triangle) */
	.flatpickr-time .arrowUp:after {
		border-bottom-width: 8px !important;
		border-left-width: 6px !important;
		border-right-width: 6px !important;
	}

	.flatpickr-time .arrowDown:after {
		border-top-width: 8px !important;
		border-left-width: 6px !important;
		border-right-width: 6px !important;
	}

	/* Agrandir les chiffres au milieu */
	.flatpickr-time input {
		font-size: 30px !important;
	}
	
	/********************* FIN BOUTON TACHE PONCTUELLE ************************/
	
	/******************** BOUTONS BONUS ET MALUS ******************************/	
	/* Conteneur des boutons rapides */
	.action-buttons-container {
		display: flex;
		justify-content: center;
		gap: 15px;
		margin-bottom: 10px;
		padding: 0 10px;
	}
	/* Style de base des boutons (largeur fixe 140px) */
	.btn-quick {
		width: 140px; 
		height: 45px;
		border-radius: 25px;
		border: 2px solid;
		background: #1a0b2e;
		font-weight: 900;
		font-size: 14px;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		transition: all 0.3s ease;
		text-transform: uppercase;
	}
	/* Variantes de couleurs et Glow */
	.btn-quick.bonus {
		color: #FEFBAD;
		border-color: #FEFBAD;
		box-shadow: 0 0 10px rgba(254, 251, 173, 0.3);
	}
	.btn-quick.malus {
		color: #ff9d76;
		border-color: #ff9d76;
		box-shadow: 0 0 10px rgba(255, 157, 118, 0.3);
	}
	.btn-quick:hover {
		transform: scale(1.05);
		background: #2c1a4d;
	}
	.btn-quick.bonus:hover { box-shadow: 0 0 20px rgba(254, 251, 173, 0.6); }
	.btn-quick.malus:hover { box-shadow: 0 0 20px rgba(255, 157, 118, 0.6); }
	/* Mobile : on réduit un peu si l'écran est vraiment petit (sous 320px) */
	@media (max-width: 350px) {
		.btn-quick { width: 120px; font-size: 12px; }
	}

	/* --- AJUSTEMENTS DE LA SECTION ACTIONS RAPIDES --- */
	#quick-actions {
		/* On réduit l'espace sous les boutons pour le bureau */
		padding-bottom: 0px !important; 
		margin-bottom: -10px; 
		position: relative;
		z-index: 5; /* Pour être sûr qu'il reste cliquable */
	}
	/* --- FIX MOBILE : NAVBAR QUI RECOUVRE LE CONTENU --- */
	@media (max-width: 991px) {
		#quick-actions {
			/* On pousse la section vers le bas pour qu'elle sorte de derrière le menu */
			padding-top: 80px !important; 
			margin-bottom: 10px;
		}
		/* On réduit l'espace de la grille de tâches car quick-actions prend le relais */
		.tasks-grid {
			padding-top: 10px !important;
		}
	}
	/* --- ALIGNEMENT DES BOUTONS --- */
	.action-buttons-container {
		display: flex;
		justify-content: center;
		gap: 15px;
		/* On s'assure que les boutons ne collent pas au bord en mobile */
		padding: 10px; 
	}
	.btn-quick {
		/* On s'assure que la largeur est bien fixe comme demandé */
		flex: 0 0 140px; 
		width: 140px;
	}
	/********************** FIN BONUS ET MALUS *******************************/
	
	/****************** BOITE DE DIALOGUE BONUS ET MALUS *********************/
	/* Conteneur */
	.swal-custom-container {
		width: 100%;
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	/* Style pour la description (loupe) */
	.desc-box {
		opacity: 0;
		max-height: 0;
		overflow: hidden;
		color: #C0C0C0;
		font-style: italic;
		font-size: 0.9em;
		background: rgba(254, 251, 173, 0.05);
		border-radius: 8px;
		padding: 0 12px;
		transition: all 0.4s ease-in-out;
		border: 1px dashed transparent;
	}
	/* État visible de la loupe géré par le JS */
	.desc-box.visible {
		opacity: 1 !important;
		max-height: 200px !important;
		border-color: rgba(254, 251, 173, 0.3) !important;
		visibility: visible !important;
	}
	/* zone de commentaire */
	.swal2-textarea {
		width: 100% !important;
		margin: 10px 0 0 0 !important;
		border:1px solid #C0C0C0;
	}
	/* grille de choix bonus/malus*/
	.options-grid {
		display: flex;
		flex-direction: column;
		gap: 10px;
		max-height: 250px;
		overflow-y: auto;
		padding: 5px;
	}
	/* choix bonus/malus */
	.option-tile {
		display: flex;
		justify-content: space-between;
		align-items: center;
		background: #2c1a4d;
		border: 1px solid #533f78;
		border-radius: 12px;
		padding: 10px 15px;
		cursor: pointer;
		transition: all 0.2s ease;
	}
	/* style pour l'élément sélectionné */
	.option-tile.selected {
		border-color: #FEFBAD;
		/*background: #3d2a5d;*/
		background: #4a3475 ;
		box-shadow: inset 0 0 15px rgba(254, 251, 173, 0.2);
		transform: scale(0.96);
		transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	}
	/* Texte à gauche sur deux lignes */
	.tile-content {
		display: flex;
		flex-direction: column;
		text-align: left;
	}
	/* le nom */
	.tile-nom {
		font-weight: bold;
		color: white;
		font-size: 14px;
	}
	/* les points */
	.tile-points {
		font-size: 11px;
		color: #FEFBAD;
		opacity: 0.8;
		margin-top: 2px;
	}
	/* Actions à droite */
	.tile-actions {
		display: flex;
		gap: 12px;
		align-items: center;
	}
	/* les icones */
	.tile-icon {
		font-size: 18px;
		padding: 5px;
		border-radius: 6px;
		transition: background 0.2s;
	}
	.tile-icon:hover { background: rgba(255,255,255,0.1); }
	.tile-icon.add { color: #4CAF50; font-size: 20px; }
	/**************** FIN BOITE DE DIALOGUE BONUS ET MALUS *******************/
	
	/**************** BOUTONS DE NAVIGATION PARAMÈTRES ***********************/

	/* Conteneur spécifique pour gérer le débordement sur mobile si besoin */
	.settings-buttons-container {
		display: flex;
		justify-content: center;
		flex-wrap: wrap; /* Permet de passer à la ligne sur mobile */
		gap: 12px;
		padding: 0 15px;
	}
	
	/* On surcharge le btn-quick pour les paramètres */
	.btn-quick.btn-settings {
		width: auto;            /* On oublie le 140px fixe ici */
		min-width: 200px;       /* Mais on garde une base solide */
		padding: 0 20px;        /* De l'espace sur les côtés du texte */
		border-color: #a286d5;  /* Une couleur mauve douce pour les paramètres */
		color: #cebeeb;
		text-transform: none;   /* Plus lisible pour des phrases longues */
		font-weight: 600;
		box-shadow: 0 0 8px rgba(162, 134, 213, 0.2);
		white-space: nowrap;  
        flex-shrink: 0;
	}

	/* État Actif (pour savoir sur quelle page on est) */
	.btn-quick.btn-settings.active {
		background: #4a2d82;
		color: #ffffff;
		border-color: #cebeeb;
		box-shadow: 0 0 15px rgba(206, 190, 235, 0.5);
	}

	/* Hover spécifique */
	.btn-quick.btn-settings:hover {
		background: #2c1a4d;
		border-color: #cebeeb;
		box-shadow: 0 0 15px rgba(162, 134, 213, 0.4);
		transform: translateY(-2px); /* Petit effet de levée au lieu du scale */
	}

	/* --- ADAPTATION MOBILE --- */
	@media (max-width: 768px) {
		.settings-buttons-container {
			gap: 8px;
		}
		.btn-quick.btn-settings {
			flex: 1 1 auto;      /* Les boutons occupent l'espace dispo */
			font-size: 13px;
			height: 40px;
			padding: 0 10px;
			min-width: 120px;
		}
	}

	/* Correctif Navbar Mobile */
	@media (max-width: 991px) {
		#settings-actions {
			padding-top: 80px !important;
			margin-bottom: 15px;
		}
	}
	/************** FIN BOUTONS DE NAVIGATION PARAMÈTRES *********************/
	
	/********************* AFFECTATIONS ET MODELES ***************************/
	/* Container de boutons en haut de l'onglet */
	.settings-header-actions {
		display: flex;
		justify-content: flex-end;
		flex-wrap: wrap;
		gap: 15px;
		margin-bottom: 20px; /* à voir... */
		
	}
	.settings-header-actions:has(.btn-quick) {
		padding-top:20px;
	}

	/* Style du tableau */
	.table-taskit {
		width: 100%;
		border-collapse: separate;
		border-spacing: 0 8px; /* Espace entre les lignes */
		color: white;
	}

	.table-taskit th {
		padding: 15px 10px;
		vertical-align: bottom;
		z-index: 10; 
		background: var(--main-bg);
		position: sticky;
		top: 0;
	}
	.table-taskit th:first-child {
		position: sticky;
		top: 0;
		left: 0px;
		z-index: 15; 		
	}

	.table-taskit td {
		background: rgba(44, 26, 77, 0.6);
		padding: 12px;
		vertical-align: middle;
	}

	/* Le conteneur parent pour permettre le positionnement de l'icône à droite */
	.model-cell {
		position: relative; 
		vertical-align: middle;
		padding: 12px 45px 12px 15px !important; 
		min-width: 220px;
		width: 220px;

		position: sticky;
		left: 0;
		z-index: 5;
		background: rgba(44, 26, 77, 1) !important; 
		box-shadow: 2px 0 5px rgba(0,0,0,0.3);	
	}

	/* Alignement vertical des icônes */
	.model-actions-vertical {
		position: absolute;
		right: 10px;
		top: 50%;
		transform: translateY(-50%); 
		display: flex;
		flex-direction: column; 
		gap: 2px; 
		align-items: center;
		border-left: 1px solid rgba(255, 255, 255, 0.1); 
		padding-left: 8px;
	}
	.model-actions-vertical i {
		cursor: pointer;
		font-size: 16px;
		transition: transform 0.2s, opacity 0.2s;
		opacity: 0.7;
	}
	.model-actions-vertical i:hover {
		transform: scale(1.2);
		opacity: 1;
	}
	.model-title { 
		font-weight: bold; 
		display: block; 
		font-size: 15px;
		color: #ffffff;
		margin-bottom: 3px; 
	}
	.model-subtitle-points, .model-subtitle-freq {
		font-size: 11px;
		color: #cebeeb; 
		opacity: 0.8;	
	}
	.model-actions-inline {
		float: right;
		display: flex;
		gap: 10px;
		margin-left: 10px;
	}
	.model-actions-inline i {
		cursor: pointer;
		transition: transform 0.2s;
		font-size: 16px;
	}
	.model-actions-inline i:hover { transform: scale(1.2); }

	/* Cellules des cases à cocher */
	.check-cell {
		text-align: center;
	}
	/* Custom Checkbox (Taille mobile-friendly) */
	.affect-check {
		width: 30px;
		height: 30px;
		cursor: pointer;
		accent-color: #ffd54f; /* Couleur jaune TaskIt */
		appearance: auto; /* Force l'affichage natif si un style les cachait */
    -webkit-appearance: checkbox;
	}

	/* Responsive : scroll horizontal si trop de membres */
	.table-responsive {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overflow: auto;
		max-height: 60vh; /* Ajuste selon la hauteur souhaitée pour le scroll vertical */
		position: relative;
	}	
	
	/* Scroll */
	.table-responsive::-webkit-scrollbar {
		width: 8px;  
		height: 8px; 
	}
	.table-responsive::-webkit-scrollbar-track {
		background: rgba(44, 26, 77, 0.3); 
		border-radius: 10px;
	}
	.table-responsive::-webkit-scrollbar-thumb {
		background: #6c5ce7; 
		border-radius: 10px;
		border: 2px solid #2c1a4d; 
	}
	.table-responsive::-webkit-scrollbar-thumb:hover {
		background: #a29bfe; 
	}
	/* --- Compatibilité Firefox --- */
	.table-responsive {
		scrollbar-width: thin;
		scrollbar-color: #6c5ce7 rgba(44, 26, 77, 0.3);
	}

	/* La colonne vide de séparation */
	.spacer-column {
		width: 30px;
		min-width: 30px;
	}

	/* Les colonnes des utilisateurs (Checkboxes + Avatars) */
	/* On leur donne une largeur égale pour que l'avatar soit pile au-dessus du check */
	#thead-users th:not(.model-column-header):not(.spacer-column),
	.check-cell {
		width: 100px; /* Ajuste cette valeur selon l'espace voulu entre les membres */
		min-width: 80px;
		text-align: center;
	}

	/* Centrage des avatars dans le header */
	#thead-users th .child-item {
		margin: 0 auto;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
		
	
	/******************* FIN AFFECTATIONS ET MODELES *************************/
	
	/************************** GESTION DU LOGIN *****************************/
	/* On s'assure que le contenu du Swal est aligné à gauche */
	.swal2-html-container {
		text-align: left !important;
		margin: 1em 0 0 0 !important;
	}

	/* Le conteneur du champ (La Tuile) */
	.login-field-tile {
		display: flex;
		flex-direction: column;
		background: #2c1a4d; /* Violet foncé identique */
		border: 1px solid #533f78; /* Bordure initiale */
		border-radius: 12px;
		padding: 10px 15px;
		margin-bottom: 10px;
		transition: all 0.2s ease;
	}

	/* Alignement des labels à gauche */
	.login-field-tile label {
		display: block;
		font-weight: bold;
		color: white;
		font-size: 14px;
		text-align: left; /* Aligné à gauche */
	}

	/* L'input à l'intérieur de la tuile */
	.login-field-tile input {
		background: rgba(255, 255, 255, 0.05) !important;
		border: 1px solid rgba(254, 251, 173, 0.2) !important; /* Bordure sur l'input */
		border-radius: 6px;
		color: #FEFBAD !important;
		padding: 5px 10px !important;
		margin-top: 5px !important;
		width: 100%;
		box-sizing: border-box;
		outline: none !important;
	}

	/* État sélectionné (comme .option-tile.selected) */
	.login-field-tile:focus-within {
		border-color: #FEFBAD;
		background: #4a3475;
		transform: scale(0.98);
	}

	/* Lien mot de passe oublié (Plus petit) */
	.forgot-link-small {
		display: block;
		font-size: 11px; /* Plus petit */
		color: #666; /* Gris discret */
		text-decoration: underline;
		margin: -5px 0 20px 5px;
		cursor: pointer;
	}

	/* Conteneur des boutons du bas */
	.swal-login-actions {
		display: flex;
		gap: 10px;
		justify-content: center;
		margin-top: 15px;
	}

	/* Bouton Connexion (Aspect identique à ton bouton "Valider" vert) */
	.btn-swal-validate {
		background-color: #4CAF50 !important;
		color: white !important;
		border: none !important;
		border-radius: 8px !important;
		padding: 12px 25px !important;
		font-size: 16px !important;
		font-weight: bold !important;
		cursor: pointer;
		flex: 1;
	}

	/* Bouton Annuler (Aspect gris comme ton image) */
	.btn-swal-cancel {
		background-color: #6c757d !important;
		color: white !important;
		border: none !important;
		border-radius: 8px !important;
		padding: 12px 25px !important;
		font-size: 16px !important;
		font-weight: bold !important;
		cursor: pointer;
		flex: 1;
	}
	/*********************** FIN GESTION DU LOGIN ****************************/
	
	/****************** POLITIQUE DE CONFIDENTIALITE *************************/
	/* Conteneur principal centré */
	.legal-container {
		max-width: 800px;
		margin: 40px auto;
		padding: 20px;
		font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
		line-height: 1.6;
		color: #ffffff; /* Texte blanc */
	}

	.legal-header {
		text-align: center;
		margin-bottom: 50px;
	}

	.legal-logo {
		max-width: 150px;
		margin-bottom: 20px;
	}

	.legal-header h1 {
		font-size: 0.2rem;
		text-transform: uppercase;
		letter-spacing: 2px;
		border-bottom: 2px solid #f1c40f; /* Rappel du jaune de ton logo */
		display: inline-block;
		padding-bottom: 10px;
		color: #ffffff;
	}

	/* Style des sections */
	.legal-content article {
		margin-bottom: 30px;
		background: rgba(255, 255, 255, 0.05); /* Léger fond pour détacher les blocs */
		padding: 20px;
		border-radius: 8px;
	}

	.legal-content h2 {
	   color: #f1c40f; /* Jaune Taskit */
	   font-size: 0.2rem;
	   margin-top: 0;
	}

	.legal-content h2 span {
		opacity: 0.5;
		font-size: 0.2rem;
		margin-right: 10px;
	}

	/* Texte et listes */
	.legal-content p {
		text-align: justify; /* Pour un aspect propre */
		margin: 10px 0;
	}

	.legal-content ul {
		list-style: none;
		padding-left: 0;
	}

	.legal-content ul li {
		padding: 5px 0;
	}

	.legal-content ul li::before {
		content: "✓";
		color: #f1c40f;
		margin-right: 10px;
		font-weight: bold;
	}

	/* Footer et lien */
	.legal-footer a {
		color: #f1c40f;
		text-decoration: none;
		font-weight: bold;
	}

	.legal-footer a:hover {
		text-decoration: underline;
	}
	/**************** FIN POLITIQUE DE CONFIDENTIALITE ***********************/
	
	/************************ HABILLAGE PARAMETRES ***************************/
	/* Cache les contenus par défaut */
	.settings-tab-content {
		display: none;
		animation: fadeIn 0.3s ease; /* Petit effet de transition sympa */
		border-top: 1px solid rgba(206, 190, 235, 0.2);
	}

	/* Affiche uniquement l'onglet actif */
	.settings-tab-content.active {
		display: block;
	}
	
	/* Animation fluide à l'apparition */
	@keyframes fadeIn {
		from { opacity: 0; transform: translateY(10px); }
		to { opacity: 1; transform: translateY(0); }
	}
	
	/* Le champ de saisie lui-même */
	.swal2-select, select {
		background-color: #2c1a4d !important; /* Ton violet sombre */
		color: #FEFBAD !important;
		border: 1px solid rgba(255, 255, 255, 0.2) !important;
		border-radius: 8px !important;
		padding: 10px !important;
		width: 100%;
		font-size: 14px;
		outline: none;
	}

	/* Styliser les options (le menu qui s'ouvre) */
	/* Note : Le styling des options est limité sur certains navigateurs, 
	   mais ces règles couvrent Chrome/Edge/Firefox */
	.swal2-select option, select option {
		background-color: var(--main-bg); /* Fond du menu */
		color: white; /* Texte des options */
		padding: 10px;
	}

	/* Au survol d'une option */
	.swal2-select option:hover, 
	.swal2-select option:focus {
		background-color: #6c5ce7 !important;
	}

	/********************** FIN HABILLAGE PARAMETRES *************************/
	
	/****************** HABILLAGE PARAMETRES BONUS MALUS *********************/
	.bm-section {
		margin-bottom: 40px;
		background: rgba(255, 255, 255, 0.03);
		border-radius: 12px;
		overflow: hidden;
		border-left: 6px solid #ccc; /* Par défaut */
		padding: 15px;
	}

	.bonus-theme { 
				margin-top:30px;
				border-left-color: #4CAF50; } /* Vert */
	.malus-theme { border-left-color: #F44336; } /* Rouge */

	.bm-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 15px;
	}

	.bm-header h3 {
		margin: 0;
		margin-right:20px;
		font-size: 0.2rem;
		color: #FEFBAD;
	}

	.desc-preview {
		font-size: 0.85rem;
		color: rgba(255,255,255,0.6);
		display: block;
		max-width: 400px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}	
	.bonusmalus_points {
		width:70px;
		text-align:right;
		font-family: 'Digital';
		color: #FEFBAD;
		font-size: 0.2rem;
	}
	.bonusmalus_actions {
		width:100px;
	}
	
	.model-actions-horizontal i {
		display: flex;
	}
	
	.model-actions-horizontal i {
		cursor: pointer;
		display: inline-block;
		font-size: 16px;
		transition: transform 0.2s, opacity 0.2s;
		opacity: 0.7;
	}
	.model-actions-horizontal i:hover {
		transform: scale(1.2);
		opacity: 1;
	}
	/*************** FIN HABILLAGE PARAMETRES BONUS MALUS ********************/
	
	/******************** HABILLAGE PARAMETRES PERSONNELS ********************/
	.settings-tab-content .task-content,  .settings-tab-content-recover .task-content{
		margin-top:20px;
		text-align:justify;
	}

	.settings-tab-content .task-content p, .settings-tab-content-recover .task-content p {
		margin-top:5px;
		margin-bottom:5px;
		text-align:justify;
	}
	
	.settings-tab-content .task-footer, .settings-tab-content-recover .task-footer {
		display: flex;
		justify-content: flex-end;
	}	
	.settings-tab-content .task-main, .settings-tab-content-recover .task-main {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
	}
	
	.btn-parametres {
		border: none;
		border-radius: 14px;
		font-size: 14px;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.2s ease;
		color: #fff;
		height:40px;
		background: #4CAF50;
		margin-right:4px;
		width: 120px;
	}

	/* Hover */
	.btn-parametres:hover {
		transform: scale(1.05);
		opacity: 0.9;
	}

	/* Click */
	.btn-parametres:active {
		transform: scale(0.95);
	}
	
	#loginnew, #mailnew, #pw_old, #pw_new, #pw_conf {
		width:280px;
	}
	

.account-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
    padding: 10px 0;
}


.info-item {
    display: flex;
    flex-direction: column;
}

.info-item label {
    font-size: 0.2rem;
	font-weight: 400;
    
}

.info-item span {
    font-size: 0.2rem;
	font-style:italic;
	color:black;
}

.info-value {
    font-size: 1rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.badge-profil {
    background: rgba(90, 105, 230, 0.2);
    padding: 2px 10px;
    border-radius: 15px;
    width: fit-content;
    border: 1px solid #5a69e6;
}

/* Adaptabilité mobile */
@media (max-width: 600px) {
    .account-info-grid {
        grid-template-columns: 1fr;
    }
}
	/**************** FIN HABILLAGE PARAMETRES PERSONNELS ********************/
	
	.crit-item { color: #ff9d76; transition: 0.3s; }
    .crit-item.valid { color: #4CAF50; }
    
    /* Style de la barre de force */
    progress::-webkit-progress-value { background-color: #ff4d4d; transition: width 0.5s; }
    progress.strength-2::-webkit-progress-value { background-color: #ffa500; }
    progress.strength-3::-webkit-progress-value { background-color: #ffd700; }
    progress.strength-4::-webkit-progress-value { background-color: #9acd32; }
    progress.strength-5::-webkit-progress-value { background-color: #4CAF50; }
	
	/* Conteneur des champs */
	.password-grid {
		display: flex;
		flex-direction: column; /* Par défaut : empilé (mobile) */
		gap: 15px;
		margin-bottom: 0px;
	}

	/* Sur Bureau (Desktop) */
	@media (min-width: 768px) {
		.password-grid {
			flex-direction: row; /* Alignement horizontal */
			align-items: flex-start;
			flex-wrap: wrap; /* Permet de passer à la ligne si pas assez de place */
		}

		.password-grid .login-field-tile {
			flex: 1; /* Chaque bloc prend une part égale de largeur */
			/*min-width: 200px;*/ /* Sécurité pour ne pas qu'ils soient trop écrasés */
		}
	}

	/* Ajustement de la barre de force pour qu'elle prenne toute la largeur */
	.strength-meter-container {
		width: 100%;
		margin: 0px;
		padding-bottom:10px;
	}

	#strength-bar {
		width: 100%;
		height: 10px;
		border-radius: 5px;
	}