/*  Theme Name:   twentytwentyfive-mod
Theme URI:    https://www.marbrerie-ravit.com
Description:  twentytwentyfive-mod
Author:       Chef
Author URI:   https://www.marbrerie-ravit.com
Template:     twentytwentyfive
Version:      0.1.0 */

:root {
	--marges-w-site: calc(50vw - 60ch);
	--navigation-layout-justify: right;
}

@media not (prefers-reduced-motion) {
  * {
    transition:
		font-size .5s ease-out,
		width .5s ease-out,
		flex-basis .5s ease-out;
  }
}

/* Surcharges */

.is-nowrap {
	background-position-x: center;
}

.wp-block-navigation .wp-block-navigation-item {
	text-wrap: nowrap;
}

.has-aguafina-script-font-family {
	margin-bottom: -0.8rem !important;
}

nav .is-menu-open {
	box-shadow: 0 0 24px var(--wp--preset--color--accent-1);
}

.wp-block-media-text {
	background: url('https://marbrerie-ravit.com/wp-content/uploads/fond-media.png') top left repeat;
	min-height: 400px;
}

main .alignfull:not(.entry-content,.modale) {
	margin-left: calc(-1 * var(--marges-w-site));
	margin-right: calc(-1 * var(--marges-w-site));
	padding-left: var(--marges-w-site);
	padding-right: var(--marges-w-site);
}

div.wp-block-media-text.media-large:not(.has-media-on-the-right) > figure {
	max-width: 100%;
}

/* Menu sticky */
div.wp-site-blocks > header {
	display: inline;
}
div.wp-site-blocks > header > div {
	position: sticky;
	top: calc(0px + var(--wp-admin--admin-bar--height, 0px));
}
body.home div.wp-site-blocks > header > div {
	top: calc(-45px + var(--wp-admin--admin-bar--height, 0px));
}
div.wp-site-blocks > header + div.entete:not(.mea-logo) {
	position: sticky;
	top: calc(-81px + var(--wp-admin--admin-bar--height, 0px));
	z-index: 2;
	height: 157px;
	background-color: white;
}

/* Nouveaux styles */

.reparti {
	align-content: space-evenly;
}

.au-dessus {
	z-index: 3;
	position: relative;
}

.avec-marges-w, main.has-global-padding {
	padding-left: var(--marges-w-site, 20vw) !important;
	padding-right: var(--marges-w-site, 20vw) !important;
}

header .titremr {
	flex-shrink: 2;
}
header .datemr {
	flex-shrink: 4;
}

header .barre {
	column-gap: 0;
	height: 120px;
	/*
	background-image: url(https://marbrerie-ravit.com/wp-content/uploads/traits.png);
	background-size: 100% 120px;
	*/
	background-position: 50% 50%;
	background: url('https://marbrerie-ravit.com/wp-content/uploads/traits-gch.png') center left no-repeat, url('https://marbrerie-ravit.com/wp-content/uploads/traits-ctr.png') center left repeat-x, url('https://marbrerie-ravit.com/wp-content/uploads/traits-drt.png') center right no-repeat;
	background-size: contain;
	background-origin: content-box;
}
header .barre * {
	align-content: center;
}
header .haut-droite {
	background: url(https://marbrerie-ravit.com/wp-content/uploads/traits-drt.png) center right no-repeat;
	background-size: auto 120px;
	padding-right: max(2vw, 16px) !important;
}

footer .logo-bas {
	margin-left: -21px;
}

.media-large {
	min-height: min-content;
	background: none !important;
}
.media-large > div {
	align-self: self-start !important;
	z-index: 1;
	background: url('https://marbrerie-ravit.com/wp-content/uploads/fond-media.png') top left repeat;
}
.media-large > figure {
	width: 166.7%;
	min-height: 600px !important;
}
div.has-media-on-the-right.media-large > figure {
	margin-left: -66.7% !important;
}

.btn-encadre {
	position: absolute;
	padding-top: 20px;
	z-index: 1;
	background: url('https://marbrerie-ravit.com/wp-content/uploads/btn-encadre.png') center left no-repeat;
	background-origin: content-box;
}
.btn-encadre a:before {
	content: "> ";
}
.btn-encadre a {
	border-radius: 0;
	background-color: var(--wp--preset--color--accent-1);
	height: 40px;
	padding: 5px 8px 5px 0;
	margin-left: 21px;
    text-align: left;
}
div.has-media-on-the-right.media-large .btn-encadre {
	right: 53%;
}
.wp-block-media-text {
	margin-bottom: 50px;
}
.wp-block-media-text > div:nth-last-child(2) {
	padding-bottom: 10px;
}

.contenu-empile > * {
	top: calc(0px + var(--wp-admin--admin-bar--position-offset, 0px));
	position: sticky;
	z-index: 1;
	margin: 0;
	padding: 1.5rem 0;
	min-height: 10vh;
	max-height: 100vh;
	overflow-y: auto;
	box-sizing: border-box;
	background-color: white;
}
.contenu-empile > aside {
	top: -33vh;
	max-height: fit-content;
}

/* Diaporama */

.modale {
	display: none;
	z-index: 5;
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	justify-content: center;
	align-items: center;
	background-color: black;
	margin-top: -1px;
	animation: zoom 0.5s ease-in-out;
}
.modale,.modale div,.modale img {
	padding: 0 !important;
	margin: 0 !important;
}
.modale div[style*="height"],.modale div>img {
	min-height: 100vmin !important;
	max-width: 100vw;
}

.f_modale {
	display: block;
	position: absolute;
	top: 5vmin;
	right: 5vmin;
	height: auto;
	z-index: 4;
}

/* Responsif */

.affiche-etroit {
	display: none !important;
}
.affiche-moyen {
	display: none !important;
}

@media (max-width: 1450px) {
	:root {
		--marges-w-site: 5vw;
	}
	header .haut-gauche {
		flex-basis: 370px;
	}
}

@media screen and (max-width: 1200px), screen and (min-width: 1450px) and (max-width: 1800px) {
	.masque-moyen {
		display: none !important;
	}
	.affiche-moyen {
		display: inherit !important;
	}
}

@media screen and (max-width: 1000px) {
	:root {
		--marges-w-site: 16px;
	}
	
	.has-global-padding:not(.modale) {
		padding-left: 16px;
		padding-right: 16px;
	}
	.entete, .entete figure {
		padding: 0px !important;
		margin-left: 0px !important;
		margin-right: 0px !important;
		max-width: 100%;
	}

	.masque-etroit {
		display: none !important;
	}
	.affiche-etroit {
		display: inherit !important;
	}
	
	header .barre .haut-droite * {
		justify-self: end;
	}
	header .barre nav {
		column-gap: 2vw;
	}
	header .barre nav button {
		background-color: #FFF7 !important;
	}
}

@media (max-width: 800px) {
	.labels {
		margin: 10px 10px -20px 10px !important;
		flex-direction: row;
		justify-content: space-around;
	}
	
	.mea-logo {
		margin-top: -60px !important;
	}
	
	.btn-encadre a {
		padding: 0;
	}
}