/* Nos flocons : une carte par féculent, à sa couleur, légèrement penchée. */

.lfo-flocons {
	padding: clamp(56px, 8vw, 120px) clamp(18px, 4vw, 60px);
}

.lfo-flocons__tete {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-align: center;
	margin-bottom: clamp(32px, 4vw, 56px);
}

.lfo-flocons__titre {
	margin: 0;
	font-weight: 800;
	font-size: clamp(40px, 5vw, 76px);
	line-height: 1;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.lfo-flocons__titre .accent {
	font-style: normal;
	background: linear-gradient(transparent 58%, #F5B82E 58%, #F5B82E 92%, transparent 92%);
	padding: 0 .06em;
}

.lfo-flocons__surtitre {
	font-family: 'Caveat Brush', cursive;
	font-size: clamp(28px, 2.6vw, 38px);
	color: #D7362B;
	rotate: -2deg;
}

.lfo-flocons__citation {
	margin: 0;
	max-width: 52ch;
	font-size: clamp(19px, 1.5vw, 22px);
	line-height: 1.55;
	color: #5A3E2A;
}

.lfo-flocons__grille {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: clamp(18px, 2.4vw, 32px);
}

.lfo-flocons__carte {
	--fond: #4E9A3A;
	--encre: #FFF7EA;
	--pastille: rgba(255, 247, 234, .18);
	--bouton: #FFF7EA;
	--bouton-encre: #3A2414;
	--bouton-ombre: #3A2414;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 14px 14px 20px;
	border-radius: 28px;
	background: var(--fond);
	color: var(--encre);
	box-shadow: 0 8px 0 #3A2414;
	rotate: -1.5deg;
	transition: rotate .5s cubic-bezier(.34, 1.56, .64, 1), translate .5s cubic-bezier(.34, 1.56, .64, 1);
}

.lfo-flocons__carte:nth-child(4n+2) {
	rotate: 1.2deg;
}

.lfo-flocons__carte:nth-child(4n+3) {
	rotate: -1deg;
}

.lfo-flocons__carte:nth-child(4n) {
	rotate: 1.6deg;
}

.lfo-flocons__carte:hover {
	rotate: 0deg;
	translate: 0 -10px;
}

.lfo-flocons__carte--igname {
	--fond: #8A5A34;
}

.lfo-flocons__carte--fruit {
	--fond: #D7362B;
}

.lfo-flocons__carte--patate {
	--fond: #EE7A2B;
	--encre: #3A2414;
	--pastille: rgba(58, 36, 20, .12);
	--bouton: #3A2414;
	--bouton-encre: #FFF7EA;
	--bouton-ombre: rgba(58, 36, 20, .4);
}

/* Largeur explicite : sans elle, Safari réduit un cadre à aspect-ratio à la largeur de son contenu. */
.lfo-flocons__photo {
	width: 100%;
	aspect-ratio: 4 / 3;
	border-radius: 18px;
	overflow: hidden;
}

.lfo-flocons__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lfo-flocons__corps {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 0 6px;
}

.lfo-flocons__numero {
	font-family: 'Caveat Brush', cursive;
	font-size: 24px;
	line-height: 1;
}

.lfo-flocons__nom {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1;
}

.lfo-flocons__texte {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.5;
}

.lfo-flocons__usages {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
}

.lfo-flocons__usages span {
	padding: 5px 10px;
	border-radius: 999px;
	background: var(--pastille);
}

/* Un lien qui garde l'allure du bouton de la maquette (centré, sans changement de couleur au survol). */
.lfo-flocons__lien,
.lfo-flocons__lien:hover {
	color: var(--bouton-encre);
}

.lfo-flocons__lien {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	margin-top: 4px;
	height: 44px;
	padding: 0 16px;
	border-radius: 12px;
	background: var(--bouton);
	font-family: 'Bricolage Grotesque', sans-serif;
	font-size: 15px;
	font-weight: 800;
	line-height: normal;
	box-shadow: 0 4px 0 var(--bouton-ombre);
	cursor: pointer;
}
