/* ==================================================================
   Olam – pages projet (films et dispositifs)
   Tout est limité à .olam-projet pour ne pas toucher le reste du site.
   ================================================================== */

.olam-projet {
	--olam-ink: #111111;
	--olam-muted: #6b6b6b;
	--olam-line: #e3e3e3;
	--olam-tint: color-mix(in srgb, var(--olam-pink, #E5428A) 12%, #ffffff);
	--olam-media: #1c1c1c;
	--olam-max: 1360px;
	--olam-gutter: clamp(20px, 3vw, 40px);
	--olam-ease: cubic-bezier(.2, .7, .2, 1);
	--olam-font: inherit; /* Reprend la police du thème, comme la home. */

	font-family: var(--olam-font);
	color: var(--olam-ink);
	background: #ffffff;
	overflow-x: clip;
	padding-top: 110px; /* Hauteur du menu fixe de Forzo. */
}

.olam-projet *,
.olam-projet *::before,
.olam-projet *::after {
	box-sizing: border-box;
}

.olam-projet a {
	color: inherit;
	text-decoration: none;
}

.olam-projet img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* Contenu de l'éditeur repris tel quel (anciennes pages) */
.olam-lead img,
.olam-intro img {
	margin: 2em 0;
}

.olam-lead iframe,
.olam-intro iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	border: 0;
}

.olam-wrap {
	max-width: var(--olam-max);
	margin-inline: auto;
	padding-inline: var(--olam-gutter);
}

.olam-label {
	margin: 0 0 clamp(28px, 4vw, 48px);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--olam-muted);
}

.olam-label--rule::before {
	content: "";
	display: block;
	width: 32px;
	height: 3px;
	margin-bottom: 16px;
	background: var(--olam-pink);
}

/* ---------- En-tête ---------- */

.olam-head {
	padding-top: clamp(32px, 5vw, 56px);
}

.olam-back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--olam-muted);
	transition: color .25s;
}

.olam-back:hover {
	color: var(--olam-ink);
}

.olam-back svg {
	transition: transform .3s var(--olam-ease);
}

.olam-back:hover svg {
	transform: translateX(-4px);
}

.olam-head__main {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 64px;
	margin-top: 20px;
}

.olam-head__titles {
	flex: 1 1 560px;
	min-width: 0;
}

.olam-bar {
	display: block;
	width: 72px;
	height: 6px;
	margin-bottom: 28px;
	background: var(--olam-pink);
	transform-origin: left;
}

.olam-title {
	margin: 0;
	font-size: clamp(42px, 7vw, 104px);
	line-height: .95;
	font-weight: 800;
	letter-spacing: -.035em;
	overflow-wrap: break-word;
	hyphens: auto;
}

.olam-dot {
	color: var(--olam-pink);
}

.olam-client {
	margin: 20px 0 0;
	font-size: clamp(18px, 1.6vw, 22px);
	font-weight: 500;
}

/* Infos clés : à droite du titre (film), en bande (dispositif) */
.olam-infos {
	display: grid;
	grid-template-columns: auto auto;
	gap: 8px 32px;
	margin: 0;
	font-size: 14px;
}

.olam-infos__item {
	display: contents;
}

.olam-infos dt {
	color: var(--olam-muted);
}

.olam-infos dd {
	margin: 0;
}

.olam-head--dispositif .olam-infos {
	flex: 1 1 100%;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 24px 32px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--olam-line);
	font-size: 15px;
	line-height: 1.5;
}

.olam-head--dispositif .olam-infos__item {
	display: block;
}

.olam-head--dispositif .olam-infos dt {
	font-size: 12px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.olam-head--dispositif .olam-infos dd {
	margin-top: 6px;
}

/* ---------- Vidéo ---------- */

.olam-video {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 9;
	margin: 0;
	overflow: hidden;
	background: var(--olam-media);
}

.olam-projet--film .olam-video {
	margin-top: clamp(40px, 5vw, 56px);
}

.olam-video__poster,
.olam-video img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1.2s var(--olam-ease), opacity .4s;
}

.olam-video:hover .olam-video__poster {
	transform: scale(1.02);
}

.olam-video__play {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: clamp(72px, 8vw, 96px);
	height: clamp(72px, 8vw, 96px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--olam-pink);
	color: #ffffff;
	cursor: pointer;
	transition: transform .4s var(--olam-ease), box-shadow .4s;
}

.olam-video__play:hover,
.olam-video__play:focus-visible {
	transform: scale(1.08);
	box-shadow: 0 0 0 12px color-mix(in srgb, var(--olam-pink) 30%, transparent);
}

.olam-video__play:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
}

.olam-video iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.olam-video.is-playing .olam-video__poster {
	opacity: 0;
}

/* ---------- Film : texte + crédits ---------- */

.olam-film__body {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 96px;
	padding: clamp(48px, 6vw, 72px) 0 clamp(64px, 8vw, 96px);
	border-bottom: 1px solid var(--olam-line);
}

.olam-lead {
	flex: 1 1 520px;
	min-width: 0;
	max-width: 720px;
	font-size: 17px;
	line-height: 1.7;
	color: #3a3a3a;
}

.olam-lead > :first-child {
	margin-top: 0;
	font-size: clamp(20px, 2vw, 26px);
	line-height: 1.4;
	color: var(--olam-ink);
}
.olam-lead > :last-child { margin-bottom: 0; }

.olam-credits {
	flex: 1 1 320px;
	min-width: 0;
}

.olam-credits__list {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
}

.olam-credits__list dt,
.olam-credits__list dd {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--olam-line);
}

.olam-credits__list dt {
	padding-right: 16px;
	color: var(--olam-muted);
}

/* ---------- Dispositif ---------- */

.olam-cover {
	margin: clamp(40px, 5vw, 64px) 0 0;
	aspect-ratio: 21 / 9;
	overflow: hidden;
	background: var(--olam-media);
}

.olam-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.olam-intro {
	max-width: 880px;
	margin-inline: auto;
	padding: clamp(64px, 9vw, 112px) var(--olam-gutter) clamp(56px, 8vw, 96px);
	font-size: 18px;
	line-height: 1.7;
	color: #3a3a3a;
}

.olam-intro > :first-child {
	margin-top: 0;
	font-size: clamp(21px, 2.4vw, 30px);
	line-height: 1.45;
	color: var(--olam-ink);
}

.olam-intro > :last-child { margin-bottom: 0; }

.olam-dispositif__video {
	padding-bottom: clamp(56px, 8vw, 96px);
}

.olam-elements {
	padding-bottom: clamp(64px, 8vw, 96px);
}

.olam-element {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 32px 72px;
	padding: 48px 0;
	border-top: 1px solid var(--olam-line);
}

.olam-element:nth-of-type(even) {
	flex-direction: row-reverse;
}

.olam-element__media {
	flex: 1 1 560px;
	min-width: 0;
	margin: 0;
}

.olam-element__media img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.olam-element__media .olam-video {
	aspect-ratio: 16 / 10;
}

.olam-element__text {
	flex: 1 1 360px;
	min-width: 0;
}

.olam-element--text .olam-element__text {
	max-width: 760px;
}

.olam-element__num {
	margin: 0;
	font-size: 56px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--olam-pink);
}

.olam-element__title {
	margin: 12px 0 0;
	font-size: clamp(24px, 2.4vw, 32px);
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -.02em;
}

.olam-element__meta {
	margin: 10px 0 0;
	font-size: 14px;
	color: var(--olam-muted);
}

.olam-element__desc {
	margin-top: 20px;
	font-size: 17px;
	line-height: 1.65;
	color: #3a3a3a;
}

.olam-element__desc p { margin: 0 0 1em; }
.olam-element__desc p:last-child { margin-bottom: 0; }

/* Galerie */
.olam-gallery {
	padding: clamp(64px, 8vw, 96px) 0;
	background: var(--olam-tint);
}

.olam-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
	grid-auto-flow: dense;
	gap: 16px;
}

.olam-gallery__item {
	display: block;
	overflow: hidden;
	background: var(--olam-media);
	cursor: zoom-in;
}

.olam-gallery__item img {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

.olam-gallery__item.is-wide {
	grid-column: span 2;
}

.olam-gallery__item.is-wide img {
	aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
	.olam-gallery__item.is-wide { grid-column: auto; }
}

/* Crédits dispositif : titre à gauche, liste à droite */
.olam-dispositif__credits .olam-credits {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 96px;
	padding: clamp(64px, 8vw, 96px) 0;
	border-bottom: 1px solid var(--olam-line);
}

.olam-dispositif__credits .olam-label {
	flex: 1 1 320px;
	margin: 0;
}

.olam-dispositif__credits .olam-credits__list {
	flex: 2 1 520px;
	min-width: 0;
}

/* ---------- Précédent / suivant ---------- */

.olam-pager {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	padding: clamp(48px, 6vw, 64px) 0 clamp(64px, 8vw, 96px);
}

.olam-card,
.olam-pager__empty {
	flex: 1 1 380px;
	min-width: 0;
}

.olam-card {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.olam-card--next {
	text-align: right;
}

.olam-card__media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #2b2b2b;
}

.olam-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .8s var(--olam-ease);
}

.olam-card:hover .olam-card__media img {
	transform: scale(1.03);
}

.olam-card__dir {
	font-size: 13px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--olam-muted);
}

.olam-arrow {
	display: inline-block;
	color: var(--olam-pink);
	transition: transform .35s var(--olam-ease);
}

.olam-card:hover .olam-arrow {
	transform: translateX(6px);
}

.olam-card__title {
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 800;
	letter-spacing: -.02em;
}

.olam-card:focus-visible {
	outline: 2px solid var(--olam-pink);
	outline-offset: 6px;
}

/* Zoom au survol */
.olam-zoom {
	overflow: hidden;
}

.olam-zoom img {
	transition: transform .8s var(--olam-ease);
}

.olam-zoom:hover img {
	transform: scale(1.03);
}

/* ---------- Visionneuse ---------- */

.olam-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(10, 10, 10, .96);
	color: #ffffff;
}

.olam-lightbox::backdrop {
	background: transparent;
}

.olam-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
	animation: olam-fade .3s ease both;
}

.olam-lightbox img {
	max-width: calc(100vw - 160px);
	max-height: calc(100vh - 80px);
	object-fit: contain;
}

.olam-lightbox button {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
	transition: background .25s;
}

.olam-lightbox button:hover,
.olam-lightbox button:focus-visible {
	background: var(--olam-pink);
}

.olam-lightbox__close { top: 20px; right: 20px; }
.olam-lightbox__prev  { left: 20px; top: 50%; transform: translateY(-50%); }
.olam-lightbox__next  { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
	.olam-lightbox img { max-width: 100vw; }
	.olam-lightbox__prev,
	.olam-lightbox__next { top: auto; bottom: 20px; transform: none; }
}

/* ---------- Animations d'entrée ---------- */

@keyframes olam-rise {
	from { opacity: 0; transform: translateY(40px); }
	to   { opacity: 1; transform: none; }
}

@keyframes olam-grow {
	from { transform: scaleX(0); }
	to   { transform: scaleX(1); }
}

@keyframes olam-fade {
	from { opacity: 0; }
}

.olam-in          { animation: olam-rise .9s var(--olam-ease) both; }
.olam-in--2       { animation-delay: .15s; }
.olam-in--3       { animation-delay: .3s; }
.olam-bar         { animation: olam-grow 1s .4s var(--olam-ease) both; }

@media (prefers-reduced-motion: reduce) {
	.olam-projet *,
	.olam-projet *::before,
	.olam-projet *::after,
	.olam-lightbox[open] {
		animation: none !important;
		transition: none !important;
	}
}
