* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-font-smoothing: auto;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: Calibri, Arial, Helvetica, sans-serif;
	color: #003366;
	margin-top: 62px;
}

.main_container
{
	width: 94%;
	max-width: 1200px;
	margin: auto;
	padding: 0;
}

.bg_light_blue
{
	background-color: #E6F4F4;
	color: black;
}

#as_menu_box_label nav, nav {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: white;
	height: 62px;
	padding-top: 7px;
	z-index: 888;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav > div
{
	display: flex;
	/*justify-content: space-between;*/
	align-items: center;
}

nav img
{
	height:48px;
	margin-right: 2rem;
}

nav ul {
	list-style: none;
	display: flex;
	gap: 2rem;
}

#as_menu_box_label nav > div > a, nav ul li a {
	color: white;
	color: #003366;
	text-decoration: none;
	font-weight: bold;
	transition: color 0.3s;
	white-space: nowrap;
}

#as_menu_box_label nav > div > a:hover, nav ul li a:hover {
	color: #ffcc00;
}

section {
	padding: 6rem 2rem;
	min-height: calc(100vh - 62px);
}

#apercu
{
	background: linear-gradient(rgba(255,255,255, 0.9), rgba(255,255,255, 0.9)), url(img/apercu.jpg) no-repeat center top / cover;
}

#accueil {
	/*background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2)), url(img/sections/0_intro.jpg) no-repeat left 70% / cover;*/
	background: linear-gradient(rgba(255,255,255, 0.9), rgba(255,255,255, 0.9)), url(img/apercu.jpg) no-repeat center top / cover;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	min-height: calc(100vh - 62px);
	padding: 2rem;
}

/*#accueil > div, #contact > div
{
	display: flex;
	padding: 0;
}*/

#contact > div
{
	gap: 10%;
}

#contact .flex_img > div
{
	display: block;
}
	
	

#accueil h2, #apropos h2 {
	font-size: 2.6rem;
	/*text-shadow: 1px 1px 3px rgba(0,0,0,0.4);*/
}

#accueil p, #apropos p, #contact p {
	font-size: 1.2rem;
	/*text-shadow: 1px 1px 2px rgba(0,0,0,0.4);*/
}

#apropos {
	display: flex;
    justify-content: center;
    margin: 6rem 2rem;
    padding: 0;
}



#realisations h2
{
	font-size: 2rem;
	margin-bottom: .5rem;
}

#realisations h3
{
	font-size: 1.1rem;
	font-weight: normal;
	opacity: .7;
	margin-bottom: 2rem;
}

h2 {
	color: #003366;
}

#contact h2 {
	margin-bottom: 2rem;
	font-size: 2rem;
	color: #003366;
}

.galerie {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 1rem;
}

.galerie img {
	width: 100%;
	object-fit: cover;
	border-radius: 6px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	transition: transform 0.3s;
}

.galerie img:hover {
	transform: scale(1.05);
	cursor: pointer;
}



#contact p {
	margin: 0.5rem 0;
}

#contact a {
	color: #003366;
	text-decoration: none;
	font-weight: bold;
}

#contact a:hover {
	text-decoration: underline;
}

/* Décalage pour le menu fixe */
section {
	scroll-margin-top: 62px;
}



.flex_img
{
	display: flex;
}

.flex_img > img
{
	width: 40%; 
	flex: 1 1 40%;
	object-fit: cover; 
	object-position: center;
	display: block;
}

.flex_img > div
{
	flex: 1 1 60%;
	padding: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.7rem;
	justify-content: center;
}

#accueil .flex_img > img
{
	object-position: 20% 80%;
}




/* Bouton retour haut */
#topBtn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	background: #003366;
	color: white;
	border: none;
	padding: 10px 15px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	display: none;
	box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

a.btn
{
	background-color: #003366;
	padding:12px 20px;
	border-radius: 10px;
	color: white;
	display: inline-block;
	text-decoration: none;
	transition: .2s;
	font-size: 1.1em;
}

a.btn:hover
{
	opacity: 0.6;
}

a.btn-block
{
	margin: 4rem auto;
	display: table;
	padding: 15px 20px;
}

#js_logo_accueil:hover
{
	cursor: pointer;
}

@media only screen and (max-width: 720px) {
	nav ul {
		gap: .9rem;
	}
	
	section {
		padding: 6rem 0rem;
	}
}

@media only screen and (min-width: 660px) {
	.mobileonly {
		display: none;
	}
}

@media only screen and not (min-width: 660px) {
	.nomobile {
		display: none;
	}
	
	nav > div.main_container {
		width: 99%;
		overflow-x: auto;
    	overflow-y: hidden;
    	-ms-overflow-style: none;
		scrollbar-width: none;
	}
	
	nav > div.main_container::-webkit-scrollbar
	{
		display: none;
	}
	
	nav ul {
		gap: .8rem;
    	font-size: .9rem;
	}
	
	nav img {
		margin-right: 1rem;
	}
	
	section, #accueil, #apropos, #contact
	{
		min-height: 0;
		padding: 0;
		margin: 0;
		display: block;
	}
	
	#accueil > div, #apropos > div, .flex_img
	{
		width: 100%;
		display: block;
	}
	
	
	
	#accueil .flex_img > div {
    	background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url(img/apercu.jpg) no-repeat center top / cover;
    }
    
    #accueil .flex_img > div p, #accueil .flex_img > div h2 {
    	background-color: #fff8;
    	color: #000;
    }
	
	.flex_img > img {
    	width: 100%;
    	height: 56vw;
    }
    
    #accueil .flex_img > img
	{
		object-position: 20% 88%;
	}
    
    
    
    .flex_img > div, .flex_img > img {
    	min-height: 56vw;
    	min-height: calc(50vh - 31px);
    }
	
	#realisations
	{
		padding: 3rem 0;
	}
	
	
}


