.adjectif-quiz {
width: min(100%, 68rem);
margin: 3rem 0 4rem;
padding: 1.25rem;
border: 1px solid var(--couleur-bordure);
border-radius: 8px;
background: #fff;
}

.adjectif-quiz,
.adjectif-quiz * {
box-sizing: border-box;
}

.adjectif-quiz p {
margin: 0;
padding: 0;
color: inherit;
font: inherit;
text-align: left;
}

.adjectif-quiz__loading {
color: #666;
font: 1rem/1.5 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.adjectif-quiz__top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.25rem;
}

.adjectif-quiz__progress-text {
color: #666;
font: 600 0.82rem/1.3 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
letter-spacing: 0.08em;
text-transform: uppercase;
}

.adjectif-quiz__score {
color: var(--couleur-texte);
font: 600 0.95rem/1.3 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
white-space: nowrap;
}

.adjectif-quiz__bar {
height: 0.35rem;
margin-bottom: 2rem;
overflow: hidden;
border-radius: 999px;
background: #e8ecef;
}

.adjectif-quiz__bar-fill {
display: block;
width: 0;
height: 100%;
border-radius: inherit;
background: var(--couleur-lien);
transition: width 0.25s ease;
}

.adjectif-quiz__layout {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
gap: 2rem;
align-items: start;
}

.adjectif-quiz__question {
margin: 0 0 1rem;
color: #4d4d4d;
font-family: "Fraunces", Georgia, "Times New Roman", serif;
font-size: 1.85rem;
font-weight: 600;
line-height: 1.15;
letter-spacing: 0;
}

.adjectif-quiz__prompt {
max-width: 38rem;
margin-bottom: 1.5rem;
font: 1.08rem/1.55 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.adjectif-quiz__options {
display: grid;
gap: 0.7rem;
max-width: 28rem;
margin: 0;
padding: 0;
}

.adjectif-quiz__option {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.8rem;
min-height: 3rem;
width: 100%;
padding: 0.72rem 0.9rem;
border: 1px solid #d5dce0;
border-radius: 6px;
color: #3f3f3f;
background: #fff;
font: 500 1rem/1.35 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
text-align: left;
cursor: pointer;
transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.adjectif-quiz__option:hover,
.adjectif-quiz__option:focus-visible {
border-color: var(--couleur-lien);
background: #f4fafc;
outline: none;
}

.adjectif-quiz__option.is-correct {
border-color: #2f7d4f;
color: #1f5f3b;
background: #eef8f1;
}

.adjectif-quiz__option.is-wrong {
border-color: #b65a4b;
color: #8a3c31;
background: #fbf1ef;
}

.adjectif-quiz__option:disabled {
cursor: default;
}

.adjectif-quiz__feedback {
min-height: 2rem;
margin-top: 1rem;
font: 600 0.98rem/1.4 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.adjectif-quiz__feedback.is-correct {
color: #1f5f3b;
}

.adjectif-quiz__feedback.is-wrong {
color: #8a3c31;
}

.adjectif-quiz__actions {
display: flex;
flex-wrap: wrap;
gap: 0.7rem;
margin-top: 1.25rem;
}

.adjectif-quiz__next,
.adjectif-quiz__restart {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.55rem;
min-height: 2.75rem;
padding: 0.62rem 1rem;
border: 1px solid var(--couleur-lien);
border-radius: 6px;
color: #fff;
background: var(--couleur-lien);
font: 600 0.96rem/1.2 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.adjectif-quiz__next:hover,
.adjectif-quiz__next:focus-visible,
.adjectif-quiz__restart:hover,
.adjectif-quiz__restart:focus-visible {
border-color: #1f6f8c;
background: #1f6f8c;
outline: none;
}

.adjectif-quiz__next:disabled {
color: #7b8a91;
background: #edf2f4;
border-color: #d6e0e4;
opacity: 1;
cursor: default;
}

.adjectif-quiz__next:disabled:hover,
.adjectif-quiz__next:disabled:focus-visible {
background: #edf2f4;
border-color: #d6e0e4;
}

.adjectif-quiz__media {
margin: 0;
}

.adjectif-quiz__image {
display: block;
width: 100%;
max-height: 30rem;
object-fit: contain;
border-radius: 6px;
background: #f6f4ee;
}

.adjectif-quiz__result {
max-width: 38rem;
margin: 0 auto;
padding: 1.5rem 0;
text-align: center;
}

.adjectif-quiz__result-title {
margin: 0 0 0.8rem;
color: #4d4d4d;
font-family: "Fraunces", Georgia, "Times New Roman", serif;
font-size: 1.9rem;
font-weight: 600;
line-height: 1.15;
letter-spacing: 0;
}

.adjectif-quiz__result-score {
margin-bottom: 1.25rem;
font: 1.1rem/1.5 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html[data-theme="dark"] .adjectif-quiz {
background: #080808;
border-color: #333;
}

html[data-theme="dark"] .adjectif-quiz__progress-text,
html[data-theme="dark"] .adjectif-quiz__loading {
color: #aaa;
}

html[data-theme="dark"] .adjectif-quiz__bar {
background: #262626;
}

html[data-theme="dark"] .adjectif-quiz__question,
html[data-theme="dark"] .adjectif-quiz__result-title {
color: #e5e5e5;
}

html[data-theme="dark"] .adjectif-quiz__option {
color: #ddd;
background: #111;
border-color: #333;
}

html[data-theme="dark"] .adjectif-quiz__option:hover,
html[data-theme="dark"] .adjectif-quiz__option:focus-visible {
background: #13232a;
border-color: var(--couleur-lien);
}

html[data-theme="dark"] .adjectif-quiz__option.is-correct {
color: #b8e6c8;
background: #0d2315;
border-color: #3d9b63;
}

html[data-theme="dark"] .adjectif-quiz__option.is-wrong {
color: #f0c0b7;
background: #2b1411;
border-color: #b65a4b;
}

html[data-theme="dark"] .adjectif-quiz__next:disabled {
color: #7f8c92;
background: #1b2226;
border-color: #303a3f;
}

html[data-theme="dark"] .adjectif-quiz__next:disabled:hover,
html[data-theme="dark"] .adjectif-quiz__next:disabled:focus-visible {
background: #1b2226;
border-color: #303a3f;
}

html[data-theme="dark"] .adjectif-quiz__image {
background: #151515;
}

@media (max-width: 720px) {
	.adjectif-quiz {
	margin-top: 2.25rem;
	padding: 1rem;
	}

	.adjectif-quiz__top {
	align-items: flex-start;
	flex-direction: column;
	gap: 0.35rem;
	}

	.adjectif-quiz__layout {
	grid-template-columns: 1fr;
	gap: 1.4rem;
	}

	.adjectif-quiz__media {
	order: -1;
	}

	.adjectif-quiz__question {
	font-size: 1.45rem;
	}

	.adjectif-quiz__prompt {
	font-size: 1rem;
	}

	.adjectif-quiz__options {
	max-width: none;
	}

	.adjectif-quiz__image {
	max-height: 22rem;
	}
}
