/*!
Theme Name: Template_Old_Sun
Theme URI: http://underscores.me/
Author: DSI Marmande
Author URI: http://underscores.me/
Description: Description
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: template_1
Tags: custom-background, custom-burger-menu-title, custom-menu, featured-images, threaded-comments, translation-ready

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

Template_1 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="search"],
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;
}
@media screen and (min-device-width: 500px) {
	/* NOTE Modification du CSS pour n'avoir le comportement hover que sur les résolutions supérieures à 500px */
	.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 */

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

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

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

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

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

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

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

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

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

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

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

/** 
	Bien penser à changer le le nom de ".menu-(en-tete / navbar)-container juste
	en dessous des check menu lines line 1.2.3
**/
.chevron::before {
	border-style: solid;
	border-width: 2px 2px 0 0;
	height: 0.5em;
	width: 0.5em;
	left: -0.5rem;
	top: -0.2rem;
	position: relative;
	display: inline-block;
	content: '';
	transform: rotate(135deg);
}
.rotate::before {
	transform: rotate(315deg);
}
.collapse {
	width: 100%;
	display: block !important;
}
.main-navigation ul ul {
	box-shadow: unset;
}
/* GLOBAL  ------------------------------------------------------------------ */
ul.wp-block-latest-posts__list li a,
a.post-edit-link,
ul#secondary-menu li a,
ul.wp-block-page-list li,
div.wp-block-column > h3 > strong > a,
#primary-menu > li,
input[type="submit"].wpcf7-form-control,
#quartuary-menu > li > a,
#quartuary-menu > li,
.credits a {
	text-decoration: none;
	cursor: pointer;
}
.site-info-bottom a,
.site-title a,
.site-title a:hover,
.site-title a:visited {
	text-decoration: none;
}
* {
	list-style: none;
}
body.home .entry-header .entry-title,
#actualites,
.entry-meta,
body.single .post-thumbnail,
body:not(.search) .entry-header > .entry-title {
	display: none;
}
.block {
	display: block;
}
.site-title a:hover,
.sub-menu li:hover a,
.site-info-bottom li:hover a,
.credits a:hover {
	text-decoration: underline;
}
/* HEADER  ------------------------------------------------------------------ */
#penta-menu {
	padding: 0.5rem 1rem;
}
#penta-menu a {
	font-weight: 600;
}
.main-navigation {
	position: fixed;
	left: 0px;
	top: 0px;
	z-index: 2;
	/* coupler cette ligne avec un z-index: unset sur .entry-header 
	pour empêcher le texte de passer devant */
}
#primary-menu {
	position: absolute;
	font-weight: 500;
}
#primary-menu > li {
	padding-left: 1em;
}
#primary-menu:first-child > li > a {
	margin-top: 0.5em;
}
.wp-block-cover {
	z-index: -1;
}
body:not(.home) .site-main {
	margin-top: 3rem;
}
/* CONTENT  ------------------------------------------------------------------ */
#alert-banner > li,
#alert-banner > li > * {
	margin: 0;
}
#alert-banner {
	position: fixed;
	display: flex;
	flex-direction: row;
	bottom: 0;
	cursor: pointer;
	padding: 0.5rem 1rem;
	width: 100%;
	z-index: 999;
}

h2:not([class]) {
	padding-left: 0.5rem;
}
.site-description {
	font-size: smaller;
	font-weight: 500;
}
.header-image {
    width: 100%;
	height: 50vh;
	object-fit: cover;
	margin-top: 5.5rem;
}
#quartuary-menu > li {
	border-radius: 4px 0 0 4px;
	box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25);
}
#quartuary-menu > li:last-child {
	border: none;
}
#quartuary-menu > li > a {
	text-align: right;
	font-weight: 600;
}
#wpgmza_map {
	float: none !important;
}
body.single-post .post-thumbnail {
	display: none;
}
.wp-block-coblocks-gallery-collage,
body.search article,
body.search .page-header {
	margin: 0 10%;
}
form.search-form {
	top: 2vh;
	z-index: 2;
}
body.search .site-main > article > .entry-summary {
	padding: 0 2em;
}
body.search .cat-links {
	font-style: italic;
	font-size: small;
}
body.search article {
	margin: 5% 15%;
	padding: 0.5em 1em;
	border-radius: 4px;
	box-shadow: 0px 10px 10px rgb(0 0 0 / 5%);
}
.post-template-default article .post-thumbnail img, .post .post-thumbnail img { 
	object-fit: cover;
	width: 80%;
	height: 9em;
}
input[type="search"].search-field {
	border: none;
	border-radius: 50px;
	outline: none;
	width: 22vw;
	padding: 0.5em 1em;

	background-color: var(--light-white);
}
body.home .ecs-event-list {
	display: flex;
	flex-direction: row;
	padding: 0;
}
body.home .ecs-event {
	padding: 1rem;
	margin: 5px;
	border-radius: 5px;
}
body.home .ecs-event img {
	height: 230px;
	width: 33vw;
	object-fit: cover;
	border-radius: 2px;
}
body.home .ecs-event *:not(.ecs-event img, .entry-title.summary > a) {
	position: relative;
}
body.home #last_events ul > li {
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	margin: 2% 2%;
}
body.home #last_events p {
	margin-right: 20%;
}
body.home #last_events h3 {
	margin-left: 3em;
	margin-right: 40%;
}
body.home #last_events ul > li > a {
	padding-left: 20px;
	padding-top: 10px;
	font-size: larger;
	font-weight: 500;
	display: inline-block;
}
body.home #last_events .wp-block-latest-posts__featured-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}
body.home #last_events .wp-block-latest-posts__post-excerpt {
	padding: 20px;
	margin-top: -1rem;
}

.entry-footer {
	margin-top: 2rem;
}
.wp-block-button__link {
	border: none;
}
body.home .wp-block-latest-posts__list.has-dates {
	display: grid;
}
/* FOOTER  ------------------------------------------------------------------ */
body:not(.home) #colophon {
    margin-top: 5rem;
}
.site-info-top .widget {
    margin-bottom: -1rem;
}
#second-menu {
    display: flex;
    justify-content: space-evenly;
}
.site-info-top {
    display: flex;
    position: relative;
    justify-content: space-evenly;
	padding: 1rem 0;
}
.site-info-bottom {
	padding: 10px 0;
}
.site-info-bottom ul {
	display: flex;
	justify-content: space-evenly;
}
.credits {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}
.credits img {
    height: 30px;
    width: auto;
    margin-left: 1rem;
}
/* SOCIAL ICONS  ------------------------------------------------------------------ */
.facebook {
    background-image: url("https://cdn-icons-png.flaticon.com/512/733/733547.png");
}
.youtube {
    background-image: url("https://cdn-icons-png.flaticon.com/512/1384/1384060.png");
}
.instagram {
    background-image: url("https://cdn-icons-png.flaticon.com/512/2111/2111463.png");
}
.twitter {
    background-image: url("https://cdn-icons-png.flaticon.com/512/889/889147.png");
}
.facebook, .youtube, .instagram, .twitter {
	background-repeat: no-repeat;
	background-size: contain;
}
.facebook a, .youtube a, .instagram a, .twitter a {
	opacity: 0;
}
@media screen and (max-device-width: 499px) {
	.custom-logo-link,
	.site-branding .site-title {
		display: none !important;
	}
	#last_events > p,
	#last_events > h2,
	.qubely-block-accordion,
	.entry-header,
	body:not(.home) .entry-content ,
	.wp-block-coblocks-gallery-collage {
		margin: 0 15%;
	}
	.post-thumbnail > img {
		margin: 0 10%;
	}
	body.home .entry-content,
	body.home .entry-content p {
		margin: 0 8%;
	}
	.qubely-block-text {
		margin: 0 7%;
	}
	.wp-block-buttons, .ecs-no-events {
		margin: 0 5%;
	}
	/* HEADER  ------------------------------------------------------------------ */
	#penta-menu {
		margin-top: -0.35rem;
	}
	.custom-logo-link {
		position: absolute;
		left: 4vw;
		top: 10vh;
	}
	.custom-logo-link img {
		height: 135px;
		width: auto;
	}
	form.search-form {
		margin: 5% 10%;
	}
	.main-navigation {
		width: 100vw;
	}
	.main-navigation .menu-toggle {
		padding: 10px;
	}
	#primary-menu {
		overflow-x: scroll;
		left: 0px;
		top: 3.5em;
		z-index: 1;
		padding-left: 3rem;
		padding-top: 5vh;
		height: 100vh;
		width: 100vw;
	}
	#primary-menu > li {
		width: 90%;
	}
	#primary-menu li .sub-menu li {
		display: contents;
	}
	.sub-menu > li:first-child {
		margin: 0;
	}
	.container {
		max-width: 1050px;
		margin: auto;
	}	 
	.nav-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 70px;
		position: relative;
		box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25);
	}
	.main-navigation .nav-container a {
		/* font-weight: inherit; */
		font-size: 1.3rem;
		/* padding: 0 1rem; */
	}
	.nav-container .checkbox {
		position: absolute;
		display: block;
		height: 32px;
		width: 32px;
		top: 14px;
		left: 20px;
		z-index: 5;
		opacity: 0;
		cursor: pointer;
	}	  
	.nav-container .menu-lines {
		height: 26px;
		width: 32px;
		position: absolute;
		top: 22px;
		left: 20px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}	  
	.nav-container .menu-lines .line {
		display: block;
		height: 4px;
		width: 100%;
		border-radius: 10px;
	}		    
	.burger-menu-title {
		position: fixed;
		left: 4rem;
		/* font-size: 1.2rem; */
	}
	.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);
	}	  
	/* .menu-items === #primary-menu */
	/* Trouver un remplacement à "menu-navbar-container" */
	.nav-container input[type="checkbox"]:checked ~ .menu-en-tete-container #primary-menu,
	.nav-container input[type="checkbox"]:checked ~ .menu-navbar-container #primary-menu {
		display: block;
	}
	.nav-container input[type="checked"]:checked {
		/* no shadow */
		box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
	}
	#primary-menu > li:before {
		top: 2.65em;
		left: -1.5rem;
	}
	#primary-menu > li > .sub-menu > li:before {
		top: 1.7rem;
	}
	.main-navigation ul ul {
		position: inherit !important;
	}
	body:not(.home) #banner {
		margin-top: 2rem;
	}
	input[type="search"].search-field {
		width: 80vw;
	}
	.header-image {
		margin-top: 2rem;
	}
	/* CONTENT  ------------------------------------------------------------------ */
	#quartuary-menu li {
		margin-top: 1.5vh;
		padding: 0.5rem;
	}
	#primary .entry-content h1, #primary h1 {
		margin-left: 10%;
	}
	body {
		overflow-x: hidden;
	}
    .wp-block-spacer {
        height: 20px !important;
    }
	.qubely-block-image {
		text-align: center !important;
	}
	.wp-block-image {
		/* margin-top: -2em; */
	}
	h2 {
		margin: 1rem;
	}
	body:not(.home) .entry-header {
		margin-top: 6em;
	}
	.menu-acces-rapide-container {
		position: fixed;
		height: 50px;
		width: 30px;
		right: 0.5rem;
		top: 0.5rem;
		border-radius: 50px;
		z-index: 2;
		cursor: pointer;
	}
	.menu-acces-rapide-container::before, .menu-acces-rapide-container::after {
		content: '';
		position: absolute;
		border-radius: 50px;
		width: 6%;
		right: 0.95rem;
	}
	.menu-acces-rapide-container::before {
		bottom: 0.8rem;
		height: 12px;
	}
	.menu-acces-rapide-container::after {
		bottom: 2rem;
		height: 5px;
	}
	body.search .main-navigation {
		margin-top: 0;
	}
	#quartuary-menu {
		position: fixed;
		top: 15vh;
		width: 25vw;
		right: -11rem;
		font-size: small;
		padding: 0;
	}
	body.home .ecs-event-list {
		display: flex;
		flex-direction: column;
	}
	body.home .ecs-event img {
		width: 90%;
	}
	body.home .wp-block-latest-posts__list.has-dates {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr;
		/* margin: 3rem 1rem; */
		gap: 1rem;
	}
	body.home .wp-block-latest-posts__list > li {
		width: 365px;
		height: 200px;
		background-color: #555;
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__featured-image {
		position: absolute;
		z-index: 0;
		width: inherit;
		height: inherit;
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__featured-image img.wp-post-image {
		width: inherit;
		height: inherit;
		object-fit: cover;
		filter: brightness(0.7);
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__post-excerpt {
		-webkit-line-clamp: 4;
	}
	body.home .wp-block-latest-posts__post-title {
		padding: 1rem 0;
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__post-title,
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__post-excerpt,
	body.home .wp-block-latest-posts__list > li > time {
		position: relative;
		left: 1rem;
		top: 1rem;
		width: 95%;
		display: inline-block;
	}
	body.home .wp-block-latest-posts__list > li > time {
		color: black;
	}
	/* FOOTER  ------------------------------------------------------------------ */
	ul#third-menu li a {
		font-size: 1em;
	}
	ul#third-menu {
		margin-top: 3em;
		font-size: 0.8em;
	}
	div.site-info ul li h3 {
		margin-top: 2em;
	}
	#secondary-menu {
		flex-direction: column;
		margin-left: 0 !important;
	}
	.site-info-bottom ul {
		flex-direction: column;
	}
}
@media screen and (min-device-width: 500px) and (max-device-width: 1024px) {
	#primary > h1,
	.site-branding .site-title {
		display: none;	
	}
	body.home #last_events ul > li {
		margin: 2% 27% !important;
	}
	.entry-content:not(.wp-block-image img),
	.entry-header,
	.nav-links {
		margin: 0 10%;
	}
	/* HEADER  ------------------------------------------------------------------ */
	#penta-menu {
		margin-top: -0.35rem;
	}
	.custom-logo-link {
		display: none !important;
		position: absolute;
		left: 35%;
		top: 8rem;
	}
	.site-branding img {
		height: 125px;
		width: auto;
	}
	form.search-form {
		position: fixed;
		top: 1rem;
		right: 1rem;
		right: 1rem;
	}
	.main-navigation {
		width: 100vw;
	}
	.main-navigation .menu-toggle {
		padding: 10px;
	}
	#primary-menu {
		overflow-x: scroll;
		display: none;
		padding-left: 3rem;
		top: 4em;
		width: 100vw;
		height: 100vh;
	}
	#primary-menu > li:last-child {
		padding-bottom: 20vh;
	}
	#primary-menu > li {
		width: 90%;
	}
	#primary-menu li .sub-menu li {
		display: contents;
	}
	ul.sub-menu {
		flex-direction: column;
		box-shadow: none !important;
	}
	.sub-menu > li:first-child {
		margin: 0;
	}
	.container {
		max-width: 1050px;
		margin: auto;
	}	 
	.nav-container {
		display: flex;
		justify-content: space-between;
		align-items: center;
		height: 70px;
		position: relative;
		box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.25);
	}
	.burger-menu-text > a {
		font-size: 23px;
	}
	.nav-container .checkbox {
		position: absolute;
		display: block;
		height: 32px;
		width: 32px;
		top: 14px;
		left: 20px;
		z-index: 999;
		opacity: 0;
		cursor: pointer;
	}	  
	.nav-container .menu-lines {
		height: 26px;
		width: 32px;
		position: absolute;
		top: 22px;
		left: 20px;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}	  
	.nav-container .menu-lines .line {
		display: block;
		height: 4px;
		width: 100%;
		border-radius: 10px;
	}		    
	.burger-menu-title {
		position: fixed;
		left: 12%;
	}
	.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);
	}	  
	/* .menu-items === #primary-menu */
	.nav-container input[type="checkbox"]:checked ~ .menu-en-tete-container #primary-menu,
	.nav-container input[type="checkbox"]:checked ~ .menu-navbar-container #primary-menu {
		display: flex !important;
		flex-direction: column;
		align-items: flex-start;
	}
	.nav-container input[type="checkbox"]:checked ~ body {
		overflow-y: hidden;
	}
	#primary-menu > li:before {
		top: 2.65em;
		left: -1.5rem;
	}
	#primary-menu > li > .sub-menu > li:before {
		top: 1.7rem;
	}
	.main-navigation ul ul {
		position: inherit !important;
	}
	body:not(.home) #banner {
		margin-top: 2rem;
	}
	input[type="search"].search-field {
		width: 50vw;
	}
	/* CONTENT  ------------------------------------------------------------------ */
	body.single .entry-header > .entry-title {
		display: block;
	}
	#quartuary-menu > li {
		border-radius: 0 !important;
	}
	#quartuary-menu {
		position: absolute;
		top: 3.5rem;
		right: 0;
		display: flex;
		flex-wrap: wrap;
	}
	#quartuary-menu > li {
		padding: 0.5rem;
	}
	ul.ecs-event-list li a {
		font-size: medium;
	}
	.cat-links,
	.post-thumbnail > img
	{
		margin-left: 6rem;
	}
	body.home .wp-block-latest-posts__list.has-dates {
		margin: 3rem -2rem;
		grid-template-columns: auto auto;
		grid-template-rows: auto auto;
	}
	body.home .wp-block-latest-posts__list.has-dates > li {
		width: 100%;
		margin-bottom: 0;
	}
	body.home .wp-block-latest-posts__list.has-dates .wp-block-latest-posts__featured-image img.wp-post-image {
		width: 50vw;
	}
	body.home .wp-block-latest-posts__list.has-dates .wp-block-latest-posts__post-excerpt {
		width: 25vw;
		-webkit-line-clamp: 4;
	}
	/* FOOTER  ------------------------------------------------------------------ */
	ul#third-menu li a {
		font-size: 1em;
	}
	ul#third-menu {
		margin-top: 2em;
		font-size: 1.2em;
	}
	div.site-info ul li h3 {
		margin-top: 2em;
	}
	div.site-info {
		display: flex;
	}
	.site-footer {
		margin-top: 1em;
	}
}
@media screen and (min-device-width: 1023px) {
	.site-main {
		margin: 0 20%;
	}
	div.nav-container input[type="checkbox"],
	.burger-menu-title {
		display: none;
	}
	.custom-logo-link {
		position: fixed;
		left: 0px;
		z-index: 3;
	}
	/* HEADER */
	form.search-form {
		position: fixed;
		right: 2vw;
	}
	#primary-menu > li:hover {
		text-decoration: underline;
	}
	#primary-menu {
		top: 1em;
		max-width: 75vw;
		left: 3rem;
		padding: 0;
		display: flex;
		align-items: center;
		justify-content: start;
		flex-wrap: wrap;
	}
	.custom-logo-link {
		width: 130px;
		height: 130px;
		margin-left: 2vw;
		margin-top: 5em;
	}
	.site-title {
	position: fixed !important;
	top: 5vh;
	right: 2vw;
	font-size: 26px;
	font-weight: 600;
	width: auto;
	z-index: 3;
}
	.main-navigation {
		height: 125px;
	}
	/* dropdown */
	ul.sub-menu {
		padding-left: 1em;
		padding-bottom: 1em;
		/* border-radius: 5px; */
		top: 3em !important;
		display: block !important;
	}
	.sub-menu li {
		padding-top: 1em;
		width: 11rem;
		line-height: initial;
	}
	ul#primary-menu > li > ul.sub-menu:before {
		position: absolute;
		top: -27px;
		left: 0;
		width: 100%;
		height: 40px;
		content: '';
		display: block;
	}
	ul#primary-menu > li > ul.sub-menu:after {
		position: absolute;
		top: -7px;
		left: 10px;
		border-left: 8px solid transparent;
		border-right: 8px solid transparent;
		content: '';
	}
	ul.sub-menu li .sub-menu {
		margin-left: 11rem;
		margin-top: -5.3rem;
		margin-bottom: -100vh; 
		position: relative;
	}
	.wp-block-image > img {
		height: 50vh;
		width: 100%;
		object-fit: cover;
	}
	/* CONTENT  ------------------------------------------------------------------ */
	#last_events ul > li {
		width: 70%;
	}
	body.home .wp-block-latest-posts__list {
		grid-template-columns: 49% 49%;
		grid-template-rows: auto auto;
		gap: 1rem;
		margin: 3rem 0;
		justify-content: space-between;
	}
	body.home .wp-block-latest-posts__list > li {
		width: 575px;
		height: 200px;
		background-color: #555;
		margin: 0;
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__featured-image > a {
		height: inherit;
		width: inherit;
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__featured-image {
		position: absolute;
		z-index: 0;
		width: inherit;
		height: inherit;
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__featured-image img.wp-post-image {
		width: inherit;
		height: inherit;
		object-fit: cover;
		filter: brightness(0.7);
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__post-excerpt {
		-webkit-line-clamp: 4;
	}
	body.home .wp-block-latest-posts__post-title {
		padding: 1rem 0;
	}
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__post-title,
	body.home .wp-block-latest-posts__list .wp-block-latest-posts__post-excerpt,
	body.home .wp-block-latest-posts__list > li > time {
		position: relative;
		left: 1rem;
		top: 1rem;
		width: 95%;
		display: inline-block;
	}
	body.home .wp-block-latest-posts__list > li > time {
		color:  #eee;
	}
	#quartuary-menu{
		position: fixed;
		width: 11rem;
		top: 25%;
		right: 0;
		z-index: 1;
	}
	#quartuary-menu > li {
		margin: 5% 0;
		padding: 1rem;
	}
	#penta-menu {
		position: absolute;
		top: 7.5rem;
		right: 0;
	}
	/* FOOTER  ------------------------------------------------------------------ */
	#third-menu {
		padding-left: 0px;
		display: flex;
		justify-content: flex-start;
	}
	#third-menu li {
		font-size: medium;
		width: 20%;
	}
	ul#secondary-menu li a {
		font-size: 1.4em;
	}
	div.site-info {
		display: flex;
	}
	.site-main {
        min-height: calc(100vh - 29em);
    }
	.site-footer {
		margin-top: 1em;
	}
}