@import url('https://fonts.googleapis.com/css2?family=Jost:wght@200&display=swap');

body[data-theme="dark"]{
	background-color : #222;
}

body[data-theme="dark"] .nav .first:nth-child(6n+1), 
body[data-theme="dark"] .nav .first:nth-child(6n+2), 
body[data-theme="dark"] .nav .first:nth-child(6n+3),
body[data-theme="dark"] .nav .first:nth-child(6n+4),
body[data-theme="dark"] .nav .first:nth-child(6n+5),
body[data-theme="dark"] .nav .first:nth-child(6n+6),
body[data-theme="dark"] .nav .second:nth-child(6n+1), 
body[data-theme="dark"] .nav .second:nth-child(6n+2), 
body[data-theme="dark"] .nav .second:nth-child(6n+3),
body[data-theme="dark"] .nav .second:nth-child(6n+4),
body[data-theme="dark"] .nav .second:nth-child(6n+5),
body[data-theme="dark"] .nav .second:nth-child(6n+6) {
	background: none !important;
}

*, *:after, *:before { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; }
body, html { font-size: 15px; padding: 0; margin: 0;}


/* Liquid Glass Card */
.liquid-glass-card {
  position: relative;
  width: 400px;
  height: 300px;
  border-radius: 28px;
  isolation: isolate;
  box-shadow: 0px 6px 21px -8px rgba(255, 255, 255, 0.2);
  cursor: pointer;
}


/* Tint and inner shadow layer */
.liquid-glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 28px;
  box-shadow: inset 0 0 8px -2px rgba(255, 255, 255, 0.3);
  background-color: rgba(255, 255, 255, 0);
  pointer-events: none;
}

/* Backdrop blur and distortion layer */
.liquid-glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  filter: url(#glass-distortion);
  -webkit-filter: url(#glass-distortion);
  isolation: isolate;
  pointer-events: none;
}

/* Content styling */
.card-content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px;
  color: white;
}

.card-content h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.card-content p {
  opacity: 0.8;
}

.glass-button {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.glass-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

/*--------------------*/

body {
	font-family: 'Jost', sans-serif;
	color: #89867e;
	background: #f9f9f9;
	overflow-x: hidden;
	background-image: url('../wallpaper/wallpaper-sea.jpg');
  	background-position: center;
  	background-repeat: no-repeat;
  	background-size: cover;
  	animation: zoomBackground 60s infinite alternate ease-in-out;
	
}

a {
	color: #333;
	text-decoration: none;
}

a:hover {
	color: #fff;
}

.main {
	max-width: 82.667em;
	min-height: 35em;
}

/* HEADER */
header{
	display: flex;
	justify-content: space-around;
	align-items: center;
	width: 100%;
	background: rgba(255, 255, 255, 0.877);
}

.container-header, .container-header-clock{
	display: flex;
}

.container-header-clock{
	flex-direction: column;
}


/* CLOCK ANIMATION */

.clock {
	background-color: var(--primary);
	background-image: linear-gradient(-45deg,hsla(var(--hue),10%,10%,0),hsla(var(--hue),10%,10%,0.2));
	border-radius: 0.25rem;
	box-shadow: 0 0 0 0.1rem hsla(var(--hue),10%,10%,0.2) inset;
	color: hsl(var(--hue),10%,100%);
	display: flex;
	justify-content: center;
	font-size: 1em;
	line-height: 1;
	padding: 0.25rem 0.5rem;
}
.clock__digit {
	display: inline-block;
	font-weight: bold;
	text-align: center;
	text-shadow:
		0 0 0 var(--shadow),
		0 0 0 var(--shadow),
		1px 1px 0 var(--shadow),
		2px 2px 0 var(--shadow),
		3px 3px 0 var(--shadow),
		3px 3px 0 var(--shadow),
		4px 4px 0 var(--shadow);
	width: 1ch;
}
.clock__digit:not(:nth-child(3n)) {
	margin-top: 0.25rem;
}
.clock__digit--bounce {
	animation: bounce 0.5s ease-in;
}

@keyframes bounce {
	from, to {
		animation-timing-function: ease-in;
		text-shadow:
			0 0 0 var(--shadow),
			0 0 0 var(--shadow),
			1px 1px 0 var(--shadow),
			2px 2px 0 var(--shadow),
			3px 3px 0 var(--shadow),
			3px 3px 0 var(--shadow),
			4px 4px 0 var(--shadow);
		transform: translate(0,0);
	}
	33% {
		animation-timing-function: ease-out;
		text-shadow:
			0 0 0 var(--shadow),
			0 0 0 var(--shadow),
			0 0 0 var(--shadow),
			0 0 0 var(--shadow),
			0 0 0 var(--shadow),
			1px 1px 0 var(--shadow);
		transform: translate(4px,4px);
	}
	67% {
		animation-timing-function: ease-in;
		text-shadow:
			1px 1px 0 var(--shadow),
			2px 2px 0 var(--shadow),
			3px 3px 0 var(--shadow),
			4px 4px 0 var(--shadow),
			5px 5px 0 var(--shadow),
			6px 6px 0 var(--shadow);
		transform: translate(-2px,-2px);
	}
}

.switch_light {
	cursor : pointer;
	background-color: rgba(0,0,0,0.7);
	border-radius: 0.75em;
	box-shadow: 0.125em 0.125em 0 0.125em rgba(0,0,0,0.3) inset;
	color: #fdea7b;
	display: inline-flex;
	align-items: center;
	margin: auto;
	padding: 0.15em;
	width: 3em;
	height: 1.5em;
	transition: background-color 0.1s 0.3s ease-out, box-shadow 0.1s 0.3s ease-out;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.switch_light:before, .switch_light:after {
	content: "";
	display: block;
}
.switch_light:before {
	background-color: #d7d7d7;
	border-radius: 50%;
	width: 1.2em;
	height: 1.2em;
	transition: background-color 0.1s 0.3s ease-out, transform 0.3s ease-out;
	z-index: 1;
}
.switch_light:after {
	background:
		linear-gradient(transparent 50%, rgba(0,0,0,0.15) 0) 0 50% / 50% 100%,
		repeating-linear-gradient(90deg,#bbb 0,#bbb,#bbb 20%,#999 20%,#999 40%) 0 50% / 50% 100%,
		radial-gradient(circle at 50% 50%,#888 25%, transparent 26%);
	background-repeat: no-repeat;
	border: 0.25em solid transparent;
	border-left: 0.4em solid #d8d8d8;
	border-right: 0 solid transparent;
	transition: border-left-color 0.1s 0.3s ease-out, transform 0.3s ease-out;
	transform: translateX(-22.5%);
	transform-origin: 25% 50%;
	width: 1.2em;
	height: 1em;
}
/* Checked */
.switch_light:checked {
	background-color: rgba(0,0,0,0.45);
	box-shadow: 0.125em 0.125em 0 0.125em rgba(0,0,0,0.1) inset;
}
.switch_light:checked:before {
	background-color: currentColor;
	transform: translateX(125%)
}
.switch_light:checked:after {
	border-left-color: currentColor;
	transform: translateX(-2.5%) rotateY(180deg);
}
/* Other States */
.switch_light:focus {
	/* Usually an anti-A11Y practice but set to remove an annoyance just for this demo */
	outline: 0;
}

/* FIN HEADER - DÉBUT TUILE UTILISATEUR */
.container-tuile-user{
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 86vh;
	justify-content: center;
	align-items: center;
}

.container-tuile-user p{
	color: white;
	font-size: 50px;
	font-weight: bold;
	margin: 0.5rem;
}

.container-tuile-user .liquid-glass-card{
	width: auto;
	height: auto;
}

.container-content{
	display: flex;
	justify-content: center;
	width: 50%;
	background: rgba(255, 255, 255, 0.877);
	border-radius: .5rem;
	padding: 1rem;
	flex-wrap: wrap;
}

.container-content-user{
	display: flex;
	flex-direction: column;
	text-align: center;
	margin: 1rem;
	padding: 1rem;
	transition: 0.3s ease-out;
}

.container-content-user:hover{
	scale: 1.1;
	transition: 0.3s ease-out;
}

.container-content-user p{
	color: black;
	font-size: 15px;
}

.avatar{
	height: 100px;
	border-radius: .5rem;
}

.tile{
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 80px;
	height: 80px;
	align-items: center;
	margin: 1rem;
	border: solid black 1px;
	padding: 1rem;
	border-radius: .5rem;
	transition: 0.3s ease-out;
}

.tile:hover{
	background: rgba(0, 0, 0, 0.847);
	transition: 0.3s ease-out;
}

/* ERROR 403 - NOT FOUND */
.container-notfound {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-image: url('../wallpaper/wallpaper-sea.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: zoomBackground 60s infinite alternate ease-in-out;
}
@keyframes zoomBackground {
  0% {
    background-size: 100%;
  }
  100% {
    background-size: 200%;
  }
}

.container-notfound .logo{
	height: 50px;
}

input{
	display: block;
	margin: 1rem 0;
	border-radius: 5px;
	border: 2px solid transparent;
	width: 250px;
	height: 40px;
	outline: none;
}

input:focus{
	border: 2px solid #428dda;
}
/* ERROR 403 - NOT FOUND - FIN */
