/* NAVIGATION */
.los-navigation-rdv,
.los-filtre-lieu-container {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: end;
	align-items: center;
	gap: 10px;
}

#los-content-agenda {
	position: sticky;
}

.los-filtre-lieu-container {
	width: 75%;
}

#top .los-filtre-lieu-container label {
	text-wrap: nowrap;
}

#top .los-filtre-lieu-container select {
	margin: 0;
}

#top .col-md-12 {
	padding-left: 0;
	padding-right: 0;
}


/* MAP */
#map-container {
	width: 100%;
}

#top .leaflet-popup-content-wrapper {
	padding: 0;
	border-radius: unset;
	border-top-right-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
}

#top .leaflet-popup-content {
	margin: 0;
}

#top #main .avia-section .template-page {
	padding: 20px 0;
}

#top .leaflet-popup-content p {
	margin: 0;
}

#top .leaflet-popup-content .los-card-description {
	flex-direction: column;
}

#top .leaflet-popup-content .los-card-button {
	flex-direction: unset;
	justify-content: center;
}

.leaflet-popup-content .los-content-image {
	width: 100%;
}

.leaflet-bottom.leaflet-right {
	display: none;
}

#top .los-map {
	height: 550px;
	z-index: 1;
}

.los-map-icon {
	display: flex;
	align-items: center;
}

.leaflet-bottom.leaflet-right {
	display: none;
}

/* POPUP */
.leaflet-popup-content .los-creneaux-content {
	flex-direction: column;
}

#top .leaflet-popup-content .los-creneaux-content .lieux-container {
	padding: 0;
	border: none;
}

#top .leaflet-popup-content .los-tuile-calendar {
	display: none;
} 

#top #wrap_all .leaflet-popup-content .button.los-bouton.los-horraire-detail {
	margin: auto;
}

/* BOUTON CHOIX VUE */
.los-liste-bouton {
	display: flex;
	align-items: center;
	justify-content: right;
	margin-bottom: 10px;
}

#top button.los-desactive-view {
	color: var(--alternate_color_primary);
	background-color: var(--main_color_bg);
}

#top #wrap_all button.los-bouton.los-desactive-view::before {
	background-color: var(--alternate_color_primary);
}

#top #wrap_all .los-bouton:not(.los-bouton-filtre):hover::before {
	background-color: var(--enfold-socket-color-primary);
}

#top #wrap_all .los-bouton:not(.los-bouton-filtre)::before {
	background-color: var(--enfold-socket-color-primary);
}

#top .los-bouton:not(.los-bouton-filtre):hover {
	background-color: var(--alternate_color_secondary);
	color: var(--enfold-socket-color-primary);
	border-color: var(--alternate_color_secondary);
}

#top #wrap_all .los-bouton:not(.los-bouton-filtre) {
	display: flex;
	align-items: center;
	margin: 0;
	font-weight: bold;
}

#top #wrap_all .los-bouton:not(.los-bouton-filtre):hover {
	font-weight: bold;
}

#top #wrap_all .los-bouton:not(.los-bouton-filtre):hover::before {
	background-color: var(--enfold-socket-color-primary);
}

#top .los-bouton {
	padding: 0.75rem;
}

#top .los-bouton i {
	transform: translateX(-0.75rem);
	padding-left: 1.25rem;
}

.los_liste_rdv {
	width: 100%;
}

/* RDV */
.rdv-entete {
	-webkit-box-pack: justify;
	display: flex;
	justify-content: center;
	margin-bottom: 2rem;
	margin-right: 1rem;
}

.rdv_nom {
	text-align: center !important;
	font-weight: lighter;
}

#rdv-choix {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	margin-right: 1rem;
}


@media only screen and (max-width: 1280px) {
    #top .col-md-12, #rdv-container {
		padding-left: 15px;
		padding-right: 15px;
	}
}
@media only screen and (max-width: 767px) {
    body:not(.home) #wrap_all #main #recherche_motif .container::before,
	body:not(.home) #wrap_all #main #los-content-agenda .container::before {
        display: none;
    }
}

/*MOTIFS*/

.motif-container {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	width: 100%;
}


.motif-container label {
	margin-bottom: 1rem;
	width: 100%;
	text-align: left;
	padding-right: 15px;
}

.motif-container * {
	margin-bottom: 1rem;
	width: 90px;
}

.formulaire.row {
	display: none;
}

.creneau_particule {
	padding-left: 3px;
	padding-right: 3px;
}

.creneau_full {
	flex-direction: row !important;
}

@media (max-width: 1380px) {

	.dispo-container [id^="dispo-container-"] {
		flex-direction: column;
		justify-content: flex-start;
		align-items: center;
	}

	.dispo-container [id^="dispo-container-"] .lieux-container article[id^="lieu-"] {
		width: 100%;
		justify-content: center;
		display: flex;
		margin-bottom: 0;
	}

	.dispo-container [id^="dispo-container-"] .lieux-container .btn-lieu-map {
		max-width: 100%;
		width: 75%;
		min-width: 300px;
	}

	.dispo-container [id^="dispo-container-"] .box-cal .days {
		position: relative;
		width: calc(100%);
	}

}

@media (min-width: 1024px) {
	.col-lg-9 {
		-webkit-box-flex: 0;
		-ms-flex: 0 0 75%;
		flex: 0 0 75%;
		max-width: 75%;
	}
}


@media (max-width: 991px) {

	.container-fluid>.row.formulaire {
		flex-direction: column-reverse;
	}

	.creneau_full {
		height: calc(150px - 10vw) !important;
		flex-direction: column !important;
	}

	.motif-container {
		display: flex;
		align-items: center;
		flex-direction: column;
		justify-content: stretch;
		padding: 0;
	}

	.motif-container label {
		padding: 0;
		width: 90%;
		text-align: center;
	}

	.dispo-container [id^="dispo-container-"] .lieux-container .btn-lieu-map {
		margin: 0;
	}
}

@media (max-width: 1190px) {
	.creneau_full {
		min-height: 70px;
		height: calc(150px - 10vw) !important;
		flex-direction: column !important;
	}
}

.los-week-selection {
	display: none;
}



@media screen and (max-width: 990px) {
	.responsive #top #wrap_all .container.av-section-cont-open {
		max-width: 100%;
		width: 100%;
	}

	#top .container-fluid {
		padding-right: 0;
		padding-left: 0;
	}

	#top .los-planning,
	#top .los-controls,
	#top .los-mode-selection,
	#profil,
	.los-activite-container {
		flex-direction: column;
		width: 100%;
		min-width: initial;
	}

	.los-bouton-icon {
		font-size: 30px;
	}

	.los-liste-bouton {
		justify-content: center;
	}

	#top .los-creneaux-content .lieux-container {
		border-right: 2px solid var(--main_color_primary);
		justify-content: center;
	}

	#top span.los-rdv-adresse {

		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		justify-content: space-around;
		text-align: left;

	}


	#top .los-grid-planning.los-edition {
		grid-template-columns: repeat(7, minmax(24px, 1fr));
	}


	#top .los-grid-planning {
		grid-template-columns: repeat(var(--week-size, 7), 1fr);
	}


	.los-week-selection .los-navigation-left,
	.los-week-selection .los-navigation-right {
		display: flex;
	}

	.los-week-selection {
		display: flex;
		gap: 6.5em;
	}

	#top .los-navigation .day-name-short {
		display: flex;
		justify-content: center;
	}

	#top .los-navigation .day-name {
		display: none;
	}


	#top .los-controls .los-navigation .los-navigation-left,
	#top .los-controls .los-navigation .los-navigation-right {
		display: none;
	}

	#top .los-grid-planning .days {
		grid-template-columns: repeat(var(--week-size, 7), minmax(24px, 1fr))
	}

	.prec {
		display: none;
	}

	.suiv {
		display: none;
	}

	.los-info {
		justify-content: center;
	}


	.los-navigation {
		width: 100%;
		min-width: initial;
		gap: 0.5em;
	}


}


/** RDV **/
.rdv-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
}

.dispo-container {
	flex-grow: 2;

	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

[id^="dispo-container-"] {
	display: flex;
	flex-direction: row;
	align-items: center;
	position: relative;

	margin-right: 1em;
	margin-bottom: 5em;

	border-radius: .25rem;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 5px;
}


.day-items {
	display: grid;
	grid-template-rows: repeat(5, minmax(42px, 1fr)); 
}


.day-items [data-role="no-dispo"][data-rel] .creneau_separator {
	background-color: #666;
	width: 0.5rem;
	margin: auto;
	display: inline-block;
	margin: 0;
	font-size: 0;
	height: 1px;
	line-height: 0.6rem;
}

@media (max-width: 570px) {

	.day-items [data-role="add-rdv"][data-rel],
	.day-items [data-role="no-dispo"][data-rel] {
		height: 60px;
		display: flex !important;
	}

	.creneau_full {
		height: 150px !important;
	}

	.creneau_hours {}

	.creneau_separator {
		display: flex;
		margin: 0;
		font-size: 0;
		height: 1px;
		background-color: white;
	}

	.creneau_minutes {}

	.day-items [data-role="add-rdv"][data-rel]:hover .creneau_separator {
		background-color: var(--main_color_primary);
	}

	.day-items [data-role="no-dispo"][data-rel] .creneau_hours {}

	.day-items [data-role="no-dispo"][data-rel] .creneau_separator {
		background-color: #666;
		width: 0.5rem;
		margin: auto;
	}

	.day-items [data-role="no-dispo"][data-rel]:hover .creneau_separator {
		background-color: #666;
	}

	.day-items [data-role="no-dispo"][data-rel] .creneau_minutes {}

}



/*CALENDRIER*/
[id^="cal-container-"] {
	flex-grow: 1;

	display: flex;
	flex-direction: column;

	justify-content: center;
	align-items: center;
	position: relative;
}

.btn {
	border: none;
	padding: auto;
	transition: none;
}


.fa-arrow-left :hover {
	line-height: inherit !important;
}

.month {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 100px;
}

.month-date {
	font-size: 1em;
}

.days {
	display: inline-grid;
	width: 100%;
	grid-template-columns: repeat(7, minmax(50px, 1fr));
	grid-template-columns: 38px repeat(var(--week-size, 7), minmax(24px, 1fr)) 38px;

	grid-gap: 5px;

	font-size: 1em;
	justify-content: center;
	margin-bottom: 3%;
	margin-top: 3%;
}

.day {
	/*display: block;*/
	position: relative;
	display: grid;
	grid-template-rows: repeat(1, minmax(42px, 1fr));
}

#top .los-navigation .day-header {
	text-align: center;
	gap: 0.5em;
	display: grid;
	align-items: baseline;
}


.day-name-short {
	display: none;
}

.day-name,
.day-name-short {
	color: var(--main_color_primary);
	font-weight: 700;
	margin: 0;
	margin-bottom: -.1em;
	text-align: center;
	font-size: 15px;

	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	width: 100%;
}


.day-date {
	margin: 0;
	margin-bottom: 1em;
	font-size: 15px;
	text-align: center;
	color: #666;
	white-space: break-spaces;
}


div[class*='add-dispo-'] {
	display: flex;
	flex-direction: column;
	margin: 7px;
	text-align: center;
	padding: 10px;
}


#btn-show-hr {
	margin: 0;
}

#btn-show-cont {
	text-align: center;
}

.btn-not-dispo-container {
	z-index: 36;
	/*7x5+1*/
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translateX(-50%) translateY(0.33rem);
	margin: 0;
}

/* recuperation des regles css de avia button*/
.btn-not-dispo,
div[data-role='add-rdv'],
div[data-role='show-more'],
div[data-role='show-less'] {
	cursor: default;
	padding: 9px 22px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.5;
	display: inline-block;
	vertical-align: middle;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	font-size: inherit;
	font-weight: normal;
	font-family: inherit;
	text-decoration: none;
	text-align: center;
	color: var(--main_color_bg2);
	background-color: var(--main_color_primary);
	border-color: rgba(80, 80, 80, 0.3);
	border-radius: .25rem;
	border-width: 1px;
	border-style: solid;
	transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

div[data-role='show-more'],
div[data-role='show-less'] {
	cursor: pointer;
}


.day-items [data-role="add-rdv"][data-rel],
.day-items [data-role="no-dispo"][data-rel] {

	display: flex;
	overflow: visible;
	align-items: center;
	word-wrap: unset;
	white-space: nowrap;
	justify-content: center;
	padding: 9px 6px;
}

.day-items [data-role="add-rdv"][data-rel]:hover,
.day-items [data-role="no-dispo"][data-rel]:hover {
	padding: 9px 6px;
}

.day-items [data-role='add-rdv'] {
	cursor: pointer;
	line-height: 2;
}

.btn-not-dispo:hover {
	cursor: default !important;
	background-color: var(--main_color_primary) !important;
}

.dispo-none {
	cursor: default !important;
	border: none !important;
	background-color: var(--main_color_bg2) !important;
	color: var(--main_color_color) !important;
	font-weight: 900 !important;
	font-size: larger !important;
	line-height: 1.5 !important;
	font-size: 1.1em !important;
	font-family: inherit !important;
}


/* PANEL*/
.panel-header {
	font-weight: 600;
	margin-top: 0.5em;
}

.panel-statut {
	font-style: italic;
	font-size: 0.9em;
}

.panel-nom {
	font-weight: 600;
}

#carte {
	flex-grow: 0;
	min-width: 300px;
	max-height: 500px;
	height: 500px;

	position: relative;
}

@media (max-width: 580px) {
	#carte {
		height: 400px;
		width: 80%;
		margin-left: auto;
		margin-right: auto;
	}
}



/* LIEU */
#top .los-creneaux-content .lieux-container {
	margin: 1em 0;
	border-right: 2px solid var(--main_color_primary);
	justify-content: center;
}

.iconbox_content {
	margin: 0 !important;
}


.btn-lieu-map {
	margin: 2em;
	border-radius: 5px;
	cursor: pointer;
	color: inherit;
	background-color: inherit;
	transition: all .25s ease-in-out !important;
	max-width: 300px;
}


.btn-lieu-map.no-coord {
	cursor: default !important;
}

.btn-lieu-map:not(.no-coord):hover .iconbox_content {
	background-color: var(--main_color_primary);
	transition: all .25s ease-in-out !important;
}

.btn-lieu-map:not(.no-coord):hover * {
	color: var(--main_color_primary) !important;
	transition: all .25s ease-in-out !important;
}


@media (max-width: 580px) {
	.modal-dialog {
		max-width: 500px;
		margin: 1.75rem auto;
		width: calc(100% - 100px) !important;
	}
}

/** MODALE CONFIRMATION **/
.modal-label-contener {
	display: flex;
	flex-direction: row;
	padding-left: 2em;
}

.modal-label {
	width: 60px;
	font-weight: 800;
}

.modal-value {
	font-weight: 700;
	padding-left: 1em;
}

@media (min-width: 1280px) {
	.btn-lieu-map {
		min-width: 210px;
	}
}

.los-creneaux-content {
	display: flex;
	flex-wrap: wrap;
}

#top .lieux-container .los-info {
	margin-bottom: 0.5em;
	justify-content: center;
	flex-direction: column;
}

#top .lieux-container .los-badge-liste {
	flex-direction: column;
	text-align: center;
}


.los-rdv-adresse.set-pointer {
	cursor: pointer;
}



.los-controls .los-grid-planning {
	display: flex;
	flex-direction: row;
	padding: 1em 0.3em;
	display: inline-grid;
	width: 100%;
	grid-template-columns: 38px repeat(var(--week-size, 7), minmax(24px, 1fr)) 38px;
	grid-gap: 5px;
	justify-content: center;
}

.los-controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

}

.los-mode-selection {
	padding: 0;
	display: flex;
	flex-direction: row;
	gap: 0.5em;
	align-items: center;
	flex-wrap: wrap;
}


#top .day-header div.los-day-container {
	display: flex;
	flex-direction: row;
	gap: 0.3em;
	flex-wrap: wrap;
	justify-content: center;
}

#top .los-navigation .los-bouton-icon,
#top .los-week-selection .los-bouton-icon {
	padding: 0;
	border: none;
	background: none;
	color: black;
}

#top .los-filtre-motif {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 1em;
	margin: 0;
	min-width: 70%;
}

#top .los-select-motif {
	display: flex;
	flex-direction: row;
	width: auto;
	gap: 10px;
	flex-grow: 1;
}

#top .los-main-filtre {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-items: center;
	gap: 1em;
	flex: 1 0 4em;
	padding: 10px;
	justify-content: center;
}

#top #filtre-motif-title,
#top .los-select-motif select {
	margin: 0;
}

.los-info i {
	width: 25px;
}


.fixed-nav-relative {
	position: fixed;
	top: 0;
	z-index: 1000;
	background-color: white;
	/* La largeur et la position gauche seront définies dynamiquement en JavaScript */
}

.day-num {
	width: 2em;
}