/* Musiques au Sommet — styles frontend, mobile-first */

.mas-frontend {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	color: #fff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mas-bandeau {
	width: 100%;
	overflow: hidden;
}

.mas-bandeau-img {
	width: 100%;
	height: auto;
	display: block;
}

.mas-content {
	flex: 1;
	padding: 20px 16px 32px;
	max-width: 600px;
	margin: 0 auto;
	width: 100%;
	box-sizing: border-box;
}

.mas-titre {
	/* !important nécessaire : certains thèmes appliquent text-transform/
	   letter-spacing sur les H1 avec une spécificité CSS qui l'emporterait
	   sinon sur notre règle. */
	font-size: clamp(15px, 5vw, 20px) !important;
	line-height: 1.25;
	text-transform: none !important;
	letter-spacing: normal !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	margin: 8px 0 4px;
}

.mas-sous-titre {
	font-size: 18px;
	font-weight: 600;
	text-transform: none;
	letter-spacing: normal;
	text-align: center;
	opacity: 0.95;
	margin: 0 0 16px;
	line-height: 1.35;
}

/* Le nom du groupe, dans le sous-titre, ne doit jamais être coupé en plein
   milieu : si la phrase complète ne tient pas sur une ligne, c'est le nom
   entier qui doit passer à la ligne suivante (pas une partie seulement). */
.mas-sous-titre .mas-groupe-nom {
	white-space: nowrap;
	display: inline-block;
}

.mas-groupe-du-jour {
	font-size: 20px;
	font-weight: 700;
	text-transform: none;
	text-align: center;
	margin: 0 0 4px;
}

.mas-legende {
	font-size: 14px;
	font-style: italic;
	text-transform: none;
	text-align: center;
	opacity: 0.8;
	margin: 0 0 24px;
}

.mas-clos {
	text-align: center;
	font-size: 18px;
	padding: 40px 16px;
}

/* Items de notation */
.mas-item {
	margin-bottom: 22px;
}

.mas-item-label {
	font-size: 16px;
	font-weight: 600;
	margin: 0 0 10px;
}

.mas-scale {
	display: flex;
	gap: 8px;
	justify-content: space-between;
}

.mas-scale-btn {
	flex: 1;
	min-height: 56px;
	font-size: 20px;
	font-weight: 700;
	border: 2px solid rgba(255, 255, 255, 0.5);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border-radius: 10px;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
}

.mas-scale-btn:active {
	transform: scale(0.96);
}

.mas-scale-btn.is-selected {
	background: #fff;
	color: #0b1d3a;
	border-color: #fff;
}

.mas-form-error {
	color: #ffb4b4;
	font-weight: 600;
	text-align: center;
	margin: 16px 0;
}

.mas-submit-btn {
	display: block;
	width: 100%;
	min-height: 56px;
	font-size: 18px;
	font-weight: 700;
	background: #fff;
	color: #0b1d3a;
	border: none;
	border-radius: 12px;
	margin-top: 16px;
	cursor: pointer;
	touch-action: manipulation;
}

.mas-submit-btn:disabled {
	opacity: 0.6;
}

.mas-submit-btn.mas-secondary {
	background: transparent;
	color: #fff;
	border: 2px solid #fff;
}

#mas-thank-you {
	text-align: center;
	padding: 24px 0;
}

#mas-thank-you p {
	font-size: 17px;
	line-height: 1.5;
}

/* Footer */
.mas-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 24px;
	padding: 16px;
	flex-wrap: wrap;
}

.mas-footer-logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mas-footer-logo img,
.mas-footer-logo-img {
	max-height: 100%;
	max-width: 140px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Desktop : on contraint un peu plus la largeur, en bonus seulement */
@media (min-width: 768px) {
	.mas-content {
		padding-top: 32px;
	}

	.mas-scale-btn {
		min-height: 64px;
	}
}
