@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&display=swap');

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

:root {
	--background: #00000044;
	--glow-object: #F14554;
	--glow-object-grad: linear-gradient(to bottom right, #96705B, #96705B);
	--glow-object-grad-text: linear-gradient(to bottom right, #F14554, #F14554);
	--glow-shadow: #F14554;
	--text: #BFB1C1;
}

body {
	width: 100%;
	color: var(--text);
	font-family: "Inter";
	display: grid;
	grid-template-columns: 4.5rem 1fr;
	margin: 0;
}
.bg {
	position: fixed;
	inset: 0;
	z-index: -1;
	background:  #292D3E
}
nav {
	position: sticky;
	top: 0;
	height: 100vh;
	place-self: stretch;
	background: var(--background);
	backdrop-filter: blur(2rem);
	display: flex;
	flex-direction: column;
	padding: 0.5rem;
	d-gap: 0.5rem;
}
nav > a {
	position: relative;
	display: grid;
	place-content: center;
	color: var(--text);
	height: 3.5rem;
	border-radius: 0.75rem;
	font-size: 1.5rem;
	text-decoration: none;
}
nav > a:after {
	position: absolute;
	content: "";
	left: 0.125rem;
	top: 50%;
	transform: translateY(-50%);
	height: 0rem;
	width: 0.3125rem;
	width: 0.25rem;
	border-radius: 1rem;
	background: var(--glow-object);
	transition: height 200ms ease, box-shadow 200ms ease;
}
nav > a:hover {
	background: #ffffff15
}
nav > a:hover:after {
	height: 2.5rem;
	box-shadow: var(--glow-shadow) 0 0 7px 1px;
}
nav > a.active:after {
	height: 2.5rem;
	box-shadow: var(--glow-shadow) 0 0 7px 1px;
}
nav > .navspacer {
	flex-grow: 1;
}


.page {
    display: flex;
    flex-direction: column;
    place-self: stretch;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.alert {
	position: fixed;
	width: 50%;
	z-index: 100;
	top: 0.1rem;
	margin: 1rem;
	border-radius: 0.75rem;
	backdrop-filter: blur(2rem);
	color: var(--text);
	background: #018E42;
	border: 2px solid #00A94F;
	font-weight: 600;
	font-size: 1.125rem;
	opacity: 0;
	transform: scale(0.8);
	transition: opacity 0.5s ease, transform 0.5s ease;
  }
  
  .alert.show {
	opacity: 1;
	transform: scale(1);
  }

.alert-content {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	
}

.alert-content > i {
	font-size: 1.5rem;
	margin : 1rem;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

#alert-icon {
	animation: shake 1s ease-in-out infinite;
}

#alert-close:hover {
	/*rendre plus foncé au survol*/
	filter: brightness(0.8);
}

.alert-content > p {
	margin : 1rem;
	margin-left: 0;
	color: #00A94F;
}

.dashboard {
	max-width: 1300px; /* Définissez la largeur maximale selon vos besoins */
    width: 90%;
    place-self: stretch;
    display: grid;
    place-content: center;
    grid-auto-rows: 12rem; /* Ajustez la hauteur des cartes selon vos besoins */
    grid-template-columns: repeat(auto-fit, 12rem); /* Ajustez la largeur des cartes selon vos besoins */
    grid-auto-flow: row;
    grid-gap: 0.75rem;
    padding: 0.5rem;
    padding-top: 1rem;
	margin: 0 auto;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    border-radius: 0.75rem;
    background: var(--background);
    backdrop-filter: blur(2rem);
}


.card > h2 {
    display: flex;
    justify-content: center;
	margin: 0;
	padding: 0.375rem 0.5rem;
	font-size: 1.125rem;
}

.lastSession {
	display: flex;
	justify-content: center;
	font-size: 1.125rem;
	font-weight: 500;
	color: var(--text);
}

.time {
    display: flex;
    justify-content: center;
    font-size: 3rem;
    background: var(--glow-object-grad-text);
	font-weight: 600;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	filter: drop-shadow(var(--glow-shadow-text) 0px 0px 5px);
	line-height: 0.9;
}

.card > .bigstats {
	padding-top: 1.75rem;
	display: grid;
	grid-auto-flow: row;
	grid-template-columns: 1fr 1fr 1fr;
	grid-row-gap: 2rem;
	place-content: center;
	padding-bottom: 0.5rem;
}

.card > .bigstats > .stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.statnum {
	background: var(--glow-object-grad-text);
	font-size: 2rem;
	font-weight: 600;
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	filter: drop-shadow(var(--glow-shadow-text) 0px 0px 5px);
	line-height: 0.9;
}
.card > .bigstats > .stat > .stattext {
	font-weight: 500;
}

.card > ul {
	margin: 0;
	padding: 0 0.5rem;
}
.card > ul > li {
	list-style-type: none;
	margin: 0;
	padding: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-top: 1px solid #ffffff22;
	font-weight: 500;
}

.progresscircle {
	--progress: 33;
	position: relative;
	width: 4.5rem;
	height: 4.5rem;
	display: grid;
	place-content: center;
	font-weight: 600;
	margin: -0.375rem -0.25rem;
}
.progresscircle > svg {
	position: absolute;
	inset: 0;
	transform: rotate(-90deg);
}
.progresscircle > svg > circle {
	fill: none;
  stroke: var(--glow-object);
  filter: drop-shadow(var(--glow-shadow) 0 0 5px);
  stroke-width: 8px;
  stroke-dasharray: 250;
  stroke-dashoffset: calc(250 - 2.5 * var(--progress));
}


.card > table {
	flex-grow: 1;
	margin: 0 0.5rem;
	border-spacing: 0;
}
.card > table th, .card > table td {
	margin: 0;
	text-align: center;
	border-top: 2px solid #ffffff22;
	justify-content: space-between;

}
.card > i {
	margin: 0;
	text-align: center;
	justify-content: space-between;


}


.card.profile {
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.card.profile > h2 {
	font-weight: 600;
	font-size: 1.5rem;
}
.card.profile > p {
	margin: 0;
	padding-left: 0.5rem;
	font-weight: 500;
	transform: translateY(-0.375rem)
}

.card.title{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.card.title > h1{
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
}

.card.title > i {
    display: flex;
    justify-content: center;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 800;
	background: var(--text);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
}

.circle {
	width: 20px; /* Taille du cercle */
	height: 20px; /* Taille du cercle */
	border-radius: 50%; /* Rendre le div circulaire */
	border: 2px solid white; /* Bordure blanche */
	display: inline-block;
  }
  
  .red-circle {
	background-color: #F14554;
  }
  
  .blue-circle {
	background-color: #454E9E;
  }
  
  .green-circle {
	background-color: #018E42;
  }
  
  .black-circle {
	background-color: #191919;
  }

.modifier-input {
	margin-right: 0.5rem;
	padding: 0.25rem;
	border: 0.5px solid #ccc;
	background-color: var(--background);
	border-radius: 0.25rem;
	width: 4rem; /* Adjust the width as needed */
	color : var(--text);
  }
  
  .validate-button {
	padding: 0.25rem 0.5rem;
	border: none;
	border-radius: 0.25rem;
	background-color: var(--glow-object-grad);
	 /* Use your theme color */
	color: white;
	cursor: pointer;
  }

  .validate-button-planning {
	/* Full width button */
	height: 100%;
	padding: 0.25rem 0.5rem;
	border: none;
	border-radius: 0.25rem;
	font-size: 1.25rem;

	background-color: var(--glow-object-grad);
	 /* Use your theme color */
	color: white;
	cursor: pointer;
  }

  
  .color-button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 4rem; /* Largeur fixe pour le bouton */
	height: 4rem; /* Hauteur fixe pour le bouton */
	margin: 0.5rem;
	padding: 0.5rem;
	border: none;
	border-radius: 50%; /* Rend les boutons parfaitement ronds */
	border: 3px solid #ccc;
	background-width: 80%;
	color: white;
	cursor: pointer;
  }
  
  .color-button > i {
	font-size: 1.5rem; /* Ajustez cette valeur comme nécessaire */
	font-weight: 600;
	background: var(--text);
	background-clip: text;
	-webkit-background-clip: text;
	color: transparent;
	filter: drop-shadow(var(--glow-shadow-text) 0px 0px 5px);
  }

  .color-button:hover {
	transform: scale(1.1) /* Use a gradient or a different color for hover state */
  }


  .validate-button:hover {
	background-color: var(--glow-object);; /* Use a gradient or a different color for hover state */
  }

  .validate-button-planning:hover {
	background-color: var(--glow-object);; /* Use a gradient or a different color for hover state */
  }

  .emoticon {
	display: inline-block;
	font-size: 72px; /* Taille de l'émoticône */
	animation: rotate-180 2s linear infinite;/* Animation de rotation */
  }

  .emoticon:hover {
	animation: rotate-360 2s linear infinite/* Animation de rotation */
  }

  .emoticon-validate {
	animation: none; /* Désactive l'animation de rotation pour le bouton */
  }
  
  .settings {
	display: flex;
	flex-direction: row;
	justify-content: between;
	align-items: center;
	padding: 1rem;
  }

  .volumeSlider {
	-webkit-appearance: none;
	width: 80%;
	height: 0.5rem;
	border-radius: 0.25rem;
	cursor: pointer;
	background: var(--background);
  }
  
  .volumeSlider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: var(--glow-object);
	cursor: pointer;
  }
  
  .volumeSlider::-webkit-slider-thumb:hover {

	outline: none;
	opacity: 0.7;
	-webkit-transition: .2s;
	transition: opacity .2s;
  }

  .logoName {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 1rem;

  }

  .logoName > img {
	width: 4rem;
	height: 4rem;
	margin-right: 0.5rem;
  }

  .logoName > h1 {
	padding-left: 0.5rem;
	font-size: 1.5rem;
	font-weight: 600;
  }

  /* Style pour l'input de type date */
   input[type="date"] {
	 display: block;
	 width: 75%;
   	 padding: 0.5rem;
   	 border-radius: 0.25rem;
	 margin: 0rem 0.5rem;
   	 border: 1px solid #ccc;
   	 background-color: var(--background);
   	 color: var(--text);
   	 font-size: 1.25rem;
   	 font-family: "Inter", sans-serif;
   	 outline: none;
   	 transition: border-color 0.3s ease;
   }    
   /* Changement de la bordure au focus */
   input[type="date"]:focus {
   	 border-color: var(--glow-object);
   	 box-shadow: 0 0 5px var(--glow-shadow);
   }

   .planning_creation {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 1.25rem;
   }

.wrapper-loader {
	display: none;
	justify-content: center;
	align-items: center;
	gap: 1em;
	transition: 2s ease;
	cursor: progress;
	padding : 0.5rem;
}


.text-loader {
   color: #F14554;
   font-style: solid;
   font-size: 1.25rem;
}
 
 .dot {
   background: #F14554;
   height: 0.8em;
   width: 0.8em;
   border-radius: 50%;
   animation: move 0.6s ease infinite;
 }


 @keyframes move {
   0% {
	 transform: translateX(50%);
   }
   50% {
	 transform: translateX(-50%);
   }
   100% {
	 transform: translateX(50%);
   }
 }





  @keyframes rotate-180 {
	0% {
	  transform: rotate(0deg);
	}
	50% {
	  transform: rotate(180deg);
	}
	51% {
	  transform: rotate(180deg);
	}
	100% {
	  transform: rotate(180deg);
	}
  }
  
  @keyframes rotate-360 {
	0% {
	  transform: rotate(0deg);
	}
	50% {
	  transform: rotate(180deg);
	}
	100% {
	  transform: rotate(360deg);
	}
  }

  @keyframes shake {
	0% { transform: rotate(-20deg) scale(1.1); }
	50% { transform: rotate(20deg) scale(1);}
	100% { transform: rotate(-20deg) scale(1.1); }

  }
  

  
.mobile-only {
    display: none;
    font-size: 16px; /* Ajustez la taille de police selon vos besoins */
    text-align: center;
    padding: 20px; /* Ajustez l'espacement selon vos besoins */
	margin: 3px;
	color: var(--glow-object);
}




/* Media query pour cibler les appareils mobiles avec une largeur max de 768px */
@media (max-width: 1450px) {
    /* Masquez tous les contenus sauf le texte pour mobile */
    .dashboard {
        display: none;
    }

    /* Affichez le texte pour mobiles */
    .mobile-only {
        display: block;
    }
}




