/* 1. Polices et reglages globaux */
@font-face {
	font-family: Roboto;
	src: url("../assets/fonts/roboto-light.ttf") format("truetype");
	font-weight: 300;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../assets/fonts/roboto-regular.ttf") format("truetype");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../assets/fonts/roboto-semibold.ttf") format("truetype");
	font-weight: 600;
	font-display: swap;
}

@font-face {
	font-family: Roboto;
	src: url("../assets/fonts/roboto-bold.ttf") format("truetype");
	font-weight: 700;
	font-display: swap;
}

@font-face {
	font-family: FontAwesome;
	src: url("../assets/fonts/fontawesome-webfont.woff2") format("woff2");
	font-display: block;
}

:root {
	--blue: #0094d9;
	--pale-blue: #e2eaef;
	--text: #3c3c3c;
	--dark: #4a4a49;
	--white: #fff;
	--container: 1500px;
	--header-height: 90px;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	margin: 0;
	color: var(--text);
	background: var(--white);
	font-family: Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 26px;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
[hidden] { display: none !important; }
p { margin: 0 0 25px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

h1, h2 { margin: 0 0 25px; }
h2 {
	color: var(--blue);
	font-size: 32px;
	font-weight: 400;
	line-height: 40px;
	text-transform: uppercase;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 40px;
}

.icon { font-family: FontAwesome; font-weight: 400; }

.button {
	display: inline-block;
	padding: 0 20px;
	border: 0;
	border-radius: 20px;
	background: var(--blue);
	color: var(--white);
	font-size: 14px;
	font-weight: 400;
	line-height: 40px;
	letter-spacing: 1.4px;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 150ms;
}

.button:hover { background: #007db8; color: var(--white); text-decoration: none; }
.button-dark { background: #3c3c3c; }
.button-dark:hover { background: #222; }
.button-spaced { margin-top: 15px; }

.divider { width: 50px; height: 2px; background: var(--blue); }
.divider + p { margin-top: 25px; }
.subtitle { font-size: 27.2px; font-weight: 300; line-height: 32px; }

/* 2. Entete et navigation */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 20;
	height: var(--header-height);
	background: var(--pale-blue);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 25px;
	height: 100%;
	padding-inline: 35px;
}

.brand { flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a { color: #000; font-size: 14.4px; font-weight: 600; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--blue); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.phone { color: #000; font-size: 18px; font-weight: 600; white-space: nowrap; }
.phone .icon { margin-right: 5px; color: var(--blue); }

.menu-toggle {
	display: none;
	width: 30px;
	padding: 4px;
	border: 0;
	background: transparent;
}

.menu-toggle span { display: block; height: 2px; margin-block: 4px; background: var(--white); }

/* 3. Grand visuel d'accueil */
.hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 600px;
	height: 100vh;
	background: linear-gradient(rgb(249 249 249 / 65%), rgb(249 249 249 / 65%)), url("../assets/images/bg-ginvest.jpg") center / cover;
	text-align: center;
}

.hero-content { width: min(700px, calc(100% - 80px)); }
.hero h1 { margin: 0; line-height: 0; }
.hero h1 img { width: 100%; padding: 20px; }
.hero-buttons { display: flex; justify-content: center; gap: 15px; margin-block: 25px; }
.scroll-down { position: absolute; bottom: 36px; left: calc(50% - 18px); }

/* 4. Sections de contenu */
.section { padding-block: 60px; background: var(--pale-blue); }
.section-intro { padding-block: 120px; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; column-gap: 40px; }
.section-image { text-align: center; }
.section-content { padding: 40px; }
.intro-title { color: #222; font-size: 40px; font-weight: 600; line-height: 48px; }
.inline-logo { margin-right: 4px; }
.section-intro .subtitle { margin-top: -10px; }
.section-benefits .section-image img { width: 100%; }
.savings-image { grid-column: 2; grid-row: 1; }
.section-savings .section-content { grid-column: 1; grid-row: 1; }

.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 26px; line-height: 27px; }
.check-list li::before {
	position: absolute;
	left: 0;
	color: var(--blue);
	font-family: FontAwesome;
	content: "\f00c";
}
.check-list + p { margin-top: 25px; }

/* 5. Bandeau de contact */
.contact-banner {
	display: grid;
	place-items: center;
	min-height: 600px;
	padding: 60px 25px;
	background: var(--dark) url("../assets/images/parallax-home.jpg") center top / cover;
	color: var(--white);
	text-align: center;
}

.banner-content { width: 50%; }
.contact-banner h2 { color: inherit; font-size: 40px; font-weight: 600; line-height: 48px; text-transform: none; }

/* 6. Pied de page */
.footer-main { padding-block: 60px; background: var(--dark); color: var(--white); }
.footer-columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.footer-main h2 { margin-bottom: 15px; color: inherit; font-size: 24px; line-height: 29px; }
.footer-main a:not(.button) { color: inherit; }
.footer-main p { margin-bottom: 15px; }
.footer-logo { margin-bottom: 15px; }
.footer-main .divider + p { margin-top: 15px; }
.footer-credits { padding: 40px 25px; text-align: center; font-size: 13px; line-height: 20px; }
.footer-credits p { margin-bottom: 25px; }
.back-to-top { display: inline-block; font-size: 26px; line-height: 30px; }

/* 7. Bandeau cookies */
.cookie-banner { position: fixed; inset: auto 0 0; z-index: 30; background: var(--white); color: #333; text-align: center; }
.cookie-inner { display: inline-block; padding: 10px; text-align: left; }
.cookie-inner p { margin-bottom: 15px; font-family: Tahoma, Arial, sans-serif; font-size: 12.16px; }
.cookie-actions { display: flex; gap: 52px; padding: 10px 30px; }
.cookie-actions a, .cookie-actions button { padding: 4px 12px; border: 1px solid transparent; border-radius: 4px; color: var(--white); font-size: 12px; line-height: 20px; letter-spacing: 1px; }
.cookie-more { background: linear-gradient(#444, #222); }
.cookie-accept { background: #49afcd; }

/* 8. Tablettes et petits ecrans */
@media (max-width: 1219px) {
	.container { padding-inline: 25px; }
	.main-nav { display: none; }
	.menu-toggle { display: block; }
	.main-nav.is-open {
		position: fixed;
		inset: var(--header-height) 0 auto auto;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		width: min(320px, 100%);
		max-height: calc(100vh - var(--header-height));
		overflow-y: auto;
		padding: 20px;
		background: #333;
	}
	.main-nav.is-open a { padding: 12px; color: var(--white); white-space: normal; }
	.main-nav.is-open a[aria-current] { color: var(--blue); }
	.section-intro { padding-block: 60px; }
	.section-content { padding: 25px; }
	.two-columns { column-gap: 25px; }
	.intro-title { font-size: 32px; line-height: 38.4px; text-transform: none; }
	h2 { font-size: 27.2px; line-height: 33.6px; text-transform: none; }
	.contact-banner h2 { font-size: 32px; line-height: 38.4px; }
	.banner-content { width: 66.667%; }
	.footer-columns { gap: 25px; }
}

@media (max-width: 767px) {
	.header-inner { padding-inline: 25px; }
	.phone { display: none; }
	.hero { min-height: 500px; }
	.hero-content { width: calc(100% - 30px); }
	.hero-buttons { gap: 10px; flex-wrap: wrap; }
	.hero-buttons .button { font-size: 12px; padding-inline: 15px; }
	.two-columns, .footer-columns { grid-template-columns: 1fr; row-gap: 25px; }
	.section-intro { padding-block: 40px; }
	.section-content { padding: 25px; }
	.section-image img { max-height: 450px; object-fit: contain; }
	.savings-image, .section-savings .section-content { grid-column: auto; grid-row: auto; }
	.section-benefits .section-image img { max-height: none; }
	.contact-banner { min-height: 400px; }
	.banner-content { width: 90%; }
	.footer-main { padding-block: 40px; }
	.footer-columns { row-gap: 35px; }
	.cookie-actions { gap: 15px; padding-inline: 0; }
	.cookie-inner p { line-height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.button { transition: none; }
}
