/* Émotions Portfolio · front
   Palette Émotions_colors_2026. Pour adapter au thème, surchargez ces variables
   dans votre CSS (ex. .emp { --emp-accent: … }). */
.emp {
	--emp-ink: #333333;      /* Charcoal */
	--emp-cream: #F5ECE5;    /* Cream */
	--emp-slate: #55828B;    /* Slate Teal */
	--emp-accent: #3C9AA8;   /* Teal */
	--emp-text: currentColor;
	--emp-muted: color-mix(in srgb, currentColor 62%, transparent);
	--emp-line: color-mix(in srgb, currentColor 16%, transparent);
	--emp-display: "Barlow Condensed", "Arial Narrow", sans-serif;
	--emp-radius: 2px;
	--emp-gap: 20px;
	box-sizing: border-box;
}
.emp *, .emp *::before, .emp *::after { box-sizing: inherit; }
.emp-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.emp-empty { padding: 20px; border: 1px dashed var(--emp-line, #ccc); font-size: 14px; opacity: .8; }

/* ---------- Filtres ---------- */
.emp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.emp-filters button {
	font: inherit; font-family: var(--emp-display); font-size: 15px; letter-spacing: .06em; text-transform: uppercase;
	background: none; color: inherit; border: 1px solid var(--emp-line); border-radius: 20px; padding: 7px 16px; cursor: pointer;
}
.emp-filters button:hover { border-color: currentColor; }
.emp-filters button[aria-pressed="true"] { background: var(--emp-ink); color: var(--emp-cream); border-color: var(--emp-ink); }
.emp-filters button:focus-visible, .emp-card:focus-visible, .emp-gal-item:focus-visible, .emp-play:focus-visible { outline: 2px solid var(--emp-accent); outline-offset: 3px; }

/* ---------- Grille ---------- */
.emp-cards { display: grid; grid-template-columns: repeat(var(--emp-cols, 3), minmax(0, 1fr)); gap: var(--emp-gap); }
.emp-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.emp-card[hidden] { display: none; }
.emp-card.is-wide { grid-column: span 2; }
.emp-thumb { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--emp-radius); background: var(--emp-slate); }
.emp-card.is-wide .emp-thumb { aspect-ratio: auto; flex: 1; min-height: 280px; }
.emp-thumb .emp-img { transition: transform .8s ease; }
.emp-card:hover .emp-thumb .emp-img { transform: scale(1.05); }
.emp-noimg { background: linear-gradient(170deg, transparent 55%, var(--emp-ink) 55.4%), linear-gradient(195deg, transparent 42%, color-mix(in srgb, var(--emp-ink) 60%, var(--emp-slate)) 42.4%), linear-gradient(var(--emp-cream), var(--emp-slate)); }
.emp-fmt {
	position: absolute; top: 12px; right: 12px; font-family: var(--emp-display); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--emp-cream); border: 1px solid color-mix(in srgb, var(--emp-cream) 70%, transparent); background: rgba(51,51,51,.35); padding: 1px 7px;
}
.emp-data { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; }
.emp-data span {
	min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	font-family: var(--emp-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums;
	color: var(--emp-cream); background: rgba(51,51,51,.72); padding: 2px 8px;
}
.emp-data span + span { flex-shrink: 0; }
.emp-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--emp-muted); }
.emp-title { font-family: var(--emp-display); font-weight: 700; font-size: 24px; line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.emp-card:hover .emp-title { color: var(--emp-accent); }

/* ---------- Vidéo ---------- */
.emp-video { margin: 0 0 32px; }
.emp-frame { position: relative; aspect-ratio: 16 / 9; background: var(--emp-ink); overflow: hidden; border-radius: var(--emp-radius); }
.emp-frame video, .emp-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.emp-facade { cursor: pointer; }
.emp-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(51,51,51,.55)); pointer-events: none; }
.emp-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
	width: 84px; height: 84px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--emp-accent); display: grid; place-items: center; transition: transform .2s ease, background .2s ease;
}
.emp-play span { width: 0; height: 0; margin-left: 6px; border-left: 24px solid var(--emp-ink); border-top: 15px solid transparent; border-bottom: 15px solid transparent; }
.emp-facade:hover .emp-play { transform: translate(-50%, -50%) scale(1.08); background: var(--emp-cream); }
.emp-src { position: absolute; left: 14px; bottom: 12px; z-index: 1; font-family: var(--emp-display); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--emp-cream); opacity: .8; }

/* ---------- Données terrain ---------- */
.emp-donnees { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0 0 32px; border-top: 2px solid currentColor; }
.emp-dl-row { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--emp-line); }
.emp-dl-row dt {
	display: flex; align-items: center; gap: 8px; margin: 0 0 4px;
	font-family: var(--emp-display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--emp-muted);
}
.emp-dl-row dt::before { content: ""; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--emp-accent); }
.emp-dl-row dd { margin: 0; font-family: var(--emp-display); font-weight: 700; font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.emp-dl-row dd a { color: inherit; text-decoration-color: var(--emp-accent); text-underline-offset: 3px; }

/* ---------- Galerie ---------- */
.emp-galerie { margin: 32px 0; }
.emp-gal-grid { display: grid; grid-template-columns: repeat(var(--emp-gcols, 3), minmax(0, 1fr)); gap: 8px; }
.emp-gal-item { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--emp-radius); background: var(--emp-slate); }
.emp-gal-item .emp-img { transition: transform .6s ease, opacity .3s; }
.emp-gal-item:hover .emp-img { transform: scale(1.04); }

/* Visionneuse */
.emp-lb { position: fixed; inset: 0; z-index: 99999; background: rgba(34,34,34,.96); display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 56px 1fr 40px; color: #F5ECE5; }
.emp-lb[hidden] { display: none; }
.emp-lb figure { grid-column: 2; grid-row: 2; margin: 0; display: grid; place-items: center; min-height: 0; }
.emp-lb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.emp-lb button { background: none; border: 0; color: inherit; cursor: pointer; font: 400 34px/1 "Barlow Condensed", sans-serif; }
.emp-lb button:hover, .emp-lb button:focus-visible { color: #3C9AA8; outline: none; }
.emp-lb-close { grid-column: 3; grid-row: 1; }
.emp-lb-prev { grid-column: 1; grid-row: 2; }
.emp-lb-next { grid-column: 3; grid-row: 2; }
.emp-lb-count { grid-column: 2; grid-row: 3; text-align: center; font: 600 13px/40px "Barlow Condensed", sans-serif; letter-spacing: .14em; opacity: .7; }

/* ---------- Témoignage ---------- */
.emp-temoignage { margin: 40px 0; padding: 4px 0 4px 28px; border-left: 3px solid var(--emp-accent); }
.emp-temoignage blockquote { margin: 0 0 16px; font-family: var(--emp-display); font-style: italic; font-weight: 600; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; quotes: none; }
.emp-temoignage figcaption { display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--emp-muted); }
.emp-logo { max-height: 40px; width: auto; }

/* ---------- Projets liés ---------- */
.emp-lies { margin: 56px 0 0; }
.emp-lies-title { font-family: var(--emp-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 4vw, 44px); margin: 0 0 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.emp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.emp-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.emp-cards { grid-template-columns: 1fr; }
	.emp-card.is-wide { grid-column: auto; }
	.emp-card.is-wide .emp-thumb { aspect-ratio: 4 / 3; min-height: 0; }
	.emp-lb { grid-template-columns: 44px 1fr 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.emp *, .emp-lb * { transition: none !important; }
}
