/*--------------------------------------------------------------

# PAGES



Styles for pages of website

If it's specifi to an only page - please add a custom page stylesheet



--------------------------------------------------------------*/

body {
	background-color: var(--white);
}

:is(.page-template-default, .page-template-page-error-membership) .entry-content {
	padding: 56px 0.5rem;
}

.page-template-page-error-membership .site-main {
	padding-bottom: 0.55rem;
}

:is(.page-template-default, .page-template-page-error-membership) .entry-content :is(h1, h2) {
	margin: 0.33rem 0 0.25rem;
	font-size: 36px;
	text-transform: uppercase;
}

:is(.page-template-default, .page-template-page-error-membership) .entry-content h3 {
	margin: 0.33rem 0 0.125rem;
	font-size: 24px;
	text-transform: uppercase;
}

:is(.page-template-default, .page-template-page-error-membership) .entry-content li {
	margin-top: 12px;
}

:is(.page-template-default, .page-template-page-error-membership)
	.entry-content
	:is(ul, ol, p)
	+ :is(p, ul, ol) {
	margin-top: 12px;
}

:is(.page-template-default, .page-template-page-error-membership) .entry-content {
	width: 100%;
	max-width: 1024px;
	margin: 0 auto;
}

.page-template-page-error-membership .site-main {
	text-align: center;
}

@media screen and (min-width: 768px) {
	:is(.page-template-default, .page-template-page-error-membership) .entry-content h1 {
		font-size: 5.5vw;
	}
	:is(.page-template-default, .page-template-page-error-membership) .entry-content h2 {
		font-size: 4.5vw;
	}
}

/* =============================================
HERO
============================================= */

.hero {
	position: relative;
	background-color: var(--main-color);
	color: var(--white);
}

.hero-titre {
	padding: 20px 0.5rem;
}

.hero-titre p {
	line-height: 1.3;
}

.hero-titre-texte {
	position: relative;
	margin-bottom: 0.125rem;
	z-index: 3;
	font-size: 11vw;
}

.points-club {
	color: var(--white);
	line-height: 1.5;
}

.points-club em {
	position: relative;
	display: inline-block;
	font-style: normal;
}

.points-club em:before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	aspect-ratio: 1/1;
	border-radius: 50%;
	height: 100%;
	z-index: -1;
	background-color: var(--main-light);
}

.points-club sup {
	font-family: var(--main-font);
	text-transform: none;
	font-weight: 500;
	color: var(--main-color);
	font-size: 42%;
}

.hero-titre-texte span {
	position: absolute;
	z-index: -1;
	bottom: calc(100% - 8px);
	right: 0;
}

.hero-titre-texte sup {
	position: relative;
	top: -1.8em;
	margin-left: 6px;
	color: var(--white);
}

.hero-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 12px;
}

.hero-banner {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.hero-banner .hero-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-banner .hero-sticker {
	position: relative;
	display: block;
	z-index: 2;
	width: 80vw;
	margin-right: -10%;
}

.hero-action-links {
	display: flex;
	gap: 24px;
	padding-bottom: 40px;
}

.hero-action-links a {
	color: var(--white);
}

@media screen and (min-width: 768px) {
	.hero {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}
	.hero-titre {
		padding: 40px 0.33rem;
	}
	.hero-titre p {
		max-width: 420px;
	}
	.hero-titre-texte {
		width: fit-content;
		min-width: 475px;
		font-size: 66px;
	}
	.page-template-page-inscription .hero-titre-texte {
		max-width: 26vw;
	}
	.hero-action-links {
		padding-bottom: 5vw;
	}
	.hero-buttons:has(button) {
		padding-top: 40px;
	}
	.hero-banner .hero-sticker {
		width: 28vw;
	}
	.club-title .points-club {
		position: absolute;
		top: -44%;
		left: 98%;
		font-size: 65%;
	}
	.club-title .points-club em {
		display: block;
		width: 1.5em;
	}
	.club-title .points-club sup {
		position: absolute;
		top: 12%;
		left: 83%;
		font-weight: 600;
	}
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
	.hero-action-links {
		padding-bottom: 50px;
	}
}

@media screen and (max-width: 767px) {
	.hero img {
		display: none;
	}
	.hero-banner {
		margin-bottom: 26.5vw;
	}
	.hero-banner .hero-sticker {
		margin-bottom: -30.5%;
	}
	.hero-action-links a {
		font-size: 12px;
	}
}

/* =============================================

RECOMPENSES ACTIVES

============================================= */

.recompenses-actives {
	padding: 56px 0.5rem 56px;
	text-align: center;
}

.recompenses-actives .description {
	margin: 12px auto 32px;
	max-width: 555px;
}

.item-list-wrapper {
	position: relative;
}

.item-list-wrapper:after {
	content: "";
	position: absolute;
	z-index: 3;
	top: 0;
	right: 0;
	height: calc(100% - 8px);
	background: linear-gradient(to left, var(--white), transparent);
	width: 15vw;
}

.item-list {
	overflow: auto;
	gap: 20px;
	display: flex;
	gap: 20px;
	padding-bottom: 40px;
	padding-right: 15vw;
}

.item-list::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.item-list::-webkit-scrollbar-track {
	background: #d7d2cd;
	border-radius: 10px;
}

.item-list::-webkit-scrollbar-thumb {
	background: #6c5b56;
	border-radius: 10px;
}

.item {
	padding: 8px;
	background-color: #fff;
	border-radius: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	user-select: none;
	text-align: center;
}

.item.dark-item .item-title,
.next-item.dark-item .item-title {
	color: var(--white);
}

.item-title {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	height: 45%;
	padding: 0.33rem 0.33rem 0;
	font-weight: 300;
	font-family: var(--main-font);
	line-height: 0.85;
	font-size: 48px;
}

.item-title.reduc {
	height: auto;
	line-height: 1.25;
}

.item-image:has(.reduc) img {
	height: 100%;
	width: 100%;
	object-fit: contain;
}

.item-title b,
.item-title strong {
	display: block;
	font-family: var(--title-font);
	font-weight: 400;
	text-transform: uppercase;
	font-size: 120%;
}

@media screen and (max-width: 1280px) and (min-width: 1024px) {
	.item-title b,
	.item-title strong {
		font-size: 110%;
	}
}

.item-image {
	position: relative;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 18px;
	background: linear-gradient(to bottom, #e4d2b2, #f1e3c6);
}

.item-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	border-radius: 18px;
}

.item-meta {
	display: flex;
	justify-content: space-between;
	padding: 12px 0 0;
	font-size: 12px;
	font-weight: 400;
}

.no-recompense {
	grid-column: 1 / -1;
	text-align: center;
}

@media screen and (min-width: 600px) {
	.item-title {
		font-size: 24px;
	}
}

@media screen and (max-width: 1023px) {
	.recompenses-actives {
		font-size: 14px;
	}
	.item-list-wrapper {
		margin: 0 -0.5rem;
	}
	.item-list {
		padding: 0 0.5rem;
		-ms-overflow-style: none; /* IE and Edge */
		scrollbar-width: none; /* Firefox */
		display: flex;
		overflow-x: auto;
		gap: 12px;
	}

	.item-list::-webkit-scrollbar {
		display: none; /* Chrome, Safari and Opera */
	}
	.item {
		min-width: 270px;
		scroll-snap-align: start;
	}
	.item-meta {
		font-size: 12px;
	}
}

@media screen and (min-width: 1024px) {
	.recompenses-actives {
		padding: 85px 12% 60px;
	}
	.item {
		min-width: 42%;
		max-width: 42%;
		padding: 14px;
	}
	.item-title {
		font-size: 2.3vw;
	}
	.item-meta {
		padding-top: 12px;
		font-size: 14px;
	}
}

@media screen and (max-width: 767px) {
	.item-title {
		font-size: 34px;
	}
}

/* =============================================

RECOMPENSES A VENIR

============================================= */

.item-grid {
	display: flex;
	margin: 0 -0.5rem;
	padding: 0 0.5rem;
	-ms-overflow-style: none;
	scrollbar-width: none;
	overflow-x: auto;
	gap: 12px;
}

.item-grid .next-item {
	border: none;
	padding: 0;
	text-align: center;
}

.meta-points {
	position: relative;
	z-index: 1;
	margin-bottom: -26px;
	line-height: 52px;
	font-size: 34px;
	font-family: var(--title-font);
	color: var(--white);
	text-align: center;
}

.meta-points:after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	z-index: -1;
	display: block;
	height: 100%;
	transform: translate(-50%, 0);
	aspect-ratio: 1/1;
	border-radius: 50%;
	background-color: var(--main-color);
}

.next-item {
	position: relative;
	user-select: none;
}

.next-item.available {
	cursor: pointer;
}

.next-item.dark-item .meta-points:after {
	color: var(--main-light);
}

.next-item:not(.available) img {
	filter: blur(3px);
	transform: scale(1.05);
	transform-origin: center;
}

.next-item .item-image {
	overflow: hidden;
	border-radius: 24px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
}

.next-item:not(.available):after {
	content: "";
	position: absolute;
	bottom: 20px;
	right: 20px;
	width: 50px;
	height: 60px;
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60.523" height="74.785" viewBox="0 0 16.013 19.787"><path d="M126.83 169.115h-2.683l.558-2.68a1.687 1.687 0 0 1-.91-1.494 1.694 1.694 0 1 1 3.387 0c0 .651-.371 1.21-.91 1.493zm-4.542-11.515c0-1.764 1.436-3.2 3.2-3.2 1.765 0 3.2 1.436 3.2 3.2v2.338h-6.4zm9.443 2.338h-1.279V157.6a4.964 4.964 0 0 0-9.928 0v2.338h-1.279c-.974 0-1.764.79-1.764 1.764v8.957c0 .975.79 1.764 1.764 1.764h12.486c.974 0 1.764-.79 1.764-1.764v-8.957c0-.974-.79-1.764-1.764-1.764" style="fill:%23f8f7f2;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:.352778" transform="translate(-117.481 -152.636)"/></svg>')
		center no-repeat;
	background-size: contain;
}

.next-item + .popover {
	max-width: 930px;
}

.next-item + .popover .popover-inner {
	width: 100%;
	max-width: 930px;
}

.item-popup {
	display: flex;
	flex-direction: column;
}

.item-popup-title {
	order: -1;
	margin: 12px 0 0;
	font-size: 11vw;
	text-transform: uppercase;
	color: var(--main-color);
}

.item-popup-points {
	order: -2;
	position: relative;
	z-index: 2;
	padding: 4px;
	width: 18vw;
	aspect-ratio: 1 / 1;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 12vw;
	font-weight: 700;
	font-family: var(--title-font);
	color: var(--white);
	text-align: center;
}

.item-popup-points:after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	aspect-ratio: 1 / 1;
	z-index: -1;
	border-radius: 50%;
	background-color: var(--main-light);
}

.item-popup-image {
	position: relative;
	border-radius: 24px;
	aspect-ratio: 1 / 1;
	width: 100%;
	overflow: hidden;
}

.item-popup-image img {
	width: 140%;
	max-width: 140%;
	height: auto;
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translate(-50%, 0);
}

.item-popup-content .legal {
	margin: 32px 0;
	font-size: 12px;
}

.item-popup-content .legal,
.item-popup-description {
	width: 100%;
	max-width: 250px;
}

.item-popup-purchase {
	margin-top: auto;
	text-align: right;
}

.item-popup-purchase button {
	position: relative;
	height: 44px;
	min-width: 190px;
	background-color: var(--main-color);
	color: var(--white);
	border-radius: 48px;
	border: 0;
	padding: 12px 32px;
	cursor: pointer;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
}

.item-popup-purchase button:hover {
	background-color: var(--main-light);
	box-shadow: 0 0 10px rgba(0, 0, 0, 0);
}

@media screen and (max-width: 767px) {
	.club-title.with-points > span {
		display: flex;
		flex-direction: row-reverse;
		align-items: center;
		justify-content: center;
		padding-left: 50px;
		gap: 20px;
	}
	.club-title.with-points .club-title-text {
		width: min-content;
	}

	.club-title.with-points .points-club {
		order: -1;
		margin-top: -50px;
		margin-left: -5px;
		display: flex;
		flex-direction: column;
		gap: 12px;
		align-items: center;
		justify-content: center;
	}

	.club-title.with-points .points-club sup {
		position: relative;
		top: -5px;
		left: 0;
	}

	.item-grid .next-item {
		min-width: 80vw;
		max-width: 420px;
	}
	.item-popup-content {
		display: contents;
	}

	.item-popup-image {
		margin: 20px 0;
	}
}

@media screen and (min-width: 768px) {
	.item-grid {
		display: grid;
		grid-template-columns: 1fr 1fr 1fr;
		gap: 3vw;
		margin: 0;
		padding: 0 0.3rem 100px;
	}
	.item-grid .next-item {
		min-width: auto;
		max-width: auto;
	}
	.meta-points {
		margin-bottom: -37px;
		font-size: 50px;
		line-height: 1.5;
	}
	.item-popup {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 32px;
	}
	.item-popup-content {
		display: flex;
		flex-direction: column;
	}
	.item-popup-points {
		width: 6.5vw;
		font-size: 4.5vw;
		line-height: 1;
		padding: 8px;
	}
	.item-popup-title {
		margin-bottom: 24px;
		font-size: 4.2vw;
	}
	.item-popup-purchase button {
		padding: 12px 45px;
	}
}

/* =============================================

SECTION FORM

============================================= */

.section-small {
	margin: 0 auto;
	padding: 56px 0.5rem 56px;
	width: 100%;
	max-width: calc(580px + 1rem);
}

.section-small .club-title {
	text-align: center;
}

@media screen and (min-width: 1024px) {
	.section-small {
		padding: 56px 0.5rem 150px;
	}
}

.action-title {
	margin: 0.33rem 0 0.1rem;
}

.responsive-table {
	overflow-x: auto;
}

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

.responsive-table table th {
	font-weight: 400;
}

.responsive-table table :is(th, td) {
	background-color: #fff;
	border-top: 3px solid var(--white);
	border-bottom: 3px solid var(--white);
	padding: 12px;
	text-align: left;
}

.responsive-table table :is(td, th):first-child {
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
}

.responsive-table table :is(td, th):last-child {
	border-top-right-radius: 8px;
	border-bottom-right-radius: 8px;
}

/* LE CLUB */

.club-section {
	padding: 40px 0.66rem;
	position: relative;
}

.club-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.club-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.club-section .container {
	background-color: #fff;
	padding: 25px 30px;
	border-radius: 10px;
	text-align: center;
}

.club-section p {
	font-size: 12px;
	margin: 12px 0 16px;
}

.club-section form {
	position: relative;
	display: flex;
	flex-direction: column;
	border-radius: 80px;
	background-color: #d7d2cbb4;
}

.club-section form input {
	background-color: transparent;
	box-shadow: none;
	border-radius: 80px;
	padding-right: 170px;
}

.club-section form button {
	width: 100%;
	height: 40px;
	border: 0;
	font-weight: 500;
	padding: 0 0.33rem;
}

.parrainage-response {
	display: none;
	border-radius: 80px;
	background-color: #d7d2cbb4;
	gap: 8px;
	align-items: center;
	padding: 12px 12px 12px 24px;
}

#parrainage-code {
	flex-grow: 1;
	font-weight: 500;
	text-align: left;
}

.parrainage-response button {
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #6c5b56;
	cursor: pointer;
	color: var(--white);
	fill: var(--white);
}

@media screen and (min-width: 1024px) {
	.club-section {
		padding: 180px 0.66rem;
	}

	.club-section h2 {
		font-size: 70px;
	}

	.club-section p {
		font-size: 23px;
	}

	.club-section form {
		width: fit-content;
		margin: 0 auto;
	}

	.club-section .container {
		width: 50%;
		padding: 80px 70px;
		border-radius: 30px;
		margin: 0 auto;
	}

	.club-section .club-hero__button {
		width: 270px;
		height: 65px;
	}

	.club-section p {
		margin: 30px 0;
	}
}

/* =============================================

ACTIVITÉS

============================================= */

.history-error-message {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
}

.history-error-message .button {
	background-color: var(--main-color);
}

.history-error-message .button:hover {
	background-color: var(--main-light);
}

/* =============================================

CONTENT

============================================= */

body.page .entry-content h4 {
	margin: 0.33rem 0 0.125rem;
	font-size: 24px;
}
