/* ==========================================================================
   Frixa — base : variables, reset, typographie, boutons, champs, utilitaires.
   Échelle : 1rem = 10px (html 62.5 %).
   Points de rupture : < 750px (mobile), 750–989px (tablette), ≥ 990px (ordinateur).
   ========================================================================== */

@font-face {
	font-family: "Assistant";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/assistant-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--font-body-family: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--font-heading-family: var(--font-body-family);
	--font-body-weight: 400;
	--font-heading-weight: 400;

	/* Palette Frixa : ivoire chaud, sable, expresso, rose terracotta. */
	--color-foreground: 42, 33, 30;
	--color-background: 251, 248, 244;
	--color-background-2: 241, 234, 225;
	--color-accent: 168, 112, 92;
	--color-accent-soft: 234, 220, 209;
	--color-button: 42, 33, 30;
	--color-button-text: 251, 248, 244;
	--color-sale: 168, 112, 92;
	--color-error: 203, 33, 33;
	--color-success: 66, 132, 69;
	--color-link: var(--color-foreground);

	--page-width: 120rem;
	--page-gutter: 1.5rem;
	--grid-gap: 0.8rem;
	--grid-gap-v: 1.6rem;
	--section-spacing: 3.6rem;

	--buttons-radius: 0;
	--inputs-radius: 0;
	--badge-radius: 4rem;
	--media-radius: 0;
	--duration-short: 100ms;
	--duration-default: 200ms;
	--duration-long: 500ms;
	--duration-extra-long: 600ms;
	--ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

	--header-height: 6.4rem;
}

@media screen and (min-width: 750px) {
	:root {
		--page-gutter: 5rem;
		--grid-gap: 0.8rem;
		--grid-gap-v: 2.4rem;
		--section-spacing: 5.2rem;
	}
}

/* Reset ------------------------------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
	font-size: 62.5%;
	height: 100%;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

html,
body {
	/* Filet de sécurité : aucun débordement horizontal ne doit dézoomer la page sur mobile. */
	overflow-x: clip;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	margin: 0;
	font-size: 1.5rem;
	letter-spacing: 0.06rem;
	line-height: 1.8;
	font-family: var(--font-body-family);
	font-weight: var(--font-body-weight);
	color: rgba(var(--color-foreground), 0.75);
	background-color: rgb(var(--color-background));
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

@media screen and (min-width: 750px) {
	body {
		font-size: 1.6rem;
	}
}

body.is-locked {
	overflow: hidden;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: block;
}

svg.icon {
	display: inline-block;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
}

button,
input,
select,
textarea {
	font: inherit;
	letter-spacing: inherit;
	color: inherit;
}

button {
	cursor: pointer;
}

table {
	border-collapse: collapse;
	width: 100%;
}

address {
	font-style: normal;
}

hr {
	border: none;
	height: 0.1rem;
	background-color: rgba(var(--color-foreground), 0.08);
	margin: 5rem 0;
}

/* Typographie ------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
.h0,
.h1,
.h2,
.h3,
.h4,
.h5 {
	font-family: var(--font-heading-family);
	font-weight: var(--font-heading-weight);
	letter-spacing: 0.06rem;
	color: rgb(var(--color-foreground));
	line-height: 1.3;
	word-break: break-word;
	margin: 0;
}

h1,
.h1 {
	font-size: 3rem;
}

h2,
.h2 {
	font-size: 2rem;
}

h3,
.h3 {
	font-size: 1.7rem;
}

h4,
.h4 {
	font-size: 1.5rem;
}

h5,
.h5 {
	font-size: 1.2rem;
}

@media only screen and (min-width: 750px) {
	h1,
	.h1 {
		font-size: 4rem;
	}

	h2,
	.h2 {
		font-size: 2.4rem;
	}

	h3,
	.h3 {
		font-size: 1.8rem;
	}

	h5,
	.h5 {
		font-size: 1.3rem;
	}
}

p {
	margin: 0 0 1.5rem;
}

p:last-child {
	margin-bottom: 0;
}

a {
	color: rgb(var(--color-link));
	text-underline-offset: 0.3rem;
	text-decoration-thickness: 0.1rem;
}

.caption {
	font-size: 1rem;
	letter-spacing: 0.07rem;
	line-height: 1.7;
}

@media screen and (min-width: 750px) {
	.caption {
		font-size: 1.2rem;
	}
}

.caption-with-letter-spacing {
	font-size: 1rem;
	letter-spacing: 0.13rem;
	line-height: 1.2;
	text-transform: uppercase;
}

.caption-large {
	font-size: 1.3rem;
	line-height: 1.5;
	letter-spacing: 0.04rem;
}

.link,
.underlined-link {
	color: rgba(var(--color-link), 0.75);
	text-decoration: underline;
	text-underline-offset: 0.3rem;
	text-decoration-thickness: 0.1rem;
	transition: text-decoration-thickness var(--duration-short) ease;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font-size: inherit;
}

.link:hover,
.underlined-link:hover {
	color: rgb(var(--color-link));
	text-decoration-thickness: 0.2rem;
}

.full-unstyled-link {
	text-decoration: none;
	color: currentColor;
	display: block;
}

.break {
	word-break: break-word;
}

.center {
	text-align: center;
}

.right {
	text-align: right;
}

.list-unstyled {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Rich text --------------------------------------------------------------- */
.rte > *:first-child {
	margin-top: 0;
}

.rte > *:last-child {
	margin-bottom: 0;
}

.rte h2,
.rte h3 {
	margin: 3.2rem 0 1.2rem;
}

.rte ul,
.rte ol {
	padding-left: 2rem;
	margin: 0 0 1.5rem;
}

.rte li {
	margin-bottom: 0.4rem;
}

.rte a {
	color: rgba(var(--color-link), 0.75);
	text-underline-offset: 0.3rem;
	transition: text-decoration-thickness var(--duration-short) ease;
}

.rte a:hover {
	color: rgb(var(--color-link));
	text-decoration-thickness: 0.2rem;
}

.rte table {
	margin: 2rem 0;
	font-size: 1.4rem;
}

.rte table td,
.rte table th {
	border: 0.1rem solid rgba(var(--color-foreground), 0.15);
	padding: 0.8rem 1.2rem;
	text-align: left;
}

.rte strong {
	color: rgb(var(--color-foreground));
	font-weight: 600;
}

/* Mise en page ------------------------------------------------------------ */
.page-width {
	max-width: var(--page-width);
	margin: 0 auto;
	padding: 0 var(--page-gutter);
}

.page-width--narrow {
	max-width: calc(72.6rem + var(--page-gutter) * 2);
}

.section-spacing {
	padding-top: var(--section-spacing);
	padding-bottom: var(--section-spacing);
}

.color-scheme-2 {
	background-color: rgb(var(--color-background-2));
}

.content-for-layout {
	outline: none;
	flex: 1 0 auto;
}

.main-page-title {
	margin-bottom: 3rem;
}

@media screen and (min-width: 750px) {
	.main-page-title {
		margin-bottom: 4rem;
	}
}

/* Grille -------------------------------------------------------------------- */
.grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
	column-gap: var(--grid-gap);
	row-gap: var(--grid-gap-v);
}

.grid__item {
	width: calc(25% - var(--grid-gap) * 3 / 4);
	max-width: calc(50% - var(--grid-gap) / 2);
	flex-grow: 1;
	flex-shrink: 0;
}

.grid--2-col-tablet-down .grid__item {
	width: calc(50% - var(--grid-gap) / 2);
}

@media screen and (min-width: 990px) {
	.grid--4-col-desktop .grid__item {
		width: calc(25% - var(--grid-gap) * 3 / 4);
		max-width: calc(25% - var(--grid-gap) * 3 / 4);
	}

	.grid--5-col-desktop .grid__item {
		width: calc(20% - var(--grid-gap) * 4 / 5);
		max-width: calc(20% - var(--grid-gap) * 4 / 5);
	}
}

/* Boutons ----------------------------------------------------------------- */
.button,
.shopify-challenge__button,
button.button,
a.button,
input.button {
	--border-opacity: 1;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 0.8rem;
	border: 0;
	border-radius: var(--buttons-radius);
	padding: 0 3rem;
	min-width: 12rem;
	min-height: 4.5rem;
	box-sizing: border-box;
	cursor: pointer;
	font: inherit;
	font-size: 1.5rem;
	letter-spacing: 0.1rem;
	line-height: 1.2;
	text-decoration: none;
	color: rgb(var(--color-button-text));
	background-color: rgb(var(--color-button));
	box-shadow: 0 0 0 0.1rem rgba(var(--color-button), var(--border-opacity));
	transition: box-shadow var(--duration-short) ease, background-color var(--duration-short) ease;
	-webkit-appearance: none;
	appearance: none;
	position: relative;
}

.button:hover {
	box-shadow: 0 0 0 0.2rem rgba(var(--color-button), var(--border-opacity));
}

.button:focus-visible {
	outline: 0.2rem solid rgba(var(--color-foreground), 0.5);
	outline-offset: 0.3rem;
}

.button.button--secondary {
	color: rgb(var(--color-foreground));
	background-color: transparent;
	box-shadow: 0 0 0 0.1rem rgb(var(--color-foreground));
}

.button.button--secondary:hover {
	box-shadow: 0 0 0 0.2rem rgb(var(--color-foreground));
}

.button.button--tertiary {
	color: rgb(var(--color-foreground));
	background-color: transparent;
	box-shadow: 0 0 0 0.1rem rgba(var(--color-foreground), 0.2);
	font-size: 1.2rem;
	min-width: 9rem;
	min-height: 3.5rem;
	padding: 0 1.5rem;
}

.button.button--inverse {
	color: rgb(var(--color-foreground));
	background-color: rgb(var(--color-background));
	box-shadow: 0 0 0 0.1rem rgb(var(--color-background));
}

.button.button--inverse:hover {
	box-shadow: 0 0 0 0.2rem rgb(var(--color-background));
}

.button--full-width {
	display: flex;
	width: 100%;
}

.button:disabled,
.button[aria-disabled="true"],
.button.disabled,
.button.loading {
	cursor: not-allowed;
	opacity: 0.5;
}

.button.loading {
	color: transparent;
}

.button.loading::after,
.loading-spinner {
	content: "";
	position: absolute;
	width: 1.8rem;
	height: 1.8rem;
	border: 0.2rem solid rgba(var(--color-button-text), 0.35);
	border-top-color: rgb(var(--color-button-text));
	border-radius: 50%;
	animation: frixa-spin 0.7s linear infinite;
}

.button--secondary .loading-spinner,
.button--secondary.loading::after {
	border-color: rgba(var(--color-foreground), 0.2);
	border-top-color: rgb(var(--color-foreground));
}

@keyframes frixa-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Champs à libellé flottant ---------------------------------------------- */
.field {
	position: relative;
	width: 100%;
	display: flex;
	transition: box-shadow var(--duration-short) ease;
}

.field__input,
.select__select,
.customer .field input {
	flex-grow: 1;
	text-align: left;
	padding: 1.5rem;
	margin: 0;
	border: 0;
	border-radius: var(--inputs-radius);
	min-height: 4.5rem;
	height: 4.5rem;
	font-size: 1.6rem;
	width: 100%;
	box-sizing: border-box;
	background-color: rgb(var(--color-background));
	color: rgb(var(--color-foreground));
	box-shadow: 0 0 0 0.1rem rgba(var(--color-foreground), 0.55);
	transition: box-shadow var(--duration-short) ease;
	-webkit-appearance: none;
	appearance: none;
}

.field__input:hover,
.select__select:hover {
	box-shadow: 0 0 0 0.2rem rgba(var(--color-foreground), 0.55);
}

.field__input:focus,
.select__select:focus {
	outline: none;
	box-shadow: 0 0 0 0.2rem rgba(var(--color-foreground), 0.75);
}

.field__label {
	font-size: 1.6rem;
	left: 1.5rem;
	top: 1rem;
	margin-bottom: 0;
	pointer-events: none;
	position: absolute;
	transition: top var(--duration-short) ease, font-size var(--duration-short) ease;
	color: rgba(var(--color-foreground), 0.75);
	letter-spacing: 0.1rem;
	line-height: 1.5;
}

.field__input:focus ~ .field__label,
.field__input:not(:placeholder-shown) ~ .field__label,
.field__input:-webkit-autofill ~ .field__label {
	font-size: 1rem;
	top: 0.3em;
	letter-spacing: 0.04rem;
}

.field__input:focus,
.field__input:not(:placeholder-shown),
.field__input:-webkit-autofill {
	padding: 2.2rem 1.5rem 0.8rem;
}

.field__input::placeholder {
	opacity: 0;
}

.field__button {
	align-items: center;
	background-color: transparent;
	border: 0;
	color: currentColor;
	cursor: pointer;
	display: flex;
	height: 4.4rem;
	justify-content: center;
	overflow: hidden;
	padding: 0;
	position: absolute;
	right: 0;
	top: 0;
	width: 4.4rem;
}

.field__button > svg {
	height: 2rem;
	width: 2rem;
}

.field--currency .field__currency {
	position: absolute;
	left: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.6rem;
	z-index: 1;
}

.field--currency .field__input {
	padding-left: 3.2rem;
}

.field--currency .field__label {
	left: 3.2rem;
}

.select {
	position: relative;
	display: flex;
	align-items: center;
}

.select .icon-caret {
	position: absolute;
	right: 1rem;
	pointer-events: none;
	width: 1.6rem;
	height: 1.6rem;
}

.select__select {
	cursor: pointer;
	padding: 0 4rem 0 1.5rem;
	font-size: 1.4rem;
	line-height: 1;
}

.form__label {
	display: block;
	margin-bottom: 0.6rem;
	font-size: 1.3rem;
	letter-spacing: 0.04rem;
	color: rgba(var(--color-foreground), 0.75);
}

.form__message {
	align-items: center;
	display: flex;
	gap: 0.6rem;
	font-size: 1.4rem;
	line-height: 1.4;
	margin-top: 1rem;
}

.form__message .icon {
	width: 1.4rem;
	height: 1.4rem;
}

.form__message--error {
	color: rgb(var(--color-error));
}

/* Notices WooCommerce ------------------------------------------------------ */
.woocommerce-notices-wrapper:empty {
	display: none;
}

.woocommerce-notices-wrapper,
.woocommerce-NoticeGroup {
	max-width: var(--page-width);
	margin: 2rem auto 0;
	padding: 0 var(--page-gutter);
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner {
	list-style: none;
	margin: 0 0 2rem;
	padding: 1.4rem 1.6rem;
	font-size: 1.4rem;
	line-height: 1.5;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.6rem;
	justify-content: space-between;
	border: 0.1rem solid rgba(var(--color-foreground), 0.15);
	background: rgb(var(--color-background-2));
	color: rgb(var(--color-foreground));
}

.woocommerce-error {
	border-color: rgba(var(--color-error), 0.4);
	background: rgba(var(--color-error), 0.05);
	color: rgb(var(--color-error));
	flex-direction: column;
	align-items: flex-start;
}

.woocommerce-error li {
	margin: 0;
}

.woocommerce-message .button,
.woocommerce-info .button {
	min-height: 3.6rem;
	font-size: 1.3rem;
	padding: 0 1.6rem;
	order: 2;
}

/* Utilitaires ------------------------------------------------------------ */
.visually-hidden,
.screen-reader-text {
	position: absolute !important;
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0 0 0 0);
	word-wrap: normal !important;
}

.skip-to-content-link:focus {
	z-index: 9999;
	position: fixed !important;
	overflow: auto;
	width: auto;
	height: auto;
	clip: auto;
	top: 1rem;
	left: 1rem;
	padding: 1rem 2rem;
}

[hidden] {
	display: none !important;
}

:focus-visible {
	outline: 0.2rem solid rgba(var(--color-foreground), 0.5);
	outline-offset: 0.3rem;
}

@media screen and (max-width: 749px) {
	.small-hide {
		display: none !important;
	}
}

@media screen and (min-width: 750px) and (max-width: 989px) {
	.medium-hide {
		display: none !important;
	}
}

@media screen and (min-width: 990px) {
	.large-up-hide {
		display: none !important;
	}
}

.table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

[role="dialog"]:focus,
[role="dialog"]:focus-visible {
	outline: none;
}
