/* =========================================================================
   Réservation de Sièges - Mine en Scène
   Styles des encarts d'événements et du formulaire d'inscription
   ========================================================================= */

/* --- Encart événement --- */

.rsm-ev-encart {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	max-width: 480px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.07);
	transition: box-shadow 0.2s ease;
}

.rsm-ev-encart:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.rsm-ev-encart--complet {
	opacity: 0.75;
}

.rsm-ev-corps {
	padding: 1.3em 1.4em 0.8em;
}

.rsm-ev-titre {
	margin: 0 0 0.4em;
	font-size: 1.15em;
	line-height: 1.3;
}

.rsm-ev-date {
	margin: 0 0 0.9em;
	color: #555;
	font-size: 0.92em;
}

.rsm-ev-icone {
	margin-right: 0.3em;
}

.rsm-ev-description {
	font-size: 0.95em;
	color: #444;
	margin-bottom: 0.5em;
}

.rsm-ev-description p {
	margin: 0 0 0.5em;
}

/* --- Pied de carte : méta + bouton --- */

.rsm-ev-pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	padding: 0.9em 1.4em;
	background: #f7f7f7;
	border-top: 1px solid #e8e8e8;
	flex-wrap: wrap;
}

.rsm-ev-meta {
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

.rsm-ev-prix {
	font-weight: 700;
	font-size: 1em;
}

.rsm-ev-prix--gratuit {
	color: #2e7d32;
}

.rsm-ev-places {
	font-size: 0.88em;
	font-weight: 600;
	padding: 0.2em 0.6em;
	border-radius: 4px;
	display: inline-block;
}

.rsm-ev-places--ok {
	background: #e8f5e9;
	color: #2e7d32;
}

.rsm-ev-places--peu {
	background: #fff3e0;
	color: #e65100;
}

.rsm-ev-places--complet {
	background: #fce4ec;
	color: #b71c1c;
}

/* --- Bouton --- */

.rsm-ev-bouton {
	display: inline-block;
	background: #c62828;
	color: #fff;
	text-decoration: none;
	padding: 0.55em 1.2em;
	border-radius: 4px;
	font-size: 0.95em;
	font-weight: 600;
	transition: background 0.15s ease;
	white-space: nowrap;
}

.rsm-ev-bouton:hover {
	background: #b71c1c;
	color: #fff;
}

.rsm-ev-bouton--inactif {
	display: inline-block;
	background: #bdbdbd;
	color: #fff;
	padding: 0.55em 1.2em;
	border-radius: 4px;
	font-size: 0.95em;
	font-weight: 600;
	cursor: default;
}

/* --- Formulaire d'inscription --- */

.rsm-ev-resa {
	max-width: 540px;
	margin: 0 auto;
}

.rsm-ev-resa-entete {
	margin-bottom: 1.2em;
	padding-bottom: 1em;
	border-bottom: 2px solid #e0e0e0;
}

.rsm-ev-resa-entete h3 {
	margin: 0 0 0.3em;
}

.rsm-ev-resa-entete p {
	margin: 0;
	color: #555;
	font-size: 0.95em;
}

.rsm-ev-formulaire {
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	padding: 1.2em;
}

.rsm-ev-champ {
	margin-bottom: 1em;
}

.rsm-ev-champ label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
}

.rsm-ev-champ input,
.rsm-ev-champ textarea {
	width: 100%;
	max-width: 420px;
	padding: 0.5em;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
	font-family: inherit;
	resize: vertical;
}

.rsm-ev-message {
	color: #c0392b;
	font-weight: 600;
	min-height: 1.2em;
}

.rsm-ev-bouton-valider {
	background: #c62828;
	color: #fff;
	border: none;
	padding: 0.7em 1.5em;
	font-size: 1em;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

.rsm-ev-bouton-valider:hover {
	background: #b71c1c;
}

.rsm-ev-bouton-valider:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.rsm-ev-confirmation {
	background: #edf7ed;
	border: 1px solid #b8e0bb;
	color: #1e4620;
	padding: 1.2em;
	border-radius: 6px;
	font-weight: 600;
	margin-top: 1em;
}

/* --- Sélection de créneaux dans le formulaire d'inscription --- */

.rsm-ev-creneaux-choix {
	display: flex;
	flex-direction: column;
	gap: 0.6em;
}

.rsm-ev-creneau-radio {
	display: flex;
	align-items: center;
	gap: 0.7em;
	padding: 0.5em 0.8em;
	border: 1px solid #ddd;
	border-radius: 5px;
	cursor: pointer;
	transition: background 0.1s ease;
	max-width: 420px;
}

.rsm-ev-creneau-radio:hover {
	background: #f5f5f5;
}

.rsm-ev-creneau-radio input[type="radio"] {
	margin: 0;
	width: auto;
}

.rsm-ev-creneau-label {
	display: flex;
	flex-direction: column;
	gap: 0.2em;
}

.rsm-ev-creneau-date {
	font-size: 0.9em;
	color: #555;
}

/* --- Dans l'encart : liste des créneaux --- */

.rsm-ev-creneaux {
	margin-top: 0.8em;
}

.rsm-ev-creneaux-titre {
	font-weight: 600;
	margin: 0 0 0.4em;
	font-size: 0.9em;
}

.rsm-ev-creneaux-liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

.rsm-ev-creneau {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.8em;
	font-size: 0.9em;
}

.rsm-ev-creneau--complet .rsm-ev-creneau-date {
	text-decoration: line-through;
	color: #aaa;
}

.rsm-ev-encart--ferme .rsm-ev-corps,
.rsm-ev-encart--ferme .rsm-ev-pied {
	opacity: 0.7;
}

/* --- Champ nombre de personnes --- */
.rsm-ev-champ-nb input[type="number"] {
	width: 80px;
	max-width: 80px;
}

.rsm-ev-nb-aide {
	display: block;
	margin-top: 0.3em;
	font-size: 0.88em;
	color: #666;
	font-style: italic;
}

/* --- Liste dynamique des joueurs --- */

.rsm-ev-joueurs {
	margin-bottom: 1em;
}

.rsm-ev-joueurs > label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}

.rsm-ev-joueurs-aide {
	display: block;
	font-size: 0.88em;
	color: #666;
	font-style: italic;
	margin-bottom: 0.7em;
}

.rsm-ev-joueurs-liste {
	list-style: none;
	margin: 0 0 0.6em;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
}

.rsm-ev-joueur-ligne {
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.rsm-ev-joueur-ligne input {
	flex: 1;
	max-width: 300px;
	padding: 0.45em 0.6em;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: inherit;
}

.rsm-ev-suppr-joueur {
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 28px;
	height: 28px;
	cursor: pointer;
	font-size: 1em;
	color: #888;
	line-height: 1;
	padding: 0;
	transition: background 0.1s, color 0.1s;
}

.rsm-ev-suppr-joueur:hover {
	background: #fce4ec;
	border-color: #c62828;
	color: #c62828;
}

.rsm-ev-ajouter-joueur {
	font-size: 0.9em;
	padding: 0.3em 0.8em;
}

.rsm-ev-ajouter-joueur:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
