/*!
Theme Name: LAPSAT
Theme URI: http://underscores.me/
Author: Théo Baes
Author URI: http://underscores.me/
Description: Custom theme: LAPSAT, developed by Théo Baes
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: lapsat
Tags: custom-background, custom-logo, 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.

LAPSAT 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: 1.875em;
	line-height: normal;
	margin: 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[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: bold;
}

/**
 * 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;
}

/* 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
--------------------------------------------------------------*/

:root {
	--black: #000;
    --grey: #787878;
    --grey-medium: #828282;
    --red: #E20613;
	--red-light: #cb5c5c;
    --red-dark: #961915;
    --gold: #DC9D00;

	--wp--preset--font-weight--normal: 400;
}

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

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

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 {
	position: relative;
	margin: 0;
	display: inline-block;
}

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
--------------------------------------------------------------*/

/* Header
--------------------------------------------- */
.lapsat__header {
	padding: 12px 40px;
	background-color: var(--red-dark);
	display: flex;
	align-items: center;
	gap: 50px;
	justify-content: flex-start;
}
	.lapsat__header .custom-logo-link {
		background: linear-gradient( rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 2%, rgb(255, 255, 255) 2.01%, rgb(255, 255, 255) 98%, rgba(255, 255, 255, 0) 98.01%, rgba(255, 255, 255, 0) 100% );
		padding: 0 7px;
	}
	.lapsat__header .custom-logo-link img {
		width: 90px;
		width: clamp(60px, 10vw, 90px);
	}

.lapsat__social-icons {
	display: flex;
	gap: 20px;
}
.lapsat__social-icons a {
	transition: transform 200ms linear;
}
.lapsat__social-icons a:hover {
	transform: scale(1.1);
}
.lapsat__social-icons .icon {
	width: 40px;
	height: 40px;
}

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 40px;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
	gap: 45px;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: calc(100% + 10px);
	left: -999em;
	z-index: 99999;
	flex-direction: column;
	gap: 0px;
	background-color: var(--red-dark);
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0px;
}
.main-navigation ul ul li {
	display: inline-block;
	padding: 10px 15px;
	transition: background-color 0.2s ease-in-out;
}
.main-navigation ul ul li.menu-item-has-children::after {
	transform: translateY(-50%) rotate(-90deg) scale(.9);
	position: absolute;
	right: 10px;
    top: 50%;
}

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

.main-navigation ul ul a {
	display: initial;
    width: auto;
}

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

.main-navigation li {
	display: flex;
	align-items: center;
	position: relative;
}

.main-navigation li.menu-item-has-children::after {
	content: "";
	position: relative;
	display: inline-block;
	width: 22px;
	height: 15px;
	background: url("icons/arrow-down.svg") no-repeat center center;
	background-size: contain;
	vertical-align: middle;
	margin-left: 15px;
}

.main-navigation a {
	display: block;
	text-decoration: none;
	color: #FFF;
	font-size: 20px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}
/* Fade in */
.main-navigation ul.menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0.1em;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 300ms, transform 300ms;
}

/* Slide in */
.main-navigation a {
  overflow: hidden;
  position: relative;
}

.main-navigation ul.menu > li > a::after {
  opacity: 1;
  transform: translate3d(-100%, 0, 0);
}

.main-navigation ul.menu > li > a:hover::after,
.main-navigation ul.menu > li > a:focus::after{
  transform: translate3d(0, 0, 0);
}
.main-navigation ul ul a {
	font-size: 18px;
}

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

.menu-back {
	display: none;
}

@media screen and (max-width: 87em) and (min-width: 64em) {
	.lapsat__header {
		gap: 20px;
	}
	.main-navigation ul#primary-menu {
		gap: clamp(10px, 2.5vw, 25px);
	}
	.main-navigation a {
		font-size: 18px;
	}
	.main-navigation ul ul a {
		font-size: 1em;
	}
}

@media screen and (max-width: 76em) and (min-width: 64em) {
	.main-navigation a {
		font-size: 16px;
	}
	.main-navigation ul ul li a {
		font-size: 14px;
	}
}

@media screen and (max-width: 72.5em) and (min-width: 64em) {
	.lapsat__header {
    	padding: 10px 25px;
	}
	.main-navigation ul#primary-menu {
		gap: clamp(10px, 1.5vw, 15px);
	}
	.main-navigation li.menu-item-has-children::after {
		width: 16px;
		height: 10px;
		margin-left: 8px;
	}
	.lapsat__social-icons .icon {
		width: 30px;
		height: 30px;
	}
}

@media screen and (min-width: 64em) {
	.main-navigation #primary-menu > li:first-child {
		display: none;
	}
	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}

	.main-navigation ul ul li {
		min-width: 220px;
	}
	.main-navigation ul ul li:hover,
	.main-navigation ul ul li.focus {
		background-color: var(--gold);
	}

	.main-navigation ul ul li a {
		position: relative;
		color: #fff;
		text-decoration: none;
		font-size: 16px;
		font-weight: 700;
		line-height: 24px;
		background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(to right, rgb(255 255 255), rgb(255 255 255), rgb(255 255 255));
		background-position-x: 0%, 0%;
		background-position-y: 0%, 0%;
		background-repeat: repeat, repeat;
		background-size: auto, auto;
		background-size: 100% 0.1em, 0 0.1em;
		background-position: 100% 100%, 0 100%;
		background-repeat: no-repeat;
		transition: background-size 400ms;
	}
	.main-navigation ul ul li a:hover,
	.main-navigation ul ul li a:focus {
		color: #fff;
		background-size: 0 0.1em, 100% 0.1em;
	}
	
	.main-navigation li.menu-item-has-children::before {
		content: "";
		position: absolute;
		display: inline-block;
		top: 100%;
		left: 0;
		width: 100%;
		height: 11px;
	}
}

@media screen and (max-width: 68.85em) and (min-width: 64em) {
	.main-navigation {
		justify-content: flex-start;
	}
	.main-navigation ul ul li {
		padding: 4px 12px;
		min-width: 190px;
	}
	.main-navigation ul ul li a {
		font-size: 14.5px;
		line-height: 20px;
	}
}

@media screen and (max-width: 64em) {
	.lapsat__header {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		z-index: 1000;
		background-color: transparent;
		padding: 32px 37px 0 37px;
		justify-content: space-between;
	}
	body.admin-bar .lapsat__header {
		top: 46px;
	}
	.lapsat__header .custom-logo-link img {
		width: 70px;
		min-width: 70px;
	}
	.main-navigation {
		display: contents;
	}
	.main-navigation.toggled {
		z-index: 9999;
	}
	.main-navigation:not(.toggled) ul {
		display: none;
	}
	.main-navigation ul#primary-menu {
		position: fixed;
		display: flex;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		overflow-y: auto;
		background-color: var(--red-dark);
		padding: 120px 62px 0 62px;
		flex-direction: column;
		transform: translateX(100%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.3s ease, opacity 0.3s ease;
		z-index: 1000;
		gap: 25px;
	}

	/* Menu visible */
	.main-navigation.toggled ul#primary-menu {
		display: flex;
		transform: translateX(0);
		opacity: 1;
		pointer-events: auto;
	}

	.menu-toggle {
		display: block;
		background: url("icons/burger.png") no-repeat center center;
		background-size: contain;
		width: 50px;
		height: 50px;
		margin-right: -58vw;
		border: none;
		cursor: pointer;
		position: relative;
        z-index: 10000;
	}
	.menu-toggle[aria-expanded="true"] {
		background: url("icons/close.svg") no-repeat center center;
		width: 40px;
		height: 40px;
		/* margin-top: 10px; */
		background-size: contain;
	}

	header .lapsat__social-icons {
		position: fixed;
        z-index: 1000;
        bottom: 30px;
        left: 30px;
		opacity: 0;
		transition: opacity 200ms linear, transform 200ms linear;
		transform: translateX(100%);
		pointer-events: none;
	}
	.lapsat__header:has(.main-navigation.toggled) .lapsat__social-icons {
		opacity: 1;
		pointer-events: auto;
		transform: translateX(0);
	}

	.main-navigation ul ul li {
		display: block;
	}
	.main-navigation #primary-menu > li {
		width: 100%;
        justify-content: center;
		text-align: center;
		font-size: 18px;
		padding: 0 35px;
		border: 2px solid #fff;
		border-top-right-radius: 10px;
		border-bottom-left-radius: 10px;
		transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
	}
	.main-navigation #primary-menu > li a {
		display: block;
		width: 100%;
		text-align: center;
		padding: 14px 0;
	}

	.main-navigation li.menu-item-has-children::after {
		position: absolute;
		top: 50%;
		right: 25px;
		transform: translateY(-50%) rotate(-90deg);
	}
	.main-navigation li.menu-item-has-children a[href="#"] {
		pointer-events: none;
	}
	
	.main-navigation #primary-menu > li.current_page_item ,
	.main-navigation #primary-menu > li:hover {
		background-color: #fff;
		color: var(--red);
	}
	.main-navigation #primary-menu > li.current_page_item > a,
	.main-navigation #primary-menu > li:hover > a {
		color: var(--red);
	}

	/* Sous menu */
	.main-navigation ul ul {
		position: fixed;
		display: flex;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		height: 100dvh;
		overflow-y: auto;
		background-color: var(--red-dark);
		padding: 120px 62px 0 62px;
		flex-direction: column;
		transform: translateX(100%);
		opacity: 0;
		pointer-events: none;
		transition: transform 0.3s ease, opacity 0.3s ease;
		z-index: 1000;
		gap: 25px;
        left: 0;
	}
	/* .main-navigation ul li:hover > ul,  */
	.main-navigation ul li.focus > ul {
		transform: translateX(0);
		opacity: 1;
		pointer-events: auto;
        left: 0;
		z-index: 1001;
	}

	.main-navigation ul li > ul ul, 
	.main-navigation ul li > ul ul {
		left: 0;
	}
	/* .main-navigation ul li:hover > ul ul,  */
	.main-navigation ul li.focus > ul ul {
		z-index: 1003;
		left: 0;
	}

	.main-navigation ul ul li a {
		width: 100%;
		text-align: center;
		font-size: 18px;
		padding: 14px 25px;
		border-bottom: 2px solid #fff;
		border-bottom-left-radius: 10px;
		transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
	}

	.main-navigation ul ul li.menu-item-has-children::after {
		transform: translateY(-50%) rotate(-90deg);
	}

	.lapsat__header:has(.main-navigation.toggled):has(li.focus) .menu-back {
		display: block;
		position: fixed;
		top: 60px;
		left: 30px;
		border: 1px solid #fff;
		background-color: transparent;
		padding: 4px 30px;
		border-top-right-radius: 10px;
		border-bottom-left-radius: 10px;
		color: #fff;
		text-align: center;
		font-size: 16px;
		font-weight: bold;
		z-index: 1001;
	}
	
}

/* Pied de page
--------------------------------------------- */
.site-footer {
	background-color: var(--red-dark);
	color: #fff;
	padding: 30px 70px;
}
	.footer__main {
		display: flex;
		flex-direction: row;
		align-items: flex-start;
		gap: 60px;
	}
	.footer__infos {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.footer__logos {
		display: flex;
		flex-direction: row;
		justify-content: center;
		gap: 10px;
		align-items: center;
	}
	.footer__logos .footer-logos-widget {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		padding: 5px 10px;
		background-color: #fff;
		border-radius: 10px;
	}
	.footer__logos .wp-block-image figure::before,
	.footer__logos .wp-block-image figure::after {
		content: none !important;
	}
	.footer__logos img {
		max-width: 95px;
	}
	.footer__logos img.wp-image-1264 {
		max-width: clamp(200px, 25vw, 270px);
	}
	ul#footer-menu,
	#footer-menu ul {
		display: flex;
		list-style: none;
		margin: 0;
		padding: 0;
	}
	ul#footer-menu {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 20px 40px;
	}
	#footer-menu ul {
		gap: 8px;
		flex-direction: column;
	}

	#footer-menu a {
		position: relative;
		color: #fff;
		text-decoration: none;
		font-size: 16px;
		font-weight: 700;
		line-height: 24px;
		background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), linear-gradient(to right, rgb(255 255 255), rgb(255 255 255), rgb(255 255 255));
		background-position-x: 0%, 0%;
		background-position-y: 0%, 0%;
		background-repeat: repeat, repeat;
		background-size: auto, auto;
		background-size: 100% 0.1em, 0 0.1em;
		background-position: 100% 100%, 0 100%;
		background-repeat: no-repeat;
		transition: background-size 400ms;
	}
	#footer-menu a:hover,
	#footer-menu a:focus {
		color: #fff;
		background-size: 0 0.1em, 100% 0.1em;
	}

	#footer-menu ul li {
		line-height: 14px;
	}
	#footer-menu ul li a {
		font-size: 13px;
		line-height: 14px;
		font-weight: 400;
	}
	#footer-menu > li > a {
		margin-bottom: 4px;
	}

	.footer__bottom {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		text-align: center;
		margin-top: -5px;
		font-size: 12px;
		font-style: normal;
		font-weight: 400;
	}
	.footer__bottom p {
		margin: 0;
		font-size: 12px;
	}

@media screen and (min-width: 64em) {
	ul#footer-menu > li {
		max-width: 180px;
	}
	ul#footer-menu > li:nth-child(1) {
		max-width: 100px;
	}
	ul#footer-menu > li:nth-child(2) {
		max-width: 165px;
	}
	ul#footer-menu > li:nth-child(4) {
		max-width: 165px;
	}
	ul#footer-menu > li:nth-child(5) {
		max-width: 155px;
	}
	ul#footer-menu > li:nth-child(6) {
		margin-left: -6px;
	}
}

@media screen and (min-width: 1620px) {
	ul#footer-menu > li:nth-child(n+7) {
        margin-top: 0px;
    }
	ul#footer-menu > li:nth-child(2) {
        max-width: 183px;
    }
}

@media screen and (min-width: 1720px) {
	.footer__main {
		justify-content: center;
	}
	ul#footer-menu > li:nth-child(n+8) {
        margin-top: 0px;
    }
}

@media screen and (min-width: 85em) and (max-width: 102.75em) {
	ul#footer-menu {
		gap: 20px 40px;
	}
	ul#footer-menu > li:nth-child(n+6) {
		margin-top: -60px;
  	}
}

@media screen and (min-width: 102.75em) and (max-width: 116.25em) {
	ul#footer-menu > li:nth-child(n+7) {
		margin-top: -60px;
  	}
}

@media screen and (min-width: 116.25em) and (max-width: 125.25em) {
	ul#footer-menu > li:nth-child(n+8) {
		margin-top: -60px;
  	}
}

/* @media screen and (max-width: 96em) and (min-width: 95em) {
	ul#footer-menu > li:nth-child(n+6) {
    	margin-left: 0px;
		margin-top: -80px;
  	}
} */

@media screen and (max-width: 64em) {
	.site-footer {
		padding: 15px 35px 8px 35px;
	}
	.footer__main {
		flex-direction: column;
		align-items: center;
		gap: 30px;
	}
	.footer__infos {
		flex-direction: row;
		align-items: center;
		gap: 55px;
	}
	.footer__logos {
		flex-direction: row;
		gap: 18px;
		padding: 5px 10px;
		align-items: center;
	}
	.footer__logos .footer-logos-widget:nth-child(1) img {
		max-width: 60px;
	}
	.footer__logos .footer-logos-widget:nth-child(2) img {
		max-width: 100px;
	}

	ul#footer-menu {
		justify-content: space-between;
	}
	ul#footer-menu > li {
		position: relative;
		width: calc(50% - 20px);
		max-width: calc(50% - 20px);
	}
	#footer-menu ul {
		display: none;
	}
	#footer-menu > li > a {
		display: inline-flex;
		margin-bottom: 10px;
	}
	#footer-menu > li.menu-item-has-children::after {
		content: "";
		position: absolute;
		top: 13px;
		right: -5px;
		transform: translateY(-50%);
		display: inline-block;
		width: 11px;
		height: 7px;
		background: url("icons/arrow-down.svg") no-repeat center center;
		background-size: contain;
		vertical-align: middle;
		margin-left: 5px;
	}
	#footer-menu > li.menu-item-has-children:hover > ul,
	#footer-menu > li.menu-item-has-children:focus > ul,
	#footer-menu > li.menu-item-has-children:active > ul {
		display: flex;
	}

	#footer-menu a {
		font-size: 12px;
	}
	.footer__bottom {
		font-size: 12px;
		margin-top: 5px;
	}
}

@media screen and (max-width: 64em) and (min-width: 27.5em) {
	.footer__logos .footer-logos-widget:nth-child(1) img {
		max-width: 80px;
	}
	.footer__logos .footer-logos-widget:nth-child(2) img {
		max-width: 160px;
	}
}

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

.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;
}

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

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

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

/* Icons
--------------------------------------------- */
.icon {
	display: inline-block;
	width: 1.5em;
	height: 1.5em;
	vertical-align: middle;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: contain;
}

.icon svg {
	display: block;
	width: 100%;
	height: 100%;
}

.icon-facebook {
	background-image: url("icons/facebook.png");
}
.icon-down {
	background-image: url("icons/arrow-down.svg");
}

/* 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 logo link wraps around logo image. */
.custom-logo-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-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	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;
}


/* Layout */
section.wp-block-group {
	max-width: 940px;
	margin: 0 auto 100px auto;
	justify-content: space-between;
}
section.wp-block-group.medium {
	max-width: 1140px;
}
section.wp-block-group.encart {
	max-width: 1000px;
}
section.wp-block-group.large {
	max-width: 1240px;
}
section.wp-block-group.larger {
	max-width: 1290px;
}
section.wp-block-group > .wp-block-group.is-vertical {
	max-width: 565px;
}
section.wp-block-group.close-to-next {
	margin-bottom: 30px;
}

/* Mises en forme spécifiques */
p.lead {
	font-family: var(--font-title);
	font-size: 25px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	margin-bottom: 50px;
	text-transform: uppercase;
}
p.lead.medium {
	font-size: 18px;
	margin-bottom: 30px;
	text-transform: none;
}
.has-red-op-color {
	color: var(--red);
}

figure.wp-block-image:not(.no) img,
.wp-block-image:not(.no) figure img {
	border-radius: 0px 20px;
	position: relative;
    z-index: 1;
}
.wp-block-image.size-medium figure,
figure.wp-block-image.size-medium {
	width: 30vw;
	max-width: 358px;
	position: relative;
}
figure.wp-block-image:not(.no)::before,
.wp-block-image:not(.no) figure::before,
figure.wp-block-image:not(.no)::after,
.wp-block-image:not(.no) figure::after,
.wp-block-column .metaslider::before,
.wp-block-column .metaslider::after,
.wpcf7::before,
.wpcf7::after {
	content: "";
	position: absolute;
	width: 100%;
	height: 100%;
	border-radius: 0px 20px;
	z-index: 0;
	border: 2px solid var(--red);
	pointer-events: none;
}

figure.wp-block-image:not(.no)::before,
.wp-block-image:not(.no) figure::before,
.wp-block-column .metaslider::before,
.wpcf7::before {
	top: -10px;
	left: -10px;
}
figure.wp-block-image:not(.no)::after,
.wp-block-image:not(.no) figure::after,
.wp-block-column .metaslider::after,
.wpcf7::after {
	border-color: var(--gold);
	top: 10px;
	left: 10px;
}

/* Bouton */
/* Style général des boutons Gutenberg */
.wp-block-button__link {
  background-color: var(--red); /* couleur de fond */
  color: #ffffff; /* couleur du texte */
  padding: 15px 1.5em;
  border-radius: 10px;
  font-size: 1.125rem;
  font-family: var(--font-label);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
  min-width: 315px;
}

.wp-block-button__link:hover,
.wp-block-button__link:focus {
  background-color: var(--red-dark); /* couleur au survol */
  color: #ffffff;
}

.wp-block-button__link:visited {
  color: #ffffff; /* couleur du texte après visite */
}

/* Post query template */
.wp-block-post-template.columns-3 {
	gap: clamp(40px, 7vw, 100px);
}
.wp-block-post-template .wp-block-post {
	display: flex;
	flex-direction: column;
	gap: 20px;
	border-radius: 0px 20px 0px 20px;
	border: 1px solid #E20613;
	background: #FFF;
	overflow: hidden;
}
.wp-block-post-template .wp-block-post > .wp-block-group {
	padding: 12px 12px 0 12px !important;
	height: 100%;
    flex: 1;
}
.wp-block-post-template .wp-block-post > .wp-block-group  > .wp-block-group__inner-container {
	display: flex;
    flex-direction: column;
	height: 100%;
    flex: 1;
}
	.wp-block-post-template .wp-block-post h3,
	.wp-block-post-template .wp-block-post h3 a {
		color: #000;
		font-family: var(--font-label);
		font-size: 14px;
		font-style: normal;
		font-weight: 700;
		line-height: normal;
	}
	.wp-block-post-template .wp-block-post h3 {
		margin: 0 0 17px 0;
	}

	.wp-block-post-excerpt,
	.wp-block-post-excerpt__excerpt {
		flex: 1;
		font-size: .9rem;
		font-style: normal;
		font-weight: 400;
		line-height: normal;
	}

	.wp-container-core-group-is-layout-ad2f72ca {
		margin-top: 20px;
		margin-bottom: 20px;
		color: var(--grey-medium);
		font-size: 14px;
		font-style: normal;
		font-weight: 400;
	}

	.wp-block-avatar {
		width: 22px;
		height: 22px;
		border-radius: 50%;
		overflow: hidden;
	}
	.wp-block-post-author-name::before {
		content: "Publié par : ";
	}

	.wp-block-post-template .wp-block-read-more {
		display: flex;
		width: calc( 100% + 34px );
		justify-content: center;
		align-items: center;
		padding: 10px;
		text-align: center;
		font-family: var(--font-label);
		font-size: 18px;
		font-style: normal;
		font-weight: 700;
		color: #fff;
		background-color: var(--red);
		margin: auto -17px 0px -17px;
		transition: background-color 0.2s ease-in-out;
	}
	.wp-block-post-template .wp-block-read-more:hover {
		background-color: var(--red-dark);
	}

/* Liste */
ul.wp-block-list {
	margin: 0 0 1.5em;
}

ul.wp-block-list li {
	margin-bottom: 0.5em;
}

p a,
p a:visited,
p a:active,
p a:hover {
	color: var(--red);
	text-decoration: underline;
	transition: color 0.2s ease-in-out;
}

.has-red-dark-background-color p a:visited:not(:hover) {
	color: #fff;
}

.mobile {
	display: none !important;
}

@media screen and (max-width: 768px) {
	.mobile {
		display: flex !important;
	}
	.desktop {
		display: none !important;
	}
	section.wp-block-group,
	section.wp-block-group.large {
		max-width: 100%;
		padding: 0 28px;
	}

	section.wp-block-group {
		margin-bottom: 70px;
	}
	section.wp-block-group.close-to-next {
		margin-bottom: 0;
	}

	p.lead {
		font-size: 18px;
		margin-bottom: 30px;
	}

	section.wp-block-group:has(p.lead):has(.wp-block-image):has(.wp-block-button) {
		display: grid;
		grid-template-areas:
		"title"
		"image"
		"cta";
	}

	section.wp-block-group > .wp-block-group {
		display: contents;
	}
	section.wp-block-group p.lead {
		grid-area: title;
	}
	section.wp-block-group figure.wp-block-image {
		grid-area: image;
		width: 100%;
		max-width: 100%;
		margin-bottom: 20px;
	}
	section.wp-block-group .img {
		grid-area: image;        
		margin-bottom: 30px;
	}
	section.wp-block-group .wp-block-button {
		grid-area: cta;
	}

	.wp-block-post-template.columns-3 {
		margin-left: 0 !important;
	}
}

/* Slider */
body .metaslider.lapsat__hero__slider {
	margin-bottom: 80px;
}
body .metaslider.lapsat__hero__slider .flexslider .slides img {
	aspect-ratio: 1440 / 640;
}
.metaslider.lapsat__hero__slider .flexslider .caption-wrap {
	position: absolute;
	top: 50%;
	left: 50%;
	bottom: initial;
	right: initial;
	transform: translate(-50%, -50%);
	width: auto;
	max-width: 800px;
	padding: 12px 33px;
	text-align: center;
	color: #fff;
	opacity: 1;
	border-radius: 0 20px 0 20px;
}
.lapsat__hero__slider h1 {
	text-transform: uppercase;
}
.metaslider.lapsat__hero__slider .flex-control-nav {
	bottom: 20px;
}
.lapsat__hero__slider .flex-control-paging li a {
	width: 24px;
	height: 24px;
}

@media only screen and (max-width: 768px) {
	body .metaslider.lapsat__hero__slider .flexslider .slides img {
		aspect-ratio: 375 / 812;
		object-fit: cover;
	}
	.metaslider.lapsat__hero__slider .flexslider .caption-wrap {
		padding: 11px 20px;
		min-width: 80%;
	}
	.metaslider.lapsat__hero__slider .flex-control-nav {
		bottom: 23px;
	}
	.lapsat__hero__slider .flex-control-paging li a {
		width: 24px;
		height: 24px;
	}

	.no-mob {
		display: none;
	}
}

/* Layout de base */
.wp-block-heading.deco {
	font-size: 1.75rem;
	display: inline-block;
	color: var(--red-dark);
	padding: 13px 33px;
	border: 3px solid var(--red-dark);
	border-radius: 0px 20px 0 20px;
	margin: 0 0 50px 0;
	text-transform: uppercase;
}
.wp-block-heading.deco::first-letter {
	font-size: 1.25em;
}
.wp-block-group.has-red-dark-background-color .wp-block-heading.deco {
	color: #fff;
	border-color: #fff;
}
.wp-block-group__inner-container:has(.deco) {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wp-block-group__inner-container:has(.deco) > .wp-block-group,
.wp-block-group__inner-container:has(.deco) > .wp-block-columns {
	width: 100%;
}

.wp-block-group__inner-container:has(.deco) p {
	width: 100%;
}
.wp-block-group__inner-container:has(.deco) > .wp-block-group.inline p {
	width: auto;
}

:is(body, p, button, input, textarea) {
    font-size: 18px;
}

p {
	margin-top: 0;
	margin-bottom: 20px;
}

.three-cols {
	gap: 58px
}

:where(.wp-block-columns),
.nomb {
	margin-bottom: 0;
}

.max-700,
section.wp-block-group.max-700 {
	max-width: 700px;
	margin: 0 auto;
}

.max-450 {
	max-width: 450px;
	margin: 0 auto;
}

.gap-large {
	gap: 160px;
}

@media only screen and (max-width: 768px) {
	.max-700 {
		max-width: calc(100vw - 56px);
	}
	.wp-block-heading.deco {
		width: 100%;
		text-align: center;
		font-size: 18px;
	}
}

/* wp-block-group full red has-red-dark-background-color has-text-color has-background has-link-color wp-elements-f77f3cbb9ada5ced879baaa32efb541d */
.has-red-dark-background-color {
	background-color: var(--red-dark);
	color: #fff;
}
section.wp-block-group.full {
	max-width: 100%;
	padding: 50px 0px;
	margin-bottom: 70px;
}
section.wp-block-group.full > .wp-block-group__inner-container {
	max-width: 940px;
	margin: 0 auto;
}
section.wp-block-group.full.medium > .wp-block-group__inner-container {
	max-width: 1140px;
}
.has-red-dark-background-color .wp-block-image:not(.no) figure::before {
	border-color: #fff;
}

@media only screen and (min-width: 769px) {
	.wp-block-heading.deco.full {
		width: calc(100% - 50px);
		text-align: center;
	}
	.wp-block-column.is-vertically-aligned-center p:last-child {
		margin-bottom: 0;
	}
}

@media screen and (max-width: 768px) {
	section.wp-block-group.full {
		padding: 30px 0px;
	}
	section.wp-block-group.full > .wp-block-group__inner-container {
		max-width: 100%;
		padding: 0 20px;
	}
	
	.gap-large {
		gap: 30px;
	}
	.wp-block-image .alignright {
		margin-left: 0;
		margin-right: 0;
	}
	.stit .wp-block-column,
	.stit .wp-block-columns {
		display: contents;
	}

	.stit>.wp-block-group__inner-container {
		display: grid;
		grid-template-areas: "subtitle" "title" "image" "text" "text2";
		grid-template-columns: 1fr;
	}

	.stit .subtitle {
		grid-area: subtitle
	}

	.stit .title {
		grid-area: title
	}

	.stit .text {
		grid-area: text
	}

	.stit .text2 {
		grid-area: text2
	}

	.wp-block-spacer[style*="height:70px"] {
		height: 50px !important;
	}
	.wp-block-spacer[style*="height:100px"] {
		height: 70px;
	}
	.wp-block-spacer.m30 {
		height: 30px !important;
	}
	section.wp-block-group.full img {
		max-width: 100%;
		height: auto !important;
	}
}

/* Blocs txt+img et img+txt */
section:is(.txt__img, .img__txt) {
	max-width: 1300px;
}

section:is(.txt__img, .img__txt) :where(.wp-block-columns.is-layout-flex) {
	gap: 0;
}

section:is(.txt__img, .img__txt) .wp-block-column:has(.wp-block-heading) {
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 39px 25px;
}

section:is(.txt__img, .img__txt) .wp-block-media-text {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
}

section:is(.txt__img, .img__txt) .wp-block-media-text figure {
	flex: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
}
section:is(.txt__img, .img__txt) .wp-block-media-text img {
	height: 100%;
	object-fit: cover;
	flex: 1;
}

section:is(.txt__img, .img__txt) .wp-block-heading {
	width: 100%;
	text-align: center;
}

section:is(.txt__img, .img__txt) .max-450 {
	margin-bottom: 28px;
}

section:is(.txt__img, .img__txt) .wp-block-media-text__content {
	position: absolute;
	bottom: 10px;
	left: 20px;
	padding: 0;
    margin: 0;
	z-index: 1;
	color: #FFF;
	text-transform: uppercase;
	-webkit-text-stroke-width: .5px;
	-webkit-text-stroke-color: #000;
	--font-body: var(--font-title);
	font-size: 24px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}
.wp-block-media-text__content p {
	margin: 0;
}

section:is(.txt__img, .img__txt) .wp-block-buttons:has(.wp-block-button:nth-child(2)) .wp-block-button a {
	padding: 10px 20px;
	font-size: 16px;
	max-width: 200px;
	min-width: 0;
}

@media only screen and (min-width: 769px) {
	section:is(.txt__img, .img__txt) .wp-block-column:has(.wp-block-heading) {
		display: flex;
	}
	section.encart .wp-block-column:has(.wp-block-image) {
		max-width: 35%;
		padding-right: 10px;
	}
	section.encart .wp-block-column:has(.wp-block-heading) {
		padding-left: 50px;
	}
	section.encart .wp-block-column:has(.wp-block-heading) p {
		padding-left: 25px;
        padding-right: 50px;
	}
}

@media only screen and (max-width: 768px) {
	section:is(.txt__img, .img__txt):first-of-type {
		margin-top: -80px;
	}

	section:is(.txt__img, .img__txt) .wp-block-heading {
		margin-bottom: 30px;
		grid-area: title;
	}

	section:is(.txt__img, .img__txt) .wp-block-column,
	section:is(.txt__img, .img__txt) .wp-block-columns {
		display: contents;
	}

	section:is(.txt__img, .img__txt)>.wp-block-group__inner-container {
		display: grid;
		grid-template-areas: "title" "image" "text" "buttons";
		grid-template-columns: 1fr;
		padding: 30px 0;
	}

	section:is(.txt__img, .img__txt) .wp-block-media-text {
		grid-area: image;
		margin: 0 -30px 20px;
        width: calc(100% + 60px);
	}
		section:is(.txt__img, .img__txt) .wp-block-media-text__content {
			bottom: 0px;
			left: 15px;
		}
		section:is(.txt__img, .img__txt) .wp-block-media-text img {
			aspect-ratio: 375 / 133;
			object-fit: cover;
		}

	section:is(.txt__img, .img__txt) .max-450 {
		grid-area: text;
	}

	section:is(.txt__img, .img__txt) .wp-block-buttons {
		grid-area: buttons;
	}
	section:is(.txt__img, .img__txt):not(.has-background) {
		margin-top: -30px;
	}
}

.has-red-dark-background-color .wp-block-button__link:hover {
	background-color: var(--red-light);
}

/*FA - texte au dessus des documents en petit et italic */
.small {
  font-style: italic;
  font-size: 14px;
  line-height: 100%;
}

/* FA - bloc grille rouge - plan d'accès */
/*.red-box {
  background-color: #961915; 
  color: white;
  width: 500px; Il y a très peux de cas où il y a besoin d'utiliser une largeur fixe en px, 
  				préférez les unités relatives comme %, vw, ou rem.
  height: 252px;
  padding: 1rem; 1rem = 16px, le padding était de 50px ici, ça ferait donc 3.125rem
  box-sizing: border-box;*/

  /* Centrage du contenu */
  /*display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.red-box h3 {
  font-weight: bold;
  font-size: 24px;
  margin: 0 0 0.5rem;
}

.red-box p {
  width: 320px;
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  align-self: center;
  text-align: left;
}*/

/* FA - grille pour les 4 blocs rouge - page plan d'accès */
/*.red-box-grid {
  display: grid;
  grid-template-columns: repeat(2, 500px);
  grid-template-rows: repeat(2, 252px);
  gap: 40px 100px;
  justify-content: center;
}*/
.wp-block-columns.is-layout-flex.red-boxes,
.red-boxes > .wp-block-column {
	gap: clamp(80px, 0.7vw, 140px);
	justify-content: stretch;
	align-items: stretch;
}
.red-boxes > .wp-block-column {
	display: flex;
	flex-direction: column;
}
.red-boxes .wp-block-group {
	flex: 1;
	max-height: calc(50% - (clamp(80px, 0.7vw, 140px) / 2));
	background-color: #961915; 
	color: white;
	padding: 50px 90px;
}
.red-boxes h3 {
	text-align: center;
	margin-top: 0;
}
.red-boxes p {
	margin: 0;
}

@media only screen and (max-width: 768px) {
	.red-boxes .wp-block-group {
		max-height: none;
	}
	.red-boxes .wp-block-group:first-child {
		padding: 0 8px;
		background-color: transparent;
		color: #961915;
	}
	.red-boxes .wp-block-group:last-child {
		margin-left: -28px;
		margin-right: -28px;
		padding: 29px 28px;
	}
	.wp-block-columns.is-layout-flex.red-boxes,
	.red-boxes > .wp-block-column {
		gap: 25px;
	}

}

/* FA - guillemets - page Sauvegarde du prieuré*/
.guillemets {
  font-size: 100px;
}

iframe[src*="google.com/maps"] {
	min-width: 382px;
}

@media only screen and (max-width: 768px) {
	.wp-block-image a[href$=".pdf"] img {
		max-width: calc(100vw - 40px);
		height: auto !important;
	}
	iframe[src*="google.com/maps"] {
		min-width: 100%;
	}
}

/* Slider dans les pages */
.wp-block-column .metaslider {
	max-width: 382px;
}
.wp-block-column .metaslider > div {
	position: relative;
	z-index: 4;
}
.wp-block-column .metaslider .flexslider {
	background-color: transparent !important;
}
.wp-block-column .metaslider .flex-viewport {
	border-radius: 0px 20px;
}
.wp-block-column .metaslider .flexslider .slides img {
	width: 100%;
	height: auto;
	object-fit: cover;
	aspect-ratio: 1 / 1;
}

.wp-block-columns.first-col-free,
.wp-block-columns.nd-col-free {
	gap: 58px;
}
.wp-block-columns.first-col-free .wp-block-column:nth-child(1),
.wp-block-columns.nd-col-free .wp-block-column:nth-child(2) {
	flex-grow: initial;
    min-width: 382px;
}

p.compact {
	line-height: 1.3;
}

section.wp-block-group.full.citation {
	padding-top: 30px;
	padding-bottom: 30px;
}
section.wp-block-group.full.citation > .wp-block-group__inner-container{
	max-width: 800px;
	position: relative;
}
.citation p {
	font-family: var(--font-title);
	font-weight: 700;
	font-size: 18px;
	line-height: 1.5;
}
.citation p:last-child {
	margin-bottom: 0;
}

.citation > .wp-block-group__inner-container::before,
.citation > .wp-block-group__inner-container::after {
	content: "";
	position: absolute;
	width: 49px;
	height: 49px;
	pointer-events: none;
	background: url("/wp-content/uploads/2025/06/unnamed-file-1.png") no-repeat center center;
	background-size: contain;
}

.citation > .wp-block-group__inner-container::before {
	top: -24px;
	left: -70px;
}
.citation > .wp-block-group__inner-container::after {
	bottom: -24px;
	right: -70px;
	transform: rotate(180deg);
}

@media only screen and (max-width: 768px) {
	.wp-block-column .metaslider {
		max-width: 100%;
		margin-bottom: 30px;
	}
	section.wp-block-group.full.citation > .wp-block-group__inner-container {
		max-width: calc( 100vw - ( 2 * 56px ) );
	}

	.citation > .wp-block-group__inner-container::before {
		top: -22px;
   		left: -50px;
	}
	.citation > .wp-block-group__inner-container::after {
		bottom: -22px;
		right: -50px;
	}

	.wp-block-columns.m-image-end .wp-block-column:has(.wp-block-image) {
		order: 1;
	}
	
	.wp-block-columns.m-image-first .wp-block-column:has(.wp-block-image) {
		order: 2;
	}
}

.ml-lightbox-button,
.ml-lightgallery-active a[data-src]:hover {
	background: transparent;
	color: transparent;
	top: 0;
	left: 0;
}

/* Gallerie */
.gallerie .wp-block-column .wp-block-group:first-child {
	margin-bottom: 100px;
}
.gallerie .deco {
	width: 100%;
	text-align: center;
}
.gallerie .wp-block-column .metaslider {
	max-width: 506px;
}
.gallerie .wp-block-column .metaslider .flexslider .slides li {
	background-color: var(--red-dark);
}
.gallerie .wp-block-column .metaslider .flexslider .slides img {
	aspect-ratio: 506 / 344;
	object-fit: contain;
	min-height: 344px;
	width: clamp(300px, 42vw, 550px);
}

@media only screen and (max-width: 768px) {
	.gallerie .wp-block-column .metaslider {
		max-width: 100%;
	}
	.gallerie .wp-block-column .wp-block-group:first-child {
		margin-bottom: 50px;
	}
	.gallerie .deco {
		margin-bottom: 30px;
	}
}

.br-10 img {
	border-radius: 10px;
}

/* Formulaire de contact */
.wpcf7 {
	position: relative;
	max-width: 700px;
	margin: 0 auto 90px auto;
	z-index: 10;
}
.wpcf7 form {
	padding: 30px 50px 30px 20px;
	background-color: var(--red-dark);
	border-radius: 0px 20px;
	color: #fff;
	position: relative;
    z-index: 100;
}
.wpcf7 .uacf7-form-614 {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 25px 70px;
}
.wpcf7 form label {
	font-family: var(--font-title);
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	text-transform: uppercase;
	color: #fff;
}
.wpcf7 form label:not(:last-of-type) {
	width: calc(50% - 35px);
}
.wpcf7 form label:last-of-type {
	width: 100%;
}
.wpcf7 form label input {
	width: 100%;
	border-radius: 0;
	height: 40px;
}
.wpcf7 form label textarea {
	width: 100%;
	border-radius: 0;
	height: 201px;
}
.wpcf7-not-valid-tip {
	font-family: var(--font-body);
	font-weight: 400;
	font-style: normal;
	margin-top: 4px;
}
.wpcf7 input[type="submit"] {
	background-color: var(--red);
	color: #fff;
	font-family: var(--font-label);
	font-size: 18px;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
	border-radius: 10px;
	padding: 15px 1.5em;
	transition: background-color 0.2s ease-in-out;
	margin-top: 40px;
	margin-bottom: -40px;
	margin-left: 50%;
	transform: translateX(-50%);
	border: none;
	cursor: pointer;
}
.wpcf7 input[type="submit"]:hover {
	background-color: #d1454d;
}

section.error-404 {
	margin-top: 50px;
}

@media only screen and (max-width: 768px) {
	body.single-post main#primary,
	body.single-tribe_events #tribe-events-pg-template
	body.error404 main#primary,
	body.search main#primary {
		margin-top: 90px;
	}

	body.admin-bar.single-post main#primary,
	body.admin-bar.single-tribe_events #tribe-events-pg-template,
	body.admin-bar.error404 main#primary,
	body.admin-bar.search main#primary {
		margin-top: 130px;
	}

	.wpcf7 {
		max-width: calc(100% - ( 2 * 28px ) );
		margin-bottom: 50px;
	}
	.wpcf7 form {
		padding: 30px 20px;
	}
	.wpcf7 .uacf7-form-614 {
		gap: 25px;
	}
	.wpcf7 form label:not(:last-of-type) {
		width: 100%;
	}
	.wpcf7 form label:last-of-type {
		width: 100%;
	}
	.wpcf7 input[type="submit"] {
		margin-top: 20px;
	}
}

.visite__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
.preview .visite__wrapper {
    user-select: none;
    z-index: -1;
    pointer-events: none;
}


.visite__container {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;    
}
.visite__exit {
    position: absolute;
    left: 25px;
    top: 20px;
    color: black;
    background: url(./img/fond_dropdown.png) repeat-x scroll 0 0 #fff;
    text-transform: none;
    padding: 7px 12px 7px 12px;
    display: block;
    text-decoration: none;
    font-family: Trebuchet MS;
    font-size: 1.1em;
    font-weight: bold;
}

.entry-footer .edit-link {
	display: none;
}

.grecaptcha-badge {
	display: none !important;
}