/* -----------------------------------------------------------
   STRUCTURE GÉNÉRALE
----------------------------------------------------------- */

.quiz-header {
	background: #53777a;
	border-radius: 15px;
	padding: 24px 20px;
	box-shadow: 0 3px 12px rgba(0,0,0,0.12);
}

.quiz-header-inner {
	max-width: 900px;
	margin: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.quiz-title-area {
	display: flex;
	align-items: center;
	gap: 18px;
	color: white;
}

.quiz-title-area h1 {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
}

.quiz-title-area p {
	margin: 5px 0 0;
	font-size: 20px;
	opacity: 0.9;
}

/* -----------------------------------------------------------
   SCORE GLOBAL
----------------------------------------------------------- */

.global-score {
	display: flex;
	gap: 10px;
}

.score-box {
	min-width: 75px;
	padding: 10px 14px;
	border-radius: 12px;
	text-align: center;
	background: white;
}

.score-number {
	display: block;
	font-size: 24px;
	font-weight: bold;
	color: #151a20;
}

.score-label {
	font-size: 12px;
	color: #555;
}

.score-success {
	border-bottom: 4px solid #65b891;
}

.score-failure {
	border-bottom: 4px solid #e58b82;
}


/* -----------------------------------------------------------
   CONTENEUR
----------------------------------------------------------- */

.quiz-container {
	max-width: 900px;
	margin: 35px auto;
	padding: 0 20px;
}


/* -----------------------------------------------------------
   CONSIGNE
----------------------------------------------------------- */

.instruction-card {
	padding: 18px 22px;
	margin-bottom: 22px;
	border-radius: 14px;
	background: #f1f6f6;
	border-left: 5px solid #53777a;
	color: #333;
}

.instruction-card span {
	display: block;
	margin-top: 5px;
	color: #53777a;
	font-weight: bold;
}

/* -----------------------------------------------------------
   INFOGRAPHIE
----------------------------------------------------------- */

.infographic-card {
	margin-bottom: 28px;
	padding: 18px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 3px 14px rgba(0,0,0,0.08);
	text-align: center;
	overflow: hidden;
}

.infographic-card img {
	display: block;
	width: 100%;
	max-width: 850px;
	height: auto;
	margin: 0 auto;
	border-radius: 10px;
}

/* -----------------------------------------------------------
   QUESTION
----------------------------------------------------------- */

.question-card {
	display: flex;
	gap: 20px;
	padding: 24px;
	margin-bottom: 18px;
	background: white;
	border-radius: 16px;
	box-shadow: 0 3px 14px rgba(0,0,0,0.08);
	border: 2px solid transparent;
	transition: transform 0.2s, box-shadow 0.2s;
}

.question-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.question-number {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: #53777a;
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 18px;
}

.question-content {
	flex: 1;
}

.sentence {
	font-size: 21px;
	font-weight: 600;
	color: #252b30;
	margin-bottom: 20px;
	line-height: 1.6;
}

.blank {
	display: inline-block;
	min-width: 80px;
	padding: 2px 12px;
	margin: 0 5px;
	text-align: center;
	border-bottom: 3px solid #53777a;
	color: #53777a;
}


/* -----------------------------------------------------------
   RÉPONSES
----------------------------------------------------------- */

.answers {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.answer-option {
	cursor: pointer;
}

.answer-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.answer-button {
	display: inline-block;
	min-width: 85px;
	padding: 10px 18px;
	border: 2px solid #d8e1e1;
	border-radius: 10px;
	background: #fafcfc;
	color: #374548;
	text-align: center;
	font-weight: 600;
	transition: all 0.2s;
}

.answer-option:hover .answer-button {
	border-color: #53777a;
	background: #eef5f5;
}

.answer-option input:checked + .answer-button {
	background: #53777a;
	border-color: #53777a;
	color: white;
	transform: translateY(-2px);
}


/* -----------------------------------------------------------
   CORRECTION
----------------------------------------------------------- */

.question-correcte {
	border-color: #65b891;
	background: #f8fffb;
}

.question-incorrecte {
	border-color: #e58b82;
	background: #fffafa;
}

.feedback {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 18px;
	padding: 12px 15px;
	border-radius: 10px;
}

.feedback-icon {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: white;
	font-weight: bold;
}

.feedback strong,
.feedback small {
	display: block;
}

.feedback small {
	margin-top: 3px;
	opacity: 0.8;
}

.feedback-correct {
	background: #e5f7ed;
	color: #26734d;
}

.feedback-correct .feedback-icon {
	background: #65b891;
}

.feedback-incorrecte {
	background: #fff0ee;
	color: #9c443c;
}

.feedback-incorrecte .feedback-icon {
	background: #e58b82;
}


/* -----------------------------------------------------------
   RÉSULTAT
----------------------------------------------------------- */

.result-card {
	display: flex;
	align-items: center;
	gap: 22px;
	margin-bottom: 25px;
	padding: 25px;
	border-radius: 16px;
	background: #f1f6f6;
}

.result-icon {
	font-size: 40px;
}

.result-content {
	flex: 1;
}

.result-content h2 {
	margin: 0 0 8px;
	color: #333;
}

.result-score strong {
	font-size: 42px;
	color: #53777a;
}

.result-score span {
	font-size: 20px;
	color: #777;
}

.progress-bar {
	height: 12px;
	margin-top: 12px;
	border-radius: 10px;
	background: #dce6e6;
	overflow: hidden;
}

.progress-value {
	height: 100%;
	border-radius: 10px;
	background: #65b891;
}

.result-text {
	margin: 7px 0 0;
	color: #666;
}


/* -----------------------------------------------------------
   BOUTONS
----------------------------------------------------------- */

.quiz-actions {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin: 30px 0;
}

.validate-button,
.restart-button {
	display: inline-block;
	padding: 14px 25px;
	border-radius: 10px;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s, box-shadow 0.2s;
}

.validate-button {
	border: none;
	background: #53777a;
	color: white;
}

.restart-button {
	border: 2px solid #53777a;
	color: #53777a;
	background: white;
}

.validate-button:hover,
.restart-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}


/* -----------------------------------------------------------
   MOBILE
----------------------------------------------------------- */

@media (max-width: 650px){

	.quiz-header-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.quiz-title-area h1 {
		font-size: 23px;
	}

	.global-score {
		justify-content: center;
	}

	.question-card {
		padding: 18px;
		gap: 12px;
	}

	.sentence {
		font-size: 18px;
	}

	.answers {
		flex-direction: column;
	}

	.answer-button {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.quiz-actions {
		flex-direction: column;
	}

	.validate-button,
	.restart-button {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
	}

}