/* Rodwick home extras — share bar (.gdwsocial), candle (.nav-tabs > i), stamp (.gdwproducts.tab:after).
   Values copied from the Joomla "gdw" template general.css. */

/* ---- share bar ---- */
.rw-share {
	position: relative;
	width: 100%;
	font-family: "PT Serif", serif, Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #161a1d;
}
.rw-share__box {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	height: 93px;
	padding-right: 5.1%;
}
.rw-share__label {
	margin-right: 50px;
	font-size: 1rem;
	line-height: 1.5;
}
.rw-share__links {
	display: flex;
	align-items: center;
	height: 100%;
}
.rw-share__links > * + * { margin-left: 3rem; }
.rw-share__link,
.rw-share__link:visited {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #000;
	fill: #000;
	font-family: "Oswald", sans-serif;
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .7px;
	line-height: 1.15;
	text-transform: uppercase;
	text-decoration: none;
	transition: color .4s ease, fill .4s ease;
}
.rw-share__link svg {
	display: block;
	width: 12px;
	height: 12px;
	margin-right: 11px;
	margin-top: 4px;
	fill: inherit;
}
.rw-share__link--facebook svg { width: 8px; height: 12px; margin-top: 2px; }
.rw-share__link--linkedin svg { height: 14px; }
.rw-share__link span { margin-top: 2px; }
.rw-share__link:hover,
.rw-share__link:focus-visible { color: #003e7e; fill: #003e7e; }

@media (max-width: 991.98px) {
	.rw-share__box {
		height: auto;
		flex-wrap: wrap;
		justify-content: center;
		padding: 35px 15px 20px;
	}
	.rw-share__label { margin: 0 0 12px; width: 100%; text-align: center; }
	.rw-share__links { height: auto; }
	.rw-share__links > * + * { margin-left: 2rem; }
}

/* ---- candle ---- */
.rw-candle {
	display: flex;
	justify-content: center;
	width: 100%;
	line-height: 0;
}
.rw-candle svg {
	display: block;
	width: 21px;
	height: 92px;
}

/* ---- stamp: positioned against the Divi section that contains it ---- */
.et_pb_section:has(.rw-stamp) { position: relative; }
.rw-stamp {
	position: absolute;
	top: 152px;      /* 93px share bar + 59px (Joomla: 7.05% of the products module) */
	right: 7.7%;
	width: 264px;
	height: 254px;
	z-index: 2;
	pointer-events: none;
}
.rw-stamp img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
@media (max-width: 1199.98px) {
	.rw-stamp { top: 110px; right: 25px; width: 150px; height: 144px; }
}
@media (max-width: 991.98px) {
	.rw-stamp { top: 120px; }
}
@media (max-width: 658px) {
	.rw-stamp { right: 10px; }
}
@media (max-width: 608px) {
	.rw-stamp { width: 100px; height: 96px; }
}

/* =========================================================================
   "Magasiner par catégories" — Joomla main .liens (mod_gdwcategory, liens layout)
   ========================================================================= */
.rw-cat {
	/* Unlike rodwick.com (tiles flush against the left edge) the block is centred with side padding */
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 100%;
	max-width: 1800px;
	margin: 0 auto;
	padding: 0 40px;
	font-family: "PT Serif", serif, Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #161a1d;
}
.rw-cat__tiles {
	/* Joomla: both columns are .col-xl (flex 1 0 0); the text column is capped at 490px, the tiles at 1118px */
	flex: 1 1 0;
	min-width: 0;
	max-width: 1118px;
	margin-right: 50px;
}
@media (min-width: 1440px) {
	.rw-cat__tiles { margin-right: 102px; }
}
.rw-cat__stage {
	position: relative;
	padding: 120px 0 60px;
}
@media (min-width: 1380px) {
	.rw-cat__stage { padding-bottom: 51px; }
}
.rw-cat__track {
	display: flex;
	position: relative;
	padding-bottom: 30px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.rw-cat__track::-webkit-scrollbar { display: none; }
.rw-cat__slot {
	flex: 0 0 25%;
	width: 25%;
	scroll-snap-align: start;
}
.rw-cat__item {
	position: relative;
	display: flex;
	justify-content: center;
	max-width: 250px;
	margin: 0 20px 0 10px;
	cursor: pointer;
	box-shadow: -5px 0 0 0 #fff, -10px 0 0 0 #003e7e;
	transition: box-shadow 250ms ease-in-out;
}
.rw-cat__item:before {
	content: "";
	position: absolute;
	inset: 0;
	background: #161a1d;
	opacity: .75;
	mix-blend-mode: multiply;
	z-index: 0;
}
.rw-cat__item:after {
	content: "";
	pointer-events: none;
	position: absolute;
	inset: 0;
	background-color: rgba(152, 162, 170, .5);
	opacity: 0;
	transition: opacity 250ms ease-in-out;
	z-index: 0;
}
.rw-cat__item:hover { box-shadow: 0 0 13px rgba(0, 0, 0, .5); }
.rw-cat__item:hover:after { opacity: 1; }
.rw-cat__link {
	position: absolute;
	inset: 0;
	z-index: 6;
}
.rw-cat__img {
	/* not positioned on purpose: the dark :before / hover :after overlays of the item must paint above it (as in the Joomla CSS) */
	width: 100%;
	padding-bottom: 120%;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
}
.rw-cat__item--tint .rw-cat__img:before {
	content: "";
	position: absolute;
	inset: 0;
	background-color: rgba(0, 62, 126, .75);
	mix-blend-mode: soft-light;
}
.rw-cat__name {
	position: absolute;
	bottom: 35%;
	left: 50%;
	width: 100%;
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	color: #fff;
	letter-spacing: 1px;
	line-height: 1.2;
	z-index: 1;
	transition: color 250ms ease-in-out;
}
@media (min-width: 1200px) {
	/* Joomla only did this between 1200 and 1580px; applied everywhere so a two-line name never touches the icon */
	.rw-cat__name { transform: translate(-50%, 50%); }
}
.rw-cat__h {
	display: block;
	margin: 0 0 8px;
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
}
@media (min-width: 1480px) { .rw-cat__h { font-size: 20px; } }
@media (max-width: 1200px) { .rw-cat__h { font-size: 18px; } }
.rw-cat__icon {
	position: absolute;
	right: 50%;
	bottom: 60%;
	transform: translate(50%, 50%);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	z-index: 5;
}
.rw-cat__icon span {
	display: block;
	width: 35px;
	height: 33px;
	background-color: #fff;
	mask-repeat: no-repeat;
	mask-size: contain;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	-webkit-mask-position: center;
	transition: background-color 250ms ease-in-out;
}
.rw-cat__item:hover .rw-cat__name { color: #161a1d; }
.rw-cat__item:hover .rw-cat__icon span { background-color: #161a1d; }

/* prev / next: only when the strip overflows (JS adds .is-scrollable) */
.rw-cat__controls {
	display: none;
	position: absolute;
	align-items: center;
	z-index: 7;
}
.rw-cat--scrollable .rw-cat__controls { display: flex; }
.rw-cat__prev, .rw-cat__next {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: 0;
}
.rw-cat__prev svg, .rw-cat__next svg {
	width: 52px;
	height: 52px;
	fill: #161a1d;
	transition: fill 250ms ease-in-out;
}
.rw-cat__prev { margin-right: 20px; }
.rw-cat__prev svg { transform: scale(-1, 1); }
.rw-cat__prev:hover svg, .rw-cat__next:hover svg { fill: #003e7e; }
.rw-cat__prev[disabled], .rw-cat__next[disabled] { opacity: .35; cursor: default; }
@media (min-width: 1200px) {
	.rw-cat__controls { left: 99px; top: 19px; }
}

/* text column */
.rw-cat__text {
	flex: 1 1 0;
	min-width: 0;
	max-width: 490px;
	margin: 40px 25px 0 0;
}
.rw-cat__title {
	margin: 0;
	padding: 0;
	max-width: 400px;
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	font-size: 2.3125rem;
	line-height: 1.1675675676;
	letter-spacing: 1.5px;
	color: #003e7e;
}
.rw-cat__intro { margin-top: 26px; }
.rw-cat__intro p {
	margin: 0 0 1em;
	padding: 0;
	font-size: 16px;
	line-height: 1.2;
	letter-spacing: .32px;
}
.rw-cat__intro p:last-child { margin-bottom: 0; }
.rw-cat__btn-desktop { margin-top: 52px; }
.rw-cat__btn-mobile { display: none; }

@media (max-width: 1199.98px) {
	.rw-cat { flex-direction: column; align-items: stretch; padding: 0 16px; }
	.rw-cat__text {
		order: 1;
		flex: 0 0 auto;
		max-width: 490px;
		width: 100%;
		margin: 0 auto;
		padding: 0 1rem 50px;
		text-align: center;
	}
	.rw-cat__title { max-width: none; font-size: 2.25rem; }
	.rw-cat__btn-desktop { display: none; }
	.rw-cat__tiles { order: 2; width: 100%; margin: 0; }
	.rw-cat__stage { padding: 20px 0 120px; }
	.rw-cat__track { max-width: 90%; margin: 0 auto; }
	.rw-cat__slot { flex-basis: 33.3333%; width: 33.3333%; }
	.rw-cat__item { margin: 0 auto; }
	.rw-cat__controls {
		left: 50%;
		bottom: 50px;
		transform: translateX(-50%);
		justify-content: center;
	}
	.rw-cat__btn-mobile { display: block; order: 3; text-align: center; }
}
@media (max-width: 991.98px) {
	.rw-cat__slot { flex-basis: 50%; width: 50%; }
}
@media (max-width: 767.98px) {
	.rw-cat__slot { flex-basis: 100%; width: 100%; }
	.rw-cat__track { padding-bottom: 0; }
	.rw-cat__controls { bottom: 30px; }
}

/* =========================================================================
   "À propos de nous" — Joomla main .gdwmultibutton .about
   Centred and widened compared with rodwick.com (there: 89.8% wide, flush left).
   ========================================================================= */
.rw-about {
	position: relative;
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	max-width: 1520px;
	margin: 0 auto;
	padding: 0 40px;
	font-family: "PT Serif", serif, Arial, Helvetica, sans-serif;
	font-size: 16px;
	color: #161a1d;
}
/* faint flame crossing into the next section (Joomla main::before, 382x872, contain) */
.rw-about:before {
	content: "";
	position: absolute;
	left: 50%;
	top: 122px;
	width: 382px;
	height: 872px;
	margin-left: -36px;
	background-repeat: no-repeat;
	background-size: contain;
	pointer-events: none;
	z-index: 0;
}
.rw-about--no-flame:before { display: none; }
.et_pb_section:has(.rw-about) { overflow: hidden; } /* keeps the flame inside the About section (rodwick.com lets it run into the next one) */

.rw-about__main {
	position: relative;
	flex: 1 1 50%;
	min-width: 0;
	box-sizing: border-box;
	padding: 72px 56px 56px 82px;
	background-color: #003e7e;
	color: #fff;
	z-index: 2;
}
.rw-about__round {
	position: absolute;
	top: -20px;
	right: 49px;
	width: 178px;
	height: 20px;
	background-color: #169cd9;
	border-radius: 20px 20px 0 0;
	z-index: 0;
}
.rw-about__mark {
	position: absolute;
	top: 0;
	right: 71px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	width: 140px;
	height: 100px;
	padding: 3px;
	box-sizing: border-box;
	background-color: #169cd9;
	filter: drop-shadow(0 6px 3.5px rgba(0, 0, 0, .3));
	z-index: 1;
}
.rw-about__mark:after {
	content: "";
	position: absolute;
	top: 100%;
	left: 0;
	width: 0;
	height: 0;
	border-top: 50px solid #169cd9;
	border-left: 70px solid transparent;
	border-right: 70px solid transparent;
}
.rw-about__mark span {
	display: block;
	font-family: "Oswald", sans-serif;
	color: #fff;
	text-transform: uppercase;
	line-height: 1;
}
.rw-about__mark span:first-child { margin-top: 9px; font-size: 1rem; font-weight: 700; height: 12px; }
.rw-about__mark span:nth-of-type(2) { font-size: 3rem; font-weight: 900; line-height: 1.5; }

.rw-about__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: 2.25rem;
	line-height: 1.2;
	color: #fff;
	max-width: calc(100% - 140px);
}
.rw-about__text { max-width: 447px; margin-top: 48px; }
.rw-about__text p {
	margin: 0 0 1em;
	padding: 0;
	font-size: 1rem;
	line-height: 1.2;
	letter-spacing: .33px;
	color: #fff;
}
.rw-about__text p:last-child { margin-bottom: 0; }
.rw-about__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 6.0625rem;
	margin-top: 52px;
	max-width: 100%;
}
.rw-about__buttons .rw-hero__btn { letter-spacing: .28px; }
/* button variants from the Joomla template (.btn.light / .btn.dark) */
.rw-hero__btn.rw-btn--light,
.rw-hero__btn.rw-btn--light:visited { background-color: #fff; color: #003e7e; }
.rw-hero__btn.rw-btn--light:after { background-color: #003e7e; }
.rw-hero__btn.rw-btn--light:hover,
.rw-hero__btn.rw-btn--light:focus-visible { background-color: #003e7e; color: #fff; }
.rw-hero__btn.rw-btn--light:hover:after { background-color: #fff; }
.rw-hero__btn.rw-btn--dark,
.rw-hero__btn.rw-btn--dark:visited { background-color: transparent; color: #fff; }
.rw-hero__btn.rw-btn--dark:after { background-color: transparent; }
.rw-hero__btn.rw-btn--dark:hover,
.rw-hero__btn.rw-btn--dark:focus-visible { background-color: #fff; color: #003e7e; }
.rw-hero__btn.rw-btn--dark:hover:after { background-color: #003e7e; }

.rw-about__grid {
	flex: 1 1 50%;
	min-width: 0;
	display: flex;
	flex-wrap: wrap;
	z-index: 1;
}
.rw-about__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 50%;
	min-height: 254px;
	padding: 20px 15px;
	text-align: center;
	color: #161a1d;
	z-index: 1;
}
.rw-about__item:nth-child(1),
.rw-about__item:nth-child(4) { background-color: #169cd9; color: #fff; }
.rw-about__icon {
	display: block;
	width: 32px;
	height: 50px;
	background-color: currentColor;
	mask-repeat: no-repeat;
	mask-size: contain;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	-webkit-mask-position: center;
}
.rw-about__item-text { max-width: 306px; margin-top: 22px; }
.rw-about__item-text p {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 19.2px;
	letter-spacing: .32px;
	color: inherit;
}

@media (max-width: 1370px) {
	.rw-about__main { padding: 5.5% 4% 5.5% 4%; }
	.rw-about__round { width: 124px; height: 14px; top: -13.5px; right: 54px; }
	.rw-about__mark { width: 98px; height: 70px; }
	.rw-about__mark span:first-child { font-size: 12px; }
	.rw-about__mark span:nth-of-type(2) { font-size: 35px; }
	.rw-about__mark:after { border-top-width: 35px; border-left-width: 49px; border-right-width: 49px; }
	.rw-about__title { max-width: calc(100% - 100px); }
}
@media (max-width: 1199.98px) {
	.rw-about { flex-wrap: wrap; padding: 0 16px; }
	.rw-about:before { display: none; }
	.rw-about__main { flex: 0 0 100%; padding: 5.5% 6% 5.5% 10%; }
	.rw-about__grid { flex: 0 0 100%; }
	.rw-about__item-text { padding: 0 15px; }
}
@media (max-width: 767.98px) {
	.rw-about__main { padding: 10% 5% 9.5% 5%; }
}
@media (max-width: 540.98px) {
	.rw-about__title { font-size: 1.75rem; }
	.rw-about__main { padding: 15% 5% 5.5% 5%; }
	.rw-about__round { right: 13px; }
	.rw-about__mark { right: 25px; }
	.rw-about__buttons { gap: 20px 30px; margin-bottom: 10px; }
	.rw-about__item { width: 100%; }
	.rw-about__item:nth-child(3) { order: 1; }
	.rw-about__item:nth-child(4) { order: 2; }
}

/* =========================================================================
   "Plusieurs marques disponibles" — Joomla .gdwlogoslider
   Lives at the bottom of the grey "Produits vedettes" section: the title stays
   on the grey texture, the white strip below runs full width.
   ========================================================================= */
.rw-brands {
	width: 100%;
	font-family: "PT Serif", serif, Arial, Helvetica, sans-serif;
}
.rw-brands__title {
	margin: 0;
	padding: 50px 5% 62px;
	text-align: center;
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	font-size: 2.25rem;
	line-height: 1.2;
	letter-spacing: 1.8px;
	color: #003e7e;
}
.rw-brands__strip {
	position: relative;
	width: 100%;
	min-height: 232px;
	overflow: hidden;
	background-color: #fff;
	border-top: 1px solid #003e7e;
}
.rw-brands__track {
	display: flex;
	width: max-content;
	min-height: 232px;
	align-items: center;
	animation: rw-brands-scroll var(--rw-brands-duration, 40s) linear infinite;
	will-change: transform;
}
.rw-brands__strip:hover .rw-brands__track,
.rw-brands__strip:focus-within .rw-brands__track { animation-play-state: paused; }
.rw-brands__list {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
}
.rw-brands__item {
	flex: 0 0 auto;
	padding: 0 80px;
}
.rw-brands__link { display: block; }
.rw-brands__item img {
	display: block;
	width: auto;
	height: auto;
	max-height: 101px;
	max-width: 205px;
}
@media (min-width: 1380px) {
	.rw-brands__item { padding: 0 100px; }
	.rw-brands__item img { max-height: 95px; max-width: 171px; }
}
@media (max-width: 767.98px) {
	.rw-brands__item { padding: 0 40px; }
	.rw-brands__item img { max-height: 70px; max-width: 140px; }
	.rw-brands__strip, .rw-brands__track { min-height: 160px; }
	.rw-brands__title { padding: 30px 16px 40px; font-size: 1.75rem; }
}
@keyframes rw-brands-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.rw-brands__track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; }
	.rw-brands__list[aria-hidden="true"] { display: none; }
}
