header,
.entry-title {
	display: none !important;
}

body {
	font-family: "Segoe UI", sans-serif;
	margin: 20px;
	background: #f8f8f8;
}

body.dark {
	background: #121212;
	color: #e0e0e0;
}

/* Bouton toggle clair/sombre */
.theme-toggle {
	width: 60px;
	height: 34px;
	border-radius: 20px;
	border: none;
	background: #ddd;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 18px;
	transition: background 0.2s;
}

/* Mode sombre */
body.dark .theme-toggle {
	background: #444;
}

/* Icônes */
.theme-toggle span {
	opacity: 0.4;
	transition: opacity 0.2s;
}

/* Icône active */
.theme-toggle.light .icon-sun {
	opacity: 1;
}

.theme-toggle.dark .icon-moon {
	opacity: 1;
}


.audio-player {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 18px;
	max-width: 480px;
	margin: 0 auto;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.audio-player-title {
	text-align: center;
	font-size: clamp(16px, 4vw, 20px);
	font-weight: 600;
	margin-bottom: 14px;
	color: #333;
}

#audio-player.dark {
	background: #1e1e1e;
	color: #e0e0e0;
	border: 1px solid #333;
	box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.chant-title {
	font-size: clamp(18px, 4vw, 30px);
}

#audio-player.dark button,
#audio-player.dark select,
#audio-player.dark input {
	background: #2a2a2a;
	color: #eee;
	border-color: #555;
}

#audio-player.dark .waveform {
	filter: brightness(0.7);
}

#audio-player-theme {
	margin-bottom: 10px;
}

body.dark #audio-player-theme button {
	background: #333;
	color: #fff;
	border-color: #555;
}

#wave-container {
	position: relative;
}

#audio-loading {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: none;
	z-index: 10;
	background: rgba(255, 255, 255, 0.6);
	padding: 20px;
	border-radius: 50%;
}

.spinner {
	width: 36px;
	height: 36px;
	border: 4px solid #ddd;
	border-top-color: #ff3b3b;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

.chant-wave {
	width: 100%;
	height: 100px;
	margin-bottom: 10px;
	background: #e9eef3;
	border-radius: 6px;
	position: relative;
}

#audio-player.dark .chant-wave {
	background: #2a2a2a;
}

.chant-time {
	font-size: 20px;
	color: #555;
	margin-bottom: 16px;
	text-align: left;
}

.voice-selector-row {
	margin-bottom: 15px;
}

.voice-selector-row select {
	width: 100%;
}

.voice-selector-inline select {
	width: auto;        /* le select prend juste la place nécessaire */
	flex: 1;            /* il s’étire mais laisse de la place à la case */
	min-width: 150px;   /* pour éviter qu’il devienne trop petit */
}


.voice-selector-inline {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pref-voice {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.9rem;
	white-space: nowrap;
}

.pref-voice input[type="checkbox"] {
	accent-color: #006E6E !important;
	width: 22px;
	height: 22px;
	border-radius: 4px;
	cursor: pointer;
}

.controls-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}

.separator {
	border-top: 1px solid #ddd;
	margin: 16px 0;
}

/* Boutons généraux */
button {
	border: none;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 14px;
	cursor: pointer;
	transition: transform 0.1s, filter 0.1s;
}

/* Neutraliser tout style rouge persistant */
button:active,
button:focus,
button:focus-visible {
	background: inherit !important;
	color: inherit !important;
	box-shadow: none !important;
	outline: none !important;
}

.btn-goto-start {
	width: 50px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #4a90e2;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.btn-goto-start svg {
	width: 24px;
	height: 24px;
	fill: white;
}

.btn-play {
	width: 50px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	background: #4a90e2;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	overflow: hidden;
}

.btn-play svg {
	width: 24px;
	height: 24px;
	fill: white;
	flex-shrink: 0;
}

.btn-play:active,
.btn-play:focus,
.btn-play:focus-visible {
	background: #4a90e2 !important;
	color: white !important;
	box-shadow: none !important;
	outline: none !important;
}

.btn-rewind-3 {
	width: 50px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: #4a90e2;
	border: none;
	border-radius: 6px;
	cursor: pointer;
}

.btn-rewind-3 svg {
	width: 24px;
	height: 24px;
	fill: white;
}

.btn-rewind-3:active {
	transform: scale(0.94);
}

.btn-goto-start,
.btn-play,
.btn-rewind-3,
.btn-set-loop-start,
.btn-set-loop-end {
	background: #006E6E  !important;   /* teal foncé */
	color: #fff;
	border-color: #1a8f8f  !important; /* optionnel : teal encore plus foncé */
	box-shadow: none !important;
	outline: none !important;
}

/* Empêcher tout état persistant */
.btn-goto-start:focus,
.btn-goto-start:active,
.btn-rewind-3:active,
.btn-rewind-3:focus,
.btn-set-loop-start:focus,
.btn-set-loop-start:active,
.btn-set-loop-end:focus,
.btn-set-loop-end:active {
	background: #4a90e2 !important;
	color: #fff !important;
	box-shadow: none !important;
}

/* Effet pression */
.btn-goto-start:active,
.btn-play:active,
.btn-rewind-3:active,
.btn-set-loop-start:active,
.btn-set-loop-end:active {
	transform: scale(0.94);
}

/* Largeur identique pour Définir début / fin */
.btn-set-loop-start,
.btn-set-loop-end {
	width: 150px !important;
	text-align: left;
}

/* Sélecteur vitesse */
.select-speed {
	padding: 8px 10px;
	border-radius: 6px;
	border: 1px solid #ccc;
	font-size: 14px;
	background: #fafafa;
}

/* --- Boucle = case à cocher --- */
.loop-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 18px;
	/* plus gros */
	font-weight: 600;
	/* plus visible */
	cursor: pointer;
}

.loop-checkbox {
	accent-color: #006E6E;
	width: 22px;
	height: 22px;
	cursor: pointer;
}

/* Champs texte */
.loop-start,
.loop-end {
	width: 70px;
	text-align: center;
	padding: 6px;
	border-radius: 6px;
	border: 1px solid #ccc;
	background: #fafafa;
}

/* Pour marquer la région à jouer en boucle */
.loop-marker-start,
.loop-marker-end {
	position: absolute;
	top: 0;
	width: 2px;
	height: 100%;
	/* background: rgba(0, 150, 255, 0.9); */
	background: none;                 /* enlever la couleur pleine */
	border-left: 2px dashed rgba(0, 150, 255, 0.9);   /* trait pointillé */
	pointer-events: none;
	display: none;
	z-index: 10;
}

.loop-zone {
	position: absolute;
	top: 0;
	height: 100%;
	background: rgba(0, 150, 255, 0.2);
	pointer-events: none;
	display: none;
	z-index: 10;
}

@media (max-width: 480px) {

	/* Mettre les lignes Début/Fin en colonne */
	.controls-row:has(.btn-set-loop-start),
	.controls-row:has(.btn-set-loop-end) {
	flex-direction: column;
	align-items: stretch;
	}

	/* Boutons pleine largeur */
	.btn-set-loop-start,
	.btn-set-loop-end {
	width: 100% !important;
	}

	/* Champs pleine largeur */
	.loop-start,
	.loop-end {
	width: 100% !important;
	}
}		