html {
	font-family: 'Maison Neue';
	font-size: 18px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	height: 100%;
}

body {
	padding: 0;
	margin: 0;
	min-height: 100%;
	background: #ecd5d1;
	/* Neutralisé par le JS à la fin de l'animation d'entrée : évite que les
	   éléments décalés par GSAP créent une barre de défilement pendant 1,5 s. */
	overflow: hidden;
}

::-moz-selection {
	color: white;
	background: #d4eef7;
}

::selection {
	color: white;
	background: #d4eef7;
}

@font-face {
	font-family: 'Maison Neue';
	src: url('fonts/MaisonNeue-Book.eot');
	src: url('fonts/MaisonNeue-Book.eot?#iefix') format('embedded-opentype'),
		url('fonts/MaisonNeue-Book.woff') format('woff'),
		url('fonts/MaisonNeue-Book.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
	-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
}

@font-face {
	font-family: 'Wild Spirit Alt';
	src: url('fonts/WildSpiritAlt.eot');
	src: url('fonts/WildSpiritAlt.eot?#iefix') format('embedded-opentype'),
		url('fonts/WildSpiritAlt.woff') format('woff'),
		url('fonts/WildSpiritAlt.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

form { padding: 0; margin: 0; }
p { padding: 0; margin: 0; }

.visuallyHidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ---------------------------------------------------------------- Fond ---
   position:fixed plutôt que background-attachment:fixed, que iOS ne gère
   pas. C'est pour ça que le fond était masqué sur mobile en 2017 ; il peut
   maintenant rester affiché partout. */
.background {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	background: url('bg2.jpg') no-repeat center center;
	background-size: cover;
}

/* ------------------------------------------------------------ Structure ---
   Colonne flex : logo en haut, accroche poussée en bas par margin-top:auto,
   footer en dernier. Plus aucun calage en pixels. */
.content {
	position: relative;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 80px 40px 40px;
}

.logo {
	width: 240px;
	max-width: 65%;
	margin: 0;
	text-align: center;
	visibility: hidden;
}

.logo img {
	display: block;
	width: 100%;
	height: auto;
}

.catch {
	width: 100%;
	max-width: 580px;
	margin: auto 0 0;
	padding-bottom: 6vh;
	text-align: center;
}

.catch h1,
.catch h2,
.catch h3 {
	padding: 0;
	margin: 0;
	font-size: 18px;
	line-height: 24px;
	color: white;
	font-weight: normal;
	font-style: normal;
}

.catch h1 {
	font-family: 'Wild Spirit Alt';
	font-size: clamp(80px, 20vw, 140px);
	line-height: 1;
	color: white;
	font-weight: 500;
}

.jsTitle { visibility: hidden; }
.jsInputForm { visibility: hidden; }

/* --------------------------------------------------------- Tagline Lottie ---
   aspect-ratio remplace la hauteur fixe : l'animation se redimensionne au
   lieu d'être rognée par overflow:hidden sur les petits écrans. */
#bodymovin2 {
	background: transparent;
	width: 100%;
	max-width: 580px;
	aspect-ratio: 580 / 280;
	margin: 0 auto -9%;
	overflow: hidden;
	text-align: center;
	opacity: 1;
}

#bodymovin2 svg {
	display: block;
	width: 100% !important;
	height: 100% !important;
}

/* ------------------------------------------------------------ Formulaire ---*/
.inputForm {
	width: 100%;
	max-width: 395px;
	margin: 20px auto 0;
	text-align: left;
	background: white;
}

.inputForm h3 {
	color: black;
	width: 100%;
	box-sizing: border-box;
	padding: 15px;
	text-align: center;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	border-bottom: 1px solid #ebebeb;
}

.inputForm input[type=email] {
	font-family: 'Maison Neue';
	height: 56px;
	padding: 20px;
	/* 16px minimum : en dessous, iOS zoome automatiquement au focus. */
	font-size: 16px;
	border: 0;
	outline: none;
	width: 85%;
	box-sizing: border-box;
	vertical-align: middle;
}

.inputForm button {
	border: 0;
	box-sizing: border-box;
	outline: none;
	height: 56px;
	width: 15%;
	padding: 20px;
	background: url('arrow.png') white no-repeat 14px center;
	vertical-align: middle;
	text-align: center;
	text-decoration: none;
	-webkit-transition: all ease-in-out 0.1s;
	transition: all ease-in-out 0.1s;
	cursor: pointer;
}

.inputForm button:hover {
	background: url('arrow.png') white no-repeat 20px center;
}

.error .inputForm input[type=email],
.error .inputForm button {
	color: #f75b4b;
}

.error .inputForm button {
	border-left: 0;
}

.message {
	color: #f75b4b;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	padding: 20px;
}

.message[hidden] { display: none; }

/* ---------------------------------------------------------------- Footer ---*/
footer {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	margin-top: 40px;
}

.social a {
	display: inline-block;
	margin-right: 15px;
	line-height: 0;
}

.social a:last-child { margin-right: 0; }

.links {
	color: white;
	text-align: right;
}

.links a {
	text-decoration: none;
	color: white;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.links a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ Écran merci ---*/
.merci {
	position: fixed;
	z-index: 10;
	top: 0;
	left: 0;
	box-sizing: border-box;
	width: 100%;
	height: 0;
	padding: 20px;
	background: black;
	opacity: 0.9;
	display: none;
	justify-content: center;
	align-content: center;
	align-items: center;
	flex-flow: column;
	text-align: center;
	color: white;
	-webkit-transition: all ease-in-out 2s;
	transition: all ease-in-out 2s;
}

.merci h1 {
	font-family: 'Wild Spirit Alt';
	font-size: clamp(80px, 20vw, 140px);
	line-height: 1;
	color: white;
	font-weight: 500;
	display: block;
	margin: 0 0 10px;
}

.merci.active {
	display: flex;
	height: 100%;
	height: 100dvh;
}

/* ---------------------------------------------------------------- Mobile ---*/
@media (max-width: 700px) {
	.content { padding: 50px 24px 30px; }
	.logo { width: 230px; max-width: 78%; }
	.catch { padding-bottom: 4vh; }
	.catch h2 { font-size: 16px; line-height: 22px; }
	footer { margin-top: 30px; }
	.links a { font-size: 11px; letter-spacing: 0.15em; }
}

/* Écrans courts (paysage sur téléphone) : on rend la page défilable plutôt
   que de rogner le formulaire. */
@media (max-height: 620px) {
	.content { padding-top: 30px; }
	.logo { width: 180px; }
	.catch { padding-bottom: 2vh; }
	#bodymovin2 { max-width: 380px; }
}
