/* FP Univers — porté verbatim depuis components/Univers.jsx
   Section avec head (eyebrow + titre + lien) + grille 5 cards.
   Chaque card : photo (avec tag, index, hover overlay) + caption. */

.fp-univers {
	background: var(--paper-warm);
	position: relative;
	padding: clamp(80px, 10vw, 140px) clamp(20px, 5vw, 56px);
}

.fp-univers__inner {
	max-width: 1320px;
	margin: 0 auto;
}

/* HEAD — eyebrow + titre + lien à droite */
.fp-univers__head.wp-block-group,
.fp-univers__head {
	display: flex !important;
	justify-content: space-between;
	align-items: flex-end;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 56px;
}
.fp-univers__head-text {
	display: flex !important;
	flex-direction: column;
	gap: 0;
}
.fp-univers__head-eyebrow {
	margin: 0;
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
	color: var(--accent);
}
.fp-univers__title {
	margin: 14px 0 0;
	font-family: var(--font-serif);
	font-weight: 500;
	font-size: clamp(2rem, 4.5vw, 3.6rem);
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-transform: lowercase;
	color: var(--ink);
	text-wrap: balance;
	max-width: 20ch;
}

/* GRID 5-up */
.fp-univers__grid.wp-block-group,
.fp-univers__grid {
	display: grid !important;
	grid-template-columns: repeat(5, 1fr);
	gap: clamp(8px, 1.5vw, 20px);
}
@media (max-width: 1024px) {
	.fp-univers__grid.wp-block-group,
	.fp-univers__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.fp-univers__grid.wp-block-group,
	.fp-univers__grid { grid-template-columns: 1fr; }
}

/* CARD — wrapper */
.fp-univers__card.wp-block-group,
.fp-univers__card {
	cursor: pointer;
	display: flex !important;
	flex-direction: column;
	position: relative;
	background: transparent;
	transition: background 480ms cubic-bezier(.2, .7, .2, 1);
	padding: 12px;
	margin: 0;
}
/* Hover background — couleur soft de chaque univers via classe modifier */
.fp-univers__card.is-emotions:hover  { background: #F0D6D9; }
.fp-univers__card.is-relations:hover { background: #D4DEE6; }
.fp-univers__card.is-rituels:hover   { background: #DBE4DB; }
.fp-univers__card.is-quotidien:hover { background: #EDE0C7; }
.fp-univers__card.is-evasion:hover   { background: #CFE0E2; }

/* PHOTO container */
.fp-univers__card-photo.wp-block-group,
.fp-univers__card-photo {
	position: relative;
	aspect-ratio: 3 / 5;     /* mode 'large' (default) */
	overflow: hidden;
	background: #1a1411;
	margin: 0 !important;
	display: block;
}
.fp-univers__card.is-photo-normal .fp-univers__card-photo { aspect-ratio: 3 / 4; }

/* L'image figure (wp-block-image) à l'intérieur du photo container */
.fp-univers__card-photo .wp-block-image,
.fp-univers__card-photo figure {
	margin: 0;
	width: 100%;
	height: 100%;
}
.fp-univers__card-photo img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	display: block;
	transform: scale(1);
	transition: transform 1000ms cubic-bezier(.2, .7, .2, 1);
}
.fp-univers__card:hover .fp-univers__card-photo img {
	transform: scale(1.05);
}

/* TAG absolu top-left — couleur univers via classe modifier */
.fp-univers__tag {
	position: absolute;
	top: 14px;
	left: 14px;
	color: var(--paper);
	padding: 6px 10px;
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
	margin: 0;
	z-index: 2;
}
.fp-univers__card.is-emotions  .fp-univers__tag { background: #C8344B; }
.fp-univers__card.is-relations .fp-univers__tag { background: #1F4E78; }
.fp-univers__card.is-rituels   .fp-univers__tag { background: #6E9B7E; }
.fp-univers__card.is-quotidien .fp-univers__tag { background: #C68A2E; }
.fp-univers__card.is-evasion   .fp-univers__tag { background: #2D7A86; }

/* INDEX absolu top-right (ex: "01 / 05") */
.fp-univers__index {
	position: absolute;
	top: 14px;
	right: 14px;
	color: rgba(244, 239, 230, 0.85);
	font-family: var(--font-mono);
	font-size: 10px;
	letter-spacing: 0.18em;
	line-height: 1;
	text-transform: uppercase;
	margin: 0;
	z-index: 2;
}

/* OVERLAY hover — liste produits qui apparaît en bas */
.fp-univers__overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 14px;
	background: linear-gradient(0deg, rgba(20, 12, 10, 0.85), rgba(20, 12, 10, 0));
	color: var(--paper);
	font-family: var(--font-mono);
	font-size: 11px;
	letter-spacing: 0.16em;
	line-height: 1.4;
	text-transform: uppercase;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 380ms cubic-bezier(.2, .7, .2, 1),
	            transform 380ms cubic-bezier(.2, .7, .2, 1);
	margin: 0;
	z-index: 2;
}
.fp-univers__card:hover .fp-univers__overlay {
	opacity: 1;
	transform: translateY(0);
}

/* CAPTION sous la photo */
.fp-univers__caption.wp-block-group,
.fp-univers__caption {
	padding-top: 18px;
	padding-bottom: 4px;
	margin: 0 !important;
	display: block;
}
.fp-univers__label {
	margin: 0;
	font-family: var(--font-serif);
	font-size: clamp(1.5rem, 2.2vw, 2rem);
	line-height: 1;
	text-transform: lowercase;
	color: var(--ink);
}
.fp-univers__evocation {
	margin: 10px 0 0 !important;
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 14px;
	line-height: 1.4;
	color: var(--ink-2);
}

@media (prefers-reduced-motion: reduce) {
	.fp-univers__card,
	.fp-univers__card-photo img,
	.fp-univers__overlay {
		transition: none !important;
	}
}
