/*
Theme Name: Yoga Flow
Theme URI: 
Author: Lucie Renaudeau
Author URI: https://www.linkedin.com/in/luciebichet/
Description: 
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yoga-flow
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}
/* Custom styles for Yoga Flow theme */

/* MEGA MENU */
.mega-content {
    position: absolute;
	z-index: 999;
	top: 0; /* Positionné sous le menu principal */
	left: 50%; /* Aligne à gauche */
	width: 100%; /* Largeur pleine */
	max-width: var(--wp--style--global--content-size, 1240px); /* Largeur maximale */
	opacity: 0;
	transform: translateX(-50%) translateY(-30px); /* Légère translation vers le haut */
	visibility: hidden;
	transition: opacity 0.5s ease-out, transform 0.5s ease-out, visibility 0s 0.5s; /* Animation fluide */
	margin-block-start: 0rem;
}

/* Lorsque le sous-menu est actif (visible) */
.mega-content.active {
	opacity: 1;
	transform: translateX(-50%) translateY(0); /* Revient à la position normale */
	visibility: visible;
	transition: opacity 0.5s ease-out, transform 0.5s ease-out; /* Animation sans délai */
	margin-block-start: 0rem;
}
@media (max-width: 1023px) {
	.header-menu {
		width: 100%;
	}
}

/* image rotation */
.img-rotate-45 > img {
	transform: rotate(45deg);
}
/* Positionnement */
.is-absolute-top-center {
    position: absolute;
	width: max-content;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
}
/* Home Page > chevauchement de l'image et texte */
@media (min-width: 768px) {
	.is-column-count-2 {
		column-count: 2;
	}
	.home-hero .wp-block-media-text.is-style-tw-overlap.has-media-on-the-right .wp-block-media-text__content {
		margin-right: -180px;
	}
	.decoration-bulle-top-right {
		position: absolute;
		top: -50px;
		right: 30px;
		z-index: 1;
	}
	.wp-block-group.home-hero-group-text:has(img) {
		overflow: unset;
	}
	.decoration-grue-bottom-right {
		position: absolute;
		bottom: -10px;
		right: 43%;
	}
	.decoration-grue-blanche-bottom-right {
		position: absolute;
		bottom: -100px;
		right: 48%;
		z-index: 1;
	}
}
/* Retire l'image des temoignages */
.wp-block-gutsliders-testimonial-slider .author-photo-outer {
	display: none;
}

/* personnalisation CF7 */
.wpcf7-text, .wpcf7-textarea {
    border: none;
    border-radius: 20px;
    font-size: 1.25rem;
    padding: 1rem 2.25rem;
}

/* Google Reviews Widget */
.wpac div.wp-google-powered {
	display: none;
}