/*
 Theme Name:   GeneratePress Jokanim
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

/********************GÉNÉRAL****************/
.page-hero {
	border-top: 1px solid #fff;
	background-image: url(images/cernes-blanches.svg);
	background-position: center right;
	background-size: contain;
	background-repeat: no-repeat;
}
.sous-titre {
	width: calc(100% - 500px);
	font-size: 20px;
}
.content-area * + h2,
.content-area * + h3,
.content-area * + h4,
.content-area * + h5,
.content-area * + h6 {
	margin-top: 20px;
}
h4, h5, h6 {
	margin-bottom: 5px;
}
.inside-left-sidebar ol,
.inside-left-sidebar ul {
	margin: 0 0 1.5em 1em !important;
}
#menu-item-119 a {
	padding-right: 0;
}
#menu-item-120 a {
	padding-left: 0;
}
figure img,
.archive .wp-post-image,
.blog .wp-post-image {
	border-radius: 20px;
}
.single-post img {
	border-radius: 0;
}
.margbotnul {
	margin-bottom: 0;
}
.wp-block-buttons {
	margin: 20px 0;
}
.wp-block-gallery {
	margin: 20px 0;
}
.gb-accordion h4 {
	margin-bottom: 0;
	font-size: 18px;
}
.woocommerce-info,
.woocommerce-message {
	border-left: none !important;
}

/********************HOME****************/
.slide-content {
	background: rgba(0, 0, 0, 0.3);
}
.home .site-content {
	padding: 0 40px;
}
.section1,
.section3 {
	background-image: url(images/cernes-rouges.svg);
	background-position: center right;
	background-size: contain;
	background-repeat: no-repeat;
}
.section2 .wp-block-group__inner-container {
	padding-bottom: 20px;
	padding-top: 0;
}
.section3 h3 {
	margin-bottom: 0;
}
.section3 h6 {
	margin-bottom: 30px;
}
.home-intro a {
	color: #fff;
}
.home img.emoji {
	display: none !important;
}
.vousetes a {
	color: #333;
}
.vousetes a:hover {
	color: #6a973c;
}
.dashicons-calendar {
	display: none;
}

/* Bannière d'accueil (piste 3) – bas ondulé */
.jk-hero {
	position: relative;
}
.jk-hero::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 90px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 110' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C160,10 300,100 480,70 C660,40 760,0 940,30 C1120,60 1260,105 1440,55 L1440,110 L0,110 Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center bottom / 100% 100%;
	pointer-events: none;
}

/********************LES JEUX****************/
.wcrp-rental-products-availability-checker-applied-notice.woocommerce-message,
.wcrp-rental-products-availability-checker-status {
	display: none;
}
.products li.product {
	background-color: var(--base);
	border-radius: 20px;
}
.products li.product a.button {
	background-color: var(--vert);
	border-radius: 0 0 20px 20px !important;
	width: 100%;
}
.products li.product img {
	border-radius: 20px 20px 0 0;
}
.woocommerce ul.products li.product .woocommerce-loop-category__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h3 {
	color: #000;
	padding: 0;
	margin-bottom: 5px;
	font-size: 20px;
}
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) ul.products li.product .price {
	color: #000;
}
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.wcrp-rental-products-availability-checker-button {
	padding: 6px 12px !important;
	font-weight: 600;
	border-radius: 10px !important;
	font-size: 15px !important;
}
.post-type-archive-product ul.products li.product .price,

.woocommerce ul.products li.product .price{
	font-weight: 500 !important;
	font-size: 16px !important;
}
.woocommerce-shop .woocommerce-breadcrumb,
.archive .woocommerce-breadcrumb {
	display: none;
}
.woocommerce-breadcrumb a:first-of-type {
	font-weight: 700;
}

/********************SINGLE JEUX****************/
.woocommerce div.product .product_title {
	margin-bottom: 15px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price{
	font-weight: 600 !important;
	font-size: 18px !important;
}
.single-product .summary.entry-summary {
	overflow: visible !important;
	display: flow-root;
}
.product_meta .tagged_as {
	display: none;
}
.wcrp-rental-products-rental-return-within {
	display: none;
}

/* Calendrier de location */
.litepicker .container__months::after {
	content: "Pour un seul jour, cliquez deux fois sur la date. Pour une durée supérieure à 5 jours, contactez-nous.";
	flex-basis: 100%;
	padding: 0 12px 12px;
	font-size: 0.85em;
	font-style: italic;
	color: #666;
	text-align: center;
}
.litepicker .month-item-header .reset-button {
	padding: 0;
	margin: 0;
	background: none;
	line-height: 0;
	min-height: 0;
}

/* Onglets */
.tabs.wc-tabs {
	margin: 0 !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs {
	margin-bottom: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li {
	background-color: rgba(0, 0, 0, 0.03);
	border: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
	border: 0;
	background-color: #f3eee9;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: #000;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: #6a973c;
}
.woocommerce-Tabs-panel {
	padding: 20px;
}
#tab-wcrp_rental_products_rental_information {
	background-color: var(--base);
	border-radius: 0 30px 30px 30px;
	padding: 30px !important;
}

/* Description */
.description-jeux .icondesc img {
	width: 90px;
	margin-right: 20px;
}
.icondesc {
	display: flex;
	align-items: center;
	margin-top: 15px;
}
.description-jeux a img {
	width: 35px;
	margin-right: 10px;
}
.description-jeux h5 {
	margin-bottom: 30px;
	font-size: 22px;
}
.description-jeux a {
	display: block;
	color: #963449;
	font-weight: 600;
	margin-top: 30px;
	font-size: 17px;
}

/* Jeux similaires */
.related {
	margin: 80px 0 40px 0;
}
.related ul.products {
	margin: 0 !important;
}
.related.products h2 {
	font-size: 24px;
}

/********************PANIER / PAIEMENT****************/
.woocommerce-cart .wc-block-components-product-metadata__description,
.woocommerce-checkout .wc-block-components-product-metadata__description {
	display: none;
}
.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout {
	--wp--preset--font-size--small: 17px;
}
.jokanim-tables-notice {
	margin-top: 40px;
}
.woocommerce-MyAccount-navigation li a {
	font-size: 100%;
}
.woocommerce-cart .wc-block-components-product-badge.wc-block-components-sale-badge {
	display: none;
}

/********************FAQ****************/
.wp-block-details {
	--faq-accent: var(--accent);
	border-radius: 8px;
	margin-block: 0 0.75rem;
	background: #f3eee9;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}
.wp-block-details > summary {
	position: relative;
	display: block;
	list-style: none;
	padding: 1.1rem 3.5rem 1.1rem 1.25rem;
	font-weight: 600;
	font-size: 1.05rem;
	line-height: 1.4;
	cursor: pointer;
}
.wp-block-details > summary::-webkit-details-marker {
	display: none;
}
.wp-block-details > summary:hover,
.wp-block-details[open] > summary {
	color: var(--faq-accent);
}
.wp-block-details > summary:focus-visible {
	outline: 2px solid var(--faq-accent);
	outline-offset: 2px;
	border-radius: 8px;
}

/* Icône + / − */
.wp-block-details > summary::before,
.wp-block-details > summary::after {
	content: "";
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: 14px;
	height: 2px;
	background: currentColor;
	transition: transform 0.25s ease;
}
.wp-block-details > summary::after {
	transform: rotate(90deg);
}
.wp-block-details[open] > summary::after {
	transform: rotate(0deg);
}

/* Contenu */
.wp-block-details > summary ~ * {
	margin-inline: 1.25rem;
}
.wp-block-details > summary + * {
	margin-top: 0;
	padding-top: 1rem;
	border-top: 1px solid var(--faq-border);
}
.wp-block-details > :last-child {
	margin-bottom: 0;
	padding-bottom: 1.25rem;
}
.wp-block-details h3 {
	font-size: 1rem;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}
.wp-block-details .wp-block-list {
	padding-left: 1.25rem;
}
.wp-block-details .wp-block-list li + li {
	margin-top: 0.4rem;
}
.wp-block-details .wp-block-image img {
	border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-details,
	.wp-block-details > summary::before,
	.wp-block-details > summary::after {
		transition: none;
	}
}

/********************ARTICLES****************/
.single-post .site-content {
	max-width: 1300px;
	margin: auto;
}
.single-post .featured-image {
	margin-top: 0.5em !important;
}
.single-post .entry-content {
	margin-top: 30px;
}
.single-post .entry-meta {
	margin-top: 1.5em;
}
.single-post footer.entry-meta {
	font-size: 100%;
}
.single-post footer.entry-meta .gp-icon {
	color: #6a973c;
}
.single-post .wp-block-image {
	margin: 20px 0;
}
.wp-block-latest-posts__list{
	margin-left: 0;
}
/********************RESPONSIVE****************/
.mobile {
	display: none;
}

@media (min-width: 768px) {
	.single-post .featured-image {
		max-width: 50%;
	}
}

@media (max-width: 1150px) {
	.inside-header {
		flex-direction: column;
	}
	.secondary-nav-float-right #secondary-navigation {
		margin-left: 0;
		margin-top: 20px;
	}
}

@media (max-width: 900px) {
	.page-hero {
		background-image: none;
	}
	.sous-titre {
		width: 100%;
	}
}

@media (max-width: 768px) {
	.mobile {
		display: inline;
	}
	#secondary-navigation {
		display: none;
	}
	.wp-block-columns {
		flex-direction: column;
	}
	.wp-block-column:nth-child(2n) {
		margin-left: 0;
	}
	.section1,
	.section3 {
		background-image: none;
	}
	.home .wp-block-gallery .blocks-gallery-item figcaption,
	.page-id-70 .wp-block-gallery .blocks-gallery-item figcaption {
		font-size: 18px;
		top: 30%;
	}
	.photo .gb-grid-column:first-child {
		order: 2;
	}
}
