.ls-repertoire {
	max-width: 1100px;
	margin: 0 auto;
}

.ls-repertoire__toolbar {
	margin-bottom: 20px;
}

.ls-repertoire__toolbar input[type="text"] {
	width: 100%;
	max-width: 420px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.ls-back-link a {
	text-decoration: none;
	font-size: 14px;
}

/* ---------- Vue catégories ---------- */

.ls-cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
}

.ls-cat-tile {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
}

.ls-cat-tile__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.ls-cat-tile__title {
	font-size: 17px;
	font-weight: 700;
	color: #a41e2e;
	text-decoration: none;
}

.ls-cat-tile__title:hover {
	text-decoration: underline;
}

.ls-cat-toggle {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 14px;
	color: #888;
	padding: 4px 8px;
	line-height: 1;
}

.ls-cat-toggle:hover {
	color: #a41e2e;
}

.ls-cat-count {
	font-weight: 400;
	color: #888;
	font-size: 13px;
}

.ls-cat-tile__children {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}

.ls-cat-tile__children[hidden] {
	display: none;
}

.ls-cat-child {
	font-size: 13px;
	color: #444;
	text-decoration: none;
	background: #f5f5f5;
	padding: 4px 10px;
	border-radius: 20px;
}

.ls-cat-child:hover {
	background: #eee;
	text-decoration: underline;
}

/* ---------- Toolbar résultats ---------- */

.ls-repertoire__view-toggle {
	display: inline-flex;
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 10px;
}

.ls-view-btn {
	padding: 8px 14px;
	border: none;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
}

.ls-view-btn.active {
	background: #a41e2e;
	color: #fff;
}

#ls-result-count {
	color: #666;
	font-size: 14px;
	margin-bottom: 12px;
}

/* ---------- Fiches club : horizontales, pleine largeur, empilées ---------- */

.ls-repertoire__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ls-card {
	display: grid;
	grid-template-columns: 180px 1fr 240px;
	gap: 20px;
	border: 1px solid #a41e2e;
	border-radius: 8px;
	padding: 18px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ls-card__img {
	width: 100%;
	height: 140px;
	object-fit: contain;
	background: transparent;
	border-radius: 6px;
	padding: 10px;
	box-sizing: border-box;
	align-self: start;
}

.ls-card__img--placeholder {
	background: transparent;
}

.ls-card__title {
	margin: 0 0 6px;
	font-size: 22px;
	color: #a41e2e;
}

.ls-card__disciplines {
	font-size: 13px;
	margin-bottom: 10px;
}

.ls-discipline-link {
	color: #a41e2e;
	text-decoration: none;
}

.ls-discipline-link:hover {
	text-decoration: underline;
}

.ls-card__row {
	font-size: 14px;
	color: #333;
	margin-bottom: 8px;
}

.ls-card__row strong {
	color: #666;
	display: inline-block;
	min-width: 90px;
}

.ls-card__cheque {
	display: inline-block;
	background: #e8f5e9;
	color: #2e7d32;
	padding: 3px 10px;
	border-radius: 4px;
	font-size: 12px;
	margin-top: 4px;
}

.ls-card__actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 12px;
}

.ls-card__btn {
	display: inline-block;
	padding: 8px 14px;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	border: 1px solid;
}

.ls-card__btn--contact {
	background: #a41e2e;
	color: #fff;
	border-color: #a41e2e;
}

.ls-card__btn--contact:hover {
	background: #841723;
}

.ls-card__btn--edit {
	background: #fff;
	color: #a41e2e;
	border-color: #a41e2e;
}

.ls-card__btn--edit:hover {
	background: #fdf2f3;
}

.ls-card__btn--admin {
	background: #fff8e1;
	color: #8a6d00;
	border: 1px dashed #d4af00;
}

.ls-card__btn--admin:hover {
	background: #fff0c2;
}

.ls-card__map {
	width: 100%;
	height: 180px;
	border-radius: 6px;
	background: #f0f0f0;
}

.ls-card__map--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 12px;
	text-align: center;
	padding: 10px;
	box-sizing: border-box;
}

.ls-repertoire__map {
	height: 600px;
	border-radius: 8px;
	overflow: hidden;
}

.ls-no-result {
	color: #888;
}

.ls-repertoire__cta {
	margin-top: 24px;
	text-align: center;
	font-size: 15px;
}

/* Mobile : fiches en une colonne (logo au-dessus, carte en dessous) */
@media (max-width: 700px) {
	.ls-card {
		grid-template-columns: 1fr;
	}
	.ls-card__img {
		height: 120px;
	}
	/* Pas de logo : on retire complètement le bloc pour éviter un grand
	   espace vide entre le bord de la fiche et le nom du club. */
	.ls-card__img--placeholder {
		display: none;
	}
}

/* Anti-débordement : les noms de club, adresses, URLs ou e-mails longs ne
   doivent jamais dépasser du cadre de la fiche, sur aucune taille d'écran. */
.ls-card__title,
.ls-card__row,
.ls-card__disciplines,
.ls-cat-tile__title,
.ls-cat-child,
.ls-form {
	overflow-wrap: break-word;
	word-break: break-word;
}

.ls-card__row a {
	overflow-wrap: break-word;
	word-break: break-word;
}

/* ---------- Formulaires (nouveau club / demande de lien / édition) ---------- */
.ls-form {
	max-width: 640px;
	margin: 0 auto;
	display: grid;
	gap: 14px;
	background: #fff;
	border: 1px solid #a41e2e;
	border-radius: 8px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ls-form label {
	font-weight: 600;
	color: #666;
	display: block;
	margin-bottom: 4px;
}

.ls-form input[type="text"],
.ls-form input[type="email"],
.ls-form input[type="url"],
.ls-form input[type="tel"],
.ls-form textarea,
.ls-form select {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	box-sizing: border-box;
}

.ls-form input:focus,
.ls-form textarea:focus,
.ls-form select:focus {
	outline: none;
	border-color: #a41e2e;
	box-shadow: 0 0 0 2px rgba(164, 30, 46, 0.15);
}

.ls-form .button,
.ls-form button[type="submit"] {
	display: inline-block;
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #a41e2e;
	background: #a41e2e;
	color: #fff;
	cursor: pointer;
	justify-self: start;
}

.ls-form .button:hover,
.ls-form button[type="submit"]:hover {
	background: #841723;
	border-color: #841723;
}

.ls-form__hp {
	position: absolute;
	left: -9999px;
	top: -9999px;
}

.ls-form__msg-success {
	max-width: 640px;
	margin: 0 auto 16px;
	background: #e8f5e9;
	color: #2e7d32;
	padding: 12px 16px;
	border-radius: 6px;
	border: 1px solid #c8e6c9;
}

.ls-form__msg-error {
	max-width: 640px;
	margin: 0 auto 16px;
	background: #ffebee;
	color: #c62828;
	padding: 12px 16px;
	border-radius: 6px;
	border: 1px solid #ffcdd2;
}
