/* Page "Thèmes d'investissement 2027" (BPFM-681) — CSS isolé de la page, aucune dépendance aux autres dist-* */

:root {
	--green: #19332F;
	--indigo: #4B3FC7;
	--indigo-dark: #3C32A8;
	--footer-bg: #05313C;
	--grey-field: #EFEFEF;
	--grey-text: #6B6B6B;
	--error: #C0392B;
	--font-serif: 'BNPP Serif', serif;
	--font-sans: 'Open Sans', sans-serif;
	--font-expanded: 'BNPP Expanded Sans', 'Open Sans', sans-serif;
}

/* Polices partagées avec les autres pages (fichiers non dupliqués) */
@font-face {
	font-family: 'BNPP Serif';
	src: url('/dist-media/fonts/bnpp-serif-regular-v2.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'BNPP Serif';
	src: url('/dist-media/fonts/bnpp-serif-bold-v2.ttf') format('truetype');
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: 'BNPP Expanded Sans';
	src: url('/dist/fonts/bnpp-expanded-sans-bold.woff2') format('woff2'),
		url('/dist/fonts/bnpp-expanded-sans-bold.woff') format('woff');
	font-weight: 700;
	font-display: swap;
}
@font-face {
	font-family: 'Open Sans';
	src: url('/dist/fonts/opensans-regular.woff2') format('woff2'),
		url('/dist/fonts/opensans-regular.woff') format('woff');
	font-weight: 400;
	font-display: swap;
}
@font-face {
	font-family: 'Open Sans';
	src: url('/dist/fonts/opensans-semibold.woff2') format('woff2'),
		url('/dist/fonts/opensans-semibold.woff') format('woff');
	font-weight: 600;
	font-display: swap;
}
@font-face {
	font-family: 'Open Sans';
	src: url('/dist-media/fonts/OpenSans-Bold.woff2') format('woff2'),
		url('/dist-media/fonts/OpenSans-Bold.woff') format('woff');
	font-weight: 700;
	font-display: swap;
}

*, *::before, *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html {
	-webkit-text-size-adjust: 100%;
}
body {
	font-family: var(--font-sans);
	font-size: 15px;
	line-height: 1.55;
	color: var(--green);
	background: #fff;
}
img, video {
	display: block;
	max-width: 100%;
}
ul {
	list-style: none;
}
a {
	color: inherit;
}

/* ---------- Header ---------- */
.site-header {
	background: #fff;
	/* XD header bar is 124px tall; logo-BPF-header is 64px, vertically centered → 30px padding */
	padding: 30px 16px;
	text-align: center;
}
.site-header__logo {
	display: inline-block;
	/* XD logo-BPF-header aspect lock: 309.762 × 64 (horizontal lockup, not the vertical mark) */
	width: 309.76px;
	height: auto;
	max-width: 100%;
}

/* ---------- Hero (vidéo) ---------- */
.hero {
	position: relative;
	overflow: hidden;
	/* XD Rectangle 108: solid #E4E4E4 behind the visual (visible only if the video does not cover) */
	background: #E4E4E4;
	color: #fff;
}
.hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* XD Rectangle 155: solid #18332F at opacity ~0.197 (spec 0.2), no blend mode, over the visual */
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #18332F;
	opacity: 0.2;
	pointer-events: none;
}
.hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1240px;
	min-height: 500px;
	margin: 0 auto;
	padding: 48px 24px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.hero__content {
	width: 50%;
	/* XD title text frame is 620px wide (intro frame is 520px, same left edge) */
	max-width: 620px;
	margin-right: 4%;
}
.hero__kicker {
	font-family: var(--font-expanded);
	font-weight: 700;
	font-size: 24px;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.hero__title {
	margin: 0;
	font-family: var(--font-expanded);
	font-weight: 700;
	/* XD rangedStyle of the H1 (landing-V3): BNPP Expanded Sans Bold 36 / line-height 40 / tracking 0 / uppercase / #FFF */
	font-size: 36px;
	line-height: 40px;
	letter-spacing: 0;
	text-transform: uppercase;
}
.hero__subtitle {
	margin: 0 0 25px;
	font-family: var(--font-expanded);
	font-weight: 700;
	/* XD rangedStyle of the subtitle (same text frame as the H1): Bold 28 / line-height 40 / tracking 0 / no transform / #FFF */
	font-size: 28px;
	line-height: 40px;
	letter-spacing: 0;
	/* 25px = gap in XD between the title frame (y 251, height 154) and the intro frame (y 430) */
}
.hero__text {
	font-family: var(--font-sans);
	font-weight: 400;
	/* XD P.intro (landing-V3): Open Sans Regular 22 / line-height 29 / tracking 0 / #FFF; text frame 520px */
	font-size: 22px;
	line-height: 29px;
	letter-spacing: 0;
	max-width: 520px;
}

/* ---------- Contenu : 2 colonnes ---------- */
.themes {
	padding: 56px 24px 72px;
}
.themes__inner {
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 96px;
	align-items: start;
}
.themes__title {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 28px;
	line-height: 1.25;
	color: var(--green);
	margin-bottom: 28px;
}
.themes__intro p,
.themes__list {
	margin-bottom: 16px;
}
.themes__image {
	width: 100%;
	height: auto;
	margin: 0 0 28px;
	border-radius: 14px;
}
.themes__list {
	padding-left: 0;
}
.themes__list li {
	position: relative;
	padding-left: 12px;
}
.themes__list li::before {
	content: '•';
	position: absolute;
	left: 0;
}
.authors {
	margin-top: 36px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
.author {
	display: flex;
	align-items: center;
	gap: 16px;
}
.author__photo {
	flex: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}
.author__text {
	font-size: 13px;
	line-height: 1.45;
}

/* ---------- Formulaire ---------- */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.field {
	min-width: 0;
	border: 0;
}
.field legend {
	padding: 0;
	margin-bottom: 8px;
	font-size: 15px;
	line-height: 1.4;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
	display: block;
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--grey-field);
	font-family: var(--font-sans);
	font-size: 15px;
	color: var(--green);
	-webkit-appearance: none;
	appearance: none;
}
.field select {
	padding-right: 30px;
	text-overflow: ellipsis;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%2319332F'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}
.field select:invalid {
	color: #9a9a9a;
}
.field input::placeholder {
	color: #9a9a9a;
}
.field input:focus,
.field select:focus {
	outline: 2px solid var(--indigo);
	outline-offset: 0;
}
.field.has-error input,
.field.has-error select {
	border-color: var(--error);
}
.field-row {
	display: grid;
	grid-template-columns: 38% 1fr;
	gap: 8px;
}
.error {
	margin-top: 4px;
	font-size: 13px;
	color: var(--error);
}
.form-alert {
	margin-bottom: 14px;
	padding: 10px 14px;
	border: 1px solid var(--error);
	color: var(--error);
	font-size: 14px;
}

/* Choix Oui/Non et montants : boutons radio affichés comme des cases */
.field--choices {
	margin-top: 8px;
}
.choices {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.choices--inline {
	flex-direction: row;
	gap: 24px;
}
.choice,
.consent {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
}
.choice input,
.consent input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.choice span::before,
.consent span::before {
	content: '';
	display: inline-block;
	flex: none;
	width: 20px;
	height: 20px;
	margin-right: 10px;
	vertical-align: middle;
	background: var(--grey-field);
	border: 1px solid transparent;
}
.choice input:checked + span::before,
.consent input:checked + span::before {
	background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' viewBox='0 0 12 9'%3E%3Cpath d='M1 4.5l3.2 3L11 1' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 12px 9px no-repeat;
}
.choice input:focus-visible + span::before,
.consent input:focus-visible + span::before {
	outline: 2px solid var(--indigo);
}
.field--choices.has-error .choice span::before {
	border-color: var(--error);
}
.field--consent.has-error .consent span::before {
	border-color: var(--error);
}

/* Mentions légales */
.legal {
	margin-top: 10px;
	font-size: 11.5px;
	line-height: 1.5;
	color: var(--grey-text);
}
.legal__title {
	margin-bottom: 6px;
	font-size: 15px;
	color: var(--green);
}
.consent {
	align-items: flex-start;
	font-size: 12.5px;
	line-height: 1.5;
	color: var(--grey-text);
}
.consent span::before {
	margin-top: -2px;
}
.consent a {
	text-decoration: underline;
}

.btn {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 18px;
	margin-top: 8px;
	height: 48px;
	padding: 0 22px;
	border: 0;
	background: #369785;
	color: #fff;
	font-family: var(--font-sans);
	font-size: 16px;
	cursor: pointer;
	transition: background-color .2s;
}
.btn:hover,
.btn:focus-visible {
	background: #4BB39B;
}
.btn__arrow {
	width: 28px;
	height: auto;
}

/* ---------- Confirmation ---------- */
.banner {
	position: relative;
	height: 190px;
	overflow: hidden;
	background: #1a1060;
}
.banner__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.confirmation {
	max-width: 640px;
	margin: 0 auto;
	padding: 64px 24px 80px;
	text-align: center;
}
.confirmation__title {
	margin-bottom: 28px;
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 30px;
	line-height: 1.25;
	color: var(--green);
}
.confirmation p {
	margin-bottom: 18px;
	font-size: 15px;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--footer-bg);
	color: #fff;
	padding: 56px 24px 48px;
	text-align: center;
}
.site-footer__logo {
	margin: 0 auto 40px;
	width: 200px;
	height: auto;
}
.site-footer__legal {
	font-size: 12px;
	line-height: 1.9;
	opacity: .9;
}
.site-footer__legal a {
	text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.themes__inner {
		gap: 56px;
	}
}
@media (max-width: 760px) {
	body {
		font-size: 14px;
	}
	.site-header {
		padding: 16px 16px 14px;
	}
	/* No mobile artboard in this XD; keep the desktop logo width and let max-width: 100% shrink it. */
	.hero__inner {
		min-height: 380px;
		padding: 40px 20px;
		justify-content: flex-start;
		align-items: flex-end;
	}
	.hero__content {
		width: 100%;
		max-width: none;
		margin-right: 0;
	}
	.hero__kicker {
		font-size: 17px;
	}
	.hero__title {
		font-size: 20px;
		margin-bottom: 14px;
	}
	.hero__title + .hero__subtitle {
		margin: -8px 0 14px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
	.hero__text {
		font-size: 14px;
	}
	.themes {
		padding: 36px 20px 48px;
	}
	.themes__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.themes__title {
		font-size: 24px;
		margin-bottom: 20px;
	}
	.banner {
		height: 120px;
	}
	.confirmation {
		padding: 40px 20px 56px;
	}
	.confirmation__title {
		font-size: 24px;
	}
	.site-footer {
		padding: 40px 20px 36px;
	}
	.site-footer__logo {
		width: 170px;
		margin-bottom: 28px;
	}
	.site-footer__legal {
		font-size: 11px;
		line-height: 1.8;
	}
}
