/**
 * Theme Name: Astra Child
 * Theme URI:  https://wpastra.com/
 * Description: The Astra WordPress theme is lightning-fast and highly customizable. It has over 1 million downloads and the only theme in the world with 5,700+ five-star reviews! It’s ideal for professional web designers, solopreneurs, small businesses, eCommerce, membership sites and any type of website. It offers special features and templates so it works perfectly with all page builders like Spectra, Elementor, Beaver Builder, etc. Fast performance, clean code, mobile-first design and schema markup are all built-in, making the theme exceptionally SEO-friendly. It’s fully compatible with WooCommerce, SureCart and other eCommerce plugins and comes with lots of store-friendly features and templates. Astra also provides expert support for free users. A dedicated team of fully trained WordPress experts are on hand to help with every aspect of the theme. Try the live demo of Astra: https://zipwp.org/themes/astra/
 * Author:     Brainstorm Force
 * Author URI: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme
 * Template:   astra
 * Version:    1.0.0
 * License:    GNU General Public License v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Tags:       custom-menu, custom-logo, entertainment, one-column, two-columns, left-sidebar, e-commerce, right-sidebar, custom-colors, editor-style, featured-images, full-width-template, microformats, post-formats, rtl-language-support, theme-options, threaded-comments, translation-ready, blog
 * Text Domain: astra-child
 * Generated by WPMasterToolKit
 * @link https://wordpress.org/plugins/wpmastertoolkit/
 */
html, body {
  height: 100%;
  overflow-x: hidden;
}

/* Sections animées (juste une classe à poser dans Elementor) */
.section-couleur {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1; /* sous l'overlay */
  /* L’arrière-plan réel est géré par Elementor. Le JS lit la couleur avant de rendre transparent. */
}

/* Contenu à forcer au-dessus de l'overlay si besoin */
.contenu-site,
.above-overlay {
  position: relative;
  z-index: 4;
}

/* Overlay plein écran */
#color-overlay {
  position: fixed;
  inset: 0;
  z-index: 2; /* entre les sections (1) et le reste (3) */
  pointer-events: none;
  background: var(--overlay-color, transparent);
  clip-path: circle(150% at 50% 50%);
  will-change: clip-path, background;
}

/* Éléments hors sections au-dessus de l'overlay (scopé) */
.has-scroll-overlay > :not(.section-couleur):not(#color-overlay):not(script):not(style):not(link) {
  position: relative;
  z-index: 3;
}

/* Accessibilité : réduire les effets si l'utilisateur le demande */
@media (prefers-reduced-motion: reduce) {
  #color-overlay { transition: none !important; }
}

/* Fallback si clip-path non supporté : simple fondu de couleur */
@supports not (clip-path: circle(50%)) {
  #color-overlay { clip-path: none; }
}



/* Éléments hors sections animées au-dessus de l'overlay */
body > :not(.section-couleur):not(#color-overlay):not(script):not(style):not(link) {
    position: relative;
    z-index: 3;
}


