/*!
Theme Name: Frame
*/

/* 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[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;
	max-width: 100%;
	height: auto;
}

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


/* Custom
--------------------------------------------- */

@font-face {
    font-family: 'General Sans Bold';
    src: url('fonts/GeneralSans-Semibold.woff2') format('woff2'),
        url('fonts/GeneralSans-Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'General Sans Light';
    src: url('fonts/GeneralSans-Light.woff2') format('woff2'),
        url('fonts/GeneralSans-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* Georgia, 'Times New Roman', serif; */

body {
	font-family: General Sans Light, sans-serif;
	background-color: #FFF3EF;
}

a {
	text-decoration: none;
}

h1,
h2,
h3,
h4 {
	font-family: Georgia, 'Times New Roman', serif;
	font-weight: 400;
}

#page {
	width: 100%;
	overflow: hidden;
}

.wrap {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.btn,
.wpcf7-submit {
	display: inline-block;
	height: 36px;
	padding: 0 2rem;
	border-radius: 18px;
	line-height: 36px;
	background: #5C6E3C;
	border: none;
	color: #fff;
	cursor: pointer;
}

.btn:hover,
.btn:focus {
	background: #4a5934;
	color: #fff;
}

input:focus {
	outline: 0;
}

.text-small{
    font-size:.875rem;
    font-style: italic;
}

.swiper-button-next:after, 
.swiper-button-prev:after {
	font-size: 24px !important;
	color: #fff !important;
}

.swiper-navigation {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.swiper-navigation > div {
    position: relative;
    top: 0; left: 0; right: 0; bottom: 0;
    margin: 0;
    background: #462235;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 16px;
    margin: 0 3px;
    opacity: 0.2;
}

.swiper-navigation > div:hover {
    opacity: 1;
}

.swiper-navigation > div:after {
    font-size: 16px !important;
}

/*Header*/
#masthead {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 10;
	transition: all 0.3s;
}

#masthead.scrolled {
	background: rgba(0, 0, 0, 0.5);
}

.main-navigation {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0;
}

.main-navigation div + *,
.main-navigation #primary-menu li {
	margin: 0 0 0 1.5rem;
}

.main-navigation .menu-menu-1-container {
	margin-left: auto;
}

.main-navigation #primary-menu {
	display: flex;
}

.main-navigation #primary-menu a {
	position: relative;
	display: block;
}

.main-navigation #primary-menu a:after {
	content: "";
	width: 100%;
	height: 1px;
	background: #fff;
	position: absolute;
	transform: scaleX(0);
	transition: all 0.3s;
	position: absolute;
	bottom: -4px; left: 0;
}

.main-navigation #primary-menu a:hover:after,
.main-navigation #primary-menu .current-menu-item a:after {
	transform: scaleX(1);
}

.main-navigation #primary-menu .current-menu-item a,
.main-navigation #primary-menu .current-menu-item a:after {
	opacity: 0.7;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}
.menu-toggle span {
	width: 30px;
	height: 2px;
	display: block;
	margin: 7px 0;
	background: white;
}

/* Footer */
#colophon {
	padding: 40px 0;
	background: #462235;
	color: #fff;
}

#colophon a:hover {
	opacity: 0.7;
}

.site-info {
	display: flex;
	margin: 0 -1rem;	
}

.site-info > div {
	flex: 1 0 0;
	padding: 0 1rem;
}

.site-info > div:not(:first-child) {
	margin-top: 2rem;
}

.menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.menu li {
	margin: 5px 0;
}

.site-info a,
.menu-item a {
	color: #fff;
}

button.cookieadmin_re_consent {
	background: #5C6E3C !important;
}

@media (max-width: 991px) {
	.main-navigation .menu-menu-1-container {
		display: none;
	}	
	.main-navigation .nav-social {
		margin-left: auto;
	}
	.main-navigation .menu-menu-1-container #primary-menu {
		display: block;
	}
	.main-navigation.toggled:after {
		content: "";
		background: #462235;
		position: absolute;
		top: 0; left: 0; right: 0;
		height: 100vh;
		z-index: -1;
	}
	.main-navigation.toggled .menu-menu-1-container {
		display: flex;
		position: absolute;
		left: 1.5rem; top: 130px;
		width: 100%;
	}	
	.main-navigation #primary-menu li {
		margin: 10px 0;
		font-size: 24px;
	}
	.main-navigation #primary-menu .current-menu-item a {
		font-style: italic;
		opacity: 0.7;
	}
	.main-navigation #primary-menu a:after {
		display: none;
	}
	.menu-toggle {
		display: block;
	}
}

@media (max-width: 767px) {
	.site-info {
		display: block;
	}
}

/* Animations */
[class*="wp-block-acf-"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s ease;
}

[class*="wp-block-acf-"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sécurité : si JS désactivé, on affiche quand même le contenu */
.no-js [class*="wp-block-acf-"] {
    opacity: 1;
    transform: none;
}