@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

body {
	background-color: #fffef8;
	background-image:

		/* LIGNES VERTICALES VIOLETTES (grands carreaux) */
		repeating-linear-gradient(
			to right,
			transparent 0px,
			transparent 19px,
			rgba(180, 160, 255, 0.3) 20px,
			transparent 20px
		),

		/* LIGNES HORIZONTALES BLEUES (grands carreaux) */
		repeating-linear-gradient(
			to bottom,
			transparent 0px,
			transparent 19px,
			rgba(100, 149, 237, 0.4) 20px,
			transparent 20px
		);

	background-size:
		40px 100%,
		100% 20px;

	background-position:
		0 0,
		0 0;

	background-repeat: repeat, repeat;

	font-family: 'Patrick Hand', cursive;
	text-align: center;
	padding: 10px 20px;
	margin: 0;
}

h1 {
	font-size: 2em;
	margin-bottom: 1em;
}
	h1 img {
		max-height: 150px;
	}

form {
	background-color: white;
	border-radius: 10px;
	padding: 20px;
	display: inline-block;
	box-shadow: 0 0 10px rgba(0,0,0,0.1);
	position: relative;
	max-width: 400px;
	width: 100%;
}

label {
	display: block;
	margin-bottom: 10px;
	font-weight: bold;
}

input[type="text"],
input[type="datetime-local"],
input[type="number"] {
	padding: 10px;
	border: 2px solid #ccc;
	border-radius: 5px;
	font-size: 1em;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 10px;
}

button {
	margin-top: 20px;
	background-color: #ff90b3;
	color: white;
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

button:hover {
	background-color: #e06a92;
}

ul {
	list-style: none;
}

.success {
	color: green;
	font-weight: bold;
	margin-bottom: 1em;
}

.error {
	color: red;
	font-weight: bold;
	margin-bottom: 1em;
}

.kawaii-pencil {
	width: 60px;
	position: absolute;
	top: -30px;
	left: -30px;
}

.kawaii-eraser {
	width: 60px;
	position: absolute;
	bottom: -30px;
	right: -30px;
}

table {
	margin: 20px auto;
	border-collapse: collapse;
	background-color: white;
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	overflow: hidden;
}

th, td {
	padding: 10px 20px;
	border-bottom: 1px solid #ddd;
}

th {
	background-color: #ffccf0;
	font-weight: bold;
}

tr:last-child td {
	border-bottom: none;
}
/* ============ BOUTONS ACTIONS ============ */
button {
	background-color: #ff90b3;
	color: white;
	padding: 8px 16px;
	border: none;
	border-radius: 8px;
	font-size: 1em;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

button:hover {
	background-color: #e06a92;
}

.btn-danger {
	background-color: #ff4c4c;
}

.btn-danger:hover {
	background-color: #c93030;
}
/* TABLEAU COMPACT (admin) */
table.compact {
	font-size: 0.9em;
	width: auto;
}

table.compact input[type="text"] {
	font-size: 0.9em;
	padding: 4px 8px;
	width: 120px;
}

table.compact td,
table.compact th {
	padding: 4px 10px;
}
/* ====== TABLEAU COMPACT & RESPONSIVE ====== */
.table-joueurs {
	display: grid;
	grid-template-columns: 1fr;
	gap: 15px;
	margin: 20px auto;
	max-width: 900px;
}

.table-joueurs.multi {
	grid-template-columns: 1fr 1fr;
}

.table-joueur {
	background-color: white;
	border-radius: 10px;
	padding: 10px;
	box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
	font-size: 0.9em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.table-joueur input[type="text"] {
	font-size: 0.9em;
	padding: 4px 8px;
	width: 120px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.table-joueur .actions {
	display: flex;
	gap: 6px;
}

.table-joueur button {
	font-size: 0.8em;
	padding: 4px 8px;
	border-radius: 6px;
}

.table-joueur .btn-danger {
	background-color: #ff4c4c;
}

.table-joueur .btn-danger:hover {
	background-color: #c93030;
}
.echelle {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-top: 30px;
}

.poste {
	background: rgba(255,255,255,0.85);
	border: 2px solid rgb(200, 180, 255);
	border-radius: 12px;
	box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
	padding: 15px 15px 130px 15px;
	width: 220px;
	transition: transform 0.2s;
	position: relative;
}

.poste:hover {
	transform: scale(1.02);
}

.poste h2 {
	font-size: 18px;
	margin: 0 0 10px;
	color: rgb(85, 0, 170);
}

.poste h2 span {
	font-size: 14px;
	font-weight: normal;
	color: #444;
}

.joueurs {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.joueur {
	background: rgb(255, 255, 240);
	border: 1px dashed rgb(180, 160, 255);
	border-radius: 6px;
	padding: 1px 10px;
	font-size: 21px;
}
.qrcode {
	margin-top: 10px;
	position: absolute;
	bottom: 15px;
	left: calc(50% - 50px);
}
.score-line {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin: 15px auto;
	font-size: 1.2em;
}

.score-line label {
	min-width: 120px;
	text-align: right;
}

.score-line select {
	font-size: 1.1em;
	padding: 5px;
}
.list_joueurs {
		list-style: none;
}
.echelle-admin {
	margin-top: 30px;
	border-top: 2px dashed rgba(0,0,0,0.2);
	padding-top: 20px;
}

.poste-admin {
	margin: 10px auto;
	padding: 10px;
	border: 1px solid rgba(0,0,0,0.2);
	background-color: rgba(255,255,255,0.5);
	border-radius: 6px;
	max-width: 400px;
}

.poste-admin ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.poste-admin li {
	padding: 4px 0;
	font-size: 14px;
}

.score {
	color: #555;
	font-weight: bold;
	margin-left: 5px;
	font-size: 0.9em;
}
.btn-next-round {
	margin-top: 15px;
	padding: 8px 16px;
	font-size: 1em;
	background-color: rgb(255, 100, 100);
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}
.percent {
	font-size: 0.7em;
	width: 35px;
}
table.joueur {
	margin: 0 !important;
	font-size: 18px !important;
	padding: 0 !important;
}
	table.joueur tr, table.joueur tr td {
		padding: 0 !important;
	}
.fdred { background-color: red !important; width: 35px; }
.fdgreen { background-color: lime !important; width: 35px; }
.pseudo_champ {
	text-align: left !important;
	padding-left: 5px !important;
	font-size: 1.1em !important;
}
	.pseudo_champ strong {
		font-size: 0.8em;
		color: red;
	}
.swiitch {
	width: 50px;
	padding: 0 !important;
}