@charset "windows-1252";
/* CSS Document */

#selection_joueur {
	margin-right: auto;
	margin-left: auto;
	text-align: center;
	margin-top: 10px;
}

#espace_joueurs {
	min-height: 800px;
	background-color: #111418;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, rgba(0, 0, 0, 0.4) 100%),
		repeating-linear-gradient(0deg, #161b22 0px, #161b22 40px, #111418 40px, #111418 80px);
	border-radius: 8px;
	box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
	padding-bottom: 40px;
	margin-right: 15px;
	border-bottom-color: #FFFFFF;
	position: relative;
	overflow: hidden;
}

/* Pitch Markings - Vertical Layout */
.pitch-markings {
	position: absolute;
	top: 10px;
	left: 10px;
	right: 10px;
	bottom: 50px;
	/* Account for padding-bottom of container */
	border: 2px solid rgba(255, 255, 255, 0.15);
	pointer-events: none;
	/* Let clicks pass through to players */
}

.pm-line {
	position: absolute;
	background: rgba(255, 255, 255, 0.15);
}

.pm-half {
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
}

.pm-center-circle {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100px;
	height: 100px;
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.pm-center-spot {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

/* Penalty Areas */
.pm-box {
	position: absolute;
	left: 50%;
	width: 300px;
	height: 100px;
	border: 2px solid rgba(255, 255, 255, 0.15);
	transform: translateX(-50%);
}

.pm-box.top {
	top: 0;
	border-top: none;
}

.pm-box.bottom {
	bottom: 0;
	border-bottom: none;
}

/* Goal Areas */
.pm-box-small {
	position: absolute;
	left: 50%;
	width: 120px;
	height: 40px;
	border: 2px solid rgba(255, 255, 255, 0.15);
	transform: translateX(-50%);
}

.pm-box-small.top {
	top: 0;
	border-top: none;
}

.pm-box-small.bottom {
	bottom: 0;
	border-bottom: none;
}

/* Goals */
.pm-goal {
	position: absolute;
	left: 50%;
	width: 100px;
	height: 15px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	/* Brighter for emphasis */
	transform: translateX(-50%);
}

.pm-goal.top {
	top: -17px;
	border-bottom: none;
}

.pm-goal.bottom {
	bottom: -17px;
	border-top: none;
}

/* Penalty Spots */
.pm-pen-spot {
	position: absolute;
	left: 50%;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	transform: translateX(-50%);
}

.pm-pen-spot.top {
	top: 70px;
}

.pm-pen-spot.bottom {
	bottom: 70px;
}

/* Penalty Arcs */
.pm-arc {
	position: absolute;
	left: 50%;
	width: 100px;
	height: 100px;
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
	transform: translateX(-50%);
	z-index: 0;
	/* Behind the box */
}

.pm-arc.top {
	top: 20px;
	clip-path: polygon(0 50%, 100% 50%, 100% 100%, 0 100%);
}

.pm-arc.bottom {
	bottom: 20px;
	clip-path: polygon(0 0, 100% 0, 100% 50%, 0 50%);
}

/* Corners */
.pm-corner {
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.15);
	border-radius: 50%;
}

.pm-corner.top-left {
	top: -10px;
	left: -10px;
}

.pm-corner.top-right {
	top: -10px;
	right: -10px;
}

.pm-corner.bottom-left {
	bottom: -10px;
	left: -10px;
}

.pm-corner.bottom-right {
	bottom: -10px;
	right: -10px;
}

#espace_joueursreserv {
	margin-top: 10px;
	margin-left: 15px;
	border-bottom-width: 20px;
	border-bottom-style: solid;
	margin-right: 15px;
	border-bottom-color: #FFFFFF;
}

#bottom_joueurs {
	float: left;
	width: 50%;
}

#pub_joueurs {
	float: left;
	width: 50%;
	text-align: center;
	margin-bottom: 10px;
}

#terrain {
	height: 532px;
	width: 612px;
	padding: 10px;
	text-align: right;
	float: left;
	position: relative;
}

#remplacants {
	padding-top: 25px;
	float: left;
	width: 160px;
	position: relative;
}

.rang {
	height: 129px;
}

#une_carte {
	width: 121px;
	margin-right: auto;
	margin-left: auto;
}

#deux_cartes {
	width: 242px;
	margin-right: auto;
	margin-left: auto;
}

#trois_cartes {
	width: 363px;
	margin-right: auto;
	margin-left: auto;
}

#quatre_cartes {
	width: 484px;
	margin-right: auto;
	margin-left: auto;
}

#cinq_cartes {
	width: 605px;
	margin-right: auto;
	margin-left: auto;
}

.carte_bleue {
	background: linear-gradient(180deg, rgba(37, 99, 235, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%);
	backdrop-filter: blur(4px);
	border-radius: 8px;
	border-top: 5px solid #2563eb;
	box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
	height: 115px;
	width: 100px;
	padding-top: 4px;
	padding-right: 4px;
	padding-left: 4px;
	margin-right: 2px;
	margin-left: 2px;
	float: left;
	font-size: 10px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	position: absolute;
	z-index: 10;
}

.carte_verte {
	background: linear-gradient(180deg, rgba(22, 163, 74, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%);
	backdrop-filter: blur(4px);
	border-radius: 8px;
	border-top: 5px solid #16a34a;
	box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2);
	height: 115px;
	width: 100px;
	padding-top: 4px;
	padding-right: 4px;
	padding-left: 4px;
	margin-right: 2px;
	margin-left: 2px;
	float: left;
	font-size: 10px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	position: absolute;
	z-index: 10;
}

.carte_bleue_claire {
	background: linear-gradient(180deg, rgba(6, 182, 212, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%);
	backdrop-filter: blur(4px);
	border-radius: 8px;
	border-top: 5px solid #06b6d4;
	box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
	height: 115px;
	width: 100px;
	padding-top: 4px;
	padding-right: 4px;
	padding-left: 4px;
	margin-right: 2px;
	margin-left: 2px;
	float: left;
	font-size: 10px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	position: absolute;
	z-index: 10;
}

.carte_rouge {
	background: linear-gradient(180deg, rgba(220, 38, 38, 0.25) 0%, rgba(23, 23, 33, 0.95) 40%);
	backdrop-filter: blur(4px);
	border-radius: 8px;
	border-top: 5px solid #dc2626;
	box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
	height: 115px;
	width: 100px;
	padding-top: 4px;
	padding-right: 4px;
	padding-left: 4px;
	float: left;
	margin-right: 2px;
	margin-left: 2px;
	font-size: 10px;
	font-weight: bold;
	color: #fff;
	text-align: center;
	position: absolute;
	z-index: 10;
}

.carte_bleue,
.carte_verte,
.carte_bleue_claire,
.carte_rouge,
.jauge_rouge,
.jauge_rouge2,
.jauge_verte,
.tete {
	box-sizing: content-box;
}

.tete img {
	width: 60px;
	height: 70px;
	pointer-events: none;
	-webkit-user-drag: none;
	user-select: none;
}

.tete {
	position: absolute;
	left: 5px;
	top: 20px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	overflow: hidden;
}

.jauge_rouge {
	background-color: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	position: absolute;
	width: 7px;
	left: 70px;
	top: 20px;
	vertical-align: bottom;
	padding: 1px;
	height: 70px;
}

.jauge_rouge img,
.jauge_rouge2 img,
.jauge_verte img {
	width: 100%;
	display: block;
}

.jauge_rouge2 {
	position: absolute;
	width: 7px;
	left: 70px;
	top: 20px;
	vertical-align: bottom;
	padding: 1px;
}

.jauge_verte {
	background-color: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	position: absolute;
	width: 7px;
	left: 82px;
	top: 20px;
	vertical-align: bottom;
	padding: 1px;
	height: 70px;
}

.age {
	position: absolute;
	left: 9px;
	top: 92px;
	width: 36px;
	color: rgba(255, 255, 255, 0.75);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.points {
	position: absolute;
	width: 62px;
	left: 48px;
	top: 92px;
	color: #FFFFFF;
	font-size: 12px;
}

.etatjoueur {
	position: absolute;
	top: 23px;
	left: 12px;
	z-index: 2;
}

.consjoueur {
	position: absolute;
	top: 5px;
	right: 5px;
	left: auto;
	z-index: 20;
	visibility: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.c2pjoueur {
	position: absolute;
	top: 5px;
	right: 5px;
	left: auto;
	width: auto;
	z-index: 20;
	visibility: hidden;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.capitanat {
	position: absolute;
	top: 25px;
	left: 58px;
	width: 11px;
	height: 15px;
	background-image: url("../design10/joueurs/C.png");
	background-repeat: no-repeat;
	z-index: 3;
}

#btetat {
	width: 26px;
	height: 13px;
	float: left;
	background-image: url("../design10/equipe/boutons06.png");
	background-repeat: no-repeat;
	background-position: top left;
}

#btcon {
	width: 26px;
	height: 13px;
	float: left;
	background-image: url("../design10/equipe/boutons05.png");
	background-repeat: no-repeat;
	background-position: top left;
}

#btcou {
	width: 26px;
	height: 13px;
	float: left;
	background-image: url("../design10/equipe/boutons04.png");
	background-repeat: no-repeat;
	background-position: top left;
}

/* --- Modern layout for joueurs page --- */
.layout {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 20px;
	margin-top: 10px;
	clear: both;
}

.layout #espace_joueurs {
	flex: 0 0 auto;
}

.layout #espace_joueurs_inner {
	flex: 0 0 auto;
}

.layout #terrain {
	float: none !important;
	margin: 0;
}

.layout #remplacants {
	float: none;
	width: 100%;
	padding-top: 16px;
	position: relative;
}

.layout .remplacants-panel {
	flex: 1 1 260px;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	padding: 12px;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	margin: 10px 0 0 0;
	width: auto;
}

.remplacants-panel h3 {
	margin: 0 0 10px 0;
	text-align: center;
	font-size: 18px;
}

.remplacants-list {
	max-height: 520px;
	overflow-y: auto;
	padding-right: 6px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
}

.remplacant-row {
	flex: 0 0 auto;
	width: auto !important;
}

.remplacants-list #une_carte {
	margin-left: 0;
	margin-right: 0;
}

.reservistes-panel {
	margin: 30px 15px 60px 15px;
	padding: 16px;
	background: rgba(0, 0, 0, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 12px;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
	clear: both;
	position: relative;
}

.reservistes-panel h3 {
	margin: 0 0 12px 0;
	font-size: 20px;
}

.reservistes-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.reservistes-table th,
.reservistes-table td {
	padding: 8px 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.reservistes-table thead th {
	text-align: left;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.05em;
	opacity: 0.9;
}

.reservistes-table tbody tr:hover {
	background: rgba(255, 255, 255, 0.06);
}

.reservistes-table td:last-child {
	text-align: right;
}

/* Vignettes de poste pour les réservistes */
.reserviste-poste {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #fff;
}

.reserviste-poste-gar {
	background-color: #1e3a8a;
	/* gardien: bleu soutenu */
}

.reserviste-poste-def {
	background-color: #166534;
	/* défenseur: vert */
}

.reserviste-poste-mil {
	background-color: #1d4ed8;
	/* milieu: bleu vif */
}

.reserviste-poste-att {
	background-color: #b91c1c;
	/* attaquant: rouge */
}

.btn-promote {
	padding: 6px 12px;
	border: none;
	border-radius: 6px;
	background: linear-gradient(120deg, #32a852, #5fd47a);
	color: #06121c;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.2s ease-in-out;
}

.btn-promote:hover {
	opacity: 0.85;
}

/* --- Modale infos joueur (nouvelle version pour index2.php?page=joueurs) --- */
#player-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 1090;
	display: none;
}

#infos-joueur {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 420px;
	width: calc(100% - 32px);
	height: auto;
	background: #0b1724;
	color: #f9fafb;
	border-radius: 12px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.75);
	padding: 10px 12px 12px;
	font-size: 13px;
	line-height: 1.5;
	z-index: 1100;
	display: none;
}

#infos-joueur .player-modal-inner {
	display: flex;
	flex-direction: column;
	max-height: 70vh;
}

#infos-joueur .player-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
	padding-bottom: 4px;
}

#infos-joueur .player-modal-title {
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.03em;
}

#infos-joueur .player-modal-sub {
	margin-top: 2px;
	font-size: 11px;
	opacity: 0.8;
}

#infos-joueur .player-modal-close {
	border: none;
	background: transparent;
	color: #e5e7eb;
	font-size: 18px;
	line-height: 1;
	padding: 2px 4px;
	cursor: pointer;
}

#infos-joueur .player-modal-body {
	margin-top: 4px;
	padding-top: 4px;
	/* Pas de scroll interne: on laisse la modale s'adapter à la hauteur du contenu */
	overflow-y: visible;
	max-height: none;
}

#infos-joueur #infosstats,
#infos-joueur #titre-caract,
#infos-joueur #caracter,
#infos-joueur #menuc2p,
#infos-joueur #menuconsignes {
	font-size: 13px;
	line-height: 1.5;
}

/* Vue Infos générales : 2 colonnes, sans clipping hérité de l'ancien thème */
#infos-joueur #infosstats {
	width: auto;
	height: auto;
	float: none;
	overflow: visible;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	column-gap: 12px;
}

#infos-joueur #infosstats>div {
	margin-bottom: 4px;
}

/* Vue Caractéristiques : deux blocs côte à côte, labels à gauche, valeurs à droite */
#infos-joueur #titre-caract,
#infos-joueur #caracter {
	width: 48%;
	height: auto;
	float: none;
	display: inline-block;
	vertical-align: top;
}

#infos-joueur #caracter {
	text-align: right;
}

#infos-joueur .section-title {
	font-weight: 600;
	margin-bottom: 6px;
}

#infos-joueur .rename-hint {
	font-size: 11px;
	opacity: 0.85;
}

#infos-joueur form input[type="submit"],
#infos-joueur form input[type="button"] {
	border-radius: 999px;
	border: none;
	padding: 6px 12px;
	margin: 2px 4px 0 0;
	font-size: 12px;
	cursor: pointer;
}

#infos-joueur form input[type="submit"] {
	background: #28a745;
	color: #fff;
}

#infos-joueur form input[type="button"] {
	background: #6c757d;
	color: #fff;
}

/* Boutons de validation alignés à droite dans les formulaires de la modale */
#infos-joueur #menuc2p form,
#infos-joueur #menuconsignes form {
	text-align: left;
}

/* Modern styling for SweetAlert2 player modal */
.player-modal-inner {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	color: #fff;
	text-align: left;
}

.player-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
	padding-bottom: 10px;
	margin-bottom: 15px;
}

.player-modal-title {
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
}

.player-modal-sub {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 4px;
}

.player-modal-close {
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.5);
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: color 0.2s;
}

.player-modal-close:hover {
	color: #fff;
}

/* Sections */
.section-content {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	font-size: 0.95rem;
}

.info-row {
	padding: 2px 0;
}

/* Characteristics Table */
#caracteristiques-view {
	display: flex;
	justify-content: space-between;
	font-size: 0.95rem;
	width: 100%;
}

/* Override legacy styles for characteristic columns */
.player-modal-inner #titre-caract,
.player-modal-inner #caracter {
	display: flex !important;
	flex-direction: column !important;
	gap: 6px !important;
	width: auto !important;
	height: auto !important;
	float: none !important;
	background: transparent !important;
}

.player-modal-inner #caracter {
	text-align: right;
	font-weight: 500;
}

.total-label,
.total-value {
	margin-top: 10px;
	font-weight: 700;
	color: #ffbf47;
	font-size: 1.1rem;
}

/* Forms (Menus) */
.section-title {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 12px;
	color: #ffbf47;
}

.checkbox-label,
.radio-label {
	display: block;
	margin-bottom: 8px;
	cursor: pointer;
	padding: 4px;
	border-radius: 4px;
	transition: background 0.2s;
}

.checkbox-label:hover,
.radio-label:hover {
	background: rgba(255, 255, 255, 0.05);
}

.checkbox-label input,
.radio-label input {
	margin-right: 8px;
	accent-color: #007bff;
}

.form-actions {
	margin-top: 20px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.form-actions input[type="submit"] {
	background: linear-gradient(135deg, #28a745, #20c997);
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	color: white;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.2s;
}

.form-actions input[type="button"] {
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.2);
	padding: 8px 16px;
	border-radius: 6px;
	color: white;
	cursor: pointer;
	transition: background 0.2s;
}

.form-actions input[type="submit"]:hover {
	filter: brightness(1.1);
}

.form-actions input[type="button"]:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Navigation Menu */
#menu-joueur2 {
	margin-top: 20px;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

#menu-joueur2 a {
	display: inline-block;
	padding: 6px 12px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	color: #ddd;
	text-decoration: none;
	font-size: 0.85rem;
	transition: all 0.2s;
}

#menu-joueur2 a:hover {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	transform: translateY(-1px);
}

/* Neutralize legacy styles for #menu-joueur2 from included design CSS */
.player-modal-inner #menu-joueur2 {
	position: static !important;
	margin: 20px 0 0 0 !important;
	padding: 15px 0 0 0 !important;
	width: auto !important;
	height: auto !important;
	background: transparent !important;
	text-align: center !important;
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 8px !important;
	justify-content: center !important;
}

/* Ensure links in the new menu look correct */
.player-modal-inner #menu-joueur2 a {
	display: inline-block !important;
	padding: 6px 12px !important;
	background: rgba(255, 255, 255, 0.08) !important;
	border-radius: 20px !important;
	color: #ddd !important;
	text-decoration: none !important;
	font-size: 0.85rem !important;
	transition: all 0.2s !important;
	float: none !important;
	/* Prevent legacy float issues */
}

.player-modal-inner #menu-joueur2 a:hover {
	background: rgba(255, 255, 255, 0.2) !important;
	color: #fff !important;
	transform: translateY(-1px) !important;
}

/* SweetAlert overrides */
.swal2-coaching-modal {
	background: #1a1f29 !important;
	/* Solid dark background fallback */
	background: rgba(26, 31, 41, 0.98) !important;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	border-radius: 12px !important;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
	width: auto !important;
	/* Allow width to adapt */
	min-width: 300px;
	height: auto !important;
}

.swal2-coaching-modal .swal2-html-container {
	margin: 0 !important;
	overflow: visible !important;
	padding: 0 !important;
	text-align: left !important;
	background: transparent !important;
}

.swal2-popup.swal2-coaching-modal {
	display: block !important;
	padding: 24px !important;
	overflow: visible;
}


#infos-joueur #menu-joueur2 {
	/* Neutralise l'ancien menu flottant (position:absolute, width/height fixes, fond image) */
	position: static;
	width: auto;
	height: auto;
	background: none;
	background-image: none;
	margin-top: 10px;
	padding-top: 8px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

#infos-joueur #menu-joueur2 a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.5);
	color: #e5e7eb;
	white-space: nowrap;
}

#infos-joueur #menu-joueur2 a:hover {
	background: rgba(37, 99, 235, 0.25);
	border-color: rgba(59, 130, 246, 0.8);
}

@media (max-width: 576px) {
	#infos-joueur {
		max-width: 100%;
		width: calc(100% - 24px);
	}

	/* Sur mobile, éviter que remplaçants/réservistes soient trop écrasés */
	#espace_joueurs_inner {
		/* Used for scaling wrapper */
		transform-origin: top left;
	}

	.reservistes-table {
		min-width: 520px;
	}

	/* Sur mobile, désactiver le wrapper visuel de #espace_joueurs pour éviter
	   une bordure de couleur fixe quand on scroll horizontalement. */
	#espace_joueurs {
		background: transparent;
		box-shadow: none;
		padding-left: 0;
		padding-right: 0;
		margin-left: 0;
		margin-right: 0;
	}

	#espace_joueurs::before {
		display: none;
	}
}

@media (max-width: 1024px) {
	.layout {
		flex-direction: column;
	}

	.remplacants-panel {
		width: 100%;
	}

	.remplacants-list {
		max-height: none;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
		justify-content: center;
		gap: 10px;
	}

	.remplacant-row {
		width: auto !important;
		display: flex;
		justify-content: center;
	}

	.reservistes-panel {
		margin: 24px 0;
	}
}

/* --- Modern wrapper autour de la zone joueurs --- */
#espace_joueurs {
	position: relative;
	margin: 20px 15px 40px 15px;
	padding: 20px 20px 32px;
	border-radius: 18px;
	background-size: cover;
	background-position: center;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
	overflow: hidden;
}

#espace_joueurs::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 18px;
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 55%),
		radial-gradient(circle at bottom, rgba(0, 0, 0, 0.55), transparent 60%);
	pointer-events: none;
	z-index: 0;
}

/* Le contenu passe au-dessus du voile */
#espace_joueurs>* {
	position: relative;
	z-index: 1;
}

/* Layout joueurs plus aéré */
.layout {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 24px;
	margin-top: 4px;
}

/* Terrain légèrement surélevé */
.layout #terrain {
	margin: 0;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
	background-color: #0b7d2b;
	/* déjà défini dans le style inline */
}

/* Panneau remplaçants un peu plus “card” */
.layout .remplacants-panel {
	background: linear-gradient(160deg, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.35));
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7);
	padding: 14px 12px 16px;
}

/* Titre remplaçants un peu plus moderne */
.remplacants-panel h3 {
	margin: 0 0 12px 0;
	text-align: center;
	font-size: 17px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #f7f7f7;
	opacity: 0.9;
}

.btn-promote {
	padding: 6px 12px;
	border: none;
	border-radius: 999px;
	background: linear-gradient(120deg, #32a852, #5fd47a);
	color: #06121c;
	font-weight: 600;
	font-size: 13px;
}

/* =========================================
   PITCH MARKINGS & COACHING RESPONSIVENESS
   ========================================= */

/* Ensure the pitch has a grass background if no image */
#terrain {
	position: relative;
	background-color: #2d8a4e;
	background-image:
		linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent),
		linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
	background-size: 50px 50px;
	box-sizing: border-box;
	overflow: hidden;
	/* Hide players if they go slightly out */
	transform-origin: top left;
	/* Pivot for scaling */
}

/* Container for all lines */
.pitch-markings {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

/* Shared border style */
.pitch-markings div {
	position: absolute;
	border: 1px solid rgba(255, 255, 255, 0.7);
	box-sizing: border-box;
}

/* Outer boundary line (inside padding) */
.pitch-markings .pm-outer {
	top: 10px;
	left: 10px;
	right: 10px;
	bottom: 10px;
	border-width: 2px;
}

/* Halfway line */
.pitch-markings .pm-half {
	top: 50%;
	left: 10px;
	right: 10px;
	height: 0;
	border-width: 1px 0 0 0;
	border-top: 2px solid rgba(255, 255, 255, 0.7);
}

/* Center Circle */
.pitch-markings .pm-center-circle {
	top: 50%;
	left: 50%;
	width: 100px;
	height: 100px;
	border-radius: 50%;
	border-width: 2px;
	transform: translate(-50%, -50%);
}

/* Center Spot */
.pitch-markings .pm-center-spot {
	top: 50%;
	left: 50%;
	width: 6px;
	height: 6px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	border: none;
	transform: translate(-50%, -50%);
}

/* Penalty Area (Top) */
.pitch-markings .pm-box.top {
	top: 10px;
	left: 50%;
	width: 260px;
	height: 110px;
	border-width: 0 2px 2px 2px;
	transform: translateX(-50%);
}

/* Goal Area (Top) */
.pitch-markings .pm-goal.top {
	top: 10px;
	left: 50%;
	width: 110px;
	height: 40px;
	border-width: 0 2px 2px 2px;
	transform: translateX(-50%);
}

/* Penalty Spot (Top) */
.pitch-markings .pm-pen-spot.top {
	top: 88px;
	left: 50%;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	border: none;
	transform: translateX(-50%);
}

/* Bottom markings */

/* Penalty Area (Bottom) */
.pitch-markings .pm-box.bottom {
	bottom: 10px;
	left: 50%;
	width: 260px;
	height: 110px;
	border-width: 2px 2px 0 2px;
	transform: translateX(-50%);
}

/* Goal Area (Bottom) */
.pitch-markings .pm-goal.bottom {
	bottom: 10px;
	left: 50%;
	width: 110px;
	height: 40px;
	border-width: 2px 2px 0 2px;
	transform: translateX(-50%);
}

/* Penalty Spot (Bottom) */
.pitch-markings .pm-pen-spot.bottom {
	bottom: 88px;
	left: 50%;
	width: 4px;
	height: 4px;
	background: rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	border: none;
	transform: translateX(-50%);
}