/*!
Theme Name: ACE Assainissement
Theme URI: http://underscores.me/
Author: IPSO
Author URI: https://www.studioipso.fr
Description: Thème Wordpress sur-mesure.
Version: 1.0
Tested up to: 6.0
Requires PHP: 7.2
*/



/* ------------------------------------------------------------------------------ */
/* ----- FONTS ----- */
/* ------------------------------------------------------------------------------ */
/* Poppins 400 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local(''),
        url('fonts/poppins-v20-latin-regular.woff2') format('woff2'),
        url('fonts/poppins-v20-latin-regular.woff') format('woff');
}

/* Poppins 500 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local(''),
        url('fonts/poppins-v20-latin-500.woff2') format('woff2'),
        url('fonts/poppins-v20-latin-500.woff') format('woff');
}

/* Poppins 600 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: local(''),
        url('fonts/poppins-v20-latin-600.woff2') format('woff2'),
        url('fonts/poppins-v20-latin-600.woff') format('woff');
}

/* Poppins 700 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local(''),
        url('fonts/poppins-v20-latin-700.woff2') format('woff2'),
        url('fonts/poppins-v20-latin-700.woff') format('woff');
}

/* Poppins 900 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: local(''),
        url('fonts/poppins-v20-latin-900.woff2') format('woff2'),
        url('fonts/poppins-v20-latin-900.woff') format('woff');
}



/* ------------------------------------------------------------------------------ */
/* ----- GENERAL SETTINGS ----- */
/* ------------------------------------------------------------------------------ */
:root {
	--corset-large: 1140px;
	--corset-medium: 680px;
	--corset-small: 400px;

	--header-height: 100px;
	--header-top-height: 34px;

	--padding-large: 50px;
	--padding-medium: 25px;
	--padding-small: 15px;

	--transition-standard: .2s ease;

	--color-primary: #009fe3;
    --color-secondary: #0e3955;
    --color-grey: #eaeff3;
}

*,
*::before,
*::after {
	box-sizing: inherit;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
    font-weight: 400;
}

html {
	box-sizing: border-box;
	line-height: 1.5;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	background: #fff;
}



/* ------------------------------------------------------------------------------ */
/* ----- TITLES ----- */
/* ------------------------------------------------------------------------------ */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4 {
	position: relative;
	margin-bottom: .7em;
	text-align: left;
    text-transform: uppercase;
	line-height: 1.2;
}

h1, .h1 {
	display: block;
	padding-left: var(--padding-medium);
    color: #fff;
    font-size: 35px;
    font-weight: 700;
	border-left: 2px solid #fff;
}

h2, .h2 {
    color: var(--color-secondary);
    font-size: 29px;
    font-weight: 700;
}

h3, .h3 {
    color: var(--color-secondary);
    font-size: 23px;
    font-weight: 600;
}

h4, .h4 {
    color: var(--color-secondary);
	font-size: 20px;
	font-weight: 500;
}

@media screen and (max-width: 767px) {
h1, .h1 {
    font-size: 25px;
}

h2, .h2 {
    font-size: 23px;
}

h3, .h3 {
    font-size: 20px;
}

h4, .h4 {
    font-size: 18px;
}
}



/* ------------------------------------------------------------------------------ */
/* ----- PARAGRAPHS ----- */
/* ------------------------------------------------------------------------------ */
p {
    color: var(--color-secondary);
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    line-height: 1.5;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

b,
strong {
	font-weight: bolder;
}

small {
	font-size: 80%;
}

big {
	font-size: 125%;
}

sub,
sup {
	position: relative;
	vertical-align: baseline;
	font-size: 75%;
	line-height: 0;
	
}

sub {
	bottom: -.25em;
}

sup {
	top: -.5em;
}

abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

abbr,
acronym {
	border-bottom: 1px dotted var(--color-secondary);
	cursor: help;
}

 

/* ------------------------------------------------------------------------------ */
/* ----- LISTS ----- */
/* ------------------------------------------------------------------------------ */
ul, 
ol {
	margin: 1.5em 0;
	padding-left: 1em;
	color: var(--color-secondary);
	font-size: 16px;
	line-height: 1.5;
	list-style: disc;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul, 
li > ol {
	margin: 0;
}

li > ul {
	list-style: circle;
}



/* ------------------------------------------------------------------------------ */
/* ----- LINKS ----- */
/* ------------------------------------------------------------------------------ */
a {
	background-color: transparent;
	color: var(--color-primary);
	transition: .1s linear;
}

a:hover {
	color: var(--color-primary);
}



/* ------------------------------------------------------------------------------ */
/* ----- BUTTONS ----- */
/* ------------------------------------------------------------------------------ */
.btn-primary {
	position: relative;
	display: inline-block;
	padding: 1em 1.5em;
	border: unset;
    background: var(--color-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: var(--transition-standard);
}

.btn-primary:hover {
	color: #fff;
	background: var(--color-secondary);
}



/* ------------------------------------------------------------------------------ */
/* ----- FIGURE ----- */
/* ------------------------------------------------------------------------------ */
figure {
	margin: 1.5em 0;
}

figcaption {
	font-size: 14px;
	text-align: center;
}

img {
	display: block;
}



/* ------------------------------------------------------------------------------ */
/* ----- CODE ----- */
/* ------------------------------------------------------------------------------ */
pre,
code,
kbd,
samp,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 16px;
}

pre {
	margin: 1.5em 0;
	padding: 1.5em;
	max-width: 100%;
	background: var(--color-grey);
	color: var(--color-secondary);
	font-family: "Courier 10 Pitch", courier, monospace;
	font-size: 16px;
	line-height: 1.5;
	white-space: pre-wrap;
	overflow: auto;
}

@media screen and (max-width: 767px) {
pre,
code,
kbd,
samp,
tt,
var {
	font-size: 14px;
}
}



/* ------------------------------------------------------------------------------ */
/* ----- BLOCKQUOTE ----- */
/* ------------------------------------------------------------------------------ */
blockquote {
	margin: 1.5em 0;
	padding: 1em;
	border-left: 1px solid var(--color-primary);
	background: transparent;
	color: var(--color-secondary);
}

blockquote * {
	font-size: 20px;
	font-weight: 300;
}

blockquote *:first-child {
	margin-top: 0;
}

blockquote *:last-child {
	margin-bottom: 0;
}

blockquote cite {
	font-size: 16px;
}

@media screen and (max-width: 767px) {
blockquote * {
	font-size: 18px;
}

blockquote cite {
	font-size: 14px;
}
}



/* ------------------------------------------------------------------------------ */
/* ----- TABLE ----- */
/* ------------------------------------------------------------------------------ */
table {
	margin: 1em 0;
	font-size: 16px;
}

table td,
table th {
	padding: .5em 1em;
	border: 1px solid var(--color-grey);
	color: var(--color-secondary);
}

@media screen and (max-width: 767px) {
table {
	font-size: 14px;
}
}



/* ------------------------------------------------------------------------------ */
/* ----- FORM ----- */
/* ------------------------------------------------------------------------------ */
label {
	margin-bottom: .5em;
	font-size: 16px;
	font-weight: 400;
}

input {
	padding: .5em;
	border: 2px solid var(--color-secondary);
	border-radius: unset;
	background: #fff;
	font-size: 16px;
}

input:focus {
	outline: none;
}

input[type='submit'] {
	border: unset;
	background: var(--color-grey-300);
	color: #fff;
	text-align: center;
	cursor: pointer;
	transition: var(--transition-standard);
}

input[type='submit']:hover {
	color: #fff;
	opacity: .85;
}

button[type='submit'] {
	padding: 1em 1.5em;
	border: unset;
	border-radius: unset;
	background: var(--color-primary);
	color: #fff;
	font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: var(--transition-standard);
}

button[type='submit']:hover {
	color: #fff;
	background: var(--color-secondary);
}

textarea {
	display: block;
	padding: .5em;
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	min-height: 150px;
	border: 2px solid var(--color-secondary);
	border-radius: unset;
	outline: none;
	background: #fff;
	font-size: 16px;
	line-height: 1.5;
}

select {
	padding: 1em;
	border: 2px solid var(--color-secondary);
	border-radius: unset;
	background: #fff;
	background: url('img/icon-chevron-bottom.svg') no-repeat right;
	background-origin: content-box;
	background-size: 15px 15px;
	font-size: 16px;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	
}



/* ------------------------------------------------------------------------------ */
/* ----- SECTION ----- */
/* ------------------------------------------------------------------------------ */
section {
	padding: calc(var(--padding-large) * 2) 0;
	overflow-x: hidden;
}

@media screen and (max-width: 767px) {
section {
	padding: var(--padding-large) 0;
}
}



/* ------------------------------------------------------------------------------ */
/* ----- CORSET ----- */
/* ------------------------------------------------------------------------------ */
.corset-large {
	margin: 0 auto;
	max-width: var(--corset-large);
}

.corset-medium {
	margin: 0 auto;
	max-width: var(--corset-medium);
}

.corset-small {
	margin: 0 auto;
	max-width: var(--corset-small);
}

@media screen and (max-width: 1170px) {
.corset-large,
.corset-medium,
.corset-small {
	padding-left: var(--padding-small);
	padding-right: var(--padding-small);
}
}



/* ------------------------------------------------------------------------------ */
/* ----- SITE-MAIN ----- */
/* ------------------------------------------------------------------------------ */
.site-main {
	padding-top: calc(var(--header-height) + var(--header-top-height));
}



/* ------------------------------------------------------------------------------ */
/* ----- HEADER ----- */
/* ------------------------------------------------------------------------------ */
.site-header {
	position: fixed;
	top: 0;
	padding: 0;
	width: 100%;
	background: transparent;
	box-shadow: 0 0 3px rgba(0,0,0,.1);
	z-index: 99999;
}
 
/* Header-top */
.header-top {
	background: var(--color-secondary);
}

.header-top-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: var(--padding-medium);
	padding-top: 5px;
	padding-bottom: 5px;
}

.header-top-left-item a {
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}

.site-header .footer-phone:before {
	height: 14px;
    width: 14px;
}

.header-top-right-item {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: var(--padding-medium);
}

.header-address {
	position: relative;
	margin: 0;
	padding-left: var(--padding-medium);
	color: #fff;
	font-size: 14px;
}

.header-address:before {
	content:"";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate3d(0,-50%,0);
    height: 14px;
    width: 14px;
    background: url('img/icon-location.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Header-bottom */
.header-bottom {
	background: #fff;
}

.header-bottom-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 75px;
	padding-top: 15px;
	padding-bottom: 15px;
}

.header-branding {
	height: 100%;
}

.header-branding .custom-logo-link,
.header-branding .custom-logo {
	display: block;
}

.header-branding .custom-logo {
	width: auto;
	height: 100%;
	max-height: 70px;
}

.site-header .header-bottom .main-navigation {
	display: block;
	margin: 0;
	width: 100%;
}

.header-bottom .menu-principal {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 35px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.header-bottom .menu-principal li {
	text-align: center;
}

.header-bottom .menu-principal li a {
	color: var(--color-secondary);
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	text-decoration: none;
}

.header-bottom .menu-principal li a:hover,
.header-bottom .menu-principal li:hover a {
	color: var(--color-primary);
}

.header-bottom .menu-principal .btn-cta > a{
	position: relative;
	display: inline-block;
	padding: 1em 1.5em;
	border: unset;
    background: var(--color-primary);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: var(--transition-standard);
}

.header-bottom .menu-principal .btn-cta > a:hover {
	color: #fff;
	background: var(--color-secondary);
}

/* Menu Mobile */
#menu-button {
	position: relative;
	display: none;
	cursor: pointer;
}

#menu-button img {
	display: block;
	height: 40px;
	width: auto;
}

.main-navigation-mobile {
	display: none;
	position: absolute;
	box-sizing: border-box;
	top: calc(var(--header-height) + var(--header-top-height));
	left: 0;
	transform: unset;
	padding: 0;
	width: 100vw;
	height: calc(100vh - var(--header-height) - var(--header-top-height));
	height: calc((var(--vh, 1vh) * 100) - var(--header-height) - var(--header-top-height));
	text-align: left;
	background: #fff;
	border-top: 1px solid #e6ebed;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
	z-index: 100;
}

.main-navigation-mobile .menu-mobile {
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
	margin: 0;
	padding: 0;
	height: 100%;
	list-style: none;
}

.main-navigation-mobile .menu-mobile > li {
	margin: 0;
}

.main-navigation-mobile .menu-mobile > li:not(:last-child) {
	border-bottom: 1px solid #e6ebed;
}

.main-navigation-mobile .menu-mobile > li > a {
	padding: var(--padding-medium) var(--padding-small);
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
}

.main-navigation-mobile .menu-mobile li a {
	display: block;
	text-decoration: none;
}

.main-navigation-mobile .menu-mobile li.btn-cta > a {
	background: var(--color-primary);
	color: #fff;
}

@media screen and (max-width: 1170px) {
:root {
	--header-height: 70px;
} 
	
.header-top {
	height: var(--header-top-height);
}

.site-header .header-bottom .main-navigation {
	display: none;
}

.header-branding .custom-logo {
	max-height: 40px;
}

#menu-button {
	display: block;
}
}

@media screen and (max-width: 900px) {
.header-top-right-item {
	display: none;
}

.header-bottom-wrapper {
	gap: var(--padding-medium);
}
}



/* ------------------------------------------------------------------------------ */
/* ----- FOOTER ----- */
/* ------------------------------------------------------------------------------ */
.site-footer {
    background: var(--color-secondary);
}

.site-footer * {
	margin-top: 0;
    color: #fff;
}

.site-footer a {
	text-decoration: none;
}

.footer-wrapper {
	display: flex;
    flex-direction: row;
    justify-content: flex-start;
	align-items: flex-start;
    gap: calc(var(--padding-large) * 3);
	padding-top: var(--padding-medium);
	padding-bottom: var(--padding-medium);
}

.footer-item-info {
	display: flex;
    flex-direction: row;
    justify-content: flex-start;
	align-items: center;
}

.footer-item-info > div {
	max-width: 290px;
}

.footer-item-info > div:last-child {
	margin-left: var(--padding-medium);
	padding-left: var(--padding-medium);
	border-left: 1px solid #fff; 
}

.footer-logo {
	display: block;
	max-height: 70px;
}

.footer-phone {
    position: relative;
    padding-left: var(--padding-medium);
    text-decoration: none;
}

.footer-phone:before {
    content:"";
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate3d(0,-50%,0);
    height: 16px;
    width: 16px;
    background: url('img/icon-phone.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer .menu li a {
	display: inline-block;
}

.site-footer .menu li:not(:last-child) a {
	margin-bottom: .5em;
}

@media screen and (max-width: 900px) {
.footer-wrapper {
	gap: calc(var(--padding-large));
}
}

@media screen and (max-width: 767px) {
.footer-wrapper,
.footer-item-info {
	flex-direction: column;
}

.footer-wrapper {
	gap: calc(var(--padding-medium));
}

.footer-wrapper > div {
	width: 100%;
}

.footer-wrapper > div * {
	text-align: center;
}

.footer-item-info > div:last-child {
	margin-top: var(--padding-small);
	margin-left: 0;
	padding-top: var(--padding-small);
	padding-left: 0;
	border-top: 1px solid #fff;
	border-left: unset;
}

}



/* ------------------------------------------------------------------------------ */
/* ----- PAGE-HEADER ----- */
/* ------------------------------------------------------------------------------ */
.page-header {
	padding: var(--padding-large ) 0;
	background: var(--color-secondary);
	background-size: cover !important;
	background-position: center center !important;
	overflow: hidden;
}

.page-header-wrapper {
	position: relative;
	z-index: 5;
}

.page-header h1 {
	margin: 0;
}
 
@media screen and (max-width: 900px) {
.page-header {
	padding: var(--padding-medium) 0;
}
}



/* ------------------------------------------------------------------------------ */
/* ----- PAGE-CONTENT ----- */
/* ------------------------------------------------------------------------------ */
.page-content-wrapper {
	padding-top: var(--padding-large);
	padding-bottom: var(--padding-large);
}

.content-area > *:first-child {
	margin-top: 0;
}

@media screen and (max-width: 767px) {
.page-content-wrapper {
	padding-top: var(--padding-medium);
	padding-bottom: var(--padding-medium);
}
}



/* ------------------------------------------------------------------------------ */
/* ----- HOME-LANDING ----- */
/* ------------------------------------------------------------------------------ */
.home-landing {
	background: var(--color-primary);
	background-size: cover !important;
	background-position: center center !important;
	overflow: hidden;
} 

.home-landing * {
	color: #fff;
}

.home-landing div > *:first-child {
	margin-top: 0;
}

.home-landing div > *:last-child {
	margin-bottom: 0;
}

.home-landing .home-accroche {
	max-width: 50%;
}

@media screen and (max-width: 900px) {
.home-landing .home-accroche {
	max-width: 100%;
}
}

@media screen and (max-width: 767px) {
.home-landing {
	padding-top: var(--padding-medium);
	padding-bottom: var(--padding-medium);
} 
}



/* ------------------------------------------------------------------------------ */
/* ----- ACCES-RAPIDES ----- */
/* ------------------------------------------------------------------------------ */
.acces-rapides {
	position: relative;
	padding-bottom: var(--padding-medium);
}

.acces-rapides:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 300px;
	background-image: url('img/pattern-plan.jpg');
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

.acces-rapides a {
	text-decoration: none;
} 

.acces-rapides-listing {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 100px;
}

.acces-rapides-item {
	background: var(--color-primary);
	box-shadow: 0 0 5px rgba(0,0,0,.2);
	transition: var(--transition-standard);
	z-index: 5;
}

.acces-rapides-item:hover {
	box-shadow: 0 0 10px rgba(0,0,0,.5);
}

.acces-rapides-item h2 {
	margin: 0;
	padding: var(--padding-large);
	color: #fff;
} 

.acces-rapides-item-image {
	height: 250px;
	width: 100%;
	object-fit: cover;
	object-position: center center;
}

.acces-rapides-item-description {
	padding: var(--padding-large);
}

.acces-rapides-item-description * {
	color: #fff;
}

.acces-rapides-item-description *:first-child {
	margin-top: 0;
}

.acces-rapides-item-description *:last-child {
	margin-bottom: 0;
}

@media screen and (max-width: 900px) {
.acces-rapides-item h2,
.acces-rapides-item-description {
	padding: var(--padding-medium);
}

.acces-rapides-item-image {
	height: 180px;
}
}

@media screen and (max-width: 767px) {
.acces-rapides {
	padding-bottom: 0;
}

.acces-rapides-listing {
	grid-template-columns: repeat(1, 1fr);
	gap: var(--padding-large);
	
}
}


/* ------------------------------------------------------------------------------ */
/* ----- MAP ----- */
/* ------------------------------------------------------------------------------ */
.leaflet-map {
	border: 2px solid var(--color-secondary);
}



/* ------------------------------------------------------------------------------ */
/* ----- BLOCK-FORM ----- */
/* ------------------------------------------------------------------------------ */
.block-form {
	padding: var(--padding-medium);
}

.block-form h2:first-child {
	margin-top: 0;
}

.block-form .wpforms-container {
	margin-bottom: 0;
}



/* ------------------------------------------------------------------------------ */
/* ----- BLOCK-HOME-ICONS ----- */
/* ------------------------------------------------------------------------------ */
.block-home-icons {
	padding: var(--padding-large);
}

@media screen and (max-width: 767px) {
.block-home-icons {
	padding: var(--padding-medium);
}
}


/* ------------------------------------------------------------------------------ */
/* ----- WPFORMS ----- */
/* ------------------------------------------------------------------------------ */
.wpforms-container .wpforms-required-label {
	color: var(--color-primary);
}

.wpforms-container .wpforms-field-label {
	color: var(--color-secondary);
	font-weight: 400;
}

.wpforms-field-container .wpforms-field-gdpr-checkbox ul {
	padding-left: 0;
}


/* ------------------------------------------------------------------------------ */
/* ----- ADMIN FRONT ----- */
/* ------------------------------------------------------------------------------ */
#wpadminbar .ab-icon:before,
#wpadminbar .ab-icon:after {
	font-family: 'dashicons';
}