/*
Theme Name: Fleabag Records
Theme URI: https://fleabagrecords.fr/
Author: Fleabag Records
Author URI: https://fleabagrecords.fr/
Description: Thème-blocs léger et autonome pour Fleabag Records, avec compositions de pages, polices locales et formulaire de contact.
Requires at least: 7.0
Tested up to: 7.0
Requires PHP: 8.1
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fleabag-records
Tags: block-patterns, full-site-editing, custom-colors, custom-logo, editor-style, featured-images, one-column, wide-blocks
*/

@font-face {
	font-family: "Funkydori";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/funkydori.woff2") format("woff2");
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/lato-regular.woff2") format("woff2");
}

@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("assets/fonts/lato-900.woff2") format("woff2");
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: 2rem;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	background-attachment: fixed;
	background-image: url("assets/images/background-fader.avif");
	background-position: center;
	background-size: cover;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

[hidden] {
	display: none !important;
}

img,
svg {
	max-width: 100%;
}

.wp-site-blocks :where(p, li, dd, figcaption, blockquote) {
	text-wrap: pretty;
}

.wp-site-blocks main a:not(.wp-element-button) {
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.wp-site-blocks main a:not(.wp-element-button):hover {
	text-decoration-thickness: 0.14em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	box-shadow: 0 0 0 0.12rem #510050;
	outline: 0.2rem solid #ffb400;
	outline-offset: 0.2rem;
}

::selection {
	background: #ffb400;
	color: #510050;
}

.wp-site-blocks {
	min-height: 100vh;
}

/* WordPress adds a global block gap between template parts. The design joins
 * header, content and footer directly, so no page may inherit that separator. */
.wp-site-blocks > *,
#content > .wp-block-post-content,
.wp-block-post-content > :first-child {
	margin-block-start: 0 !important;
}

.fleabag-skip-link {
	background: #fff;
	color: #510050;
	font-weight: 900;
	left: 1rem;
	padding: 0.75rem 1rem;
	position: fixed;
	top: -10rem;
	z-index: 100000;
}

.fleabag-skip-link:focus {
	top: 1rem;
}

.fleabag-site-header {
	background: linear-gradient(100deg, #350035, #510050);
	box-sizing: border-box;
	min-height: 132px;
	position: relative;
	width: 100%;
	z-index: 20;
}

.fleabag-site-header .wp-block-navigation-item__content,
.fleabag-site-header .wp-block-navigation-item__label,
.fleabag-site-header .wp-block-navigation a,
.fleabag-site-header .wp-block-navigation a:visited,
.fleabag-site-header .wp-block-navigation__responsive-container-open,
.fleabag-site-header .wp-block-navigation__responsive-container-close {
	color: #fff !important;
}

.fleabag-site-header .wp-block-site-logo img {
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.22));
}

.fleabag-site-header .wp-block-navigation-item__content,
.fleabag-site-header .wp-block-button__link {
	align-items: center;
	display: inline-flex;
	min-height: 44px;
}

.fleabag-hero {
	box-shadow: 0 14px 30px rgba(31, 6, 31, 0.22);
}

.fleabag-hero .wp-block-cover__background {
	background: linear-gradient(100deg, rgba(35, 0, 45, 0.74), rgba(81, 0, 80, 0.54)) !important;
	opacity: 1 !important;
}

.fleabag-hero-title {
	text-wrap: balance;
}

.fleabag-surface {
	background: rgba(255, 255, 255, 0.96);
}

.fleabag-section-title {
	text-wrap: balance;
}

.fleabag-image-card img,
.fleabag-feature-card img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.fleabag-feature-card {
	box-shadow: 0 16px 45px rgba(81, 0, 80, 0.11);
	height: 100%;
	overflow: hidden;
}

.fleabag-icon-list {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

.fleabag-icon-list li {
	margin-bottom: 0.8rem;
	padding-left: 1.75rem;
	position: relative;
}

.fleabag-icon-list li::before {
	color: var(--wp--preset--color--secondary);
	content: "♪";
	font-size: 1.15em;
	font-weight: 900;
	left: 0;
	position: absolute;
	top: -0.05em;
}

.fleabag-faq details {
	border-bottom: 1px solid rgba(81, 0, 80, 0.16);
	padding: 0.9rem 0;
}

.fleabag-faq summary {
	color: var(--wp--preset--color--primary);
	cursor: pointer;
	font-weight: 900;
}

.fleabag-faq details[open] summary {
	color: var(--wp--preset--color--secondary);
}

.fleabag-contact-form {
	display: grid;
	gap: 1rem;
}

.fleabag-contact-form label {
	color: var(--wp--preset--color--primary);
	display: grid;
	font-weight: 900;
	gap: 0.35rem;
}

.fleabag-contact-form input,
.fleabag-contact-form textarea {
	background: #fff;
	border: 1px solid rgba(81, 0, 80, 0.22);
	border-radius: 6px;
	box-sizing: border-box;
	color: #1f2937;
	font: inherit;
	padding: 0.8rem 0.9rem;
	width: 100%;
}

.fleabag-contact-form input:focus,
.fleabag-contact-form textarea:focus {
	border-color: var(--wp--preset--color--secondary);
	box-shadow: 0 0 0 3px rgba(10, 183, 206, 0.2);
	outline: 0;
}

.fleabag-contact-form button {
	justify-self: start;
	min-height: 44px;
}

.fleabag-form-status {
	border-left: 4px solid var(--wp--preset--color--secondary);
	margin-bottom: 1rem;
	padding: 0.75rem 1rem;
}

.fleabag-form-status.is-error {
	border-left-color: #b42318;
}

.fleabag-honeypot {
	left: -10000px;
	position: absolute;
}

.fleabag-visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	white-space: nowrap;
	width: 1px;
}

.fleabag-new-window-note {
	display: inline-block;
	font-size: 0.82em;
	font-weight: 900;
	line-height: 1;
	margin-inline-start: 0.28em;
	text-decoration: none;
}

.fleabag-editor-only {
	display: none;
}

.editor-styles-wrapper .fleabag-editor-only {
	display: block;
}

.wp-element-button.has-secondary-background-color {
	color: #510050;
}

.wp-element-button:hover,
.wp-element-button:focus-visible {
	background: #ffb400;
	color: #510050;
}

.fleabag-site-footer a:hover,
.fleabag-site-header .wp-block-navigation a:hover,
.fleabag-site-header .wp-block-navigation a:focus-visible {
	color: var(--wp--preset--color--secondary) !important;
}

@media (max-width: 781px) {
	.fleabag-site-header {
		min-height: 104px;
		padding-left: 0.25rem;
		padding-right: 0.25rem;
	}

	.fleabag-site-header .wp-block-buttons {
		display: none;
	}

	.fleabag-hero {
		min-height: 520px !important;
	}

	.fleabag-feature-card {
		height: auto;
	}
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

@media (prefers-contrast: more) {
	:where(.fleabag-feature-card, .wp-block-details, .fleabag-contact-form input, .fleabag-contact-form textarea) {
		border: 2px solid currentColor;
	}

	.fleabag-feature-card {
		box-shadow: none;
	}
}

@media (forced-colors: active) {
	:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
		box-shadow: none;
		outline: 3px solid Highlight;
		outline-offset: 3px;
	}

	:where(.wp-element-button, input, select, textarea) {
		border: 2px solid ButtonText;
	}

	.fleabag-new-window-note {
		color: LinkText;
	}
}

@media print {
	.fleabag-site-header .wp-block-navigation,
	.fleabag-site-header .wp-block-buttons,
	.fleabag-site-footer .wp-block-navigation,
	.fleabag-contact-form,
	.fleabag-hero .wp-block-cover__image-background,
	.fleabag-hero .wp-block-cover__background {
		display: none !important;
	}

	.fleabag-site-header,
	.fleabag-site-footer,
	.fleabag-hero,
	.fleabag-surface {
		background: #fff !important;
		box-shadow: none !important;
		color: #000 !important;
	}

	.fleabag-hero {
		min-height: auto !important;
		padding-block: 2rem;
	}

	.fleabag-hero-title,
	.fleabag-site-footer :where(p, a),
	.fleabag-site-header :where(p, a) {
		color: #000 !important;
	}

	a {
		color: #000 !important;
		text-decoration: underline !important;
	}
}
