@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(5, 8, 15, 0.65);
	backdrop-filter: blur(2px);
	z-index: 1090;
	display: none;
}

#infos-joueur {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 480px;
	width: calc(100% - 32px);
	height: auto;
	background: linear-gradient(180deg, #131f30 0%, var(--gamer-bg, #0f172a) 100%);
	color: var(--gamer-text, #f8fafc);
	border: 1px solid var(--gamer-border, rgba(255, 255, 255, 0.1));
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
	padding: 0;
	font-size: 13px;
	line-height: 1.5;
	z-index: 1100;
	display: none;
}

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

#infos-joueur .player-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 0;
	padding: 10px 16px 8px;
	background: rgba(255, 255, 255, 0.03);
	border-bottom: 1px solid var(--gamer-border, rgba(255, 255, 255, 0.1));
}

#infos-joueur .player-modal-title {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.01em;
	text-transform: uppercase;
}

#infos-joueur .player-modal-sub {
	margin-top: 3px;
	font-size: 9.5px;
	opacity: 0.75;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

#infos-joueur .player-modal-close {
	border: none;
	background: rgba(255, 255, 255, 0.06);
	color: #e5e7eb;
	font-size: 13px;
	line-height: 1;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	flex: none;
}

#infos-joueur .player-modal-close:hover {
	background: rgba(239, 68, 68, 0.25);
	color: #fff;
}

#infos-joueur .player-modal-body {
	margin-top: 0;
	padding: 4px 14px 12px;
	overflow-y: auto;
	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;
}

/* Neutralise les hauteurs/largeurs fixes héritées de newstylejoueurs.css (menu flottant
   d'origine, width:205px;height:115px;float:left) qui écrasaient les nouvelles cartes
   d'options et forçaient un scroll interne inutile. */
#infos-joueur #menuc2p,
#infos-joueur #menuconsignes {
	width: auto !important;
	height: auto !important;
	float: none !important;
}

/* Hero : avatar (tête + maillot complet) + badge Leader flottant */
#infos-joueur .player-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-bottom: 0;
}

#infos-joueur .player-hero-avatar {
	position: relative;
	display: inline-flex;
}

#infos-joueur .player-traits {
	position: absolute;
	right: 4px;
	bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
	z-index: 3;
}

#infos-joueur .player-traits .badge {
	font-size: 0.62em;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 4px 9px;
	border-radius: 999px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Vue Infos générales : panneau unique, lignes séparées par un filet */
#infos-joueur #infosstats {
	width: auto;
	height: auto;
	float: none;
	overflow: hidden;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--gamer-border, rgba(255, 255, 255, 0.08));
	border-radius: 10px;
	margin-top: 0px;
}

#infos-joueur .stat-tile {
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 6px 9px;
	min-width: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.07);
	text-align: left !important;
}

#infos-joueur .stat-tile:nth-last-child(-n+2) {
	border-bottom: none;
}

#infos-joueur .stat-icon {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #fff;
	background: var(--gamer-cyan, #06b6d4);
}

#infos-joueur .stat-icon-blue {
	background: #2563eb;
}

#infos-joueur .stat-icon-yellow {
	background: #ca8a04;
}

#infos-joueur .stat-icon-green {
	background: #16a34a;
}

#infos-joueur .stat-icon-purple {
	background: #7c3aed;
}

#infos-joueur .stat-icon-red {
	background: #dc2626;
}

#infos-joueur .stat-icon-orange {
	background: #ea580c;
}

#infos-joueur .stat-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	overflow: hidden;
	text-align: left !important;
}

#infos-joueur .stat-label {
	font-size: 8.5px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--gamer-text-muted, #94a3b8);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left !important;
	width: 100%;
}

#infos-joueur .stat-value {
	font-size: 11.5px;
	font-weight: 600;
	color: var(--gamer-text, #f8fafc);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left !important;
	width: 100%;
}

#infos-joueur .stat-value small {
	font-size: 0.8em;
	font-weight: 400;
	color: var(--gamer-text-muted, #94a3b8);
}

/* Vue Caractéristiques : total mis en avant sous la grille de stats */
#infos-joueur .stat-total {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	padding: 9px 14px;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(37, 99, 235, 0.15));
	border: 1px solid rgba(6, 182, 212, 0.35);
}

#infos-joueur .stat-total-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--gamer-cyan, #06b6d4);
}

#infos-joueur .stat-total-value {
	font-size: 16px;
	font-weight: 800;
	color: #fff;
}

/* Vue Coups de pied / Consignes : options sélectionnables */
#infos-joueur .option-card {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	margin-bottom: 7px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--gamer-border, rgba(255, 255, 255, 0.1));
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s;
}

#infos-joueur .option-card:last-child {
	margin-bottom: 0;
}

#infos-joueur .option-card:hover {
	background: rgba(255, 255, 255, 0.06);
}

#infos-joueur .option-card:has(input:checked) {
	background: rgba(37, 99, 235, 0.16);
	border-color: #3b82f6;
}

#infos-joueur .option-icon {
	flex: none;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	color: #fff;
	background: var(--gamer-cyan, #06b6d4);
}

#infos-joueur .option-icon-blue {
	background: #2563eb;
}

#infos-joueur .option-icon-yellow {
	background: #ca8a04;
}

#infos-joueur .option-icon-green {
	background: #16a34a;
}

#infos-joueur .option-icon-red {
	background: #dc2626;
}

#infos-joueur .option-label {
	flex: 1;
	font-size: 12px;
	font-weight: 600;
	color: #e5e7eb;
	text-align: left;
}

#infos-joueur .option-card input[type="checkbox"],
#infos-joueur .option-card input[type="radio"] {
	flex: none;
	width: 17px;
	height: 17px;
	accent-color: #3b82f6;
	cursor: pointer;
}

/* 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 {
	display: flex;
	align-items: center;
	gap: 7px;
	font-weight: 700;
	font-size: 12.5px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--gamer-cyan, #06b6d4);
	margin-bottom: 10px;
}

#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 !important;
	width: auto !important;
	height: auto !important;
	background: none !important;
	background-image: none !important;
	margin: 8px 0 0 0 !important;
	padding: 0 !important;
	border-top: none !important;
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: 6px !important;
}

#infos-joueur #menu-joueur2 a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	padding: 7px 6px !important;
	border-radius: 8px !important;
	font-size: 10.5px !important;
	font-weight: 600;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid var(--gamer-border, rgba(255, 255, 255, 0.1));
	color: #e5e7eb !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background 0.15s, border-color 0.15s;
}

#infos-joueur #menu-joueur2 a i {
	font-size: 11px;
	color: var(--gamer-cyan, #06b6d4);
	flex: none;
}

#infos-joueur #menu-joueur2 a:hover {
	background: rgba(37, 99, 235, 0.18) !important;
	border-color: rgba(59, 130, 246, 0.6);
	transform: none !important;
}

#infos-joueur #menu-joueur2 a.active {
	background: rgba(37, 99, 235, 0.16) !important;
	border-color: #3b82f6;
	color: #fff !important;
}

#infos-joueur #menu-joueur2 a.active i {
	color: #60a5fa;
}

#infos-joueur #menu-joueur2 .reserve-action,
#infos-joueur #menu-joueur2 a[style*="dc3545"] {
	grid-column: 1 / -1;
}

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

	#infos-joueur .stat-tile {
		gap: 6px;
		padding: 6px 7px;
	}

	#infos-joueur .stat-icon {
		width: 22px;
		height: 22px;
		font-size: 9px;
	}

	#infos-joueur .stat-label {
		font-size: 8px;
		letter-spacing: 0.01em;
		white-space: normal;
		line-height: 1.15;
	}

	#infos-joueur .stat-value {
		font-size: 11px;
	}

	#infos-joueur #menu-joueur2 {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	/* 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;
}

/* Cette règle du "modern wrapper" est déclarée après le bloc mobile plus haut
   et le réécrase (même spécificité, ordre de cascade) : sur mobile le terrain
   se retrouvait donc toujours avec 20px de padding + 15px de margin de chaque
   côté au lieu d'être en pleine largeur. On la réaffirme ici, après. */
@media (max-width: 576px) {
	#espace_joueurs {
		margin-left: 0;
		margin-right: 0;
		margin-top: 0;
		padding-left: 0;
		padding-right: 0;
		padding-top: 0;
		background: transparent;
		box-shadow: none;
	}

	#espace_joueurs .layout {
		margin-top: 0;
	}
}

#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%);
}

/* Nouveaux styles premium pour les boutons Dispositif et Coaching du terrain */
.dispositif-btn-wrapper {
	position: absolute;
	bottom: 15px;
	left: 15px;
	z-index: 20;
	width: 145px;
	height: 46px;
	background: rgba(16, 16, 16, 0.95);
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: flex-start;
	padding-left: 12px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.dispositif-btn-wrapper:hover {
	border-color: rgba(255, 255, 255, 0.45) !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75) !important;
}

.dispositif-btn-wrapper select option {
	background: #111418;
	color: #fff;
}

.coaching-btn-wrapper {
	position: absolute;
	bottom: 15px;
	right: 15px;
	z-index: 20;
	width: 145px;
	height: 46px;
	background: rgba(16, 16, 16, 0.95);
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: space-around;
	padding: 0 8px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.coaching-btn-wrapper:hover {
	border-color: rgba(255, 255, 255, 0.45) !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.75) !important;
}

.coaching-icon-btn {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 33%;
	transition: transform 0.2s, color 0.2s;
	outline: none;
}

.coaching-icon-btn:hover {
	transform: scale(1.2);
	color: #06b6d4 !important;
}