/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Thème enfant pour Astra — sticky header + durcissements sécurité
 Author:       Johann
 Author URI:
 Template:     astra
 Version:      1.6.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* ==========================================================================
   Sticky Header
   ========================================================================== */

header.site-header {
	position: sticky !important;
	top: 0;
	z-index: 999;
}

.main-header-bar-wrap {
	position: sticky;
	top: 0;
	z-index: 999;
}

header.site-header,
.main-header-bar {
	transition: box-shadow 0.3s ease, padding 0.3s ease;
}

header.site-header.ast-sticky-active,
.main-header-bar.ast-sticky-active {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Fix ancres — Compensation sticky header
   ========================================================================== */

html {
	scroll-padding-top: 120px;
}

.wp-block-uagb-container[id],
[id] {
	scroll-margin-top: 120px;
}

/* ==========================================================================
   Personnalisations (à compléter selon les besoins)
   ========================================================================== */
