
:root {
  /* largeur de ton container */
  --container-width: 622px;
  --half-container: calc(var(--container-width) / 2);
}

html{ height:100%;}

/* fonts definitions */

@font-face {
	font-family: 'Abril Fatface';
	font-style: normal;
	font-weight: 400;
	src: url(../fonts/abril-fatface-regular.ttf);
}

@font-face {
	font-family: 'Bebas Neue Pro';
	font-style: normal;
	font-weight: 400;
	src: url('../fonts/Dharma Type - Bebas Neue Pro Regular.otf') format('opentype');
}

@font-face {
	font-family: 'Bebas Neue Pro';
	font-style: normal;
	font-weight: 700;
	src: url('../fonts/Dharma Type - Bebas Neue Pro Bold.otf') format('opentype');
}


/* body defs */

body{
	min-height: 100%;
	display: flex;
	flex-direction: column;
	font-family: 'Roboto';
	line-height: normal;
	letter-spacing: 0px;
	text-align: center;
	background-color: #86cfef; /* ciel, fallback avant chargement du fond */
	/*padding: 84px 0 0 0;*/
	position:relative;
	overflow: auto;
	overflow-x:hidden;
	background-image:url(../assets/fond-desktop.svg);
	background-repeat:no-repeat;
	background-size: cover; /*100% 100%*/
	background-position: center top;
}


.container{
	max-width: 622px;
	display: flex;
	flex-direction: column;
	align-self: center;
	background-color: #fff;
	border-radius: 15px;
	margin-bottom:100px;
	position:relative;
	margin-top:45px;
}



/* text defs */

.text-title{
	color: #000;
	font-size: 32px;
	font-weight: 700;
}

.text-std{
	color: #4b4b4b;
	font-size: 14px;
	font-weight: 400;
}
.text-formats{
	color: #4b4b4b;
	font-size: 12px;
	font-weight: 400;
}
.text-footer{
	color: #000;
	font-size: 10px;
	font-style: italic;
	font-weight: 400;
}


.warning{
	color: #e32213;
	font-size: 12px;
	font-weight: 700;
}

.link{
	text-decoration: underline;
}

.bold{
	font-weight: 600;
}


.btn{
	box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
	width: 149px;
	display: flex;
	justify-content: center;
	align-self: center;
	color: #fff;
	font-size: 25px;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0px;
	text-align: center;
	background-color: #006b52;
	padding: 8px 16px 7px 16px;
	border-radius: 40px;
}
.btn:hover,.btn:active{
	filter:brightness(1.3);
}


/* group rate */

.group-rate{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 9px;
	align-self: center;
	font-weight: 700;
}

.group-rate .stars{
	width: 146px; height: 26px;
	flex-shrink: 0;
}

.group-rate .group-rate-text{
	align-self: stretch;
	color: #000;
	font-size: 20px;
}

.group-rate .group-rate-btn{
	margin-left: 1px;
	width: 235px;
	display: flex;
	justify-content: center;
	color: #fff;
	font-size: 25px;
	font-style: normal;
	letter-spacing: 0px;
	text-align: center;
	background-color: #006b52;
	padding: 6px 14px 9px 14px;
	border-radius: 40px;
}
.group-rate .group-rate-btn:hover{
	filter:brightness(1.3);
}






/* footer */

a:hover{
	text-decoration: underline;
}

.footer{
	display: flex;
	align-items: flex-start;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	background-color: #000;
	padding: 21px 5%;
	font-style:normal;
	margin-top:auto;
	justify-content:center;
	width:100%;
}

.footer a{
	margin:0 30px;
}

.footer .separator{
	margin-left: 0;
	color: #fff;
	font-size: 10px;
	font-weight: 400;
}

@media(max-width:740px){
	.footer{
		flex-direction: column;
		align-items:center;
		gap:9px;
	}
	.footer .separator{ display:none;}
}


/* decorations */

/* Perso gauche : pin "1000€" + couple + véhicules.
   Centré horizontalement dans l'espace libre entre le bord de l'écran et la carte. */
.deco-left{
	position: absolute; z-index: -1; top: 20px; pointer-events: none;
	left: calc((50vw - var(--half-container)) / 2);
	transform: translateX(-50%);
}

.deco-left .perso-gauche{
	width: 420px; max-width: 34vw; height: auto;
}

/* Borne "100% gagnant".
   Centrée horizontalement dans l'espace libre entre la carte et le bord droit de l'écran. */
.deco-right{
	position: absolute; z-index: -1; pointer-events: none; top: 200px;
	left: calc((150vw + var(--half-container)) / 2);
	transform: translateX(-50%);
}

.deco-right .borne{
	width: 160px; max-width: 13vw; height: auto;
}


/* modal */


.modal-container{
	position: fixed; z-index: 1000; top: 0; left: 0; right: 0; bottom: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.65);
	display:none;
}

.modal-error{
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	background-color: #fff;
	padding: 31px 18px 34px 18px;
	border: 2px solid #008043;
	max-width:400px;
	width:100%;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	margin-left:5%; margin-right:5%;
	display:none;
}

.modal-error .btn-close{
	position: absolute; top: 17px; right: 18px; 
}
.modal-error .btn-close:hover{
	transform: scale(1.1);
	filter:brightness(1.3);
}
.modal-error .btn-close object{
	rotate: 180deg;
	transform-origin: 50% 50%;
	height: 15px;
	pointer-events: none;
}

.modal-error .title{
	margin-right: 12px;
	font-size: 24px;
	font-weight: 500;
	line-height: normal;
}

.modal-error .desc{
	margin-top: 22px;
}

.modal-error .btn-modal{
	margin-left: -12px;
	width: 120px;
	display: flex;
	flex-direction: column;
	align-self: center;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.125;
	margin-top:20px;
}
.modal-error .btn-modal:hover{
	filter:brightness(1.3);
}

.modal-error .btn-modal .fermer{
	position: relative; z-index: 1;
	display: flex;
	justify-content: center;
	flex-shrink: 0;
	font-style: normal;
	letter-spacing: 0px;
	text-align: center;
	background-color: #008043;
	padding: 13px 13px 11px 13px;
	border-radius: 3px;
}

.modal-error .btn-modal .rectangle{
	margin-top: -39px;
	height: 42px;
	flex-shrink: 0;
	background-color: #006025;
	border-radius: 3px;
}
.modal-error .subtitle{
	font-weight:600;
	margin-top:8px;
}
.modal-error ul{
	text-align:left;
	margin-top:4px;
	margin-left:20px;
}
.modal-error ul li{
	list-style-type: disc;
}

.modal1{
	padding: 31px 32px 21px 32px;
	max-width:400px;
}

.visuel-top-mobile{
	display:none;
	left:50%;
	bottom: calc(100% - 8px); /* posé au ras du haut de la carte, sans mordre dessus */
	transform:translateX(-50%);
	position:absolute;
	width:100%;
	max-width:600px;
	height:auto;
	margin:0 auto;
}

.header-mobile{
	width:100%;
	display:none;
	background-color: #F5F5F5;
}
.header-mobile object{
	width:100%;
	max-width:640px;
	margin-left:auto; margin-right:auto;
}



/* calque de fond mobile : masqué en desktop, activé (sticky) dans le media query */
.bg-mobile{ display:none; }

/* responsive */

@media(max-width:1370px){
	body{
		padding:0;
		gap:0;
		background-image:none; /* on retire le fond desktop en mobile : le .bg-mobile prend le relais */
	}
	.deco-left{ display:none;}
	.deco-right{ display:none;}
	/* Fond mobile "sticky" : placé juste après le header dans le flux (donc démarre sous
	   le header, nuage visible), il remonte avec le header au scroll, puis se fige à top:0.
	   margin-bottom négatif = il ne prend aucune place, le contenu passe par-dessus. */
	.bg-mobile{
		display:block;
		position: sticky;
		top: 0;
		height: 100vh;
		margin-bottom: -100vh;
		flex-shrink: 0; /* empêche le flex-column de comprimer les 100vh */
		width: 100%;
		z-index:-2;
		pointer-events: none;
		background-image:url(../assets/fond-mobile.png);
		-webkit-background-size: cover;
		-moz-background-size: cover;
		-o-background-size: cover;
		background-size: cover;
		background-position: center top;
	}
	.visuel-top-mobile{ display:block; }
	.header-mobile{ display:block;}
	.container{
		/* espace du haut = hauteur réelle du visuel (largeur/1.553) + écart : s'adapte à tous les écrans */
		margin-top: calc(min(90vw, 600px) * 0.644 + 18px);
		margin-bottom:23px;
		margin-left:5%; margin-right:5%;
	/*	padding-top:112px !important;*/
	}
	.logos-top{ display:none;}
	.footer{
		font-size:10px;
	}
}


@media(max-width:680px){
	
	.container .text-footer{
		margin-top:8px !important;
		font-size:9px;
	}
	.desktop-space{
		line-height:1pt;
	}
	/* texts */
	.text-title{
		font-size:24px;
	}
	.text-std{
		font-size:12px;
	}
}
