/* ==========================================================================
   Tableau noir — Radio Anar
   Ardoise avec uniquement des post-it d'espoir collés dessus
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&display=swap');

.tableau {
	--tb-paper: #ede6d6;
	--tb-tape: #d9b23c;
	--tb-board: #262a24;
	--tb-board-edge: #14100c;
	--tb-postit-yellow: #e9d46a;
	--tb-postit-pink: #e6a6ab;
	--tb-postit-green: #a9c98f;
	--tb-ink: #191712;

	background: var(--tb-paper);
	padding: 56px 24px 72px;
}

/* ---- Cadre en bois autour de l'ardoise ---------------------------------- */

.tableau-frame {
	max-width: 980px;
	margin: 0 auto;
	padding: 18px 18px 0;
	background: linear-gradient(180deg, #6b4a30, #4d3320);
	border: 2px solid var(--tb-board-edge);
	border-radius: 4px;
	box-shadow: 7px 7px 0 var(--tb-ink);
}

/* ---- Ardoise ------------------------------------------------------------- */

.tableau-board {
	position: relative;
	min-height: 320px;
	padding: 40px;
	background: var(--tb-board);
	border: 1px solid rgba(0, 0, 0, 0.4);
	box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.55);
	/* grain d'ardoise, tout léger */
	background-image:
		radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
	background-size: 7px 7px, 11px 11px;
	background-position: 0 0, 4px 5px;

	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	gap: 26px 24px;
}

/* ---- Post-it d'espoir ----------------------------------------------------- */

.postit {
	position: relative;
	flex: 0 0 auto;
	width: 168px;
	padding: 18px 16px;
	font-family: "Space Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--tb-ink);
	box-shadow: 3px 4px 8px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.postit p {
	margin: 0;
}

.postit-jaune { background: var(--tb-postit-yellow); }
.postit-rose  { background: var(--tb-postit-pink); }
.postit-vert  { background: var(--tb-postit-green); }

/* Inclinaisons variées, comme collés à la main, sans dépendre de l'ordre */
.postit-1 { transform: rotate(-4deg); }
.postit-2 { transform: rotate(3deg); }
.postit-3 { transform: rotate(-2deg); align-self: flex-end; }
.postit-4 { transform: rotate(5deg); }
.postit-5 { transform: rotate(-3deg); align-self: flex-end; }
.postit-6 { transform: rotate(2deg); }

.postit:hover {
	transform: translateY(-3px) rotate(0deg);
	box-shadow: 5px 7px 12px rgba(0, 0, 0, 0.4);
}

/* Petit bout de scotch qui tient chaque post-it */
.postit::before {
	content: "";
	position: absolute;
	top: -8px;
	left: 50%;
	transform: translateX(-50%) rotate(-3deg);
	width: 34px;
	height: 14px;
	background: var(--tb-tape);
	opacity: 0.85;
}

/* ---- Rebord de l'ardoise : bâtonnets de craie + chiffon ------------------- */

.tableau-ledge {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 26px;
	padding: 0 30px;
	background: #4d3320;
	border-top: 3px solid #3a2416;
	border-radius: 0 0 4px 4px;
}

.craie-batonnet {
	width: 30px;
	height: 7px;
	background: #f2efe4;
	border-radius: 2px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.craie-batonnet--couleur {
	background: #e8756a;
}

.chiffon {
	width: 44px;
	height: 12px;
	margin-left: auto;
	background: #8a8578;
	border-radius: 2px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   ACCESSIBILITÉ / MOUVEMENT RÉDUIT
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	.postit {
		transition: none;
	}
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 720px) {
	.tableau {
		padding: 40px 16px 56px;
	}

	.tableau-board {
		min-height: auto;
		padding: 24px;
		gap: 18px;
		justify-content: center;
	}

	.postit {
		width: 140px;
		font-size: 12.5px;
	}

	.postit-3,
	.postit-5 {
		align-self: auto;
	}
}