/*
Theme Name: Theme 2K26 Generaliste
Theme URI: https://example.com/theme-2k26-generaliste
Author: Codex
Author URI: https://openai.com
Description: Theme WordPress generaliste, moderne et leger, concu pour l'editeur de site et les blocs natifs.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: theme-2k26-generaliste
Tags: full-site-editing, block-patterns, blog, portfolio, business, accessibility-ready, custom-colors, custom-logo, editor-style
*/

:root {
	--wp--preset--font-family--new-science: "new-science", sans-serif;
	--wp--preset--font-family--new-science-extended: "new-science-extended", sans-serif;
	--wp--preset--font-size--48: clamp(1.5rem, 1.25rem + 2.5vw, 3rem);
	--wp--preset--font-size--26: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
	--wp--preset--font-size--24: clamp(1.25rem, 1.125rem + 0.5vw, 1.5rem);
	--wp--preset--font-size--20: clamp(1.125rem, 1.05rem + 0.3vw, 1.25rem);
	--wp--preset--font-size--18: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
	--wp--preset--font-size--16: 1rem;
	--wp--preset--font-size--14: 0.875rem;
	--wp--preset--font-size--12: 0.75rem;
	--wp--preset--color--peach: #FFE9DD;
	--wp--preset--color--black: #000000;
	--wp--preset--color--ivory: #F9F0EB;
	--wp--preset--color--rush-pink: #EC008C;
	--wp--preset--color--rush-magenta: #FF3BAF;
	--wp--preset--color--sky-blue: #67D0F8;
	--wp--preset--color--rush-blue: #0031A7;
	--wp--preset--color--electric-blue: #0000FF;
	--wp--preset--color--plum: #A2006E;
	--wp--preset--color--powder-pink: #FBD7ED;
	--wp--preset--color--beige: #E7CEC0;
	--wp--preset--color--light-gray: #F5F5F5;
}

.has-48-font-size { font-size: var(--wp--preset--font-size--48) !important; }
.has-26-font-size { font-size: var(--wp--preset--font-size--26) !important; }
.has-24-font-size { font-size: var(--wp--preset--font-size--24) !important; }
.has-20-font-size { font-size: var(--wp--preset--font-size--20) !important; }
.has-18-font-size { font-size: var(--wp--preset--font-size--18) !important; }
.has-16-font-size { font-size: var(--wp--preset--font-size--16) !important; }
.has-14-font-size { font-size: var(--wp--preset--font-size--14) !important; }
.has-12-font-size { font-size: var(--wp--preset--font-size--12) !important; }
.has-300-font-weight { font-weight: 300 !important; }
.has-400-font-weight { font-weight: 400 !important; }
.has-500-font-weight { font-weight: 500 !important; }
.has-600-font-weight { font-weight: 600 !important; }
.has-700-font-weight { font-weight: 700 !important; }

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--wp--preset--font-family--new-science);
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	padding: 0;
}

p {
	line-height: normal !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--wp--preset--font-family--new-science-extended);
}

a {
	text-decoration: none;
	color: var(--wp--preset--color--black);
}

img {
	max-width: 100%;
	height: auto;
}

.rating-stars {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	line-height: 0;
}

.rating-stars__star {
	position: relative;
	display: block;
	flex: 0 0 19px;
	width: 19px;
	height: 18px;
}

.rating-stars__icon {
	display: block;
	width: 19px;
	max-width: none;
	height: 18px;
}

.rating-stars__fill {
	position: absolute;
	inset: 0 auto 0 0;
	display: block;
	width: var(--star-fill);
	overflow: hidden;
}

input,
textarea,
select,
button {
	font: inherit;
}

:where(.wp-site-blocks) > * {
	margin-block-start: 0;
}

.has-rush-landing .footer__rush {
	display: none;
}

/* Let first-time visitors browse for two seconds before Complianz takes focus. */
html.cmplz-delay-pending #cmplz-cookiebanner-container.cmplz-show {
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

html.cmplz-delay-pending body.cmplz-banner-active * {
	pointer-events: auto !important;
	user-select: auto !important;
}

/* BUTTONS */
.btn-rush {
	--btn-background: transparent;
	--btn-hover-background: transparent;
	cursor: pointer;
	border-radius: 200px;
	border: 1px solid #000;
	display: flex;
	padding: 10px 24px 12px;
	justify-content: center;
	align-items: center;
	gap: 10px;
	color: #000;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	background-color: var(--btn-background);
	text-align: center;
	transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn-rush:is(:hover, :focus-visible) {
	background-color: var(--btn-hover-background);
	box-shadow: 4px 4px 0 var(--wp--preset--color--black);
	transform: translate(-2px, -2px);
}

.btn-pink {
	--btn-background: #FF3BB5;
	--btn-hover-background: #A2006E;
}

.btn-beige {
	--btn-background: #F9F0EB;
	--btn-hover-background: #FFE9DD;
}

@media (max-width: 600px) {
	p br {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.btn-rush {
		transition-duration: 0.01ms;
	}
}
