/* =========================================================
   HEADER
   ========================================================= */
/* Description / sous-titre du site */
.site-description {
	text-align: center;
	font-family: 'Contrail One', sans-serif;
}

/* Centrer le logo */
.custom-logo {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/* =========================================================
   VIDÉO HEADER — UNIQUEMENT PAGE D'ACCUEIL
   ========================================================= */
/* ---------------------------------------------------------
   PAR DÉFAUT : LA VIDÉO EST CACHÉE PARTOUT
   --------------------------------------------------------- */
#astree-header-video {
	display: none !important;
}

/* ---------------------------------------------------------
   ACCUEIL — DESKTOP UNIQUEMENT
   --------------------------------------------------------- */
@media (min-width: 922px) {
	/* On affiche la vidéo uniquement sur la page d'accueil */
	body.home #astree-header-video {
		display: block !important;
	}
	
	/* On enlève les images de fond */
	body.home #masthead,
			body.home #ast-desktop-header,
			body.home .ast-above-header-wrap,
			body.home .ast-above-header-bar {
		background-image: none !important;
	}
	
	/* -----------------------------------------------------
			   ABOVE HEADER
			   ----------------------------------------------------- */
	body.home .ast-above-header-bar {
		position: relative !important;
		overflow: hidden !important;
	}
	
	/* On supprime les limites de largeur d'Astra */
	body.home .ast-above-header-wrap,
			body.home .site-above-header-wrap,
			body.home .site-above-header-wrap.ast-container {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	
	/* -----------------------------------------------------
			   CONTENEUR VIDÉO
			   ----------------------------------------------------- */
	body.home #astree-header-video {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		width: 100% !important;
		height: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		overflow: hidden !important;
		pointer-events: none !important;
		z-index: 0 !important;
	}
	
	/* -----------------------------------------------------
			   IFRAME YOUTUBE
			   ----------------------------------------------------- */
	body.home #astree-header-video iframe {
		position: absolute !important;
		top: 50% !important;
		left: 50% !important;
		width: 100vw !important;
		height: 56.25vw !important;
		min-width: 100% !important;
		min-height: 100% !important;
		transform: translate(-50%, -50%) !important;
		border: 0 !important;
		pointer-events: none !important;
	}
	
	/* -----------------------------------------------------
			   LOGO + TITRE AU-DESSUS DE LA VIDÉO
			   ----------------------------------------------------- */
	body.home .site-header-above-section-center {
		position: relative !important;
		z-index: 1 !important;
	}
	
	body.home .site-branding {
		position: relative !important;
		z-index: 2 !important;
	}
}

/* ---------------------------------------------------------
   MOBILE — PAS DE VIDÉO
   --------------------------------------------------------- */
@media (max-width: 921px) {
	#astree-header-video,
			.ast-header-html-1 {
		display: none !important;
	}
	
	.ast-above-header-bar {
		min-height: 0 !important;
	}
}

/* =========================================================
   PAGE D'ACCUEIL
   ========================================================= */
/* H3 responsive : "DES TARIFS ACCESSIBLES..." */
.vc_custom_1764165917324 {
	font-size: clamp(28px, 6vw, 70px) !important;
	line-height: 1.2 !important;
}

/* =========================================================
   PROGRAMMATION — RESPONSIVE
   ========================================================= */
/* Mise en page responsive jusqu'à la tablette */
@media (max-width: 1024px) {
	.event-left,
			.event-right {
		flex: 0 0 100%;
		text-align: left;
	}
	
	.event-header-image img {
		max-width: 100%;
	}
	
	.event-container {
		padding: 10px;
	}
	
	.event-title {
		font-size: 1.5rem;
	}
}

/* =========================================================
   TITRES DES SPECTACLES — RESPONSIVE
   ========================================================= */
h2[style*="text-align: center"] {
	font-family: 'Contrail One', sans-serif !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	word-break: keep-all !important;
	overflow-wrap: normal !important;
	white-space: normal !important;
	text-wrap: balance;
	margin: .5em auto;
	text-align: center !important;
	max-width: 95%;
}

/* =========================================================
   PAGES ÉVÉNEMENTS — TITRES
   ========================================================= */
body.single-event .entry-content h2,
body.single-event .wpb_wrapper h2,
body.post-type-archive-event h2,
body.tax-event-categories h2,
body.single-tribe_events .entry-content h2,
body.tribe-events-page-template h2 {
	font-family: 'Contrail One', sans-serif !important;
	font-size: 30px !important;
	font-weight: 400 !important;
	line-height: 1.3 !important;
}

/* =========================================================
   BOUTON "RÉSERVER"
   ========================================================= */
.wp-block-button__link.wp-element-button.btn-reserver {
	color: #ffffff !important;
	background-color: #ff6100;
	border: 2px solid #ff6100;
	border-radius: 8px;
	padding: 6px 30px;
	font-size: 16px;
	text-decoration: none;
	transition: all .2s ease;
}

/* Bouton "Réserver" au survol */
.wp-block-button__link.wp-element-button.btn-reserver:hover {
	background-color: #ffffff !important;
	color: #ff6100 !important;
	border: 2px solid #ff6100 !important;
}

/* =========================================================
   SIDEBAR — PAGES ÉVÉNEMENTS
   ========================================================= */
/* Petit espace au-dessus du premier widget */
#secondary .widget:first-child {
	margin-top: 10px !important;
	padding-top: 40px !important;
}

/* Supprimer les paragraphes vides */
#secondary p:empty {
	display: none;
	margin: 0;
	padding: 0;
}

/* Arrondir les bords de la sidebar */
.sidebar-main {
	border-radius: 12px;
	overflow: hidden;
}

/* Style des widgets de la sidebar */
.ast-separate-container.ast-two-container #secondary .widget {
	background-color: var(--ast-global-color-5) !important;
	border-radius: 12px;
	padding: 20px;
}

/* =========================================================
   SIDEBAR — MOBILE
   ========================================================= */
/* Sur mobile, afficher la sidebar avant le contenu principal */
@media (max-width: 768px) {
	.ast-container {
		display: flex !important;
		flex-direction: column !important;
	}
	
	#secondary {
		order: -1 !important;
	}
}

/* =========================================================
   LOGO ÉVÉNEMENT — MASQUER SI AUCUN LOGO
   ========================================================= */
#secondary img[alt="Logo"][src=""] {
	display: none !important;
}