/*
 * CSS personnalisé chargé uniquement en front-end.
 * Placez ici vos styles globaux et conditionnels.
 */

.rah-indel-custom-note {
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	border-left: 4px solid #1d4ed8;
	background: #eff6ff;
	color: #0f172a;
}

.rah-indel-before-block,
.rah-indel-after-block {
	font-size: 0.8rem;
	color: #64748b;
}

/* Exemple concret : masquer un élément sur une page précise.
 * Condition PHP associée : classe body "rah-indel-hide-hero".
 */
.rah-indel-hide-hero .hero-section,
.rah-indel-hide-hero .ct-hero-section {
	display: none !important;
}

/* Exemple de style d'un bouton personnalisé. */
.rah-indel-blog-post .wp-block-button__link {
	border-radius: 999px;
	padding-inline: 1.25rem;
}

.rah-product-details-blocks {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: 2rem;
	margin-top: 0;
	max-width: 1290px;
	width: 100%;
	margin-inline: auto;
}

.rah-product-details-blocks__item {
	margin-top: 30px;
	overflow: hidden;
}

.rah-product-details-blocks__item:has(> .rah-product-contact-box__title) {
	margin-top: 0;
	border-radius:5px;
}

.rah-product-details-blocks__item > .rah-product-contact-box__title {
	display: block;
	margin: 0;
	border-radius:5px 5px 0px 0px;
}

.rah-product-details-blocks__item:first-child {
	border-top: 1px solid #d7dde5;
}

.rah-product-details-blocks__item--sticky {
    border-top: 0;
	position: sticky;
	top: 40px;
	height: fit-content;
	align-self: start;
	padding-bottom: 10px;
}

.rah-product-details-blocks__title {
	margin: 0;
	padding: 0.75rem 1rem;
	background: #1f4e7d;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius:5px 5px 0px 0px;
}

.rah-product-details-blocks__content {
	padding: 0;
	color: #2f3a45;
	border-radius:0px 0px 5px 5px;
}

.rah-product-details-blocks__table {
	width: 100%;
	border-collapse: collapse;
}

.rah-product-details-blocks__table th,
.rah-product-details-blocks__table td {
	padding: 0.65rem 1rem;
	border: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-left-color: transparent !important;
	text-align: left;
}

.rah-product-details-blocks__table tr,
.rah-product-details-blocks__table tbody,
.rah-product-details-blocks__table {
	border: none !important;
}

.rah-product-details-blocks__table tbody tr {
	border: none !important;
}

.rah-product-details-blocks__table tbody tr th,
.rah-product-details-blocks__table tbody tr td {
	border-top: 1px solid #d7dde5 !important;
	border-bottom: 1px solid #d7dde5 !important;
}

.rah-product-details-blocks__table tbody tr th {
	border-left: 1px solid #d7dde5 !important;
}

.rah-product-details-blocks__table tbody tr td {
	border-right: 1px solid #d7dde5 !important;
}

.rah-product-details-blocks__table th {
	font-weight: 500;
	color: #344250;
	width: 48%;
}

.rah-product-details-blocks__table td {
	font-weight: 700;
	color: #1f4e7d;
	text-align: right;
}

.rah-product-details-blocks__value--in-stock {
	color: #17803d !important;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	width: 100%;
}

.rah-product-details-blocks__value--in-stock::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: #17803d !important;
}

.rah-product-details-blocks__value--unavailable {
	color: #c62828 !important;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	width: 100%;
}

.rah-product-details-blocks__value--unavailable::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: #c62828 !important;
}

.rah-product-details-blocks__value--restocking {
	color: #ef6c00 !important;
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.35rem;
	width: 100%;
}

.rah-product-details-blocks__value--restocking::before {
	content: '';
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 999px;
	background: #ef6c00 !important;
}

.rah-product-details-blocks__value--france::after {
	content: ' 🇫🇷';
}

.rah-product-details-blocks__item:first-child .rah-product-details-blocks__table tbody tr:nth-child(odd) {
	background-color: #ffffff;
}

.rah-product-details-blocks__item:first-child .rah-product-details-blocks__table tbody tr:nth-child(even) {
	background-color: #f4f8ff;
}

.rah-product-details-blocks__item--sticky .rah-product-details-blocks__table tbody tr {
	background-color: #fff;
}

.rah-product-details-blocks__content > :first-child {
	margin-top: 0;
}

.rah-product-details-blocks__content > :last-child {
	margin-bottom: 0;
}

@media (max-width: 1024px) {
	.rah-product-details-blocks {
		grid-template-columns: 1fr;
		margin-inline: 21px;
		width: auto;
	}

	.rah-product-details-blocks__item--sticky {
		position: static;
		top: auto;
	}
}

.rah-product-info-subtitle {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.55rem 0.65rem 0.55rem 15px;
	background: #e2e2e2;
	color: #263238;
	font-size: 14px;
}

.rah-product-info-subtitle__icon,
.rah-product-details-blocks__subtitle-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: #f2c300;
	color: #000;
	font-size: 0.7rem;
	line-height: 1;
}

.rah-product-details-blocks__subtitle {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 0.55rem 0.65rem 0.55rem 15px;
	background: #e2e2e2;
	color: #263238;
	font-size: 14px;
}

.rah-product-details-blocks__conformities {
	border: 1px solid #d7dde5;
	padding-left: 32px;
}

.rah-product-details-blocks__conformities li {
	padding: 5px 12px 0px 5px;
}

.rah-product-details-blocks__conformities li::marker {
	color: #f2c300;
}

.rah-product-subtitle {
	margin-bottom:0px!important;
	font-size: 18px;
	font-weight: 700;
	color: #d4a000;
}

.rah-product-mentions-importantes {
	padding-top: 10px;
	padding-bottom: 10px;
	color: #1f4e7d;
	font-size: 12px;
}

.rah-product-mentions-importantes strong {
	display: block;
	margin-bottom: 0.2rem;
}

.rah-product-mentions-importantes p {
	margin: 0;
	color: inherit;
}

.woocommerce-product-details__short-description,
.product_title.entry-title {
	margin: 0px!important;
}

.woocommerce-product-details__short-description p {
	margin-block-end: 0px!important;
}

/* Séparateur visuel sur le bloc "Caractéristiques techniques" */
.rah-product-details-blocks__item {
	padding-top: 30px;
	margin-top:30px;
	border-radius:0px 0px 5px 5px;
}

/* Cartes produits WooCommerce (archive boutique/catégorie) */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #ffffff;
	border-radius: 5px;
	padding: 20px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
	box-shadow: 0 3px 8px rgba(30, 77, 122, 0.08);
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover,
.woocommerce ul.products li.product.rah-loop-product-card--hover,
.woocommerce-page ul.products li.product.rah-loop-product-card--hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 24px rgba(30, 77, 122, 0.16);
}

.rah-loop-product-reference {
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #1f2937;
}

.rah-loop-product-separator {
	height: 1px;
	background: #d1d5db;
	margin: 10px 0 8px;
}

.rah-loop-product-specs {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: #374151;
}

.rah-loop-product-specs__item + .rah-loop-product-specs__item {
	margin-top: 4px;
}

.rah-loop-product-specs__item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.rah-loop-product-specs__label {
	text-align: left;
}

.rah-loop-product-specs__value {
	text-align: right;
	font-weight: 700;
}

.woocommerce ul.products li.product .ct-woo-card-actions,
.woocommerce-page ul.products li.product .ct-woo-card-actions {
	display: flex;
	justify-content: center;
}

.woocommerce ul.products li.product .ct-woo-card-actions .button,
.woocommerce-page ul.products li.product .ct-woo-card-actions .button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce-page ul.products li.product a.button.product_type_simple {
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	text-align: center;
	font-weight: 700;
	background: #e0ebf2;
	color: #1e4d7a;
	border-color: #e0ebf2;
}

.woocommerce ul.products li.product .ct-woo-card-actions .button:hover,
.woocommerce-page ul.products li.product .ct-woo-card-actions .button:hover,
.woocommerce ul.products li.product a.button.product_type_simple:hover,
.woocommerce-page ul.products li.product a.button.product_type_simple:hover {
	background: #1e4d7a;
	color: #ffffff;
	border-color: #1e4d7a;
}

.rah-service-sur-mesure-card {
	background: #0a3b6a !important;
	color: #ffffff;
	min-height: 100%;
}

.rah-service-sur-mesure-card__link {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 100%;
	color: inherit;
	text-decoration: none;
}

/* Hero boutique/catégorie avec visuel à droite */
.woocommerce .hero-section.is-width-constrained[data-type="type-1"],
.woocommerce-page .hero-section.is-width-constrained[data-type="type-1"] {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 44%);
	gap: clamp(24px, 3vw, 52px);
	align-items: center;
}

.rah-shop-hero-media {
	position: relative;
	border-radius: 7px;
	overflow: hidden;
	height: 400px;
	box-shadow: 0 8px 22px rgba(8, 36, 65, 0.14);
	background: #e7eef5;
}

.rah-shop-hero-media__image {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
}

.rah-shop-hero-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top, rgba(10, 58, 107, 0.95) 0%, rgba(10, 58, 107, 0.25) 25%, rgba(10, 58, 107, 0) 62%);
}

.rah-shop-hero-media__caption {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 20px;
	z-index: 1;
	margin: 0;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-wrap: balance;
	max-width: 82%;
}

@media (max-width: 999px) {
	.woocommerce .hero-section.is-width-constrained[data-type="type-1"],
	.woocommerce-page .hero-section.is-width-constrained[data-type="type-1"] {
		grid-template-columns: 1fr;
	}

	.rah-shop-hero-media {
		height: 400px;
	}

	.rah-shop-hero-media__caption {
		left: 18px;
		right: 18px;
		bottom: 16px;
		max-width: 90%;
	}
}

.rah-service-sur-mesure-card__eyebrow {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.9;
}

.rah-service-sur-mesure-card__title {
	margin: 0 0 18px;
	color: #ffffff;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.rah-service-sur-mesure-card__text {
	margin: 0;
	color: #b9d3ea;
	font-size: 18px;
	line-height: 1.35;
}

.rah-service-sur-mesure-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 40px;
	color: #f4b53f;
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	text-decoration: none;
}

.rah-service-sur-mesure-card__arrow {
	font-size: 15px;
	line-height: 1;
}

@media (max-width: 767px) {
	#gspb_text-id-gsbp-042a340,
	#gspb_text-id-gsbp-9ed3fd8 {
		font-size: 24px !important;
	}
}