/* Tirage 32 cartes - v1.0.0 */
.t32 {
	--t32-navy: #241c4a;
	--t32-gold: #c49840;
	--t32-red: #b22234;
	--t32-ink: #1e1e28;
	--t32-paper: #ffffff;
	--t32-bg: #f6f3ec;
	margin: 1.5em 0;
	padding: 18px 16px 12px;
	background: var(--t32-bg);
	border: 1px solid #e3dccb;
	border-radius: 12px;
	color: var(--t32-ink);
	font-size: 16px;
	line-height: 1.5;
}
.t32 * { box-sizing: border-box; }
.t32-title {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: 1.15em;
	color: var(--t32-navy);
	text-align: center;
}
.t32-intro { text-align: center; }
.t32-intro p { margin: 0 0 12px; }
.t32-q {
	display: block;
	width: 100%;
	max-width: 460px;
	margin: 0 auto 12px;
	padding: 10px 12px;
	border: 1px solid #cfc6b0;
	border-radius: 8px;
	font-size: 16px;
	background: #fff;
}
.t32-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--t32-navy);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.t32-btn:hover { background: #3a2f6e; }
.t32-btn:active { transform: scale(.98); }
.t32-btn:disabled { opacity: .7; cursor: default; }
.t32-again { display: block; margin: 18px auto 6px; }
.t32-note {
	margin: 12px 0 0;
	font-size: 12px;
	color: #6b6556;
	text-align: center;
}
.t32-status, .t32-question {
	text-align: center;
	font-weight: 600;
	color: var(--t32-navy);
	margin: 0 0 12px;
}
.t32-question { font-style: italic; font-weight: 400; }

/* Cartes */
.t32-card {
	position: relative;
	width: 78px;
	height: 116px;
	border-radius: 8px;
	flex: none;
}
.t32-face {
	background: var(--t32-paper);
	border: 2px solid var(--t32-navy);
	box-shadow: 0 2px 6px rgba(0,0,0,.18);
	color: var(--t32-navy);
	animation: t32-flip .45s ease both;
}
.t32-face::after {
	content: "";
	position: absolute;
	inset: 4px;
	border: 1px solid var(--t32-gold);
	border-radius: 5px;
	pointer-events: none;
}
.t32-red { color: var(--t32-red); }
.t32-corner {
	position: absolute;
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
	font-size: 14px;
}
.t32-corner b { font-weight: 700; }
.t32-corner i { font-style: normal; font-size: 12px; }
.t32-tl { top: 8px; left: 8px; }
.t32-br { bottom: 8px; right: 8px; transform: rotate(180deg); }
.t32-mid {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	font-weight: 700;
	font-family: Georgia, "Times New Roman", serif;
}
.t32-back {
	padding: 0;
	border: 2px solid var(--t32-gold);
	background-color: var(--t32-navy);
	background-image:
		repeating-linear-gradient(45deg, rgba(196,152,64,.35) 0 2px, transparent 2px 9px),
		repeating-linear-gradient(-45deg, rgba(196,152,64,.35) 0 2px, transparent 2px 9px);
	box-shadow: 0 2px 5px rgba(0,0,0,.2);
	cursor: pointer;
	transition: transform .15s, opacity .2s;
}
.t32-back:hover:not(:disabled) { transform: translateY(-4px); }
.t32-back:focus-visible { outline: 3px solid var(--t32-gold); outline-offset: 2px; }
.t32-back.t32-picked { opacity: .15; transform: none; cursor: default; }

.t32-small { width: 48px; height: 72px; border-radius: 6px; }
.t32-small .t32-corner { font-size: 11px; }
.t32-small .t32-corner i { font-size: 9px; }
.t32-small .t32-tl { top: 5px; left: 5px; }
.t32-small .t32-br { bottom: 5px; right: 5px; }
.t32-small .t32-mid { font-size: 20px; }
.t32-small.t32-face::after { inset: 3px; }
.t32-small .t32-br { display: none; }
.t32-small .t32-mid { padding-top: 10px; }

/* Grille de choix */
.t32-grid {
	display: grid;
	grid-template-columns: repeat(8, 48px);
	gap: 8px;
	justify-content: center;
}

/* Croix */
.t32-cross {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 120px));
	grid-template-areas:
		".      avenir   ."
		"pour   synthese contre"
		".      resultat .";
	gap: 10px 8px;
	justify-content: center;
	margin: 8px 0 18px;
}
.t32-slot { display: flex; flex-direction: column; align-items: center; text-align: center; }
.t32-slot-label { margin-top: 6px; font-size: 12px; line-height: 1.25; color: #4a4536; }
.t32-pos-pour     { grid-area: pour; }
.t32-pos-contre   { grid-area: contre; }
.t32-pos-avenir   { grid-area: avenir; }
.t32-pos-resultat { grid-area: resultat; }
.t32-pos-synthese { grid-area: synthese; }

.t32-reading { display: grid; gap: 10px; }
.t32-item, .t32-synth {
	background: #fff;
	border-left: 4px solid var(--t32-gold);
	border-radius: 6px;
	padding: 10px 12px;
}
.t32-item h4, .t32-synth h4 { margin: 0 0 4px; font-size: 15px; color: var(--t32-navy); }
.t32-item p, .t32-synth p { margin: 0 0 4px; }
.t32-synth { margin-top: 10px; border-left-color: var(--t32-navy); }

/* Oui / non */
.t32-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 16px;
}
.t32-ace { box-shadow: 0 0 0 3px var(--t32-gold), 0 2px 6px rgba(0,0,0,.2); }
.t32-answer {
	text-align: center;
	background: #fff;
	border-radius: 10px;
	padding: 14px 12px;
	border: 2px solid var(--t32-navy);
}
.t32-answer p { margin: 0 0 4px; }
.t32-answer-word { font-size: 26px; font-weight: 700; color: var(--t32-navy); }
.t32-answer-0 .t32-answer-word, .t32-answer-1 .t32-answer-word { color: var(--t32-red); }

/* Animations */
@keyframes t32-flip {
	from { transform: rotateY(90deg); opacity: 0; }
	to   { transform: rotateY(0); opacity: 1; }
}
@keyframes t32-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-4px) rotate(-1deg); }
	75% { transform: translateX(4px) rotate(1deg); }
}
.t32-shuffling .t32-btn { animation: t32-shake .3s linear infinite; }
@media (prefers-reduced-motion: reduce) {
	.t32-face, .t32-shuffling .t32-btn { animation: none; }
}

@media (max-width: 480px) {
	.t32 { padding: 14px 10px 10px; }
	.t32-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; }
	.t32-grid .t32-small { width: 100%; height: auto; aspect-ratio: 2 / 3; }
	.t32-cross { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.t32-card { width: 64px; height: 96px; }
	.t32-small, .t32-row .t32-small { width: 40px; height: 60px; }
	.t32-mid { font-size: 28px; }
	.t32-row .t32-mid { font-size: 15px; }
}
