/* === GLOBAL === */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Orbitron:wght@400;700&display=swap');

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	background-color: rgb(16,31,64);
	color: rgb(255,255,255);
	font-family: 'Orbitron', sans-serif;
}

/* === STRUCTURE === */
main {
	flex: 1;
	padding: 2rem 1rem;
	text-align: center;
}
main a {
	color: rgb(0,255,204);
	font-weight: bold;
	text-decoration: underline;
}
footer {
	flex-shrink: 0;
	background: 
		linear-gradient(to bottom, rgb(34,139,34) 20px, transparent 20px),
		repeating-linear-gradient(
			45deg,
			rgb(139,69,19),
			rgb(139,69,19) 10px,
			rgb(205,133,63) 10px,
			rgb(205,133,63) 20px
		);
	height: 60px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 5px;
}

.footer-text {
	font-size: 0.7rem;
	color: white;
	font-family: 'Press Start 2P', monospace;
}

/* === TITRES === */
.main-title {
	font-family: 'Press Start 2P';
	font-size: 1.5rem;
	text-shadow: 2px 2px 0 rgb(0,0,0);
	margin: 2rem 0 1rem 0;
}

.main-subtitle {
	font-size: 1rem;
	color: rgb(255,255,0);
	margin-bottom: 2rem;
}

/* === BURGER + HEADER === */
.global-header {
	position: relative;
	padding: 1rem;
	text-align: center;
}

.main-logo {
	width: 80px;
	display: block;
	margin: 0 auto;
}

/* Nouveau style rétro 8-bit façon manette NES */
.burger-btn {
	z-index: 1000; /* Plus haut que le menu */
	width: 48px;
	height: 32px;
	background: linear-gradient(to bottom, rgb(100,100,100), rgb(60,60,60));
	border: 2px solid rgb(200,0,0);
	box-shadow: inset 0 0 0 4px rgb(20,20,20);
	position: absolute;
	top: 10px;
	left: 10px;
	cursor: pointer;
}

.burger-btn::before,
.burger-btn::after {
	content: '';
	position: absolute;
	left: 9px;
	width: 28px;
	height: 4px;
	background: rgb(255,0,0);
	box-shadow: 0 8px rgb(255,0,0);
	top: 8px;
}

/* === NAVIGATION === */
/* NAV en position absolue + z-index + ne pousse pas */
nav {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 500;
	background-color: rgba(0,0,0,0.9);
	padding: 1rem;
	box-sizing: border-box;
	padding-top: 35px;
}

nav.hidden {
	display: none;
}

nav h2 {
	font-family: 'Press Start 2P';
	font-size: 1rem;
	margin: 1.5rem 0;
	color: rgb(0,255,255);
}

nav ul {
	list-style-type: none;
}
nav a, nav button {
	color: rgb(0,255,144);
	background: none;
	border: none;
	font-size: 0.9rem;
	cursor: pointer;
	font-family: 'Orbitron', sans-serif;
	text-decoration: none;
	line-height: 30px;
	padding: 0;
}
	nav a:hover, nav button:hover {
		text-decoration: underline;
	}

.login-form input {
	display: inline-block;
	max-width: 50%;
	margin: 0.5rem;
	padding: 0.3rem;
	font-size: 0.75rem;
	box-sizing: border-box;
}

/* === FORMULAIRES (inscription, login, etc.) === */
.register-page {
	text-align: center;
	padding: 2rem 1rem;
}

.register-form {
	display: inline-block;
	text-align: left;
	background: rgba(255,255,255,0.1);
	padding: 1rem;
	border-radius: 10px;
	box-shadow: 0 0 8px rgba(0,255,255,0.2);
	max-width: 90vw;
	box-sizing: border-box;
}
button[type="submit"] {
	background: linear-gradient(to bottom, rgb(0,255,204), rgb(0,200,160));
	color: black;
	border: 2px solid rgb(0,150,120);
	font-family: 'Press Start 2P', monospace;
	font-size: 0.7rem;
	padding: 0.5rem 1rem;
	margin-top: 1rem;
	cursor: pointer;
	box-shadow: 2px 2px 0 rgb(0, 100, 80);
	transition: all 0.2s ease-in-out;
	text-transform: uppercase;
}
.login-form button[type="submit"] {
	padding: 0.2rem 0.5rem;
}
button[type="submit"]:hover {
	background: linear-gradient(to bottom, rgb(0,255,180), rgb(0,180,140));
	box-shadow: 0 0 10px rgba(0,255,204,0.6);
	transform: scale(1.05);
}
.login-form input[type="text"] {
	padding: 8px 12px;
	border: 2px solid rgb(0,150,120);
	background-color: white;
	color: rgb(16,31,64);
	font-weight: bold;
	font-family: 'Press Start 2P', monospace;
	width: 100%;
	max-width: 200px;
	box-shadow: 2px 2px 0 rgb(0, 100, 80);
	margin-bottom: 10px;
	height: 41px;
}


/* Inputs full-width sans débordement */
.register-form input,
.register-form select,
.register-form button {
	width: 100%;
	box-sizing: border-box;
}

.register-form button {
	background: rgb(0,255,204);
	color: black;
	font-weight: bold;
	cursor: pointer;
}

.error {
	color: rgb(255,80,80);
	font-weight: bold;
	margin-bottom: 1rem;
}

/* Avatars */
.avatar-composite {
	position: relative;
	width: 120px;
	height: 120px;
	margin: 1rem auto;
}

.avatar-composite img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: auto;
}
.game-list {
	list-style: none;
	padding: 0;
	margin: 1rem auto;
	text-align: left;
	max-width: 400px;
}
.game-list li {
	background: rgba(255,255,255,0.05);
	padding: 0.5rem;
	margin-bottom: 0.5rem;
	border-left: 4px solid rgb(0,255,204);
}
.game-actions {
	margin: 0.5rem auto 0;
	text-align: center;
}

.game-actions button {
    font-size: 0.8rem;
    padding: 0.3rem;
    margin-right: 0.3rem;
    border: none;
    cursor: pointer;
    background: none;
    border-radius: 100%;
}
	.game-actions button img {
		width: initial;
		height: initial;
		border-radius: 100%;
	}
		.game-actions button img:hover {
			box-shadow: 0 0 15px rgb(255 255 255 / 80%);
		}

.game-actions img {
	width: 35px;
	height: 35px;
	vertical-align: middle;
}
.hotdog-list {
	list-style: none;
	padding: 0;
	margin: 1rem auto;
	text-align: left;
	max-width: 400px;
}

.hotdog-list li {
	background: rgba(255,255,255,0.05);
	padding: 0.5rem;
	margin-bottom: 0.5rem;
	border-left: 4px solid rgb(255,153,0);
}
.image-clignote  {
   position: relative;
   background-color: rgb(252,224,31) !important;
   color: black !important;
   animation-duration: 2.5s;
   animation-name: clignoter;
   animation-iteration-count: infinite;
   transition: none;
}
	.image-clignote:after {
		content:'←';
		font-size: 150px;
		color: red;
		position: absolute;
		left: 101%;
		top: 0;
	}
	.image-clignote:before {
		content:'→';
		font-size: 150px;
		color: red;
		position: absolute;
		right: 101%;
		top: 0;
	}

@keyframes clignoter {
  0%   { opacity:1; }
  40%   {opacity:0; }
  100% { opacity:1; }
}