/**
Theme Name: toledere-astra-child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: toledere-astra-child
Template: astra
*/


/* MEDIA QUERIES */

@media (max-width: 921px) {
	/* la banderole bleu et rouge en format tablette et mobile */
	.ast-primary-header-bar{
		background-image: linear-gradient(90deg,rgb(62,60,117) 39%, rgb(248,248,248) 50%, rgb(131,47,36) 62%) !important;
	}

	/*le header en petits écran est en position absolut, il faut faire un reset pour que les urgences déroulantes ne se placent pas en arrière*/
	.ast-theme-transparent-header #masthead {
    position: static!important;
  }

	/*l'icone de Tolédère dans le header*/
	.site-logo-img img{
		width: 100px !important;
	}
	.site-title{
		font-size: 1.5em;
	}

	/*l'icone de Tolédère dans le footer*/
	.footer-widget-area img{
		max-width: 70%;
	}
}

@media (min-width: 922px){
		/*l'icone de Tolédère dans le header*/
	.site-logo-img img{
		width: 150px !important;
	}
	.site-title{
		font-size: 2em;
	}
}

@media (max-width: 360px){
		/*l'icone de Tolédère dans le header*/
	.site-logo-img img{
		width: 70px !important;
	}
	.site-title{
				font-size: 0.8em;
	}
}


/* CUSTOM STYLE */

.site-above-header-wrap{
	margin-left: 0;
	margin-right: 0; 
	padding-left: 0px !important;
	padding-right: 0px !important;
}

.ast-main-header-wrap.main-header-bar-wrap {
	position: sticky !important;
	top: 0;
	width: 100vw;
}

/* rendre le menu nav sticky */
.ast-primary-header-bar {
	background-color: var(--ast-global-color-6);
	background-image: none;
	position: sticky !important;
	top: 0;
	position: -webkit-sticky;
  }

.ast-container, .ast-container-fluid {
/* 	margin-left: auto;
	margin-right: auto; 
	padding-left: 0px !important;
	padding-right: 0px !important;*/
  }


/* enlever l'espace reservé à la carte lors d'une recherche */
.search [id="map-container-user"] {
  height: 0;
  max-width: 0;
}

/* pour que la carte apparaisse */
[id="map-container-admin"] {
  height: 200px;
  max-width: 300px;
}

[id="map-container-user"]{
  height: 300px;
  max-width: 100vw;
}

/* pour que la carte sur la page d'archives soit aligné avec le calendrier*/
.map-container-archive-page > [id="map-container-user"]{
	margin: 40px 20px;
}

/* pour mettre en flex le text avec le calendrier */
[data-activities-and-calendar] {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 40px;
}

/* le nom de l'évènement */
.activities-title{
	font-weight: bold;
	margin-bottom: 0.3em;
	font-family: faustina, sans-serif;
}

/* l'entête h3 avec la date sélectionée */
.activities-selected-date{
	font-weight: 100;
	margin-bottom: 1em;
}

/* le titre dans la section calendrier avec une ligne en dessous */
.ast-archive-description{
	border-bottom: #A0A0A0 solid 1px !important;
	padding-bottom: 0 !important;
	padding-left: 0.5em !important;
}

/* pour mettre en flex le text avec le calendrier */
.single-activity-info {
	margin: 0 40px;
	border: #A0A0A0 solid 1px;
	border-radius: 10px;
	padding: 1em;
}

/* une marge en haut des activités quand il y en a plusieurs à lister */
[data-activities-info] .single-activity-info:not(:first-child) {
	margin-top: 30px;
}

/* pour espacer les éléments date, heure, adresse du sous-titre */
.separated-info {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

[data-activities-info] {
	flex: 1;
}

.activities-selected-date{
	margin-left: 40px;
}

.upcomming-activities{
	margin: 40px;
}

.wrapper-calendar-info{
	max-height: 270px;
	overflow: scroll;
	flex: 1;
	min-width: 300px;
}

/* pour que les pop up du calendrier apparaissent
au dessus de la carte, s'ils s'échevauchent */
[id="map-container-user"] .leaflet-pane {
	z-index: 1;
}

/* pour que le calendrier soit bien aligné */
[id="calendar-container"] {
	margin: 0px 20px;
}

/* l'intérieur du pop-up du calendrier */
.single-cal-popup>p{
	margin: 5px 0 0;
}

/* l'intérieur du calendrier l'orsqu'il y a plusieurs évènements*/
.multi-cal-popup{
	display:flex;
	flex-direction: column;
	max-height: 85px;
	overflow: scroll;
	gap: 10px;
}

/* une classe ajouté au jours de calendrier où il y a un évenement */
.bg-pink{
	background-color: pink!important;
}

/* les flèche du calendrier */
[data-calendar-theme="light"] .vanilla-calendar-arrow::before{
	background-image: none;
  content: ">";
}

.vanilla-calendar-arrow.vanilla-calendar-arrow_prev::before {
  transform: rotate(180deg);
}

.vanilla-calendar-arrow::before {
  height: auto;
}

.vanilla-calendar-arrow.vanilla-calendar-arrow_next::before {
  transform: rotate(-360deg);
}



.toledere_map_meta_box label:not([for="lieu_custom"]){
	display: block;
	margin-bottom: 5px;
}

/* pour les champs input côté administration */
.toledere_map_meta_box input:not([type="checkbox"]),
.toledere_map_meta_box textarea {
  width: 100%;
}

/* montrer ou cacher les partis de la metabox d'après si la case est cochée*/
#lieu_custom:checked ~ [data-custom-true] {
  opacity: 1;
}
#lieu_custom:checked ~ [data-custom-false] {
  opacity: 0.3;
	pointer-events: none;
}

#lieu_custom:not(:checked) ~ [data-custom-true] {
  opacity: 0.3;
	pointer-events: none;
}
#lieu_custom:not(:checked) ~ [data-custom-false] {
  opacity: 1;
}

.invisible: {
	display: none;
}

.options-grises{
	opacity: 03;
	pointer-events: none;
}

/* calendrier -- images d'évènements*/
.single-activity-info .wp-block-image img{
	max-height: 200px;
}


/* creer un logo avec les éléments astra */
.ast-site-identity {
    margin: 1em 0;
    padding: 10px;
    display: flex;
    flex-direction: column-reverse;
	align-items: center;
    background-color: white;
    text-transform: uppercase;
}

/* dans le menu grand écran, les sous-catégories doivent avoir un style à eux */
.toledere-menu-categories {
		font-family: 'Crimson Text', serif;
		font-weight: 600;
		text-transform: uppercase;
}

/* dans le menu grand écran, les éléments des sous-catégories doivent aussi avoir un style à eux */
.toledere-menu-items a{
		padding-left: 2rem !important;
}

/* pour éviter que le menu drop-down ne disparaisse à droite de l'écran */
.main-header-menu .menu-item.focus > .sub-menu, .main-header-menu .menu-item:hover > .sub-menu, .main-header-menu .menu-item > .sub-menu.toggled-on {
  right: 0;
  left: auto;
	visibility: visible;
}

/* dans le menu hamburger, ajouter les lettres majuscules */
.ast-builder-menu-mobile .main-navigation .menu-item > .menu-link {
	text-transform: none !important;
}

/* l'élément urgence */
.toledere-urgence{
	font: spartan-league, sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
}

.toledere-urgence>svg{
	width: 200px;
}

.toledere-urgence>p{
		white-space: nowrap;
  	overflow: hidden;
		margin-bottom: 0;
	}

.separateur{
	width:1px;
	height:6em;
	border:1px black solid;
}

.toledere-urgence-close{
	cursor: pointer;
}

.toledere-urgence-invisible{
	display:none;
}


/* ANIMATIONS */

span.urgence-scroll{
	display:inline-block;
	padding-left:0%;
	animation: scrollbanner 40s linear infinite;
}

@keyframes scrollbanner{
	from {
transform:translatex(0);	}
	to {
	transform:translatex(-50%);

	}
}


/* MAX */
.entry-meta {
	display:none;

}
