/**
 * Compatibilité avec le contenu de l'ancien thème « clone ».
 *
 * Rôle : les pages existantes restent présentables dès l'activation du thème,
 * le temps de les recomposer avec les compositions Red Corner.
 * À désactiver ensuite : Apparence › Personnaliser › Red Corner › Avancé.
 *
 * Ce fichier est TEMPORAIRE : il ne reprend que les règles de l'ancien thème
 * (clone.css, responsive.css, CSS additionnel) utilisées par le contenu
 * existant, et disparaîtra une fois les pages recomposées.
 */

/* --- Carrousel d'accueil (markup Bootstrap, animé par assets/js/theme.js) --- */

.carousel {
	position: relative;
}

.carousel-inner {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.carousel-item {
	display: none;
	width: 100%;
}

.carousel-item.active {
	display: block;
	animation: rc-legacy-fade 0.6s ease-in-out;
}

@keyframes rc-legacy-fade {
	from {
		opacity: 0.4;
	}
}

.carousel-control-prev,
.carousel-control-next {
	position: absolute;
	top: 65%;
	bottom: 0;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 15%;
	opacity: 0.5;
	transition: opacity 0.15s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
	opacity: 0.9;
}

.carousel-control-prev {
	left: 0;
}

.carousel-control-next {
	right: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
	display: inline-block;
	width: 20px;
	height: 20px;
	background: no-repeat 50% / 100% 100%;
}

.carousel-control-prev-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e");
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.d-block {
	display: block !important;
}

.w-100 {
	width: 100% !important;
}

div#carouselHomeControl {
	height: 65vh;
}

/* L'ancien en-tête était fixe : la bannière d'accueil passait dessous. */
.entry-content > .wp-block-cover:has(#carouselHomeControl) {
	margin-top: calc(var(--rc-header-h) * -1);
}

div#carouselHomeControl .carousel-inner {
	filter: brightness(0.7);
}

div#carouselHomeControl img {
	height: 100vh;
	object-fit: cover;
}

.content-banner {
	position: absolute;
	top: 65%;
	z-index: 99;
	width: 100%;
	text-align: center;
	align-self: center;
}

.content-banner h1.krk-text {
	margin: 25px auto;
	font-family: var(--rc-font-heading);
	font-size: 78px;
	color: #fff;
	text-align: center;
}

#video-container {
	margin-top: 25em;
	text-align: center;
}

#video-container video {
	width: 60%;
}

@media (max-width: 1280px) {
	.carousel-control-prev,
	.carousel-control-next {
		top: 70%;
	}
}

@media (max-width: 1080px) {
	.content-banner h1.krk-text {
		font-size: 60px;
	}

	.carousel-control-prev,
	.carousel-control-next {
		top: 65%;
	}

	#video-container {
		margin-top: 20em;
	}
}

@media (max-width: 768px) {
	.content-banner h1.krk-text {
		font-size: 50px;
	}

	.carousel-control-prev,
	.carousel-control-next {
		top: 61%;
	}
}

@media (max-width: 600px) {
	.content-banner h1.krk-text {
		margin: 32px auto;
		font-size: 39px;
	}
}

@media (max-width: 499px) {
	.content-banner {
		top: 45%;
	}

	.content-banner h1.krk-text {
		font-size: 30px;
	}

	.carousel-control-prev,
	.carousel-control-next {
		top: 18%;
	}

	#video-container {
		margin-top: 5em;
	}

	div#carouselHomeControl img {
		height: 75vh;
	}
}

@media (max-width: 425px) {
	.content-banner h1.krk-text {
		margin: 33px auto;
		font-size: 28px;
	}
}

/* --- Bannières pleine largeur (l'ancien thème forçait toutes les Covers en 100vw) --- */

.entry-content > .wp-block-cover:not(.alignfull) {
	max-width: none !important;
	margin-right: calc(var(--wp--style--root--padding-right, 15px) * -1) !important;
	margin-left: calc(var(--wp--style--root--padding-left, 15px) * -1) !important;
}

/*
 * Sans marge intérieure et sans largeur de contenu imposée : l'ancien thème
 * n'avait pas de « contentSize ». Les bannières des compositions (alignfull ou
 * style « is-style-rc-* ») ne sont pas concernées.
 */
.entry-content .wp-block-cover:not(.alignfull):not([class*="is-style-rc-"]) {
	padding: 0;
}

/* Pas d'espace automatique entre deux sections (les classes mt-* gardent le leur). */
.entry-content > .wp-block-cover:not(.alignfull):not([class*="is-style-rc-"]) {
	margin-top: 0;
	margin-bottom: 0;
}

.entry-content .wp-block-cover:not(.alignfull):not([class*="is-style-rc-"]) .wp-block-cover:not(.alignfull):not([class*="is-style-rc-"]),
.entry-content .wp-block-cover:not([class*="is-style-rc-"]) .wp-block-cover.alignfull {
	width: 100%;
	padding: 0;
}

.entry-content .wp-block-cover:not(.alignfull):not([class*="is-style-rc-"]) > .wp-block-cover__inner-container {
	padding-right: 0;
	padding-left: 0;
}

.entry-content .wp-block-cover:not(.alignfull):not([class*="is-style-rc-"]) > .wp-block-cover__inner-container > * {
	max-width: none;
}

/* Hauteur minimale du contenu (pages courtes : pied de page au même endroit qu'avant). */
.site-main {
	min-height: 600px;
}

/* --- Utilitaires Bootstrap encore présents dans le contenu --- */

.d-none {
	display: none !important;
}

.mt-5 {
	margin-top: 3rem !important;
}

.has-larger-font-size {
	font-size: 42px;
}

/*
 * Colonnes qui glissent à l'apparition (classe « in-view » posée par
 * assets/js/theme.js). Le contenu enregistré porte déjà « in-view » :
 * sans JavaScript, la position finale s'affiche directement.
 */
@media (min-width: 768px) {
	.animation-element.slide-left,
	.animation-element.slide-right {
		opacity: 0;
		transition: all 500ms linear;
	}

	.animation-element.slide-left {
		transform: translate3d(-100px, 20px, 0);
	}

	.animation-element.slide-right {
		transform: translate3d(100px, 20px, 0);
	}

	.animation-element.slide-left.in-view,
	.animation-element.slide-right.in-view {
		opacity: 1;
		transform: translate3d(70px, 20px, 0);
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.animation-element.slide-left.in-view,
	.animation-element.slide-right.in-view {
		transform: translate3d(0, 0, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.animation-element.slide-left,
	.animation-element.slide-right {
		transition: none;
	}
}

.image-mobile {
	display: none !important;
}

@media (max-width: 768px) {
	.image-web {
		display: none !important;
	}

	.image-mobile {
		display: block !important;
	}
}

/* --- Boutons « .bouton » (liens HTML) : mêmes rendus que .rc-btn --- */

.bouton {
	position: relative;
	display: inline-block;
	isolation: isolate;
	overflow: hidden;
	padding: 1em 2em;
	border-radius: 15px;
	outline: 2px solid var(--rc-red);
	background: transparent;
	color: #000;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 2px;
	text-decoration: none;
	text-transform: uppercase;
	transition: color var(--rc-sweep) ease;
}

.bouton::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -50px;
	z-index: -1;
	width: 0;
	background-color: var(--rc-red);
	transform: skewX(45deg);
	transition: width var(--rc-sweep) ease;
}

.bouton:hover {
	color: #fff;
}

.bouton:hover::before {
	width: 250%;
}

.bouton.btn-savoir-plus {
	display: flex;
	justify-content: center;
	width: fit-content;
	margin: 0 auto 20px;
}

.bouton.btn-bar-white {
	outline: 4px solid #fff;
	color: #fff !important;
}

.bouton.btn-bar-white::before {
	background-color: #fff;
}

.bouton.btn-bar-white:hover {
	color: var(--rc-red) !important;
}

.bouton.btn-reserver {
	display: flex;
	justify-content: center;
	width: 180px;
	margin: 20px auto 0;
	outline: 1px solid var(--rc-red) !important;
	background: var(--rc-red) !important;
}

/* --- Sections de page --- */

.section-page {
	width: 90% !important;
	margin: 5em auto;
}

.slsr-font {
	font-family: var(--rc-font-heading);
	font-weight: 600;
}

/* Tuiles « Nos services » / « Vos souvenirs » */
.col-services {
	position: relative;
}

/* Une image « centrée » prend sinon la largeur de son fichier (photos en portrait). */
.col-services .wp-block-image {
	width: 100%;
}

.col-services img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	filter: brightness(0.7);
	transition: filter 0.3s ease;
}

.col-services:hover img {
	filter: brightness(1);
}

.content-services {
	position: absolute;
	top: 45%;
	right: 0;
	left: 0;
	text-align: center;
}

h3.title-services {
	margin: 0;
	color: #fff !important;
	text-align: center;
}

a.link-services {
	color: #fff;
	font-family: var(--rc-font-heading);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 2px;
}

.section-new-services-circle .col-services img {
	width: 300px;
	height: 300px;
	border-radius: 50%;
}

/* Sections diagonales des pages services (Karaoké Box, Bar Lounge, Food & drinks) */
.col-chapo-services {
	margin-block: 2rem;
}

.banniere-section-services-details {
	clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 90%);
}

.banniere-section-services-details .col-img-right-services-details {
	clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%);
}

.banniere-section-services-details-reverse {
	clip-path: polygon(0 0, 100% 10%, 100% 90%, 0 100%);
}

.banniere-section-services-details-reverse .col-img-left-services-details {
	clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
}

.mt-60 {
	margin-top: -61px !important;
}

.content-services-details {
	gap: 0 !important;
	align-items: center;
}

.image-services-details {
	margin: 0;
}

.image-services-details img {
	width: 100%;
	height: 600px !important;
	object-fit: cover;
}

.col-text-left-services-details {
	padding-left: 5em;
}

.col-text-right-services-details {
	padding-right: 5em;
}

.content-services-details p.has-medium-font-size {
	margin-bottom: 15px !important;
}

@media (max-width: 768px) {
	.banniere-section-services-details,
	.banniere-section-services-details-reverse,
	.banniere-section-services-details .col-img-right-services-details,
	.banniere-section-services-details-reverse .col-img-left-services-details {
		clip-path: none !important;
	}

	.mt-60 {
		margin-top: 0 !important;
	}

	.content-services-details.inverse-mobile {
		flex-direction: column-reverse !important;
	}

	.col-text-left-services-details,
	.col-text-right-services-details {
		padding: 55px 50px !important;
	}

	.image-services-details img {
		height: 400px !important;
	}
}

/* Page Contact */
.section-contact a {
	color: #c11b29;
}

.section-contact a:hover {
	color: var(--rc-muted);
}

.icon-contact {
	margin-bottom: 1rem;
	text-align: center;
}

.bandeau-cm-venir .wp-block-cover__inner-container {
	padding: 2rem 0;
	background: #c11b29;
}

.bandeau-cm-venir h2,
.col-venir h3,
.col-venir p {
	color: #fff !important;
}

.div-cm-venir {
	width: 80%;
	padding: 0 2rem;
}

/* Pages légales */
/* 13px : écart entre l'ancien contenu (98px) et l'ancien en-tête fixe (85px). */
.content-mentions-legales-cgv {
	width: 90% !important;
	margin: calc(1em + 13px) auto 4em;
}

/* Gris d'origine assombri juste assez pour le contraste AA sur le fond clair. */
.content-mentions-legales-cgv a {
	color: #6b6b6b;
}

.content-mentions-legales-cgv a:hover,
.content-mentions-legales-cgv a:focus-visible {
	color: #c0041f;
}

/* --- Accueil --- */

.wp-block-columns.section-salle-karaoke {
	width: 75%;
}

.link-title a:hover {
	color: #c00418;
}

.wp-block-columns.section-new-services .content-2-photos {
	margin-top: 2em;
}

/* --- Page Red Corner --- */

.content-text-page {
	position: absolute;
	bottom: 240px;
	left: 265px;
	z-index: 9999;
	width: 100%;
	min-width: 660px;
	max-width: 820px;
	padding: 45px 150px;
	text-align: center;
}

h2.title-h2 {
	font-size: 18px;
}

h2.title-h2-nos-salles {
	margin-top: 5%;
}

.col-text-redCorner {
	padding: 50px 80px;
}

/* --- Page Contact --- */

/*
 * Ancien thème : contenu à 98px sous un en-tête fixe, bannière remontée de 7rem.
 * Même position ici avec l'en-tête collant.
 */
.contact-us-banner {
	margin-top: calc(98px - 7rem - var(--rc-header-h)) !important;
}

.contact-us-banner img {
	border-radius: 0 !important;
}

.section-contact .col-3-contact {
	width: 100%;
	margin: 0 auto;
	gap: 0 !important;
}

.col-contact {
	height: auto;
	padding: 2rem;
}

.div-block-center {
	align-self: center;
}

.div-block-center:nth-child(1) {
	position: relative;
	top: 0.5rem;
}

.center-col-contact p {
	font-size: 28px;
}

.center-col-contact .icon-contact {
	margin-bottom: 4rem;
}

.content-cart {
	width: 80%;
	margin: 0 auto;
}

/* --- Pages services (Karaoké Box, Bar Lounge, Food & Drinks, Pro) --- */

@media (max-width: 600px) {
	.content-text-services-details {
		padding: 0 20px !important;
	}
}

/* --- Pages souvenirs et Sing it --- */

.section-page-souvenir {
	width: 90% !important;
	margin: 2em auto;
}

.section-text-photos-soirees {
	width: 60% !important;
	margin: 2em auto;
}

/* 80 % du conteneur Bootstrap de l'ancien thème (1110px de contenu). */
.col-happy-new-year {
	width: min(80%, 888px);
	margin: 0 auto;
}

p.p-surtitre {
	margin: 0;
}

a.btn-form {
	display: inline-block;
	width: fit-content !important;
	padding: 1em 15px !important;
	font-weight: normal !important;
	text-transform: capitalize !important;
}

.button-salle {
	width: 40% !important;
	margin: 0 auto !important;
	padding: 1em 0 !important;
	font-size: 15px !important;
	font-weight: bold !important;
	text-align: center !important;
}

.button-salle::before {
	background-color: #6d030f !important;
}

a.bouton.btn-bar-white.btn-reserver.button-salle:hover {
	color: #fff !important;
	outline: 1px solid #6d030f !important;
}

@media (max-width: 768px) {
	.image-mobile-event {
		display: none;
	}

	.image-web-event {
		display: flex !important;
	}

	.col-happy-new-year {
		width: 75% !important;
		flex-direction: column-reverse;
	}
}

@media (max-width: 767px) {
	.wp-block-columns.margin-big.pd-t-70.invers-tablet {
		flex-direction: column-reverse;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.wp-block-columns.margin-big.pd-t-70.invers-tablet {
		flex-direction: column-reverse;
	}
}

@media (max-width: 600px) {
	.button-salle {
		width: 60% !important;
		padding: 15px 0 !important;
	}
}

@media (max-width: 499px) {
	.wp-block-columns.section-text-photos-soirees {
		width: 90% !important;
	}
}

/* --- Diaporama des pages salles (ancien Slick, animé par assets/js/theme.js) --- */

.product-image-carousels {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin-bottom: 2.5em;
}

.main-image-slider {
	position: relative;
	width: min(500px, 100%);
	height: 400px;
}

.main-image-slider .image-link {
	display: flex !important;
	height: 100%;
	overflow: hidden;
}

.product-image-carousels.is-ready .main-image-slider .image-link:not(.is-active) {
	display: none !important;
}

.content-slide-salles img.img-slide-salles {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: contain !important;
}

.rc-legacy-slider__nav {
	position: absolute;
	top: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(0 0 0 / 35%);
	color: #fff;
	cursor: pointer;
	transform: translateY(-50%);
}

.rc-legacy-slider__nav--prev {
	left: 10px;
}

.rc-legacy-slider__nav--next {
	right: 10px;
}

.rc-legacy-slider__thumbs {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 90px;
}

.thumbnails-slider {
	display: flex;
	flex-direction: column;
	gap: 1px;
	width: 90px;
	max-height: calc(79px * 4 + 3px);
	overflow: hidden;
}

.thumbnail-button {
	flex: none;
	height: 79px;
	padding: 0;
	border: 0;
	background: rgb(0 0 0 / 40%);
	cursor: pointer;
}

.thumbnail-button img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.3;
	filter: grayscale(0.6);
	transition: all 0.1s linear;
}

.thumbnail-button:hover img,
.thumbnail-button:focus-visible img,
.thumbnail-button[aria-current] img {
	opacity: 1;
	filter: grayscale(0);
}

.rc-legacy-slider__thumbs-nav {
	display: grid;
	place-items: center;
	width: 100%;
	height: 30px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgb(0 0 0 / 70%);
	cursor: pointer;
}

.rc-legacy-slider__thumbs-nav svg {
	transform: rotate(90deg);
}

.content-slide-salles.content-mobile {
	display: none;
}

@media (max-width: 980px) {
	.content-slide-salles.content-mobile {
		display: flex !important;
		justify-content: center;
	}

	.content-slide-salles.content-web {
		display: none;
	}
}
