/*
Theme Name: Festival Cyclotourisme 2026
Theme URI: https://semaine-federale.ffvelo.fr/2026/
Author: Martin Beaumont x Crealink53
Author URI: https://www.martinbeaumont.dev
Description:
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 8.2
Version: 0.1.1
Text Domain: festivalcyclotourisme
Tags: entertainment, blog, one-column, block-patterns, block-styles, custom-logo, custom-menu, editor-style, featured-image-header, full-site-editing, full-width-template, template-editing, translation-ready, block-styles
*/

*,
*::before,
*::after {
	box-sizing: border-box;
}

::selection {
	background-color: var(--semainefederale--selection--background-color);
	color: var(--semainefederale--selection--color);
}

[hidden] {
	display: none;
}

html {
	overflow-x: clip;
}

body {
	--semainefederale--selection--color: var(--wp--preset--color--white);
	--semainefederale--selection--background-color: var(--wp--preset--color--blue-dark);
	overflow-x: hidden;
}

p:empty {
	display: none;
}

/**
 * MARK: Layout
 */

html {
	scroll-behavior: smooth;
	min-height: 100vh;
	min-height: 100svh;
}

@media screen and (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	min-height: 100vh;
	min-height: 100svh;
	scroll-padding-block: var(--wp--preset--spacing--30);
}

.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

.wp-site-blocks > header {
	z-index: 10;
}

.wp-site-blocks > main {
	flex-grow: 1;
}

.wp-site-blocks > footer .has-tree-background {
	background-image: url(./assets/images/arbres-panneaux.webp);
	background-size: auto 90%;
	background-repeat: no-repeat;
	background-position: bottom left;
}

.wp-site-blocks > footer .wp-block-navigation {
	text-align: right;
}

@media (max-width: 781px) {
	.wp-site-blocks > footer .has-tree-background {
		background-size: 10rem;
	}

	.wp-site-blocks > footer .wp-block-group:is(.wp-block-group-menu) {
		justify-content: flex-end;
	}
}

.home .wp-block-cover {
	position: relative;
	height: 50vw;
	max-height: 1100px;
}

.home .wp-block-cover::after {
	position: absolute;
	content: '';
	inset: 0;
	z-index: 0;
	background-image: url(./assets/images/hero.svg);
	background-repeat: no-repeat;
	background-size: auto 50%;
	background-position: bottom center;
}

.home .wp-block-cover .wp-block-cover__inner-container {
	z-index: 1;
}

@media (min-width: 40em) {
	.home .wp-block-cover::after {
		background-size: 100%;
	}
}
