/*
Theme Name: custom
Author: Nicolas Martin
Author URI: https://nicolasmartin.eu
Description: Theme custom
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1
Text Domain: custom
*/

:root {
	--radius-full: 624.9375rem;
	--radius-1-5: 1.5rem;
	--radius-3: 3rem;
	
	--leading-base: 1.4;
	--leading-fine: 1.15;
	
	--line-text-max: 80ch;
	--line-title-max: 50ch;
}

* {
	margin: 0;
}

.wp-block-navigation,
.wp-block-navigation .wp-block-navigation-item {
	all: unset;
	box-sizing: border-box;
}

.wp-block-navigation__container:only-child, .wp-block-page-list:only-child {
	flex-grow: unset;
}

.wp-block-navigation .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container,
.wp-block-navigation .has-child > .wp-block-navigation__submenu-container {
	overflow-x: var(--wp-block-navigation__submenu-container-overflow-x,hidden);
	overflow-y: var(--wp-block-navigation__submenu-container-overflow-y,hidden);
	width: var(--wp-block-navigation__submenu-container-width,auto);
}



.wp-site-blocks {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 1em;
	
}

body {
	font-family: var(--wp--preset--font-family--inter);
}

img, picture, video, canvas, svg {
	display: block;
	max-inline-size: 100%;
	height: auto;
}

h1, h2, h3, h4, h5, h6 {
	max-width: var(--line-title-max, 45ch);
}
p, ul, ol{
	max-width: var(--line-text-max, 75ch);
}

ul {
	padding-inline-start: var(--wp--preset--spacing--space-1-5);
}

:is(h1, h2, h3):has(a) {
	a {
		text-decoration: none;
	}
}

address {
	font-style: normal;
}

:root :where(.is-layout-constrained) > *,
:root :where(.is-layout-flow) > *,
:root :where(.is-layout-flow) > :last-child { 
	margin-block-start: unset;
	margin-block-end:  unset; 
	
}

:where(section.wp-block-group) {
		padding-block-start: var(--wp--preset--spacing--space-6);
		padding-block-end: var(--wp--preset--spacing--space-7);
		padding-inline:  var(--wp--preset--spacing--space-7-5);
}

.wp-block-image img {
	width: 100%;
}

.wp-block-cover:not(.hero) { min-height: 0; }

.wp-block-button.cta-contact .wp-block-button__link::before {content: ''; display: block; width: 1.5em; height: 1.5em; background-color: currentcolor; mask: url(/wp-content/themes/custom/assets/icons/mail.svg) no-repeat; mask-size: cover; mask-position: center; }