/*
Theme Name: MG Maintenance
Author: Planète Communication
Author URI: https://www.planete-communication.fr
Version: 1
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}




@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('/wp-content/themes/mgmaintenance/fonts/montserrat-v31-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap; 
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('/wp-content/themes/mgmaintenance/fonts/montserrat-v31-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap; 
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  src: url('/wp-content/themes/mgmaintenance/fonts/montserrat-v31-latin-600.woff2') format('woff2');
}
@font-face {
  font-display: swap; 
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  src: url('/wp-content/themes/mgmaintenance/fonts/montserrat-v31-latin-700.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  src: url('/wp-content/themes/mgmaintenance/fonts/montserrat-v31-latin-800.woff2') format('woff2');
}



* {
	border: 0px;
	margin: 0px;
	padding: 0px;
	text-decoration: none;
}
body {
	background: #194278;
	font-family: 'Montserrat', Arial, Helvetica, sans-serif;
	font-size: 18px;
	line-height: 120%;
	color: #194278;
	-webkit-font-smoothing: antialiased;
}
button {
	font-family: 'Montserrat';
}
img {
	max-width: 100%;
	border: 0px;
	vertical-align: bottom;
}
h1, h2, h3, h4, h5, h6 {
	line-height: 120%;
	margin: 10px 0px;
	font-weight: bold;
}
h1 {
	font-size: 96px;
	margin: 0px 0px 30px 0px;
	font-weight: 700;
	line-height: 1;
}
h2 {
	font-size: 40px;
	font-weight: 800;
}
body:not(.home) h2 {
	font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
}
h3 {
	font-size: 22px;
}
h4 {
	font-size: 20px;
}
a:focus {
	outline: none;
}
a {
	color: #194278;
  	text-decoration: underline;
}
p {
	margin: 10px 0px;
	line-height: 150%;
}
ul, ol {
	margin: 10px 0px 10px 15px;
}
ul ul, 
ol ol, 
ul ol, 
ol ul {
	margin: 0px 0px 0px 30px;
}
li {
  	line-height: 150%;
}
sup {
    font-size: smaller;
    vertical-align: text-bottom;
}
#nested .smart-menu {
	display: none;
}
#nested {
	position: absolute;
	bottom: 12px;
	right: 30px;
	transition: 0.3s;
	height: 60px;
	z-index: 2;
}
#nested .firstLevel {
	height: 60px;
	margin: 0px;
	text-align: center;
}
#nested .firstLevel li {
	position: relative;
	display: inline-block;
	height: 60px;
	transition: 0.25s opacity;
}
#nested .firstLevel li a {
	display: block;
	height: 60px;
	line-height: 60px;
	color: #EA8C00;
	padding: 0px 20px;
	text-decoration: none;
	font-size: 20px;
	font-weight: 600;
	transition: 0.3s;
}
#nested .firstLevel li a span {
	display: block;
	height: 60px;
	line-height: 60px;
}
#nested .firstLevel li ul,
#headerBoxes ul li ul {
    position: absolute;
    width: 290px;
    height: 0px;
    background: #FFFFFF;
    margin-left: -145px;
    margin-top: -20px;
    box-shadow: 0px 4px 10px -4px rgba(0, 0, 0, 0.3);
    left: 50%;
    top: auto;
    overflow: hidden;
    opacity: 0;
    transition: 0.3s;
}
#headerBoxes ul li ul {
    margin-left: -200px;
}
#nested .firstLevel > li:hover > ul,
#headerBoxes ul li:hover > ul {
	height: auto;
	opacity: 1;
	margin-top: 0px;
	padding: 0;
}
#headerBoxes ul li:hover > ul {
	margin-top: 5px;
}
#nested .firstLevel li ul li,
#headerBoxes ul li ul li {
	display: block;
	height: auto;
	padding: 0 10px;
	border-bottom: 1px solid #EDEDED;
	transition: 0.4s;
}
#nested ul.firstLevel li ul li:hover,
#headerBoxes ul li ul li:hover {
	background: #F7F7F7;
}
#nested .firstLevel li ul li:last-child,
#headerBoxes ul li ul li:last-child {
	border-bottom: none;
}
#nested .firstLevel li ul li a,
#headerBoxes ul li ul li a {
	height: auto;
	padding: 15px 10px;
	line-height: 120%;
	font-size: 16px;
    font-weight: 400;
    text-align: left;
	display: block;
}
#nested .firstLevel li ul li a span {
	display: inline;
	height: auto;
	line-height: 120%;
}
#nested ul.firstLevel:hover > li,
#headerBoxes > ul:hover > li {
    opacity: 0.4;
}
#nested ul.firstLevel:hover > li:hover,
#headerBoxes > ul:hover > li:hover {
    opacity: 1;
}
#wrapper ul li {
	position: relative;
}
#wrapper ul li:before {
	content: '';
	width: 6px;
	height: 6px;
	background: #EA8C00;
	position: absolute;
	border-radius: 50%;
	top: 11px;
	left: -15px;
	margin: auto;
}
#page {
	position: relative;
	background: #FFFFFF;
	overflow: hidden;
}
header {
	position: fixed;
	width: 100%;
	height: 130px;
	z-index: 2;
	transition: 0.3s;
	background: #FFFFFF;
}
#headerInner {
	position: relative;
	width: 100%;
	height: 100%;
}
#logo {
	position: absolute;
	left: 50px;
	top: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	transition: 0.3s;
}
#logo img {
	transition: 0.3s;
}
#headerBoxes {
	position: absolute;
    right: 50px;
    top: 25px;
	z-index: 3;
	transition: 0.3s;
}
/* ----------------------
ZONE INTERIEURE (CONTENU)
-----------------------*/
#wrapper {
	position: relative;
	background: #FFFFFF;
	z-index: 1;
}
#wrapperInner {
	position: relative;
	width: 100%;
	max-width: 100%;
	margin: 0px auto;
	padding: 80px 0px 0px 0px;
}
#container {
	position: relative;
	margin: 0px 0px 100px 0px;
}
#contentsInner {
	position: relative;
}
#headerBoxes p {
	margin: 0;
	line-height: 1;
}
body.home #wrapperInner {
	padding: 0;
}
.grecaptcha-badge {
	visibility: hidden;
}
html, body {
	scroll-behavior: smooth;
}
iframe {
	max-width: 100%;
}
strong {
	font-weight: 700;
}
em {
	font-style: italic;
}
body.home #container {
    margin: 0px;
}




/* ---------------------------- STRUCTURES ET STYLES DES PAGES INTÉRIEURES ---------------------------- */

#chapterPicture {
	padding-top: 130px;
	height: 20vw;
	position: relative;
}
#chapterPicture img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.title_and_bc {
    position: absolute;
    top: 130px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    color: #FFFFFF;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
	padding: 0 5%;
}
.title_and_bc h1 {
    font-size: 55px;
	margin-bottom: 15px;
}
.widget_breadcrumb a {
    color: #FFFFFF;
    text-decoration: none;
}
.widget_breadcrumb a:hover {
	text-decoration: underline;
}
.widget_breadcrumb {
    font-size: 14px;
}
#chapterPicture > .title_and_bc:first-child {
    background: #194278;
}
body:not(.home) h2,
body:not(.home) h3 {
	margin-bottom: 15px;
}


/* ------- Passage à menu burger ------- */
@media (min-width: 1241px) {
	#nested ul.firstLevel > li.hidden_on_desktop {
		display: none;
	}
	#nested .firstLevel li.menu-item-has-children > a {
		pointer-events: none;
	}
}
@media (max-width: 1240px) {
	header div #nested,
	header.scrolled div #nested {
		width: 40px;
		height: 40px;
		top: 0;
		bottom: 0;
		right: 30px;
		margin: auto;
	}
	header div #nested .contentSmart {
		width: 100%;
		height: 100%;
		cursor: pointer;
		z-index: 25;
		position: relative;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
	}
	#nested .firstLevel {
		text-align: left;
		background: #194278;
		width: 100%;
		position: fixed;
		right: -100%;
		transition: 0.7s;
		opacity: 0.3;
		top: 0;
		height: auto;
		bottom: 0;
		padding: 50px 0;
		overflow-y: auto;
		overflow-x: hidden;
	}
	body.menu_open #nested .firstLevel:after, 
	body.menu_open #nested .firstLevel:before {
		content: '';
		height: 55px;
		background: linear-gradient(0deg, #194278, transparent);
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0px;
		opacity: 0;
		pointer-events: none;
		transition: 0.3s;
	}
	body.menu_open.animation_delai #nested .firstLevel:after, 
	body.menu_open.animation_delai #nested .firstLevel:before {
		opacity: 1;
	}
	body.menu_open #nested .firstLevel:before {
		bottom: auto;
		top: 0;
		z-index: 20;
		background: linear-gradient(180deg, #194278, transparent);
	}
	body.menu_open #nested .firstLevel {
		right: 0;
		opacity: 1;
	}
	#nested ul.firstLevel:hover > li {
		opacity: 1;
	}
	header div #nested .contentSmart span {
		width: 25px;
		height: 2px;
		background: #194278;
		display: block;
		border-radius: 3px;
		position: relative;
		top: 0;
		transition: 0.5s;
	}
	header div #nested .contentSmart > span:nth-child(2) {
		margin: 6px 0px;
	}
	body.menu_open header div #nested .contentSmart > span:nth-child(1) {
		transform: rotate(45deg);
		top: 8px;
	}
	body.menu_open header div #nested .contentSmart > span:nth-child(2) {
		opacity: 0;
	}
	body.menu_open header div #nested .contentSmart > span:nth-child(3) {
		transform: rotate(-45deg);
		top: -8px;
	}
	body.menu_open header div #nested .contentSmart > span {
		background: #FFFFFF;
	}
	#nested ul.firstLevel li a {
		font-size: 18px;
		height: auto;
		line-height: 1;
	}
	#nested .firstLevel li a span {
		line-height: 1.3em;
		height: auto;
		display: initial;
	}
	#nested ul.firstLevel > li.menu-item-has-children {
		margin-right: 0;
	}
	#nested .firstLevel li {
		height: auto;
	}
	#nested ul.firstLevel > li {
		margin: 0 0 30px 0;
		display: flex;
		flex-direction: column;
		align-items: flex-start;
    	padding-left: 30px;
	}
	#nested ul.firstLevel > li:last-child {
		margin-bottom: 0;
	}
	#nested ul.firstLevel > li.menu-item-has-children > a {
		position: relative;
	}
	#nested ul.firstLevel > li.menu-item-has-children > a:after {
		content: '';
		display: inline-block;
		height: 0;
		width: 0;
		border-top: 5px solid #FFFFFF;
		border-right: 5px solid transparent;
		border-left: 5px solid transparent;
		pointer-events: none;
		position: relative;
		top: -1px;
		right: -8px;
	}
	#nested .firstLevel li a {
		color: #FFFFFF;
	}
	#nested .firstLevel li ul,
	#nested .firstLevel > li:hover > ul {
		position: relative;
		height: auto;
		opacity: 1;
		background: none;
		box-shadow: none;
		margin: 10px 0 0px 10px;
		padding: 0;
		left: 0;
		width: auto;
	}
	#nested ul.firstLevel > li > ul > li {
		padding: 0;
		margin: 0;
	}
	#nested .firstLevel li ul li {
		border: none;
	}
	body.menu_open {
		overflow: hidden;
	}
	#nested .firstLevel li ul {
		display: none;
	}
	#nested ul.firstLevel > li.menu-item-has-children.sous_menu_open > ul {
		display: block;
	}
	#nested ul.firstLevel > li.menu-item-has-children.sous_menu_open > a:after {
		transform: rotate(180deg);
	}
	#nested ul.firstLevel li ul li:hover {
		background: none;
	}
}
@media (max-width: 1200px) {
	.title_and_bc h1 {
		font-size: 40px;
	}
	#chapterPicture {
		height: 25vw;
	}
}
@media (max-width: 1050px) {
	#chapterPicture {
		height: auto;
	}
	#chapterPicture img {
		position: absolute;
		top: 0;
		left: 0;
	}
	body:not(.home):not(.error404) .title_and_bc {
		position: relative;
		padding: 5%;
		top: 0;
	}
	.title_and_bc h1 {
		font-size: 36px;
	}
}








/* -------------------- BLOC REQUETE - Pour faire comme une page actu en requetant un CPT par ex. ---------------------- */

#wrapper .wp-block-query > ul {
    margin: 0;
}
#wrapper .wp-block-query > ul > li:not(:last-child) {
	margin-bottom: 80px;
}
#wrapper .wp-block-query > ul > li:last-child > div {
	margin-bottom: 0;
}
#wrapper .wp-block-query > ul > li:before {
	display: none;
}
#wrapper .wp-block-query > ul > li a.wp-block-read-more {
    margin-top: 7px;
}
#wrapper .wp-block-query > ul > li img {
    width: 100%;
    height: 260px;
    object-fit: cover;
	border-radius: 8px;
}
body:not(.home) #wrapper div p.wp-block-post-excerpt__more-text {
    margin: 20px 0 0 0;
}

























































/* ------------------------------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------------------------------- */
/* ------------------------------------------ MG MAINTENANCE --------------------------------------- */
/* ------------------------------------------------------------------------------------------------- */
/* ------------------------------------------------------------------------------------------------- */





/* boutons */
#wrapper a.wp-block-button__link,
#wrapper div.wpforms-container-full button[type=submit],
#blocs .txt > ul:last-child li a,
#diff .txt > :last-child a,
#vision .txt > :last-child a,
footer a.wp-block-button__link,
#wrapper .wp-block-query > ul .wp-block-post-excerpt__more-link {
    border-radius: 99px;
    display: inline-block;
    background: none;
    color: #EA8C00;
    padding: 12px 25px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid #EA8C00;
    font-size: 14px;
    letter-spacing: 0.1em;
    height: auto;
    box-shadow: none;
    width: auto;
}
#wrapper a.wp-block-button__link:hover,
#wrapper div.wpforms-container-full button[type=submit]:hover,
#blocs .txt > ul:last-child li a:hover,
#diff .txt > :last-child a:hover,
#vision .txt > :last-child a:hover,
footer a.wp-block-button__link:hover,
#wrapper .wp-block-query > ul .wp-block-post-excerpt__more-link:hover {
	background: #EA8C00 !important;
	color: #FFFFFF;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* boutons fond orange */
#wrapper div.wpforms-container-full button[type=submit] {
	background: #EA8C00;
	color: #FFFFFF;
}
#wrapper div.wpforms-container-full button[type=submit]:hover {
	background: #ffa51f !important;
}

/* boutons fond bleu */
footer a.wp-block-button__link {
	border-color: #194278;
	background: #194278;
	color: #FFFFFF;
}
footer a.wp-block-button__link:hover {
	background: #225ead !important;
	text-decoration: none;
}



.has-bleu-color { color: #194278 !important; }
.has-bleu-background-color { background-color: #194278 !important; }

.has-blanc-color { color: #FFFFFF !important; }
.has-blanc-background-color { background-color: #FFFFFF !important; }

.has-gris-color { color: #E8ECF1 !important; }
.has-gris-background-color { background-color: #E8ECF1 !important; }

.has-orange-color { color: #EA8C00 !important; }
.has-orange-background-color { background-color: #EA8C00 !important; }

.has-vert-color { color: #60B565 !important; }
.has-vert-background-color { background-color: #60B565 !important; }





.slick_like {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.slick_like img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: carouselStep 9s infinite;
}
.slick_like:after {
    content: '';
    background: #492f28;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* Décalage des animations */
.slick_like img:nth-child(1) {
  animation-delay: 0s;
}
.slick_like img:nth-child(2) {
  animation-delay: 3s;
}
.slick_like img:nth-child(3) {
  animation-delay: 6s;
}

@keyframes carouselStep {
  0% {
    opacity: 1;
  }
  33.333% {
    opacity: 1;
  }
  33.334% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}



#top {
    height: calc(100vh - 130px);
    margin-top: 130px;
    position: relative;
	margin-bottom: 100px;
}
#top .txt {
    position: absolute;
    top: 0;
    bottom: 0;
    color: #FFFFFF;
    max-width: 940px;
    margin: auto;
    left: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
h1 em {
    font-style: normal;
    color: #EA8C00;
}
#top p {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}



#headerBoxes > ul {
    margin: 0;
    display: flex;
    gap: 30px;
}
#headerBoxes > ul > li {
	transition: 0.3s;
}
#headerBoxes > ul > li > a {
	padding: 8px 0;
}
#headerBoxes li a {
	text-decoration: none;
}

header.scrolled {
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    margin-top: -46px;
}
@media (min-width: 1241px) {
	header.scrolled #nested .firstLevel li a {
		font-size: 17px;
	}
}
header.scrolled #logo img {
    height: 56px;
}
header.scrolled #logo {
    top: 46px;
}




#top h1, #top p {
	animation: fromBottom 1s ease;
	position: relative;
	animation-fill-mode: both;
}
#top h1 {
	animation-delay: 0.3s;
}
#top p {
	animation-delay: 0.75s;
}
@keyframes fromBottom {
	0% {
		bottom: -20px;
		opacity: 0;
	}
	100% {
		bottom: 0px;
		opacity: 1;
	}
}



body:not(.home) header + #wrapper {
    padding-top: 50px;
}
body:not(.home) h1 {
    font-size: 48px;
	max-width: 1120px;
}
html body {
	--wp--preset--font-size--medium: 22px;
}




@media (max-width: 1600px) {
	body {
		font-size: 16px;
	}
	#nested .firstLevel li a {
		font-size: 17px;
	}
	header {
		height: 120px;
	}
	#top {
		height: calc(100vh - 120px);
		margin-top: 120px;
	}
	#logo img {
		height: 90px;
	}
	#nested {
		bottom: 8px;
	}
	h1 {
		font-size: 66px;
	}
	#top p {
		font-size: 20px;
	}
	h2 {
		font-size: 34px;
	}
	header.scrolled #nested {
		bottom: 6px;
	}
	#top .txt {
		max-width: 745px;
	}
	body:not(.home) h1 {
		font-size: 40px;
	}
	html body {
		--wp--preset--font-size--medium: 20px;
	}
	body:not(.home) h2 {
		font-size: 30px;
	}
}


@media (max-width: 1240px) {
	header,
	header.scrolled {
		height: 90px;
		margin-top: 0;
	}
	#top {
		height: 50vw;
		margin-top: 90px;
	}
	#logo img,
	header.scrolled #logo img {
		height: 60px;
	}
	#logo,
	header.scrolled #logo {
		top: 0;
		left: 35px;
	}
	#headerBoxes {
		top: 0;
		bottom: 0;
		display: flex;
		align-items: center;
		right: 100px;
	}
	#nested .firstLevel li ul li a {
		padding: 10px;
	}
	#headerBoxes ul li ul {
		display: none;
	}
	#chapterPicture {
		padding-top: 90px;
	}
	.title_and_bc {
		top: 90px;
	}
	#wrapperInner {
		padding-top: 40px;
	}
	h1 {
		font-size: 52px;
	}
	#top .txt {
		max-width: 575px;
	}
	#top p {
		font-size: 17px;
	}
}
@media (max-width: 760px) {
	#headerBoxes > ul {
		display: none;
	}
	.slick_like {
		position: absolute;
		left: 0;
		top: 0;
	}
	#top .txt {
		position: relative;
		left: 0;
		text-align: center;
		padding: 50px 6.5%;
		max-width: 100%;
	}
	#top h1 {
		font-size: 40px;
		max-width: 390px;
		margin: 0 auto 25px;
	}
	#top {
		height: auto;
	}
}






@media (max-width: 500px) {
	#nested ul.firstLevel > li {
		padding-left: 5px;
		max-width: 93vw;
	}
	.widget_breadcrumb {
		font-size: 13px;
	}
	#nested ul.firstLevel li a {
		font-size: 16px;
	}
	#nested .firstLevel li ul li a {
		font-size: 14px;
	}
	header.scrolled {
		height: 56px;
	}
	#logo, header.scrolled #logo {
		left: 6.5vw;
	}
	header.scrolled #logo img {
		height: 36px;
	}
	header div #nested,
	header.scrolled div #nested {
		right: 6.5vw;
		margin-right: -7px;
	}
	#top h1 {
		font-size: 8.7vw;
		position: relative;
		left: 2px;
	}
	#top p {
		font-size: 16px;
	}
	#top {
		margin-bottom: 65px;
	}
	h2 {
		font-size: 28px;
	}
	body:not(.home):not(.error404) .title_and_bc {
		padding: 50px 6.5%;
	}
	body:not(.home) h1 {
		font-size: 34px;
	}
	body:not(.home) h2 {
		font-size: 26px;
	}
}
@media (max-width: 395px) {
	/* pour éviter que l'icône du sous-menu se retrouve à la ligne toute seule */
	#nested .firstLevel li a {
		max-width: 285px;
	}
}