/*!
Theme Name: Nature
Theme URI: http://underscores.me/
Author: Val de Garonne Agglomération : Service Informatique
Description: Thème crée par l'Agglomération de Val de Garonne à destination des communes en faisant partie pour leurs prodiguer une vitrinne sur internet de manière accessible
Version: 2.5.1
Tested up to: 8.2.18
Requires PHP: 7.4.33
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: template_1
Tags: custom-background, custom-burger-menu-title, custom-menu

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Nature is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[menu-title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

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

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}
/*
ul,
ol {
	margin: 0 0 1.5em 3em;
}*/

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

/* a:hover,
a:focus,
a:active {
	color: #191970;
} */

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 10em;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}
/* NOTE Peut impacter l'affichage du menu
.main-navigation li {
	position: relative;
}*/

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

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}
/*
.post,
.page {
	margin: 0 0 1.5em;
}*/

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure burger-menu-title link wraps around burger-menu-title image. */
.custom-burger-menu-title-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-info-dark {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-info-dark {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
/* https://codepen.io/mortezasharifinia/pen/abEgNdJ */

/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */
/* ----- ----- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;1,400;1,600&display=swap');
body {
    overflow-x: clip;
}

.custom-content {
    /* margin: 1rem 25%; */
}
/*
centrer une image d'article
    margin: auto
    display: block
*/
.thumbnail {
    width: 100%;
    height: 10vh;
}

#lang {
    display: block;
    float: right;
    padding-top: 1rem;
}
#lang img {
    height: 70px;
    width: auto;
    border-radius: 3px;
}
.chevron::before {
    border-style: solid;
    border-width: 0.20em 0.20em 0 0;
    height: 0.7em;
    width: 0.7em;
    float: right;
    position: relative;
    content: '';
    transform: rotate(135deg);
    transition: all 0.3s ease-in-out;
}
.rotate::before {
    transform: rotate(315deg);
    transition: all 0.3s ease-in-out;
}
.collapse {
    width: 100%;
    display: flex !important;
    flex-direction: column;
}

/* GLOBAL  ------------------------------------------------------------------ */
* {
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
}
:root {
    --burger-menu-dimension: 32px;
    --burger-menu-position: 2rem;
}
li {
    list-style: none;
}
a,
.checkbox {
    cursor: pointer;
}
input {
    outline: none;
}
h1,
h2,
h3,
h4,
#primary-menu a,
.site-title,
.demarches,
#acces-rapide ul > li,
/* .site-info-top > ul > li > p, */
.nav-container a,
#agenda ul li date,
#alert-banner * {
    font-weight: 600;
}
.post-edit-link {
    font-weight: 500;
}
#alert-banner a {
    text-decoration: underline;
}
.sticky {
    position: fixed !important; /* override position: relative du#primary-menu de base */
    top: 0;
    margin-top: 0 !important;
    /* NOTE Obligé de mettre un important pour override le margin-top en rem de base  */
    width: 100%;
}
#main-content,
.shadow {
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
h3:not(#colophon h3) {
    border-bottom: 3px solid var(--custom_light_blue);
    width: fit-content;
}
/* Social medias  */
.socials > div {
    display: flex;
    align-items: center;
    justify-content: left;
}
.socials #social-menu {
    display: flex;
    flex-direction: row;
}
.socials a {
    display: block;
    width: 2rem;
}
#social-menu li,
#social-menu li a {
	width: min-content;
}
/* https://css-tricks.com/forums/topic/hide-text-but-not-the-before-pseudo-class/ */
#social-menu li a {
	display: inline-block;
	overflow: hidden;
	text-indent: -9999px;
}
#social-menu li a::before {
	float: left;
	text-indent: 8px;
	margin-top: 3px;
	font-size: 30px;
	font-weight: initial;
	font-family: FontAwesome;
	font-style: unset;
}
#social-menu li a[href*="facebook"]::before {
	content: '\f09a';
}
#social-menu li a[href*="twitter"]::before {
	content: '\f099';
}
#social-menu li a[href*="instagram"]::before {
	content: '\f16d';
}
#social-menu li a[href*="youtube"]::before {
	content: '\f167';
}
#social-menu li a[href*="linkedin"]::before {
	content: '\f08c';
}
/* HOME  ------------------------------------------------------------------ */
.demarches {
    font-size: 28px;
    padding-left: 3rem;
    width: auto; 
    /* NOTE C'était 35% avant faire des test pour confirmer*/
}
.demarches a {
    text-decoration: underline;
}
#carousel {
    height: 20.2vh;
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
    background-size: cover;
    background-position: left;
    /* FIXME Le margin top efface le petit pixel de difference entre l'image et le reste de la bannière */
    margin-top: -2px;
}
.corner {
    position: relative;
    width: 16rem;
    height: 75%;
    top: 25%;
    /* NOTE J'ai ajouté un z-index: 1 aus submenus pour que cette forme ne passe pas au dessus */
    contain: content;
}
.corner:before {
    position: absolute;
    content: '';
    width: 70%;
    height: 100%;
    border-bottom-left-radius: 100%;
    box-shadow: -10rem 1rem 0 10rem var(--light-grey);
}
#acces-rapide ul {
    display: flex;
}
#acces-rapide ul > li {
    display: flex;
    align-items: center;
    height: auto;
    text-align: center;
}
body.home .entry-header, form.search-form input[type="submit"] {
    display: none;
}
#main-content {
    z-index: 1;
    /* margin-top: 5vh; */
}
.wpgmza_map {
    float: none !important;
}
/* #colophon {
    margin-top: -4rem;
} */
.site-info-top {
    padding-top: 3rem;
}
/* HEADER  ------------------------------------------------------------------ */
#alert-banner > li,
#alert-banner > li > * {
    margin: 0;
}
#alert-banner {
    position: absolute;
    display: flex;
    flex-direction: row;
    width: 100%;
    cursor: pointer;
    padding: 0.5rem 1rem;
    animation: alert 1.4s infinite;
    z-index: 999;
}
@keyframes alert {
    0% {
        background-color: var(--alert-main);
        box-shadow: 0px 1px 10px var(--transparent);
    }
    1% {
        background-color: var(--alert-accent);
        box-shadow: 0px 1px 10px var(--bright-red);
    }
    100% {
        background-color: var(--alert-main);
        box-shadow: 0px 1px 10px var(--transparent);
    }
}
.header-image {
    width: 100vw;
    height: 30vh;
    object-fit: cover;
}
.nav-infos > .site-title {
    text-shadow: #0000006b 15px 10px 20px;
}
.search-field {
    border: none;
    padding: 0.5rem 1.5rem;
    height: 2.5rem;
}
/* CONTENT  ------------------------------------------------------------------ */
.tribe-event-date-start::before {
    content: 'du ';
}
.pum-container.popmake {
    padding: 1rem;
}
.wp-block-stackable-image, .wp-block-stackable-columns, .stk-block {
    z-index: 0;
}
.site-main {
    min-height: calc(100vh - 35.7rem); 
}
.edit-link {
    padding: 0.5rem 3rem;
    border-radius: 20px;
}
.entry-footer {
    margin-bottom: 2rem;
}
body.home h2, body.home h3:not(#colophon h3, #main-content h3) {
    margin: 0 10%;
}
body:not(.home) .site-main {
    margin: 0 10%;
}
#actualites ul {
    display: grid;
    justify-items: center;
    grid-template-columns: 60% 40%;
    gap: 0.2rem;
}
#actualites ul > li:first-child {
    /* grid-column-start: 1;
    grid-column-end: 3; */

    grid-column-start: 1;
    grid-row-start: 1;
    grid-row-end: 7;
    height: 41.5vh;
}
#actualites ul > li {
    display: flex;
    flex-direction: column;
    /* justify-content: flex-end; */
    border-radius: 6px;
}
#actualites ul > li > h4 {
    position: relative;
    height: 0;
    margin: 0;
    z-index: 1;
}
#actualites ul > li > h4 > a {
    word-wrap: break-word;
    word-break: break-word;
    white-space: pre-line;
    width: 95%;
    line-height: initial;
}
/* #actualites ul > li img {
    object-fit: fill;
} */
.thumbnail {
    height: 100%;
}
#actualites ul > li a > img {
    height: 100%;
    width: 100%;

    filter: brightness(0.8);
    border-radius: 6px;
    transition: all 0.2s ease;
    -webkit-transition: all 0.2s ease;

    /* NOTE Ces arguments permettent de centrer l'image automatiquement */
    margin: auto;
    display: block;

    object-fit: cover;
    object-position: 0 40%;
}
#actualites ul > li:hover a > img {
    filter: brightness(0.6);
}
.sitemap-category {
    padding: 0;
}
#agenda {
    width: 65%;
}
#agenda ul > li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-radius: 6px;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}
#agenda ul > li > div {
    display: flex;
    flex-direction: column;
    padding-left: 0.5rem;
}
#agenda ul > li > div > * {
    margin: 0;
    padding: 0.2rem;
}
#agenda ul > li p {
    font-size: 0.8rem;
}
#agenda ul > li date {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    /* width: 10rem; */
    text-align: end;
    border-radius: 0 6px 6px 0;
    font-size: 0.8rem;
}
.qubely-block-accordion {
    margin-bottom: 5%;
}
/* FOOTER  ------------------------------------------------------------------ */
body:not(.home) #colophon {
    margin-top: 5rem;
}
.site-info-top .widget {
    margin-bottom: -1rem;
}
#second-menu {
    display: flex;
    justify-content: space-evenly;
    padding: 1rem;
}
.site-info-top {
    display: flex;
    position: relative;
    justify-content: space-evenly;
    margin-bottom: 0;
    /* padding: 4.5rem 0 0.5rem; */
    padding: 0;
    z-index: -1;
}
@media screen and (max-device-width: 500px) {
    .site-info-top {
        flex-direction: column;
    }
    #map {
        margin: 6%;
    }
}
@media screen and (min-device-width: 500px) {
    .site-info-top {
        align-items: center;
    }
}
.site-info-bottom {
    margin-top: -1rem;
    margin-bottom: -1rem;
}
.credits {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.credits img {
    height: 50px;
    width: auto;
    /* margin-left: 1rem; */
}
.credits a:hover {
    text-decoration: underline;
}
body.search-results img:not(.header-image) {
    display: none;
}
@media screen  and (max-device-width: 500px) {
    #lang {
        position: absolute;
        top: 4.5rem;
        right: 2rem;
        padding-top: 0;
    }
    .sub-menu a[href] {
        text-decoration: underline;
    }
    /* GLOBAL  ------------------------------------------------------------------ */
    .corner,
    #acces-rapide > h3 {
        display: none;
    }
    #acces-rapide ul > li > a,
    #agenda ul > li p {
        font-size: 0.8rem;
    }
    #primary {
        overflow-x: hidden;
    }
    /* COLORS  ------------------------------------------------------------------ */
    /* #demarches a {
        color: var(--light-dark);
    } */
    /* HEADER  ------------------------------------------------------------------ */
    .custom-logo {
        display: none;
    }
    .nav-infos > .site-title {
        font-size: 30px;
        width: 85%;
        top: 2%;
    }
    #alert-banner {
        position: fixed;
        /* top: 0; */
        bottom: 0;
        width: 100%;
        font-size: smaller;
        z-index: 1000;
    }
    .header-image {
        margin-bottom: -0.5rem;
    }
    .site-title {
        position: absolute;
        /* top: 14vh; */
        top: 0;
        left: 2vw;
    }
    .search-field {
        width: 100%;
        border: none;
        /* 
        position: absolute;
        margin-top: 11.5rem; */
    }
    #primary-menu {
        position: absolute;
        left: 999vw;
        width: 100%;
        /* height: 100%; */
        margin: 0;
        top: 4rem;
        padding: 3rem 7%;
	}
	#primary-menu > li {
		/* width: 90%; */
        padding: 0.5rem 0;
	}
	#primary-menu li .sub-menu li {
		display: contents;
	}
	ul.sub-menu {
        padding-left: 0.5rem;
        border-left: 2px solid var(--bright-red);
	}
    .sub-menu {
        margin: 0.5rem 0;
        display: none;
        /* margin-bottom: 15px; */
    }
    .sub-menu li {
        margin: 0.5rem 0;
    }
	.container {
		max-width: 1050px;
		margin: auto;
	}	
    .nav-container {
		display: flex;
		justify-content: flex-end;
        width: 95%;
	}
    #primary-menu .sub-menu li {
        display: flex;
        flex-direction: column;
    }
	.nav-container .checkbox {
		position: absolute;
		display: block;
		height: 32px;
		width: 32px;
		top: 19px;
		/* left: 20px; */
		/* z-index: 5; */
        z-index: 999999;
		opacity: 0;
		cursor: pointer;
	}	  
	.nav-container .menu-lines {
		height: 26px;
		width: 32px;
		position: absolute;
		top: 22px;
		/* left: 20px; */
		/* z-index: 2; */
		z-index: 99999;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}	  
	.nav-container .menu-lines .line {
		display: block;
		height: 4px;
		width: 100%;
		border-radius: 10px;
	}		    
	.nav-container .menu-lines .line1 {
		transform-origin: 0% 0%;
		transition: transform 0.2s ease-in-out;
	}	  
	.nav-container .menu-lines .line2 {
		transition: transform 0.1s ease-in-out;
	}	  
	.nav-container .menu-lines .line3 {
		transform-origin: 0% 100%;
		transition: transform 0.2s ease-in-out;
	}	   
	/* animation bars */ 
	.nav-container input[type="checkbox"]:checked ~ .menu-lines .line1 {
		transform: rotate(45deg);
	}	  
	.nav-container input[type="checkbox"]:checked ~ .menu-lines .line2 {
		transform: scaleY(0);
	}	  
	.nav-container input[type="checkbox"]:checked ~ .menu-lines .line3 {
		transform: rotate(-45deg);
    }
    .nav-container input[type="checkbox"]:checked ~ .menu-navbar-container #primary-menu {
        left: 0 !important;
        z-index: 999;
        top: 0;
	}
    .search-field:focus .site-title {
        margin-top: 10rem;
    }
    /* CONTENT  ------------------------------------------------------------------ */
    #main-content {
        padding-top: 4vh;
        border-radius: 3rem 3rem 0 0;
    }
    #banner {
        /* margin-top: -4rem; */
        margin-left: -3rem;
    }
    .demarches {
        position: relative;
        /* margin-top: 7vh; */
    }
    #carousel {
        height: 0;
    }
    #demarches { /* #demarches est le li a du menu crée par wordpress =/ .demarches est le wrapper*/
        margin: 0;
        padding: 0;
        /* text-align: center; */
    }
    #demarches > li {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 7vh;
        max-height: 55px;
        width: 100vw;
    }
    #demarches a {
        font-size: 15px;
    }
    .sidebar {
        margin: 0 6%;
    }
    #acces-rapide ul {
        margin: 1rem;
        padding: 0;
        display: flex;
        flex-wrap: wrap;
    }
    #acces-rapide ul > li {
        padding: 1rem;
        margin: 0 6px 3px 0;
        border-radius: 15px;
    }
    body.search-results #primary article {
        padding: 0 0.5rem;
        border-radius: 6px;
        margin: -5% 0;
    }
    .post-thumbnail > img,
    .cat-links {
        display: none;
    }
    #social-menu > li {
        height: 2rem;
        width: 2rem;
    }
    #agenda ul {
        width: 85vw;
        margin: 10% !important;
    }
    #agenda ul date {
        width: 5rem;
    }
    h3 {
        margin-left: 2rem;
    }
    #actualites ul > li:first-child {
        /* On ne peux malheureusement pas rendre la taille de l'article dépendante de son contenu sans revoir toute la structure de l'article */
        height: 15vh;
    }
    #actualites ul {
        grid-template-columns: 100%;
    }
    #actualites ul > li {
        width: 100%;
        height: 15vh;
    }
    #actualites ul > li > h4 {
        top: 50%;
        left: 5%;
        width: 90%;
        display: flex;
        align-items: center;
    }
    #actualites ul, #agenda ul {
        margin: 6%;
        padding: 0;
    }
    .map {
        display: flex;
        flex-direction: column-reverse;
        margin: 0 5%;
        padding-bottom: 5%;
    }
    .map > iframe {
        margin: 1rem auto;
    }
    .wpgmza_map {
        margin-top: 1rem;
    }
    /* FOOTER  ------------------------------------------------------------------ */
    .site-info-top {
        /* align-items: center; */
    }
    .site-info-top ul:last-child {
        margin-right: 1.2rem;
    }
    .site-info-bottom {
        flex-direction: column;
        /* padding: 1rem; */
    }
    #second-menu {
        flex-direction: column;
    }
}
@media screen  and (min-device-width: 501px) and (max-device-width: 1024px) {
    /* GLOBAL  ------------------------------------------------------------------ */
    #lang {
        position: absolute;
        top: 6.5rem;
        right: 1rem;
        padding-top: 0;
    }
    /* COLORS  ------------------------------------------------------------------ */
    /* HEADER  ------------------------------------------------------------------ */
    .custom-logo {
        position: absolute;
        top: 20px;
        left: 20px;
        width: auto;
        height: 90px;
        object-fit: cover;
    }
    .nav-infos > .site-title {
        font-size: 30px;
        width: 65%;
    }
    #alert-banner {
        position: fixed;
        top: 0;
        /* bottom: 0; */
        width: 100%;
        font-size: smaller;
        z-index: 1000;
    }
    .header-image {
        margin-bottom: -0.5rem;
    }
    #primary-menu {
        position: absolute;
        left: 999vw;
        width: 100%;
        /* height: 100%; */
        margin: 0;
        /* top: 4rem; */
        top: 0;
        padding: 3rem 10%;
	}
    #primary-menu a[href] {
        text-decoration: underline;
    }
	#primary-menu > li {
		width: 90%;
        padding: 0.5rem 0;
	}
	#primary-menu li .sub-menu li {
		display: contents;
	}
    .sub-menu {
        display: none;
        margin-left: 0;
        margin-bottom: 15px;
    }
	.sub-menu > li:first-child {
		margin: 0;
	}
	.container {
		max-width: 1050px;
		margin: auto;
	}	
    .nav-container {
		display: flex;
		justify-content: flex-end;
        width: 95%;
	}
	.nav-container .checkbox {
		position: absolute;
		display: block;
		height: 32px;
		width: 32px;
		top: 19px;
		/* left: 20px; */
		/* z-index: 5; */
        z-index: 99999;
		opacity: 0;
		cursor: pointer;
	}	  
	.nav-container .menu-lines {
		height: 26px;
		width: 32px;
		position: absolute;
		top: 22px;
		/* left: 20px; */
		/* z-index: 2; */
        z-index: 9999;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}	  
	.nav-container .menu-lines .line {
		display: block;
		height: 4px;
		width: 100%;
		border-radius: 10px;
	}		    
	.nav-container .menu-lines .line1 {
		transform-origin: 0% 0%;
		transition: transform 0.2s ease-in-out;
	}	  
	.nav-container .menu-lines .line2 {
		transition: transform 0.1s ease-in-out;
	}	  
	.nav-container .menu-lines .line3 {
		transform-origin: 0% 100%;
		transition: transform 0.2s ease-in-out;
	}	   
	/* animation bars */ 
	.nav-container input[type="checkbox"]:checked ~ .menu-lines .line1 {
		transform: rotate(45deg);
	}	  
	.nav-container input[type="checkbox"]:checked ~ .menu-lines .line2 {
		transform: scaleY(0);
	}	  
	.nav-container input[type="checkbox"]:checked ~ .menu-lines .line3 {
		transform: rotate(-45deg);
    }
    .nav-container input[type="checkbox"]:checked ~ .menu-navbar-container #primary-menu {
        left: 0 !important;
        z-index: 999;
	}
    .site-title {
        position: absolute;
        top: 2rem;
        right: 1rem;
    }
    .search-field {
        position: relative;
        top: -0.4rem;
    }
    /* CONTENT  ------------------------------------------------------------------ */
    h3 {
        margin: 2%;
    }
    h3:not(#map-container > h3) {
        padding-top: 3%;
    }
    #map-container > * {
        margin: 2%;
    }
    .corner {
        display: none;
    }
    .demarches {
        font-size: inherit;
    }
    #banner {
        display: flex;
        align-items: center;
        /* height: 20.3rem; */
        height: 100%;
        margin-top: -0.5rem;
    }
    .post-thumbnail {
        display: none;
    }
    #acces-rapide,
    .sidebar,
    #agenda > ul {
        margin: 5% 2% !important;
    }
    #agenda ul {
        width: 90%;
    }
    #acces-rapide h3 {
        padding: 0;
        margin: 2% 0 !important;
    }
    #acces-rapide ul {
        /* width: 100%; */
        padding: 0;
        /* margin-bottom: -2.5rem; */
        /* padding-top: 1rem; */
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    #acces-rapide ul > li {
        padding: 0.5rem 1rem;
        border-radius: 5px;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    }
     #agenda, #map-container {
        margin: 0 2%;
     }
    #demarches {
        padding: 0;
    }
    #demarches li {
        text-align: center;
    }
    #demarches a {
        font-size: 20px;
    }
    #actualites > ul {
        grid-template-columns: 50% 50%;
        margin: 0 5% 0 2% !important;
        padding: 0;
    }
    #actualites > ul > li:first-child {
        height: 100%;
        /* grid-row-end: unset; */
    }
    #actualites > ul > li {
        width: 100%;
        height: 14vh;
    }
    #actualites ul > li > h4 {
        top: 40%;
        left: 3%;
        width: 95%;
    }
    #actualites ul > li a > img {
        height: 100%;
    }
   #agenda ul {
        margin: 10%;
        padding: 0;
    }
    .map {
        display: flex;
        flex-direction: row;
        margin: 0 5%;
        padding-bottom: 2rem;
    }
    .map > iframe {
        margin-top: 1rem;
    }
    .wpgmza_map {
        height: 250px;
        margin-top: 1rem;
    }
    .search-field {
        width: 100%;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25); 
    }
    #social-menu > li {
        margin: 2%;
    }
    #carousel {
        height: 30vh;
        margin-left: 3rem;
    }
    .post-thumbnail > img {
        height: 200px;
        width: 100%;
        object-fit: cover;
        object-position: top;
    }
    /* FOOTER  ------------------------------------------------------------------ */
}
@media screen  and (min-device-width: 1024px) {
    /* GLOBAL  ------------------------------------------------------------------ */
    .checkbox, .menu-lines, body.single-post .post-thumbnail {
        display: none;
    }
    /* COLORS  ------------------------------------------------------------------ */
    /* HEADER  ------------------------------------------------------------------ */
    div.nav-infos a.custom-logo-link > img.custom-logo {
        height: 130px;
        width: auto;
    }
    #nav {
        position: absolute;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        top: 4%;
        margin-top: -3.5rem;
    }
    #social-menu {
        margin: 0 25%;
    }
    .nav-infos > .site-title {
        font-size: 2.5rem;
        margin-left: 1rem;
    }
    #nav > .nav-infos {
        display: flex;
        flex-direction: row-reverse;
        align-items: self-start;
        margin: 2rem;
    }
    .nav-search {
        margin-right: 2rem;
        /* margin-top: -4rem; */
    }
    .search-field {
        border-radius: 25px;
        width: 20vw;
    }
    #primary-menu {
        display: flex;
        justify-content: center; 
        position: relative;
        margin-top: -0.5rem;
        z-index: 1000;
    }
    #primary-menu > li {
        padding: 1rem 1.5rem;
    }
    .sub-menu {
        position: absolute;
        /* display: none; */
        display: block;
        left: 999rem;
        width: max-content;
        padding: 1rem 0;
        margin-top: 1rem;
        margin-left: -1.5rem;
        z-index: 1;
    }
    #primary-menu > .menu-item-has-children > .sub-menu {
        min-width: 12rem;
    }
    .sub-menu > .menu-item-has-children > .sub-menu {
        position: absolute;
        width: 100%;
        left: inherit;
        /* margin-left: 20rem; */
        margin-top: -3rem;
        z-index: 1;
    }
    #primary-menu > li:hover > ul {
        /* display: block; */
        left: inherit;
    }
    #primary-menu > li > .sub-menu > li:hover > ul {
        left: inherit;
    }
    #primary-menu > li > .sub-menu > li > ul {
        left: 999rem;
    }
    .sub-menu > li {
        padding: 0.5rem 1.5rem;
    }
    /* CONTENT  ------------------------------------------------------------------ */
    #alert-banner {
        top: 0;
    }
    #main-content {
        /* padding: 7vh 15vw; */
        padding: 7vh 20vw;
        width: 100%;
        border-radius: 2rem;
    }
    #banner {
        height: 20.3vh;
        margin-top: -1rem;
        display: flex;
        align-items: center;
    }
    #demarches {
        padding: 0;
    }
    #demarches > li {
        /* NOTE Modification du design du bouton */
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
        border-radius: 10px;
        padding: 1rem;
        font-size: 18px;
    }
    #carousel {
        margin-left: 5rem;
    }
    #acces-rapide {
        margin-top: 2rem;
    }
    .menu-acces-rapide-container {
        margin-top: -3rem;
    }
    #acces-rapide ul {
        margin: 5% 2%;
        justify-content: space-evenly;
    }
    #acces-rapide ul > li {
        width: 13vw;
        padding: 1rem;
        border-radius: 10px;
        justify-content: center;
        box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    }
    #news {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        width: 100%;
    }
    #actualites {
        width: 100%;
        margin-right: 3rem;
    }
    #actualites ul, #agenda ul {
        padding: 0;
    }
    #actualites ul > li {
        height: 8vh;
        width: 100%;
        line-height: 0;
    }
    #actualites ul > li > h4 {
        top: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        /* text-align: center; */
    }
    #actualites ul > li:first-child a > img {
        height: 100%;
        width: 100%;
        /* object-fit: cover;
        object-position: 0 35%; */
    }
    #map {
        margin-top: 1rem;
    }
    .map {
        display: flex;
        flex-direction: row;
        /* margin: 0 10%; */
    }
    .map > iframe {
        margin-top: 2rem;
    }
    .wpgmza_map {
        /* NOTE Mise à jour du plugin et ils ont rajouter du css avec des margins important */
        margin: 2% 10% !important;
        width: 65vw !important;
    }
    #social-menu > li {
        height: 2.5rem;
        width: 2.5rem;
    }
    .wp-block-media-text {
        margin: 2rem;
    }
    .post-thumbnail > img {
        height: 20vh;
        /* object-fit: cover; */
        object-position: top;
    }
    .wp-block-separator {
        border: 1px solid #F0F0E7;
        /* width: 50%; */
    }
    article {
        margin: 0 15% !important;
    }
    /* FOOTER  ------------------------------------------------------------------ */
}