/* Reprend la charte de la vitrine Hydracom (resources/sass/guest/guest.scss) */

@font-face {
	font-family: 'Inter';
	font-weight: 400 800;
	font-display: swap;
	src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Montserrat';
	font-weight: 400 800;
	font-display: swap;
	src: url('fonts/montserrat-latin.woff2') format('woff2');
}

:root {
	--primary: #11141A;
	--info: #1E97D4;
	--info-dark: #007CB1;
	--success: #A6D044;
	--grey: #5C5C5C;
	--grey-light: #F2F0F0;
	--light: #FEFEFE;
	--hero-dark: #1A2638;
	--font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--font-heading: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--primary);
	background: var(--light);
	line-height: 1.55;
	overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
img { max-width: 100%; height: auto; }

.hp-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header */
.hp-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(254, 254, 254, .96);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--grey-light);
}
.hp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 85px; }
.hp-logo { height: 48px; width: auto; display: block; }

/* Boutons */
.hp-btn {
	display: inline-block;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--info);
	color: var(--light);
	font-family: var(--font-heading);
	font-weight: 700;
	text-decoration: none;
	transition: background .2s, transform .2s;
}
.hp-btn:hover { background: var(--info-dark); transform: translateY(-2px); }
.hp-btn-small { padding: 10px 20px; font-size: .9rem; }
.hp-btn-ghost { background: transparent; border: 2px solid var(--light); }
.hp-btn-ghost:hover { background: rgba(255, 255, 255, .15); }
.hp-btn-outline { background: transparent; color: var(--info); border: 2px solid var(--info); }
.hp-btn-outline:hover { background: var(--info); color: var(--light); }

.hp-eyebrow {
	display: inline-block;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--info);
	margin-bottom: 16px;
}

/* Hero */
.hp-hero {
	position: relative;
	color: var(--light);
	background: url('img/cover.webp') center / cover fixed;
	overflow: hidden;
}
.hp-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to right, var(--hero-dark) 0%, rgba(14, 52, 82, .15) 100%);
}
.hp-hero-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: clamp(32px, 5vw, 64px);
	align-items: center;
	min-height: calc(100vh - 85px);
	padding-top: clamp(64px, 10vw, 120px);
	padding-bottom: clamp(64px, 10vw, 120px);
}
.hp-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); letter-spacing: -.01em; }
.hp-hero p { max-width: 640px; font-size: 1.1rem; opacity: .92; }
.hp-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hp-hero-media { display: flex; justify-content: center; }
.hp-hero-media img { max-width: 640px; width: 100%; }

/* Sections */
.hp-section { padding: clamp(56px, 8vw, 96px) 0; }
.hp-section-alt { background: var(--grey-light); }
.hp-section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.hp-section h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); }
.hp-section p { color: var(--grey); }

.hp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
	gap: 24px;
}
.hp-card {
	background: var(--light);
	border: 1px solid var(--grey-light);
	border-left: 4px solid var(--success);
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
}
.hp-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.hp-card p { margin: 0; }

.hp-help { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.hp-help > div:first-child { max-width: 640px; }
.hp-contact { display: flex; flex-wrap: wrap; gap: 16px; }

/* Footer */
.hp-footer { padding: 32px 0; border-top: 1px solid var(--grey-light); font-size: .9rem; color: var(--grey); }
.hp-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hp-footer-logo { width: 150px; }

/* Animation d'apparition */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.reveal { opacity: 1; transform: none; transition: none; }
}

/* Mobile */
@media (max-width: 900px) {
	.hp-hero { background-attachment: scroll; }
	.hp-hero-inner { grid-template-columns: 1fr; min-height: auto; text-align: center; }
	.hp-hero p { margin: 0 auto; }
	.hp-actions { justify-content: center; }
	.hp-hero-media img { max-width: 420px; }
	.hp-help { flex-direction: column; text-align: center; }
	.hp-contact { justify-content: center; }
	.hp-footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
	.hp-header .hp-btn-small { padding: 8px 14px; font-size: .8rem; }
	.hp-logo { height: 38px; }
}
