/* ==========================================================================
   Bradamante – styles du site
   ========================================================================== */

:root {
	--ink: #111111;
	--ink-2: #222222;
	--muted: #555555;
	--muted-2: #666666;
	--line: #e2e2e2;
	--bg: #ffffff;
	--gutter: 56px;
	--header-h: 150px;
	--content: 1100px;
	--font: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-weight: 300;
	line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--muted); }
button { font-family: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.bm-header {
	height: var(--header-h);
	padding: 0 var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	background: var(--bg);
	position: relative;
	z-index: 5;
}

.bm-logo { display: block; padding: 6px 0; flex-shrink: 0; }
.bm-logo img { width: 194px; height: auto; }

.bm-header__right { display: flex; align-items: center; gap: 40px; }

.bm-nav { display: flex; align-items: center; gap: 28px; }
.bm-nav a {
	font-size: 13px;
	letter-spacing: 0.14em;
	font-weight: 500;
	padding: 12px 0;
}

.bm-lang { display: flex; align-items: center; gap: 2px; font-size: 13px; letter-spacing: 0.12em; }
.bm-lang a { padding: 12px 6px; min-height: 44px; display: inline-flex; align-items: center; opacity: 0.5; font-weight: 300; }
.bm-lang a.is-active { opacity: 1; font-weight: 400; }
.bm-lang span { opacity: 0.4; }

/* ---------- Accueil ---------- */

.bm-home {
	position: relative;
	height: calc(100vh - var(--header-h));
	height: calc(100svh - var(--header-h));
	min-height: 420px;
	overflow: hidden;
	background: #1a1a1a;
}

.bm-home__slide {
	position: absolute;
	inset: 0;
	display: block;
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}
.bm-home__slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.8s ease; }
.bm-home__slide:hover { color: #fff; }

.bm-home__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.bm-home__shade,
.bm-home__info { opacity: 0; transition: opacity 0.35s ease; }
.bm-home__slide:hover .bm-home__shade,
.bm-home__slide:hover .bm-home__info,
.bm-home__slide:focus-visible .bm-home__shade,
.bm-home__slide:focus-visible .bm-home__info { opacity: 1; }

.bm-home__shade {
	position: absolute; left: 0; right: 0; bottom: 0; height: 320px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}
.bm-home__info {
	position: absolute; left: 120px; bottom: 56px; max-width: 900px;
	display: flex; flex-direction: column; gap: 8px;
}
.bm-home__meta { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.bm-home__title { font-size: 40px; line-height: 1.05; font-weight: 400; }
.bm-home__dir { font-size: 16px; opacity: 0.9; }

.bm-home__arrow {
	position: absolute; top: 50%; margin-top: -32px;
	width: 64px; height: 64px;
	background: none; border: 0; color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	z-index: 2;
}
.bm-home__arrow--prev { left: 32px; }
.bm-home__arrow--next { right: 32px; }

/* ---------- Mosaïque FILMS ---------- */

.bm-mosaic { padding: 24px var(--gutter) 140px; }
.bm-mosaic__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }

.bm-tile {
	position: relative; display: block; aspect-ratio: 16 / 9;
	background: #1a1a1a; color: #fff; overflow: hidden;
}
.bm-tile:hover { color: #fff; }
.bm-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s ease; }
.bm-tile:hover .bm-tile__img { transform: scale(1.03); }
.bm-tile__shade,
.bm-tile__info { opacity: 0; transition: opacity 0.35s ease; }
.bm-tile:hover .bm-tile__shade,
.bm-tile:hover .bm-tile__info,
.bm-tile:focus-visible .bm-tile__shade,
.bm-tile:focus-visible .bm-tile__info { opacity: 1; }
.bm-tile__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.15) 60%, rgba(0, 0, 0, 0)); }
.bm-tile__info { position: absolute; left: 28px; right: 28px; bottom: 24px; display: flex; flex-direction: column; gap: 4px; }
.bm-tile__title { font-size: 20px; font-weight: 400; line-height: 1.2; letter-spacing: 0.01em; }
.bm-tile__dir { font-size: 14px; opacity: 0.9; letter-spacing: 0.02em; }

/* ---------- Fiche film ---------- */

.bm-film__media { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px var(--gutter) 0; }

.bm-slides {
	position: relative;
	width: 100%;
	max-width: var(--content);
	aspect-ratio: 1100 / 560;
	overflow: hidden;
	background: #111;
}
.bm-slides__img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; opacity: 0; transition: opacity 0.6s ease;
}
.bm-slides__img.is-active { opacity: 1; }

.bm-film__bar {
	width: 100%; max-width: var(--content);
	display: flex; justify-content: space-between; align-items: center;
	font-size: 13px; letter-spacing: 0.12em; color: var(--muted);
}
.bm-film__arrows { display: flex; gap: 4px; }
.bm-film__arrows button {
	width: 44px; height: 44px; background: none; border: 0; color: var(--ink); cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}

.bm-video-link {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 0; min-height: 44px;
	background: none; border: 0; color: var(--ink); cursor: pointer;
	font-size: 13px; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase;
}
.bm-video-link:hover { color: var(--muted); }

.bm-film__body {
	width: 100%; max-width: calc(var(--content) + 2 * var(--gutter));
	margin: 0 auto; padding: 48px var(--gutter) 120px;
	display: flex; flex-direction: column; gap: 40px; color: var(--ink-2);
}
.bm-film__head { display: flex; flex-direction: column; gap: 10px; }
.bm-film__head h1 { margin: 0; font-size: 40px; font-weight: 400; line-height: 1.1; color: var(--ink); }
.bm-film__head p { margin: 0; }
.bm-film__dir { font-size: 18px; }
.bm-film__with { font-size: 16px; color: #444; }
.bm-film__specs { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 6px !important; }
.bm-film__coprod { font-size: 15px; color: #444; }

.bm-film__grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	column-gap: 72px;
	align-items: start;
	border-top: 1px solid var(--line);
	padding-top: 40px;
}

.bm-film__synopsis { display: flex; flex-direction: column; gap: 10px; }
.bm-film__synopsis h2,
.bm-block h2 {
	margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink);
}
.bm-film__synopsis p {
	margin: 0; font-size: 17px; line-height: 1.65;
	text-align: justify; hyphens: none;
}

.bm-film__cols { column-count: 2; column-gap: 48px; }
.bm-block { break-inside: avoid; display: block; margin-bottom: 40px; }
.bm-block h2 { margin-bottom: 14px; }
.bm-crew { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.4; }
.bm-crew > div { display: flex; flex-direction: column; gap: 1px; }
.bm-crew__role { font-size: 12px; letter-spacing: 0.04em; color: var(--muted-2); }
.bm-list { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.bm-list strong { font-weight: 600; }

.bm-back {
	align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 0; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
}

/* Lecteur vidéo en surimpression */
.bm-video {
	position: fixed; inset: 0; z-index: 50;
	background: rgba(10, 10, 10, 0.94);
	display: flex; align-items: center; justify-content: center;
	padding: 16px;
}
.bm-video[hidden] { display: none; }
.bm-video__inner { width: min(1100px, 100%); }
.bm-video__bar { display: flex; justify-content: flex-end; }
.bm-video__close {
	width: 48px; height: 48px; background: none; border: 0; color: #fff; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.bm-video__player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; margin-top: 8px; }
.bm-video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body.bm-noscroll { overflow: hidden; }

/* ---------- À propos ---------- */

.bm-about { padding: 24px var(--gutter) 56px; display: flex; flex-direction: column; gap: 72px; }
.bm-about__col { width: 100%; max-width: 740px; align-self: center; display: flex; flex-direction: column; gap: 72px; }
.bm-about__text { display: flex; flex-direction: column; gap: 24px; }
.bm-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.bm-prose { font-size: 17px; line-height: 1.65; color: var(--ink); }
.bm-about .bm-prose p { margin: 0 0 14px; text-align: justify; hyphens: auto; }
.bm-about .bm-prose p:last-child { margin-bottom: 0; }

.bm-contact { display: flex; flex-direction: column; gap: 16px; }
.bm-contact__toggle {
	align-self: flex-start; background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
	color: var(--ink); font-size: 17px; font-weight: 300;
	text-decoration: underline; text-underline-offset: 4px;
}
.bm-contact__msg { margin: 0; font-size: 17px; line-height: 1.5; }
.bm-contact__msg--err { color: #a12a1f; }

.bm-form { display: flex; flex-direction: column; gap: 22px; padding-top: 8px; }
.bm-form[hidden] { display: none; }
.bm-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.bm-form label {
	display: flex; flex-direction: column; gap: 8px;
	font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.bm-form input,
.bm-form textarea {
	font-family: inherit; font-size: 17px; font-weight: 300; color: var(--ink);
	background: transparent; text-transform: none; letter-spacing: 0;
}
.bm-form input { border: 0; border-bottom: 1px solid #8a8a8a; padding: 8px 0; border-radius: 0; }
.bm-form textarea { border: 1px solid #8a8a8a; padding: 12px; line-height: 1.5; resize: vertical; border-radius: 0; }
.bm-form__send {
	align-self: flex-start; font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
	color: #fff; background: var(--ink); border: 0; padding: 14px 28px; min-height: 44px; cursor: pointer;
}
.bm-form__send:hover { background: #333; }
.bm-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bm-about__footer { padding-top: 20px; border-top: 1px solid #ececec; text-align: center; }
.bm-about__footer a { color: #8a8a8a; font-size: 12px; letter-spacing: 0.06em; padding: 8px 0; display: inline-block; }

/* ---------- Pages simples (mentions légales) ---------- */

.bm-page { padding: 24px var(--gutter) 120px; max-width: calc(1100px + 2 * var(--gutter)); }
.bm-page__title { margin: 0 0 40px; font-size: 22px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; }
.bm-prose--legal { columns: 3 280px; column-gap: 56px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.bm-prose--legal h2 { break-after: avoid; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.bm-prose--legal p { break-inside: avoid; margin: 0 0 40px; }

/* ---------- Tablette et téléphone ---------- */

@media (max-width: 1024px) {
	:root { --gutter: 32px; --header-h: 110px; }
	.bm-home__info { left: 40px; bottom: 40px; right: 40px; }
	.bm-film__grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
}

@media (max-width: 760px) {
	:root { --gutter: 16px; --header-h: auto; }
	.bm-header { flex-wrap: wrap; padding-top: 20px; padding-bottom: 12px; row-gap: 4px; }
	.bm-logo img { width: 150px; }
	.bm-header__right { width: 100%; justify-content: space-between; gap: 16px; }
	.bm-nav { gap: 20px; }
	.bm-home { height: 70vh; height: 70svh; }
	.bm-home__shade, .bm-home__info { opacity: 1; }
	.bm-home__info { left: 20px; right: 20px; bottom: 24px; }
	.bm-home__title { font-size: 28px; }
	.bm-home__arrow { display: none; }
	.bm-mosaic__grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.bm-tile__shade, .bm-tile__info { opacity: 1; }
	.bm-film__head h1 { font-size: 30px; }
	.bm-film__body { padding-top: 32px; }
	.bm-film__cols { column-count: 1; }
	.bm-film__synopsis p { text-align: left; }
	.bm-form__row { grid-template-columns: minmax(0, 1fr); }
	.bm-about { gap: 48px; }
	.bm-about__col { gap: 48px; }
	.bm-about .bm-prose p { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: 0.01ms !important; }
}
