/*
 * Question du jour — bloc de la colonne de droite de l'accueil.
 * Écrit à la main, hors build Tailwind : le JS dessine des éléments que la purge
 * ne verrait pas dans les .php. Couleur de marque via --qdj-accent (Noovo par
 * défaut) : une station TVA la redéfinit sans toucher à ce fichier.
 */
.qdj {
	--qdj-accent: #343bff;
	--qdj-accent-fonce: #082e93;
	--qdj-texte: #1e1e1e;
	--qdj-discret: #555555;
	--qdj-fond-barre: #e5e6e5;

	padding: 1.25rem;
	border-radius: 10px;
	border-top: 4px solid var(--qdj-accent);
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
	color: var(--qdj-texte);
}

.qdj[hidden] { display: none; }

.qdj__titre { margin: 0 0 0.75rem; }

.qdj__question {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
}

.qdj__reponses {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
	gap: 0.5rem;
}

.qdj__reponse {
	padding: 0.625rem 0.75rem;
	border: 2px solid var(--qdj-accent);
	border-radius: 6px;
	background: #fff;
	color: var(--qdj-accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.qdj__reponse:hover,
.qdj__reponse:focus-visible {
	background: var(--qdj-accent);
	color: #fff;
	outline: none;
}

.qdj__reponse:disabled { opacity: 0.5; cursor: progress; }

.qdj__message {
	margin: 0.75rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.qdj__message:first-child { margin-top: 0; }
.qdj__message.is-discret { color: var(--qdj-discret); font-size: 0.8125rem; }
.qdj__message.is-erreur { color: #b32d2e; }

.qdj__resultats { margin: 0; padding: 0; list-style: none; }
.qdj__resultat + .qdj__resultat { margin-top: 0.75rem; }

.qdj__resultat-tete {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.25rem;
	font-size: 0.9375rem;
}

.qdj__resultat-pct { font-weight: 700; }
.qdj__resultat.is-choix .qdj__resultat-rep { font-weight: 700; }

.qdj__barre {
	height: 0.625rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--qdj-fond-barre);
}

.qdj__barre span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--qdj-accent-fonce), var(--qdj-accent));
	transition: width 0.6s ease-out;
}
