:root {
	--papier: #F7F5F1;
	--encre: #151B24;
	--accent: #DD8736;
	--doux: rgba(21, 27, 36, 0.62);
	--trait: rgba(21, 27, 36, 0.12);
	--carte: rgba(255, 255, 255, 0.7);
	--ombre: 0 1px 2px rgba(21, 27, 36, 0.04), 0 8px 24px rgba(21, 27, 36, 0.06);
}

@media (prefers-color-scheme: dark) {
	:root {
		--papier: #151B24;
		--encre: #F7F5F1;
		--doux: rgba(247, 245, 241, 0.62);
		--trait: rgba(247, 245, 241, 0.14);
		--carte: rgba(247, 245, 241, 0.04);
		--ombre: none;
	}
}

* { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--papier);
	color: var(--encre);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"Helvetica Neue", Arial, sans-serif;
	font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.enveloppe {
	width: 100%;
	max-width: 48rem;
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}

a {
	color: inherit;
	text-decoration-color: var(--accent);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 0.08em;
}

a:hover { color: var(--accent); }

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

header {
	padding: clamp(1.5rem, 4vw, 2.25rem) 0;
	border-bottom: 1px solid var(--trait);
}

.barre {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.marque {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.marque img {
	display: block;
	height: 2rem;
	width: auto;
}

.marque .sombre { display: none; }

@media (prefers-color-scheme: dark) {
	.marque .clair { display: none; }
	.marque .sombre { display: block; }
}

nav ul {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	row-gap: 0.5rem;
	gap: clamp(0.9rem, 3vw, 1.75rem);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9375rem;
}

nav a { text-decoration: none; }

nav a:hover { text-decoration: underline; }

.souffle {
	padding: clamp(3.5rem, 11vw, 7rem) 0 clamp(2.5rem, 7vw, 4.5rem);
}

.chapeau, .texte p, .texte li, .jeu p, .captures figcaption {
	text-wrap: pretty;
}

h1 {
	margin: 0 0 1.25rem;
	font-size: clamp(2rem, 1.5rem + 2.6vw, 3.75rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	font-weight: 700;
	text-wrap: balance;
}

.chapeau {
	margin: 0;
	max-width: 56ch;
	font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
	color: var(--doux);
	text-wrap: pretty;
}

section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }

h2 {
	margin: 0 0 2rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	color: var(--doux);
}

.jeux {
	display: grid;
	gap: 1.25rem;
}

.jeu {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: clamp(1.5rem, 4vw, 2rem);
	background: var(--carte);
	border: 1px solid var(--trait);
	border-radius: 14px;
	box-shadow: var(--ombre);
}

.jeu-tete {
	display: flex;
	align-items: center;
	gap: 0.9rem;
}

.jeu-icone {
	flex: none;
	width: clamp(48px, 11vw, 60px);
	height: auto;
	border-radius: 20%;
	box-shadow: var(--ombre);
}

.jeu h3 {
	margin: 0;
	font-size: 1.375rem;
	letter-spacing: -0.015em;
}

.jeu p {
	margin: 0;
	max-width: 62ch;
	color: var(--doux);
}

.etat {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-start;
	margin-top: 0.25rem;
	padding: 0.3rem 0.7rem;
	border: 1px solid var(--trait);
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--doux);
}

.etat::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 2px;
	background: var(--accent);
	transform: rotate(14deg);
}

.detail {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.875rem;
	color: var(--doux);
}

.bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.875rem;
	padding: 0.7rem 1.4rem;
	border: 1px solid transparent;
	border-radius: 12px;
	background: var(--accent);
	color: #151B24;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: transform 0.12s ease, filter 0.12s ease;
}

.bouton:hover {
	color: #151B24;
	filter: brightness(1.06);
}

.bouton:active { transform: translateY(1px); }

.bouton-doux {
	background: transparent;
	border-color: var(--trait);
	color: var(--encre);
}

.bouton-doux:hover {
	color: var(--encre);
	border-color: var(--accent);
	filter: none;
}

.actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin: 0.5rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
	.bouton { transition: none; }
}

.texte h2 {
	margin: 2.75rem 0 0.6rem;
	font-size: 1.125rem;
	font-weight: 700;
	text-transform: none;
	letter-spacing: -0.01em;
	color: var(--encre);
}

.texte h2:first-of-type { margin-top: 2.25rem; }

.texte p, .texte ul { margin: 0 0 1.1rem; }

.texte ul { padding-left: 1.15rem; }

.texte li { margin-bottom: 0.4rem; }

.resume {
	padding: clamp(1.25rem, 4vw, 1.75rem);
	background: var(--carte);
	border: 1px solid var(--trait);
	border-left: 3px solid var(--accent);
	border-radius: 12px;
}

.resume p:last-child { margin-bottom: 0; }

.date {
	margin-bottom: 2.5rem;
	font-size: 0.875rem;
	color: var(--doux);
}

footer {
	padding: clamp(2.5rem, 6vw, 3.5rem) 0 clamp(3rem, 7vw, 4rem);
	border-top: 1px solid var(--trait);
	font-size: 0.875rem;
	color: var(--doux);
}

.pied {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem 2rem;
	flex-wrap: wrap;
}

.pied ul {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pied a { text-decoration: none; }

.pied a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}

.entete-jeu {
	display: flex;
	align-items: flex-start;
	gap: clamp(1rem, 3vw, 1.5rem);
	padding-top: clamp(2.5rem, 8vw, 4.5rem);
}

.entete-jeu img {
	width: clamp(64px, 12vw, 88px);
	height: auto;
	border-radius: 20%;
	box-shadow: var(--ombre);
}

.entete-jeu h1 {
	margin-bottom: 0.75rem;
	font-size: clamp(2rem, 1.5rem + 2.4vw, 3rem);
}

.captures {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(9.5rem, 1fr);
	gap: clamp(0.9rem, 2.5vw, 1.5rem);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	padding-bottom: 1.5rem;
	margin-bottom: -0.5rem;
	scrollbar-width: thin;
}

@media (max-width: 48rem) {
	.captures {
		--marge: clamp(1.25rem, 5vw, 2.5rem);
		grid-auto-columns: min(78%, 20rem);
		scroll-snap-type: x mandatory;
		margin-left: calc(var(--marge) * -1);
		margin-right: calc(var(--marge) * -1);
		padding-left: var(--marge);
		padding-right: var(--marge);
		scroll-padding-left: var(--marge);
	}

	.captures { scrollbar-width: none; }
	.captures::-webkit-scrollbar { display: none; }

	.appareil { padding: 0.35rem; border-radius: 1.4rem; }
	.appareil img { border-radius: 1.1rem; }
}

.captures:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 4px;
	border-radius: 8px;
}

.captures figure {
	margin: 0;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

.captures figcaption {
	margin-top: 0.85rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	color: var(--doux);
}

.appareil {
	position: relative;
	padding: 0.5rem;
	border-radius: 1.75rem;
	background: linear-gradient(158deg, #39404f 0%, #1b2029 42%, #10141b 100%);
	box-shadow: 0 2px 4px rgba(10, 13, 18, 0.24), 0 18px 36px rgba(10, 13, 18, 0.28);
}

.appareil::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	pointer-events: none;
}

.appareil img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 1.3rem;
	background: #13151A;
}

.points {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 0.75rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.points li {
	padding: 0.35rem 0.8rem;
	border: 1px solid var(--trait);
	border-radius: 999px;
	font-size: 0.875rem;
	color: var(--doux);
}

.jeu a.titre {
	text-decoration: none;
	color: inherit;
}

.jeu a.titre:hover { color: var(--accent); }

