/**
 * Red Corner — styles globaux.
 *
 * Couleurs, polices et tailles viennent de theme.json (variables --wp--preset--*).
 * Ce fichier ne contient que ce qui est présent sur toutes les pages :
 *
 *  1. Variables et base
 *  2. Accessibilité
 *  3. Boutons (effet de balayage rouge au survol)
 *  4. En-tête et menu
 *  5. Pied de page
 *  6. Fenêtres modales (réservation, panier)
 *  7. Contenus (pages texte, listes, pagination)
 *  8. Formulaires (Contact Form 7 compris)
 *  9. Préférences de mouvement réduit
 *
 * Les styles propres à un bloc sont dans assets/css/blocks/ (chargés à la demande).
 */

/* ==========================================================================
   1. Variables et base
   ========================================================================== */

:root {
	--rc-red: var(--wp--preset--color--primary, #c00418);
	/* Icônes des détails de réservation (tiroir, panier, commande), utilisées en masque CSS. */
	--rc-ico-date: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3crect x='3' y='5' width='18' height='16' rx='2'/%3e%3cpath d='M16 3v4M8 3v4M3 10h18'/%3e%3c/svg%3e");
	--rc-ico-time: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='9'/%3e%3cpath d='M12 7v5l3 2'/%3e%3c/svg%3e");
	--rc-ico-people: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M16 20v-1.5a3.5 3.5 0 0 0-3.5-3.5h-5A3.5 3.5 0 0 0 4 18.5V20'/%3e%3ccircle cx='10' cy='8' r='3.5'/%3e%3cpath d='M20 20v-1.5a3.5 3.5 0 0 0-2.5-3.35M15.5 4.7a3.5 3.5 0 0 1 0 6.6'/%3e%3c/svg%3e");
	--rc-ico-ticket: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M3 7a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v3a2 2 0 0 0 0 4v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-3a2 2 0 0 0 0-4z'/%3e%3c/svg%3e");
	--rc-red-dark: var(--wp--preset--color--primary-dark, #6d030f);
	--rc-ink: var(--wp--preset--color--black, #000);
	--rc-muted: var(--wp--preset--color--muted, #808080);
	--rc-white: #fff;
	--rc-black: #000;
	--rc-line: #e5e5e5;
	--rc-header-h: var(--wp--custom--header--height, 85px);
	--rc-radius: var(--wp--custom--radius, 15px);
	--rc-sweep: var(--wp--custom--sweep-duration, 1000ms);
	--rc-font-system: var(--wp--preset--font-family--system);
	--rc-font-heading: var(--wp--preset--font-family--heading);
	--rc-font-body: var(--wp--preset--font-family--body);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-padding-top: var(--rc-header-h);
	/* Place réservée à la barre de défilement : la page ne bouge pas à l'ouverture d'une modale. */
	scrollbar-gutter: stable;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

/* Comme le site d'origine : interface en police système, paragraphes en Source Sans Pro. */
p {
	font-family: var(--rc-font-body);
}

/*
 * Affichage selon l'écran (Bloc › Avancé › Classes CSS additionnelles) :
 * rc-hide-mobile / rc-hide-desktop. Ex. affiche paysage sur ordinateur,
 * affiche portrait sur mobile.
 */
@media (max-width: 781px) {
	.rc-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 782px) {
	.rc-hide-desktop {
		display: none !important;
	}
}

/* Titre suivi d'un contenu : 8 px d'écart (au lieu de l'espacement standard entre blocs). */
:is(.is-layout-flow, .is-layout-constrained) > :is(h1, h2, h3, h4, h5, h6) + * {
	margin-block-start: 0.5rem;
}

.rc-icon {
	flex: none;
	display: inline-block;
	vertical-align: middle;
}

/*
 * Couleur des titres et liens selon le contexte (voir theme.json) :
 * sur une section colorée ou une photo, ils reprennent la couleur du texte
 * au lieu de rester gris foncé / rouge. « currentColor » dans une variable
 * équivaut ici à « inherit ».
 */
:is(.has-text-color, .wp-block-cover:not(.is-light)) {
	--rc-heading: currentColor;
}

:is(
	.has-primary-background-color,
	.has-primary-dark-background-color,
	.has-accent-background-color,
	.has-black-background-color,
	.wp-block-cover:not(.is-light)
) {
	--rc-link: currentColor;
	--rc-link-hover: currentColor;
}


/* ==========================================================================
   2. Accessibilité
   ========================================================================== */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
	word-wrap: normal !important;
}

.skip-link:focus {
	position: fixed !important;
	top: 10px;
	left: 10px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 12px 20px;
	clip: auto;
	clip-path: none;
	background: var(--rc-white);
	color: var(--rc-red);
	font-weight: 700;
}

:focus-visible {
	outline: 2px solid var(--rc-red);
	outline-offset: 3px;
}

/* ==========================================================================
   3. Boutons
   Base partagée par les boutons Gutenberg (.wp-block-button__link) et les
   boutons du thème (.rc-btn). Contour extérieur (outline), comme le site
   d'origine. Survol : un aplat incliné balaie le bouton.
   ========================================================================== */

.rc-btn {
	display: inline-block;
	padding: 1em 2em;
	border: 0;
	border-radius: var(--rc-radius);
	background: transparent;
	color: var(--rc-black);
	font-family: var(--rc-font-system);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 2px;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	cursor: pointer;
}

.rc-btn,
.wp-block-button__link {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	outline: 2px solid var(--rc-red);
	outline-offset: 0;
	transition: color var(--rc-sweep) ease, outline-offset 0.2s ease;
}

.rc-btn::before,
.wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: -50px;
	z-index: -1;
	width: 0;
	background: var(--rc-btn-sweep, var(--rc-red));
	transform: skewX(45deg);
	transition: width var(--rc-sweep) ease;
}

.rc-btn:hover,
.rc-btn:focus-visible {
	color: var(--rc-white);
}

.rc-btn:hover::before,
.rc-btn:focus-visible::before,
.wp-block-button__link:hover::before,
.wp-block-button__link:focus-visible::before,
.rc-choice:hover .rc-btn::before,
.rc-choice:focus-visible .rc-btn::before {
	width: 250%;
}

/* Variante « Plein rouge » */
.rc-btn--solid,
.wp-block-button.is-style-rc-solid .wp-block-button__link {
	--rc-btn-sweep: var(--rc-white);
	outline-width: 1px;
	background: var(--rc-red);
	color: var(--rc-white);
}

.rc-btn--solid:hover,
.rc-btn--solid:focus-visible,
.wp-block-button.is-style-rc-solid .wp-block-button__link:hover,
.wp-block-button.is-style-rc-solid .wp-block-button__link:focus-visible {
	background: var(--rc-red);
	color: var(--rc-red);
}

/* Variante « Blanc (sur photo) » */
.rc-btn--light,
.wp-block-button.is-style-rc-light .wp-block-button__link {
	--rc-btn-sweep: var(--rc-white);
	outline: 4px solid var(--rc-white);
	background: transparent;
	color: var(--rc-white);
}

.rc-btn--light:hover,
.rc-btn--light:focus-visible,
.rc-choice:hover .rc-btn--light,
.rc-choice:focus-visible .rc-btn--light,
.wp-block-button.is-style-rc-light .wp-block-button__link:hover,
.wp-block-button.is-style-rc-light .wp-block-button__link:focus-visible {
	background: transparent;
	color: var(--rc-red);
}

/* Focus clavier : le contour s'écarte du bouton pour rester bien visible. */
.rc-btn:focus-visible,
.wp-block-button .wp-block-button__link:focus-visible {
	outline-offset: 4px;
}

.rc-btn--block {
	display: block;
	width: 100%;
}

/* ==========================================================================
   4. En-tête et menu
   ========================================================================== */

.rc-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--rc-header-h);
	background: var(--rc-white);
}

.admin-bar .rc-header {
	top: 32px;
}

.rc-header__inner {
	display: flex;
	align-items: center;
	gap: 15px;
	height: 100%;
	padding: 0 2rem;
}

.rc-header__brand .custom-logo {
	display: block;
	width: 150px;
	height: auto;
}

.rc-nav {
	margin-left: auto;
}

.rc-nav__list,
.rc-nav__list .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-nav__list {
	display: flex;
	align-items: center;
}

.rc-nav__list li {
	position: relative;
}

.rc-nav__list a {
	display: block;
	padding: 10px 15px;
	color: var(--rc-red);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease-in;
}

.rc-nav__list a:hover,
.rc-nav__list a:focus-visible,
.rc-nav__list .current-menu-item > a,
.rc-nav__list .current_page_item > a {
	color: var(--rc-muted);
}

.rc-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	display: none;
	min-width: 220px;
	padding: 8px 0;
	background: var(--rc-white);
	box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}

.rc-nav__list li:hover > .sub-menu,
.rc-nav__list li:focus-within > .sub-menu {
	display: block;
}

.rc-header__actions {
	display: flex;
	align-items: center;
	column-gap: 15px;
}

/* Bouton « Réservation » de l'en-tête */
.rc-btn--header {
	padding: 10px 15px;
	color: var(--rc-red);
	font-size: 16px;
	font-weight: 600;
}

.rc-header__cart {
	position: relative;
	display: flex;
	padding: 4px;
	color: var(--rc-red);
}

.rc-header__cart:hover {
	color: var(--rc-red-dark);
}

.rc-header__cart-count {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--rc-red);
	color: var(--rc-white);
	font-size: 11px;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}

.rc-header__cart-count[hidden] {
	display: none;
}

/* Bouton « burger » (mobile) */
.rc-header__toggle {
	display: none;
	padding: 6px;
	border: 0;
	background: none;
	cursor: pointer;
}

.rc-burger {
	display: block;
}

.rc-burger span {
	display: block;
	width: 30px;
	height: 2px;
	margin: 6px 0;
	background: var(--rc-red);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.rc-header__toggle[aria-expanded="true"] .rc-burger span:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}

.rc-header__toggle[aria-expanded="true"] .rc-burger span:nth-child(2) {
	opacity: 0;
}

.rc-header__toggle[aria-expanded="true"] .rc-burger span:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 991px) {
	.rc-header__inner {
		padding: 0 1rem;
	}

	.rc-header__actions {
		flex: 1;
	}

	.rc-header__toggle {
		display: block;
		order: -1;
	}

	.rc-btn--header {
		margin-left: auto;
	}

	.rc-nav {
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		display: none;
		max-height: calc(100vh - var(--rc-header-h));
		overflow-y: auto;
		background: var(--rc-white);
		box-shadow: 0 12px 24px rgb(0 0 0 / 10%);
	}

	.rc-nav.is-open {
		display: block;
	}

	.rc-nav__list {
		flex-direction: column;
		padding: 1rem 0 1.5rem;
		text-align: center;
	}

	.rc-nav__list .sub-menu {
		position: static;
		display: block;
		box-shadow: none;
	}
}

@media (max-width: 980px) {
	:root {
		--rc-header-h: var(--wp--custom--header--height-mobile, 75px);
	}
}

@media (max-width: 782px) {
	.admin-bar .rc-header {
		top: 46px;
	}
}

@media (max-width: 600px) {
	/* La barre d'administration n'est plus fixe sous 600 px. */
	.admin-bar .rc-header {
		top: 0;
	}
}

@media (max-width: 499px) {
	.rc-btn--header {
		padding: 8px 10px;
		font-size: 13px;
		letter-spacing: 0;
		text-transform: none;
	}
}

@media (max-width: 425px) {
	.rc-header__brand .custom-logo {
		width: 120px;
	}
}

/* Bandeau d'annonce (au-dessus de l'en-tête) */
.rc-announce {
	padding: 10px 15px;
	background: var(--rc-red);
	color: var(--rc-white);
	text-align: center;
}

.rc-announce__text {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
}

.rc-announce__link {
	margin-left: 0.5em;
	color: var(--rc-white);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.rc-announce__link:hover,
.rc-announce__link:focus-visible {
	color: var(--rc-white);
	text-decoration-thickness: 2px;
}

/* ==========================================================================
   5. Pied de page
   ========================================================================== */

.rc-footer {
	padding: 40px 0;
	background: var(--rc-black);
	color: var(--rc-white);
}

.rc-footer__inner {
	display: flex;
	align-items: flex-start;
	column-gap: 2rem;
	padding: 0 100px;
}

/* Le menu démarre au tiers du logo, comme sur le site d'origine. */
.rc-footer__nav {
	padding-top: 21px;
}

.rc-footer__logo {
	display: block;
	width: 200px;
	height: auto;
}

.rc-footer__text {
	margin: 10px 0 0;
	color: var(--rc-white);
	font-size: 15px;
}

.rc-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 4rem;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}

.rc-footer__menu a {
	display: block;
	color: var(--rc-white);
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	text-decoration-color: var(--rc-red);
	text-decoration-thickness: 2px;
	text-underline-offset: 6px;
}

.rc-footer__menu a:hover,
.rc-footer__menu a:focus-visible {
	color: var(--rc-white);
	text-decoration-line: underline;
}

.rc-social {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-social__link {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--rc-white);
	color: var(--rc-black);
	transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.rc-social__link .rc-icon {
	transition: transform 0.3s ease-in-out;
}

.rc-social__link:hover,
.rc-social__link:focus-visible {
	background: #bd0418;
	color: var(--rc-white);
}

.rc-social__link:hover .rc-icon,
.rc-social__link:focus-visible .rc-icon {
	transform: scale(1.2);
}

@media (max-width: 768px) {
	.rc-footer__inner {
		flex-direction: column;
		row-gap: 2rem;
		width: 80%;
		margin: 0 auto;
		padding: 0 25px;
	}

	.rc-footer__nav {
		padding-top: 0;
	}

	.rc-footer__menu {
		flex-direction: column;
		row-gap: 20px;
	}
}

@media (max-width: 600px) {
	.rc-footer__inner {
		width: 65%;
	}
}

@media (max-width: 375px) {
	.rc-footer__inner {
		width: 70%;
		padding: 0 6px;
	}
}

/* ==========================================================================
   6. Fenêtres modales (<dialog> natif : clavier, focus et Échap gérés par le navigateur)
   ========================================================================== */

.rc-dialog {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
}

.rc-dialog[open] {
	display: flex;
}

.rc-dialog::backdrop {
	background: rgb(0 0 0 / 55%);
	backdrop-filter: blur(8px);
	animation: rc-fade-in 0.3s ease-out;
}

@keyframes rc-fade-in {
	from {
		opacity: 0;
	}
}

/* Le focus initial est posé sur le panneau (pas sur la croix) : aucun contour parasite. */
:is(.rc-drawer, .rc-reservation):focus {
	outline: none;
}

html:has(.rc-dialog[open]) {
	overflow: hidden;
}

.rc-dialog__close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rc-white);
	color: var(--rc-red);
	cursor: pointer;
}

.rc-dialog__close:hover {
	color: #75030f;
}

/* --- Pop-up de la soirée mise en avant (accueil) --- */

.rc-dialog--popup {
	align-items: center;
	justify-content: center;
	padding: var(--wp--preset--spacing--40);
}

.rc-popup {
	position: relative;
}

.rc-popup img {
	display: block;
	width: auto;
	max-width: min(100%, 480px);
	height: auto;
	max-height: calc(100vh - 2 * var(--wp--preset--spacing--40));
}

.rc-popup .rc-dialog__close {
	position: absolute;
	top: 8px;
	right: 8px;
}

/* --- Modale « Réservation » --- */

.rc-dialog--reservation {
	align-items: center;
	justify-content: center;
}

.rc-reservation {
	position: relative;
	width: 80%;
	padding: 30px;
}

.rc-reservation .rc-dialog__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
}

.rc-reservation__choices {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 1em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-choice {
	position: relative;
	display: block;
	text-decoration: none;
}

.rc-choice__img {
	display: block;
	background: #1a1a1a;
	width: 100%;
	height: 500px;
	object-fit: cover;
}

.rc-choice .rc-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	white-space: nowrap;
	transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
	.rc-reservation {
		width: 100%;
		max-height: 100%;
		padding: 60px 15px 15px;
		overflow-y: auto;
	}

	.rc-choice__img {
		height: 38vh;
	}
}

/* --- Tiroir « Mon panier » --- */

.rc-dialog--drawer {
	justify-content: flex-end;
}

.rc-drawer {
	display: flex;
	flex-direction: column;
	width: 30%;
	min-width: min(380px, 100%);
	height: 100%;
	padding: 0 20px 20px;
	overflow-y: auto;
	background: var(--rc-white);
	box-shadow: -12px 0 40px rgb(0 0 0 / 25%);
	animation: rc-drawer-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes rc-drawer-in {
	from {
		transform: translateX(100%);
	}
}

/* Contenu révélé juste après le panneau. Fondu seul : un décalage ferait déborder le panneau
   (défilable) et apparaître une barre horizontale le temps de l'animation. */
.rc-drawer > * {
	animation: rc-fade-in 0.35s 0.15s ease-out backwards;
}

/* Fermeture : classe posée par theme.js, la fenêtre se ferme à la fin de l'animation. */
.rc-dialog--drawer.is-closing .rc-drawer {
	animation: rc-drawer-out 0.3s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.rc-dialog--drawer.is-closing::backdrop {
	animation: rc-fade-out 0.3s ease-in forwards;
}

@keyframes rc-drawer-out {
	to {
		transform: translateX(100%);
	}
}

@keyframes rc-fade-out {
	to {
		opacity: 0;
	}
}

.rc-drawer__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 0;
	border-bottom: 1px solid var(--rc-line);
	color: var(--rc-red);
}

.rc-drawer__title {
	margin: 0;
	font-size: 20px;
	text-transform: uppercase;
}

.rc-drawer .rc-dialog__close {
	margin-left: auto;
}

/* Seule la liste défile : titre, total et boutons restent visibles quel que soit le nombre d'articles. */
.rc-drawer > * {
	flex-shrink: 0;
}

.rc-drawer > .rc-cart__items {
	flex: 0 1 auto;
	min-height: 0;
	margin: 0 -8px 0 0;
	padding: 0 8px 0 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-color: var(--rc-line) transparent;
	scrollbar-width: thin;
	list-style: none;
}

/* Ombre légère en haut et en bas quand la liste défile. */
.rc-drawer > .rc-cart__items.is-scrollable {
	mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 16px), transparent 100%);
}

/* Article : photo à gauche ; nom, prix et suppression sur la première ligne ; détails dessous. */
.rc-cart__item {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr) auto auto;
	align-items: start;
	gap: 6px 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--rc-line);
	transition: opacity 0.2s ease;
}

.rc-cart__item.is-removing {
	opacity: 0.4;
}

.rc-cart__thumb {
	grid-row: 1 / span 2;
	grid-column: 1;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--wp--preset--color--blush, #f6e9eb);
}

.rc-cart__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rc-cart__name {
	grid-row: 1;
	grid-column: 2;
	font-weight: 600;
	line-height: 1.3;
}

.rc-cart__price {
	grid-row: 1;
	grid-column: 3;
	font-weight: 600;
	white-space: nowrap;
}

.rc-cart__remove {
	display: grid;
	grid-row: 1;
	grid-column: 4;
	place-items: center;
	width: 32px;
	height: 32px;
	margin: -5px -6px 0 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--rc-muted);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rc-cart__remove:hover,
.rc-cart__remove:focus-visible {
	background: var(--wp--preset--color--blush, #f6e9eb);
	color: var(--rc-red);
}

.rc-cart__remove:focus-visible {
	outline: 2px solid var(--rc-red);
	outline-offset: 1px;
}

.rc-cart__remove:disabled {
	cursor: wait;
}

.rc-cart__meta {
	display: grid;
	grid-row: 2;
	grid-column: 2 / -1;
	gap: 3px;
	margin: 0;
	padding: 0;
	color: var(--rc-ink);
	font-size: 14px;
	line-height: 1.35;
	list-style: none;
}

.rc-cart__detail {
	display: flex;
	gap: 6px;
	align-items: center;
}

.rc-cart__label {
	color: var(--rc-muted);
}

/* Date, horaire, personnes, billet : l'icône remplace le libellé (gardé pour les lecteurs d'écran). */
.rc-cart__detail--date {
	--rc-ico: var(--rc-ico-date);
}

.rc-cart__detail--horaire {
	--rc-ico: var(--rc-ico-time);
}

.rc-cart__detail--personnes {
	--rc-ico: var(--rc-ico-people);
}

.rc-cart__detail--billet {
	--rc-ico: var(--rc-ico-ticket);
}

:is(.rc-cart__detail--date, .rc-cart__detail--horaire, .rc-cart__detail--personnes, .rc-cart__detail--billet)::before {
	flex: none;
	width: 15px;
	height: 15px;
	background: var(--rc-red);
	content: "";
	-webkit-mask: var(--rc-ico) no-repeat center / contain;
	mask: var(--rc-ico) no-repeat center / contain;
}

:is(.rc-cart__detail--date, .rc-cart__detail--horaire, .rc-cart__detail--personnes, .rc-cart__detail--billet) .rc-cart__label {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

.rc-cart__empty {
	padding: 2rem 0;
	text-align: center;
}

.rc-cart__empty[hidden],
.rc-cart__footer[hidden] {
	display: none;
}

.rc-cart__footer {
	padding-top: 1rem;
}

.rc-cart__total {
	display: flex;
	justify-content: space-between;
	margin: 0 0 1rem;
	font-size: 18px;
}

.rc-cart__link {
	display: block;
	margin-top: 0.75rem;
	text-align: center;
}

.rc-cart__tip {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: auto 0 0;
	padding-top: 2rem;
	font-size: 16px;
}

.rc-cart__tip .rc-icon {
	color: var(--rc-red);
}

@media (max-width: 768px) {
	.rc-drawer {
		width: 100%;
	}
}

/* ==========================================================================
   7. Contenus
   ========================================================================== */

.site-main {
	display: block;
}

/* Espace avant le pied de page, sauf sur l'accueil (comme le site d'origine). */
.site-main {
	margin-bottom: 3em;
}

.home .site-main {
	margin-bottom: 0;
}

/* Les sections pleine largeur s'enchaînent sans bande vide entre elles. */
.entry-content > .alignfull + .alignfull {
	margin-block-start: 0;
}

.entry-content > .alignfull:last-child {
	margin-block-end: 0;
}

.rc-text-page {
	padding-block: 3rem 4rem;
}

.rc-entry__title {
	margin: 0 0 1.5rem;
}

.rc-entry__meta {
	margin: -0.75rem 0 1.5rem;
	color: var(--rc-muted);
}

.rc-entry__thumbnail {
	margin-block: 0 2rem;
}

.rc-entry__thumbnail img {
	display: block;
	width: 100%;
}

.rc-entry__footer {
	margin-top: 3rem;
}

.rc-card {
	padding: 1.5rem 0;
	border-bottom: 1px solid var(--rc-line);
}

.rc-card__title {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
}

.rc-card__title a {
	color: var(--rc-ink);
	text-decoration: none;
}

.rc-card__title a:hover {
	color: var(--rc-red);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
}

.nav-links .page-numbers {
	display: inline-block;
	min-width: 2.5em;
	padding: 0.4em 0.8em;
	border-radius: 8px;
	text-align: center;
	text-decoration: none;
}

.nav-links .page-numbers.current {
	background: var(--rc-red);
	color: var(--rc-white);
}

.rc-container {
	max-width: calc(var(--wp--style--global--content-size, 1140px) + 30px);
	margin: 0 auto;
	padding: 3rem 15px;
}

/* ==========================================================================
   8. Formulaires
   ========================================================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="password"],
input[type="date"],
select,
textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.75em 1em;
	border: 1px solid #ccc;
	border-radius: 10px;
	background: var(--rc-white);
	color: inherit;
	font: inherit;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--rc-red);
	outline: 2px solid rgb(192 4 24 / 25%);
	outline-offset: 0;
}

label {
	font-weight: 600;
}

.rc-search {
	display: flex;
	gap: 10px;
	margin-top: 1.5rem;
}

/* Contact Form 7 (sa feuille de style est désactivée, le thème la remplace) */

.wpcf7 .screen-reader-response {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	word-wrap: normal !important;
}

.wpcf7 .hidden-fields-container {
	display: none;
}

.wpcf7-form p {
	margin: 0 0 1rem;
}

.wpcf7-form label {
	display: block;
}

.wpcf7-form-control-wrap {
	position: relative;
	display: block;
	margin-top: 0.35rem;
}

.wpcf7-list-item {
	display: inline-block;
	margin: 0 1em 0 0;
}

.wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	color: var(--rc-red);
	font-size: 14px;
	font-weight: 400;
}

.wpcf7-submit {
	padding: calc(1em - 1px) calc(2em - 1px);
	border: 1px solid var(--rc-red);
	border-radius: var(--rc-radius);
	background: var(--rc-red);
	color: var(--rc-white);
	font: 700 15px/1.5 var(--rc-font-system);
	letter-spacing: 2px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.wpcf7-submit:hover,
.wpcf7-submit:focus-visible {
	background: var(--rc-red-dark);
}

.wpcf7-submit:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.wpcf7-spinner {
	display: inline-block;
	visibility: hidden;
	width: 24px;
	height: 24px;
	margin: 0 12px;
	vertical-align: middle;
	border: 3px solid #ccc;
	border-top-color: var(--rc-red);
	border-radius: 50%;
	animation: rc-spin 1s linear infinite;
}

.wpcf7 form.submitting .wpcf7-spinner {
	visibility: visible;
}

@keyframes rc-spin {
	to {
		transform: rotate(360deg);
	}
}

.wpcf7 form .wpcf7-response-output {
	margin: 1rem 0 0;
	padding: 0.75rem 1rem;
	border: 2px solid var(--rc-red);
	border-radius: 10px;
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none;
}

.wpcf7 form.sent .wpcf7-response-output {
	border-color: #2e7d32;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	border-color: #e0a100;
}

/* ==========================================================================
   9. Mouvement réduit : pas d'animation pour qui l'a demandé au système.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
