/*
Theme Name: Saint-Augustin Editions Pillet

Complementary styles for Terres d'encre pages, that couldn't be set in theme.json
*/

:root {
	--max-slider-height: 750px;
}
.invisible {
	display: none;
}

body.terresdencre {
	color: var(--wp--preset--color--dark-medium-grey);
	font-family: var(--wp--preset--font-family--terresdencre-paragraphs-font);
	font-size: var(--wp--preset--font-size--medium);
}
.wp-site-blocks {
	padding-top: 0px !important;
	margin-block-start: 0px !important;
	margin-top: 0px;
}
main {
	padding: 0px !important;
}
.page-template-home-terresdencre main {
	padding-top: min(calc(-80px + var(--max-slider-height)), calc(-80px + 100vw*1080/1920)) !important;
}
.terresdencre .alignwide {
	padding-right: var(--wp--style--root--padding-right)*-1;
	padding-left: var(--wp--style--root--padding-right)*-1;
	max-width: var(--wp--style--global--wide-size) !important;
	min-width: 80% !important;
}
.terresdencre .alignwide .alignwide {
	padding-right: 0px;
	padding-left: 0px;
}
:where(body .is-layout-constrained) > * {
    margin-block-start: 0px !important;
}
.wp-block-columns {
	
}
/*.wp-block-group .wp-block-group,
.wp-block-columns .wp-block-columns,
.wp-block-group .wp-block-columns,
.wp-block-columns .wp-block-group {
	padding: 0px !important;
}*/
p {
	font-family: var(--wp--preset--font-family--terresdencre-paragraphs-font);
}

/* LINKS */
a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--terresdencre-contrast) !important;
	text-decoration: none;
}
a:where(:not(.wp-element-button)):hover {
	border-color: var(--wp--preset--color--terresdencre-contrast);
	color: var(--wp--preset--color--terresdencre-contrast);
	text-decoration: none;
}
a:where(:not(.wp-element-button)):active {
	border-width: 0;
	color: var(--wp--preset--color--terresdencre-contrast);
	text-decoration: none;
}

/* TITLES */
.terresdencre h1, .terresdencre h2, .terresdencre h3, 
.terresdencre h4, .terresdencre h5, .terresdencre h6 {
	color: var(--wp--preset--color--terresdencre-contrast);
	font-family: var(--wp--preset--font-family--terresdencre-titles-font);
	font-weight: 400;
	line-height: 1.2;
}
.terresdencre h1 {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.2;
}
.terresdencre h2 {
	color: var(--wp--preset--color--beige-gold);
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.2;
	text-transform: uppercase;
}
.terresdencre h3 {
	color: var(--wp--preset--color--beige-gold);
	font-size: var(--wp--preset--font-size--x-large);
	text-transform: uppercase;
	/*padding-top: 30px;*/
}
.terresdencre h4 {
	color: var(--wp--preset--color--hell-black);
	font-size: var(--wp--preset--font-size--large);
	text-transform: uppercase;
}
.terresdencre h5 {
	font-family: var(--wp--preset--font-family--terresdencre-paragraphs-semi-font);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}
.terresdencre h6 {
	font-size: var(--wp--preset--font-size--medium);
	text-transform: uppercase;
}

/* FORMS */
.terresdencre .wpcf7-form-control-wrap {
	padding: 0px 5px;
}
.terresdencre .wpcf7-form input[type="submit"],
.terresdencre .saintaugustin-form input[type="submit"],
.terresdencre button,
.terresdencre .wp-element-button {
	font-family: var(--wp--preset--font-family--terresdencre-titles-font);
}
.terresdencre .wpcf7-form input[type="submit"],
.terresdencre .saintaugustin-form input[type="submit"] {
	background-color: transparent;
	color: var(--wp--preset--color--beige-gold);
	border: 1px solid var(--wp--preset--color--beige-gold);
	width: 85%;
	min-width: fit-content;
	padding: 6px 10px 4px 10px;
	margin: 5px 10px;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: normal;
	letter-spacing: 0.5px;
}
.terresdencre footer .wpcf7-form input:not([type="submit"]),
.terresdencre footer .saintaugustin-form input:not([type="submit"]) {
	background-color: #AF9A7A;
}
.terresdencre footer .saintaugustin-form button {
	background-color: transparent;
	border: var(--wp--preset--color--base) solid 1px;
	color: var(--wp--preset--color--base);
}
.terresdencre .wp-element-button, 
.terresdencre .wp-block-button__link{
	background-color: transparent;
	border-radius: 0;
	border-color: var(--wp--preset--color--beige);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--terresdencre-titles-font);
	font-size: var(--wp-preset--font-size--medium);
	letter-spacing: 1px;
	font-weight: normal;
	padding: 6px 10px 4px 10px;
	text-decoration: none;
}
.terresdencre .wpcf7-form input:not([type="submit"]),
.terresdencre .saintaugustin-form input:not([type="submit"]) {
	width: 40%;
	min-width: 220px;
	background-color: var(--wp--preset--color--beige-gold);
	opacity: 0.65;
    border-radius: 12px;
	color: var(--wp--preset--color--base);
	padding: 4px 10px;
	border: none;
}
.terresdencre .wpcf7-form input[readonly="readonly"] {
    background-color: transparent;
    color: var(--wp--preset--color--beige-gold);
    padding: 4px 10px;
    border: none;
}
.terresdencre .wpcf7-form textarea,
.terresdencre .saintaugustin-form textarea {
	width: 85%;
	background-color: var(--wp--preset--color--hell-turquoise);
	opacity: 0.65;
    border-radius: 12px;
	color: var(--wp--preset--color--base);
	padding: 4px 10px;
	margin-top: 5px;
	border: none;
}
.terresdencre footer .wp-element-button, 
.terresdencre .wp-block-button__link {
	border: 1px solid var(--wp--preset--color--base);
	background-color: transparent;
	font-family: var(--wp--preset--font-family--terresdencre-titles-font);
	letter-spacing: 0.5px;
}
.terresdencre .wp-block-search__button {
	background-color: white !important;
	width: 40px;
	
}
.terresdencre .wp-element-caption, 
.terresdencre .wp-block-audio figcaption, 
.terresdencre .wp-block-embed figcaption, 
.terresdencre .wp-block-gallery figcaption, 
.terresdencre .wp-block-image figcaption, 
.terresdencre .wp-block-table figcaption, 
.terresdencre .wp-block-video figcaption {
	color: red;
	font-family: var(--wp--preset--font-family--terresdencre-paragraphs-font);
}
.terresdencre .wpcf7-form input::placeholder,
.terresdencre .saintaugustin-form input::placeholder,
.terresdencre .wpcf7-form textarea::placeholder,
.terresdencre .saintaugustin-form  textarea::placeholder {
	color: var(--wp--preset--color--base);
}

.terresdencre cite {
	font-family: var(--wp--preset--font-family--terresdencre-paragraphs-font);
}


/* BACKGROUNDS */
.fond-terresdencre {
	background-image: url("/wp-content/themes/pillet-saintaugustin/assets/images/fond-terresdencre.svg");
	background-color: rgba(164, 156, 138, .2);
    background-blend-mode: multiply;
}
.terresdencre-middle-plume-haut {
	background-image: url("/wp-content/themes/pillet-saintaugustin/assets/images/plume-haut-bis.svg");
	background-size: 40%;
    background-repeat: no-repeat;
    background-position-x: 20%;
}
.terresdencre-white-plume-haut {
	background-image: url("/wp-content/themes/pillet-saintaugustin/assets/images/plume-haut.png");
	background-size: 43%;
    background-repeat: no-repeat;
    background-position-x: 105%;
}
.terresdencre-white-plume-bas {
	background-image: url("/wp-content/themes/pillet-saintaugustin/assets/images/plume-bas.png");
	background-size: 20%;
    background-repeat: no-repeat;
    background-position-x: 100%;
}

/* HEADER */
.custom-logo {
	position: absolute;
	left: 5%; 
	top: 6%;
	width: 15%;
	aspect-ratio: 200/100;  
	min-width: 120px;
}

/* NAVIGATION */
.navigation {
	position: fixed;
	display: flex;
	top: 30px;
	right: 60px;
	gap: 0px;
	z-index: 10;
}
.navigation>* {
	float: right;
	display: block;
	color: var(--wp--preset--color--medium-grey);
	height: 40px;
	width: 40px;
	padding: 0;
	margin: 0;
}
.navigation button {
	background-color: transparent;
	border: none;
}
/* Menu */
.wp-block-navigation__responsive-container-close svg, 
.wp-block-navigation__responsive-container-open svg {
	height: 40px !important;
	width: 40px !important;
	/*background-color: var(--wp--preset--color--blue);*/
	background-color: var(--wp--preset--color--base);
	fill: var(--wp--preset--color--beige-gold);
	box-shadow: 3px 3px 15px 0px var(--wp--preset--color--beige-gold);
}
.terresdencre .wp-block-navigation link {
	color: var(--wp--preset--color--terresdencre-contrast);
	text-decoration: none;
	font-family: var(--wp--preset--font-family--terresdencre-titles-font);
	font-size: var(--wp--preset--font-size--xx-large);
}
.terresdencre .wp-block-navigation-submenu {
	color: var(--wp--preset--color--terresdencre-contrast);
}
.terresdencre .wp-block-navigation {
	color: var(--wp--preset--color--terresdencre-contrast);
	font-size: var(--wp--preset--font-size--large);
	text-transform: uppercase;
}
.terresdencre .wp-block-navigation a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--terresdencre-contrast);
	text-decoration: none;
}
.terresdencre .wp-block-navigation a:where(:not(.wp-element-button)):hover {
	background-color: transparent;
	border-color: var(--wp--preset--color--terresdencre-contrast);
	color: var(--wp--preset--color--terresdencre-contrast);
	text-decoration: none;
}
/* Mini-cart */
.wc-block-mini-cart__button {
	height: 100%;
	width: 100%;
	padding: 0px 10px !important;
	display: block !important;
	opacity: 0;
	animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-webkit-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-moz-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-o-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
}
.terresdencre .wp-block-woocommerce-mini-cart-contents .wp-element-button {
	color: var(--wp--preset--color--beige-gold) !important;
}
.wc-block-mini-cart__quantity-badge {
	width: 25px;
}
.wc-block-mini-cart__badge {
	font-size: var(--wp--preset--font-size--x-small) !important;
	background-color: var(--wp--preset--color--beige-gold);
	color: var(--wp--preset--color--base);
	text-align: center;
	top: -6px;
}
/* Animations */
@keyframes fade {
	0%{
		opacity: 0;
	}
	100%{
		opacity: 1;
	}
}
@-webkit-keyframes fade {
	0%{
		opacity: 0;
	}
	100%{
		opacity: 1;
	}
}
@-moz-keyframes fade {
	0%{
		opacity: 0;
	}
	100%{
		opacity: 1;
	}
}
@-o-keyframes fade {
	0%{
		opacity: 0;
	}
	100%{
		opacity: 1;
	}
}
/* Search */
.wp-block-search .wp-block-search__button {
	background-color: transparent !important;
	border: none;
	opacity: 0;
	animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-webkit-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-moz-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-o-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
}
.wp-block-search .wp-block-search__button svg {
	fill: var(--wp--preset--color--terresdencre-contrast);
}
.wp-block-search .wp-block-search__input {
	min-width: 7rem;
	z-index: 10;
}
/* Account */
.wp-block-woocommerce-customer-account .wc-block-customer-account__account-icon {
	width: 40px !important;
    height: 20px !important;
    padding: 12px !important;
	opacity: 0;
	animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-webkit-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-moz-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
	-o-animation: fade 8s both cubic-bezier(0.17, 0.67, 0.55, 1.43);
}
.wp-block-woocommerce-customer-account .wc-block-customer-account__account-icon svg {
	fill: var(--wp--preset--color--terresdencre-contrast);
}

/* Home slider */
.terresdencre-home-slider .slide {
	aspect-ratio: auto 1920/1080;
	min-height: fit-content;
	height: calc(100vw*1080/1920);
	max-height: var(--max-slider-height);
}
.terresdencre-home-slider #slide-1 {
	background-image: url('/wp-content/themes/pillet-saintaugustin/assets/images/terresdencre-home-image-fond-1.png');
}
.terresdencre-home-slider #slide-2 {
	background-image: url('/wp-content/themes/pillet-saintaugustin/assets/images/terresdencre-home-image-fond-2.png'); 
}
.terresdencre-home-slider #slide-3 {
	background-color: var(--wp--preset--color--hell-black);
}
.terresdencre-home-slider #slide-1 img.plume {
	position: absolute;
	right: 20%;
	top: 5%;
	width: 40%; 
	aspect-ratio: 975/1200;
}
.terresdencre-home-slider #slide-2 img.plume {
	position: absolute;
	left: 3%; 
	top: 30%;
	width: 55%;
	aspect-ratio: 1920/1080;
}
.terresdencre-home-slider #slide-3 img.plume {
	position: absolute;
	top: 20%;
	right: 10%;
	width: 60%; 
	aspect-ratio: 1920/1080;
}
.terresdencre-home-slider .slide .home-slide-details {
	position: absolute;
	top: 30%;
	left: 10%;
	width: 500px;
	max-width: 80%;
	font-family: Bebas Neue;
	text-transform: uppercase;
	font-weight: normal;
}
.terresdencre-home-slider #slide-2 .home-slide-details {
	left: 60%;
}
.terresdencre-home-slider .slide .home-slide-details p {
	font-size: 50px;
	line-height: 52px;
	font-family: var(--wp--preset--font-family--terresdencre-titles-font);
}
.terresdencre-home-slider #slide-2 .home-slide-details p {
	color: var(--wp--preset--color--white);
}
.terresdencre-home-slider .slide .home-slide-details a {
	display: block;
	font-size: x-large;
	background-color: transparent;
	padding: 5px 30px 0px;
	width: fit-content;
	text-decoration: none;
}
.terresdencre-home-slider #slide-1 .home-slide-details a,
.terresdencre-home-slider #slide-3 .home-slide-details a {
	border: 1px solid var(--wp--preset--color--beige);
	color: var(--wp--preset--color--beige);
}
.terresdencre-home-slider #slide-2 .home-slide-details a {
	border: 1px solid var(--wp--preset--color--white);
	color: var(--wp--preset--color--white);
}

/* FOOTER */
.terresdencre footer {
	color: var(--wp--preset--color--base);
	padding: 0px;
	margin-top: 0px;
}
.terresdencre footer .wp-block-group {
	padding: 30px 50px;
}
.terresdencre footer .wp-block-columns {
	padding: 0px;
}
.terresdencre footer h2,
.terresdencre footer h3,
.terresdencre footer h4 {
	color: var(--wp--preset--color--base);
	margin: 0px;
}
.terresdencre footer a {
	color: var(--wp--preset--color--base);
	text-decoration: none;
}
.terresdencre footer a:hover {
	color: var(--wp--preset--color--base);
}
.terresdencre footer a:where(:not(.wp-element-button)) {
	color: var(--wp--preset--color--base) !important;
}
.terresdencre footer .wp-block-group:last-child {
	font-size: 0.8rem;
}
.terresdencre footer .website-author p {
	font-family: var(--wp--preset--font-family--pillet-paragraphs-font);
	font-variant: small-caps;
	font-weight: bold;
}
.wp-block-social-links {
	justify-content: normal !important;
}
.wp-social-link svg {
	fill: var(--wp--preset--color--beige) !important;
}

/* SPECIAL BLOCKS */
/* Authors reviews */
.terresdencre .authors-reviews,
.terresdencre .authors-reviews .wp-block-columns,
.terresdencre .authors-reviews .wp-block-group,
.terresdencre .book-reader-reviews,
.terresdencre .book-reader-reviews .wp-block-columns,
.terresdencre .book-reader-reviews .wp-block-group {
	padding: 0;
}
.terresdencre .page-list-bullet {
	background-color: transparent;
	color: white;	
}
.terresdencre .page-list-bullet.active {
	background-color: var(--wp--preset--color--beige-gold);
}
.terresdencre .pop-slider .slide {
	box-shadow: 5px 17px 11px 0px rgba(0,0,0,0.6);
}
.terresdencre .pop-slider .slide .wp-block-post-title {
	font-family: var(--wp--preset--font-family--terresdencre-paragraphs-font);
	text-transform: unset;
}
.terresdencre .pop-slider .slide h3.wp-block-post-title,
.terresdencre .pop-slider .slide h3.wp-block-post-title a {
	color: var(--wp--preset--color--dark-brown) !important;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: bold;
}
.terresdencre .pop-slider .slide h4.wp-block-post-title {
	color: var(--wp--preset--color--beige-gold) !important;
	font-size: var(--wp--preset--font-size--medium);
}
.terresdencre .pop-slider .page-list-navigation-btns svg {
	fill: var(--wp--preset--color--beige-gold);
}

/* Small devices (landscape phones, 576px and up)*/
/* Medium devices (tablets, 768px and up) */
/* Large devices (desktops, 992px and up) */ 
/* Extra large devices (large desktops, 1200px and up) */
@media screen and (max-width: 599px) {
	main {
		padding-top: 150px !important;
	}
	.page-template-home-terresdencre main {
		padding-top: calc(70vh + 70px) !important;
	}
	.terresdencre .alignwide {
		padding-right: 20px;
		padding-left: 20px;
	}
	.terresdencre body {
		font-size: 0.9rem;
	}
	.invisible-on-large-screen {
		display: inherit;
	}
	.invisible-on-small-screen {
		display: none !important;
	}
	.terresdencre .has-global-padding:not(.alignwide) {
		padding-right: 0px;
		padding-left: 0px;
	}
	.terresdencre .wp-block-group .wp-block-group {
		padding-top: 20px;
		padding-bottom: 20px;
	}
	.terresdencre .alignfull {
		margin-right: 0px !important;
		margin-left: 0px !important;
	}
	.terresdencre .alignwide {
		padding-right: 60px;
		padding-left: 60px;
	}
	.terresdencre-suivi-4etapes {
		height: 600px;
		overflow: hidden;
		overflow-y: scroll;
		overflow-x: scroll;
	}
	
	/* LINKS */
	
	/* TITLES */
	.terresdencre h1 {
		font-size: var(--wp--preset--font-size--x-large);
	}
	.terresdencre h2 {
		font-size: var(--wp--preset--font-size--x-large);
	}
	.terresdencre h3, .terresdencre .h3-format {
		font-size: var(--wp--preset--font-size--large);
	}
	.terresdencre h4 {
		font-size: var(--wp--preset--font-size--x-medium);
	}

	/* FORMS */

	/* BACKGROUNDS */
	.terresdencre-white-plume-haut {
		background-image: none;
	}

	/* HEADER */
	/* Home slider */
	.terresdencre-home-slider .slide {
		aspect-ratio: auto 1920/3840;
	}
	.custom-logo {
		left: 15px; 
		top: 20px;
		aspect-ratio: 200/100;  
		min-width: 120px;
		max-width: 50%;
	}
	.terresdencre-home-slider .slide img.plume {
		width: 90vw !important;
		margin: auto !important;
	}
	.terresdencre-home-slider #slide-1 img.plume {
		bottom: 50px;
	}
	.terresdencre-home-slider #slide-2 img.plume {
		bottom: 20px !important;
		height: 70vw !important;
	}
	.terresdencre-home-slider #slide-3 img.plume {
		bottom: 30px !important;
		height: 90vw !important;
	}
	.terresdencre-home-slider .home-slide-details {
		left: 20px !important;
		top: 115px !important;
	}
	.terresdencre-home-slider .slide .home-slide-details p {
		font-size: 30px;
		line-height: normal;
	}
	
	/* FOOTER */
	.terresdencre footer .wp-block-group {
		padding-right: 20px;
		padding-left: 20px;
	}
	.terresdencre footer .wp-block-group:first-child>.wp-block-columns:first-child .wp-column:first-child 
	
	.terresdencre footer .website-author p {
		text-align: center !important;
	}
	.terresdencre footer .wp-block-group:last-child>.wp-block-columns .wp-block-column:nth-child(2) {
		text-align: center;
	}
	.terresdencre footer .wp-block-group:last-child>.wp-block-columns .wp-block-column:last-child {
		display: none;
	}
	.terresdencre footer .button-go-to-media-reviews {
		padding: 6px 30px;
		margin: auto;
		text-align: center;
		display: block;
	}
}

@media screen and (min-width: 600px) {
	.invisible-on-large-screen {
		display: none;
	}
	.invisible-on-small-screen {
		display: inherit;
	}
	.terresdencre footer .wp-block-group:first-child>.wp-block-columns {
		width: 100%;
	}
	.terresdencre footer .wp-block-group:first-child>.wp-block-columns>.wp-block-column:first-child>.wp-block-columns>.wp-block-column:first-child {
		width: 30%;
		max-width: 200px;
	}
	.terresdencre footer .wp-block-group:first-child>.wp-block-columns>.wp-block-column:first-child {
		flex-basis: 80%;
	}
	.terresdencre footer .wp-block-group:first-child>.wp-block-columns>.wp-block-column:last-child {
		flex-basis: 20%;
		min-width: 400px;
	}
	.terresdencre footer .wp-block-group:last-child>.wp-block-columns .wp-block-column:nth-child(2n+1) {
		flex-basis: 25%;
		text-wrap: nowrap;
	}
	.terresdencre footer .wp-block-group:last-child>.wp-block-columns .wp-block-column:nth-child(2n+0) {
		flex-basis: 50%;
		text-align: center;
	}
	.terresdencre footer .button-go-to-media-reviews {
		display: block;
		height: fit-content;
		text-align: center;
	}
}