/*
 (?) Les couleurs, font-family, sont a initialiser dans "0.1. Variables (fonts, colors, ...)".
 (?) CSS en "mobile first", chaque media querie se trouve sous l'element correspondant.
 (!) L'ensemble du site se base sur Bootstrap, si vous forcez la class d'un element, vous le forcez sur tout le site.

 ********************* SOMMAIRE *********************
 *  0. CONFIGURATION								*
 *    - 0.1. Variables (fonts, colors, ...)			*
 *    - 0.2. Global (body, liens, boutons,..)		*
 *    - 0.3. Forms									*
 *    - 0.4. Tables									*
 *  1. HEADER / FOOTER 								*
 *    - 1.1. Header 								*
 *    - 1.2. Footer 								*
 *  3. MODULES 										*
 *    - 3.1. Process 								*
 *    - 3.2. Zone de message commune 				*
 *    - 3.3. Datepicker 							*
 *    - 3.4. Pagination 							*
 *    - 3.5. Badge 									*
 *    - 3.6. Spinner 								*
 *    - 3.7. Dialog (ui) 							*
 *    - 3.8. Modal 									*
 *    - 3.9. List group 							*
 *  4. PAGES 										*
 *    - 4.1. Page de listing (commun) 				*
 *    - 4.2. Connexion 								*
 *    - 4.3. Espace compte 							*
****************************************************/

/* ====================================================
   0. CONFIGURATION
==================================================== */
	/* Reset */
	button,button:focus { outline: 0; } img {max-width: 100%;} a, button:not[disabled] { cursor: pointer; } button[disabled] { cursor: default; }
	.inline-flex { display: flex; }
	.text-truncate {cursor: help; }
	.f-large { font-size: large; }
	.f-small { font-size: small; }
	.f-small *, .f-large * { font-size: inherit; }


		.border { border-color: var(--content-border-color); }
		.fa-clock, .fa-calendar-alt, .fa-phone, .fa-tools { color: var(--color-primary); }
    	.subinfo { color: var(--body-txt-color-light); font-size: .9rem; }

    	/* Un deuxieme logo ?
    		1- Indiquer l'url du logo
    		2- Indiquer la hauteur souhaitee
    		3- Decommenter la zone ci-dessous
    	*/
			/*#logo2 {
			    background-image: url('');
			    background-size: contain;
			    background-repeat: no-repeat;
			    height: 80px;
			}*/

    /* 0.2. Global (body, titres, liens, boutons,..)
    ================================================ */
    	body {
    		font-family: var(--body-font);
    		color: var(--body-txt-color);
    		font-size: 14px;
    		background: var(--body-bg-color);
    	}

    	/* Titres */
    	h1, h2, h3 {
    		font-family: var(--title-font);
    	}

    	h1 {
    		color: var(--h1-color);
    		font-size: 2rem;
    	}

    	h2 {
    		color: var(--h2-color);
    		font-size: 1.75rem;
    	}

    	h3 {
    		color: var(--h3-color);
    		font-size: 1.5rem;
    	}

    	/* Liens */
    	a,
    	.link-content,
    	.btn-link {
    		color: var(--link-txt-color);
    	}

    	.link-content {
    		text-decoration: underline;
    	}

    	a:hover,
    	.link-content:hover,
    	.btn-link:hover {
    		color: var(--link-txt-color-hover);
    		text-decoration: underline;
    	}

    	/* Boutons */
    	.btn {
    		font-family: var(--btn-font);
    		box-shadow: none!important;
    	}

    	.btn.btn-primary {
    		color: var(--btn-txt-color);
    		background: var(--btn-bg-color);
    		border: var(--btn-border);
    	}

    	.btn.btn-primary:hover,
    	.btn.btn-primary:focus,
    	.btn.btn-primary:active,
    	.btn.btn-primary:active:focus {
    		color: var(--btn-txt-color-hover);
    		background: var(--btn-bg-color-hover);
    		border: var(--btn-border-hover);
    		box-shadow: none;
    	}

    	.btn.btn-secondary {
    		color: var(--btn-s-txt-color);
    		background: var(--btn-s-bg-color);
    		border: var(--btn-s-border);
    	}

    	.btn.btn-secondary:hover,
    	.btn.btn-secondary:focus,
    	.btn.btn-secondary:active,
    	.btn.btn-secondary:active:focus {
    		color: var(--btn-s-txt-color-hover);
    		background: var(--btn-s-bg-color-hover);
    		border: var(--btn-s-border-hover);
    		box-shadow: none;
    	}

    	/* Wrap */
    	.container-dng {
    		max-width: 1400px;
    	}

    	@media (max-width: 1199px){
			.container {
			    max-width: 100%;
			}
		}

		#contenu_login_perso {
			overflow: hidden;
		}

    /* 0.3. Forms
    ================================================ */
    	form {
    		width: 100%;
    	}

    	.form-control:focus {
    		box-shadow: none;
    		border: 1px solid var(--body-txt-color);
    	}

    	input + .input-group-addon {
    		border-left: 0;
    	}

    /* 0.4. Tables
    ================================================ */
    	.table .thead-dark th,
    	thead th,
    	thead td {
    		background: var(--thead-bg-color);
    		color: var(--thead-txt-color);
    		border-color: inherit;
    	}

    	.table-secondary,
    	.table-secondary > th,
    	.table-secondary > td {
    		background: var(--tbody-rupt-bg-color);
    		color: var(--tbody-rupt-txt-color);
    		border-color: inherit;
    	}

    	.table .thead-light th,
    	tfoot th,
    	tfoot td {
    		background: var(--tfoot-bg-color);
    		color: var(--tfoot-txt-color);
    		border-color: inherit;
		}

	    @media (max-width: 991px) {
		    .dng_table_panier_tarifs {
			    padding-top: .5rem;
			    padding-bottom: .5rem;
			}

		    .dng_table_panier_tarifs + .dng_table_panier_tarifs {
			    border-top: 1px solid #EEE;
			}

	    	.dng_table_panier_tarifs td {
			    border: 0;
			    padding-top: 0;
			    padding-bottom: 0;
			}

			tbody .col-total .btn {
				float: right;
				margin-top: -.5rem;
			}
		}

		@media (min-width: 992px) {
			#panier_table [class*="col-"] {
				width: auto;
			}
		}

/* ====================================================
   2. HEADER / FOOTER
==================================================== */
	/* 1.1. Header
    ================================================ */
    	header {
    		background: var(--header-bg-color);
    		color: var(--header-txt-color);
    		max-width: 100%;
    	}

    	.topbar {
    		background: var(--topbar-bg-color);
    		color: var(--topbar-txt-color);
    	}

    	.topbar .nav-item {
		    border-top: 1px solid var(--topbar-link-color);
    	}

    	.topbar .nav-link {
    		color: var(--topbar-link-color);
    		text-decoration: none;
    		position: relative;
    		padding: 1em;
    	}

    	.topbar .nav-link.active,
    	.topbar .nav-link:hover {
    		color: var(--header-link-color-hover);
    	}

    	/* Panier */
    	#total_panier_qte {
    		border-radius: 50%;
    		height: 20px;
    		width: 20px;
    		line-height: 20px;
    		text-align: center;
    		background: var(--color-primary-darkened);
    		color: var(--header-link-color-hover);
    		transform: translate(50%,-50%);
		    right: 0;
		    top: 0;
    	}

    	.item-lang-active {
		    display: none!important;
		}

    	.topbar li {
		    margin: 0!important;
		    padding: 0;
		}

		.topbar li + li {
		    position: relative;
		}

    	/* Menu */
    	.title_site {
    		font-size: 1.3em;
    	}

		.navbar .container {
			position: relative;
		}

		.navbar-title {
			width: 100%;
		}

    	#toggle-display-menu {
    	    position: relative;
		    z-index: 99999;
		    color: #FFF;
		    border: none;
		    padding: 0;
		    height: 45px;
		    width: 45px;
		    background: var(--color-primary-light);
    	}

    	#toggle-display-menu:hover {
		    background: var(--color-primary-darkened);
    	}

    	#toggle-display-menu span {
		    background: none;
		    font-weight: 900;
		    font-family: "Font Awesome 5 Free";
		    -moz-osx-font-smoothing: grayscale;
		    -webkit-font-smoothing: antialiased;
		    display: inline-block;
		    font-style: normal;
		    font-variant: normal;
		    text-rendering: auto;
		    line-height: 1.5em;
    	}

    	#toggle-display-menu span::before {
		    content: "\f0c9";
    	}

    	#navbarNavDropdown {
    		position: fixed;
		    top: 0;
		    left: 0;
		    right: 0;
		    bottom: 0;
		    background: var(--header-bg-color);
		    z-index: 99998;
		    padding-top: 60px;
    	}

		@media (min-width: 768px) {
			#toggle-display-menu {
				display: none;
			}

			#navbarNavDropdown {
				position: static;
				background: none;
		    	padding-top: 0;
			}

			.topbar .nav-item {
				border: 0;
			}

			.topbar .nav-link {
			    padding: .5rem;
			}
		}

	/* 1.2. Footer
    ================================================ */
	    footer {
	    	background: var(--footer-bg-color);
		    color: var(--footer-txt-color);
	    }

	    footer a {
	    	color: var(--footer-link-color);
	    }

	    footer a:hover {
	    	color: var(--footer-link-hover-color);
	    }

/* ====================================================
   3. MODULES
==================================================== */
	/* 3.1. Process
    ================================================ */
	    .align_timeline,
	    .process-step {
	    	position: relative;
	    	font-size: .8rem;
	    }

	    .align_timeline:before {
		    content: '';
		    width: 96%;
		    height: 1px;
		    position: absolute;
		    top: 23px;
		    left: 2%;
		    background-color: var(--color-primary);
		}

	    .process-step .btn-circle {
	    	height: 45px;
	    	width: 45px;
	    	line-height: 45px;
	    	color: var(--color-primary);
	    	border: 1px solid var(--color-primary);
	    	background: #FFF;
	    	position: relative;
	    	opacity: .5;
	    	z-index: 2;
	    }

	    .process-step::after {
	    	content: '';
	    	position: absolute;
	    	border-radius: 50%;
	    	top: 0;
	    	left: 0;
	    	right: 0;
	    	margin: 0 auto;
	    	height: 45px;
	    	width: 45px;
	    	line-height: 45px;
	    	background: #FFF;
	    	opacity: 1;
	    	z-index: 1;
	    }

	    .process-step .btn-circle.selected-timeline {
	    	color: #FFF;
	    	opacity: 1;
	    	border: 1px solid var(--color-primary);
	    	background: var(--color-primary);
	    }

	    .process-text {
	    	opacity: .5;
	    }

	    .process-step .btn-circle.selected-timeline + .process-text {
	    	color: var(--color-primary);
	    	opacity: 1;
	    }

	    .process-step .btn-circle i {
	    	font-size: 20px;
	    }

	    /* Extra large devices (large desktops, 1200px and up) */
		@media (min-width: 1200px) {
		    .align_timeline:before {
			    width: 98%;
			    left: 1%;
			}
		}

	/* 3.2. Zone de message commune
    ================================================ */
	    [id*="comment_entete"] > p {
	    	margin: 0;
	    }

	    .alert-dng {
	    	color: var(--color-primary-darkened);
		    background-color: var(--color-primary-light);
		    border-color: var(--color-primary);
	    }

	/* 3.3. Datepicker
    ================================================ */
		.ui-widget.ui-widget-content {
			width: 100%;
			max-width: 100%;
			border: none;
			padding: 0;
		}

		.ui-datepicker-header {
			border: 0;
			background: var(--btn-bg-color);
			color: var(--btn-txt-color);
			border-radius: 0;
		}

		.ui-datepicker th,
		.ui-datepicker td {
			border: none;
			padding: 1px;
		}

		.ui-state-default,
		.ui-widget-content .ui-state-default,
		.ui-widget-header .ui-state-default,
		.ui-button,
		html .ui-button.ui-state-disabled:hover,
		html .ui-button.ui-state-disabled:active {
			background: var(--content-border-color);
			text-align: center;
		}

		.ui-state-highlight,
		.ui-widget-content .ui-state-highlight,
		.ui-widget-header .ui-state-highlight {
			border-color: var(--content-border-color);
			color: var(--color-primary-darkened);
			font-weight: bold;
		}

		.ui-state-hover,
		.ui-widget-content .ui-state-hover,
		.ui-widget-header .ui-state-hover,
		.ui-state-focus,
		.ui-widget-content .ui-state-focus,
		.ui-widget-header .ui-state-focus,
		.ui-button:hover,
		.ui-button:focus,
		.ui-state-active,
		.ui-widget-content .ui-state-active,
		.ui-widget-header .ui-state-active,
		a.ui-button:active,
		.ui-button:active,
		.ui-button.ui-state-active:hover {
			border-color: var(--color-primary);
			background: var(--color-primary);
			color: var(--btn-txt-color);
		}

	/* 3.4. Pagination
    ================================================ */
		.page-link {
    		color: var(--btn-bg-color);
		}

		.page-link:focus,
		.page-link:hover {
    		color: var(--btn-txt-color-hover);
    		background: var(--btn-bg-color);
    		border: 1px solid var(--btn-bg-color);
		}

	/* 3.5. Badge
    ================================================ */
		.badge-primary {
			background-color: var(--color-primary);
		}

		.badge-price span {
			float: none!important;
		}

	/* 3.6. Spinner
    ================================================ */
		.spinner-border {
			color: var(--color-primary);
		}

	/* 3.7. Dialog (ui)
    ================================================ */
		.ui-dialog {
		    background: #FFF;
		    border-radius: .3rem;
		    padding: 0;
		    border: 0;
		    font-family: inherit;
		}

		.ui-dialog .ui-dialog-titlebar {
			padding: 1rem;
		    background: none;
		    border: 0;
		    border-bottom: 1px solid var(--content-border-color);
		    display: -webkit-box;
		    display: -ms-flexbox;
		    display: flex;
		    -webkit-box-align: start;
		    -ms-flex-align: start;
		    align-items: flex-start;
		    -webkit-box-pack: justify;
		    -ms-flex-pack: justify;
		    justify-content: space-between;
		}

		.ui-dialog .ui-dialog-title {
			font-size: 1.15rem;
			line-height: 1;
    		margin: 0;
    		float: none;
    		width: auto;
		}

		.ui-dialog .ui-dialog-titlebar-close {
		    position: static;
		    margin: -1rem -1rem -1rem auto;
		    opacity: .5;
		    padding: 1rem;
		    line-height: 1;
		    height: auto;
		    width: auto;
		    font-family: "Font Awesome 5 Free";
		    font-weight: 900;
		    border: 0;
		    outline: 0;
		    background: none;
		}

		.ui-dialog .ui-dialog-titlebar-close:focus,
		.ui-dialog .ui-dialog-titlebar-close:hover {
		    opacity: 1;
		}

		.ui-dialog .ui-dialog-titlebar-close::after {
		    content: "\f00d";
		    display: inline-block;
		}

		.ui-dialog .ui-dialog-content {
			padding: 1rem;
		    background: none;
		    border: 0;
		}

		.ui-widget-overlay {
			background: #000;
			opacity: .5;
		}

	/* 3.8. Modal
    ================================================ */
		.modal {
			color: var(--body-txt-color);
		}

		#cgv_entete table,
		#cgv_entete td {
			border: 0;
		}

		#cgv_entete h5 {
			color: var(--color-primary);
		}

		#modal-panier h4 {
			font-size: 1rem;
		}
		#modal-panier .article {
			font-size: .9rem;
		}

		#modal_panier .product_info {
			color: var(--body-txt-color-light);
		}

		@media (min-width: 751px) {
			#modal-panier {
			    position: absolute;
			    text-align: left;
			    top: 100%;
			    left: initial;
			    right: 0;
			    padding: 1em;
			    width: 400px;
			    min-height: 200px;
			    height: auto;
			    max-height: 80vh;
			    background-color: #FFF;
			    border: none;
			    overflow: auto;
			    color: var(--body-txt-color);
			    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
			}

			#modal-panier::before {
			    content: '';
			    display: block;
			    width: 0;
			    height: 0;
			    position: absolute;
			    border-top: 8px solid var(--color-primary);
			    border-right: 8px solid transparent;
			    border-left: 8px solid transparent;
			    right: 0;
			    top: 0;
			}

			#titre-modal-panier {
				color: var(--color-primary);
				font-size: 1.2em;
				font-weight: bold;
			}
		}

	/* 3.9. List group
    ================================================ */
		.list-group-item.active {
			color: var(--btn-txt-color);
		    background-color: var(--btn-bg-color);
		    border-color: var(--btn-border);
		}

/* ====================================================
   4. PAGES
==================================================== */
	/* 4.1. Aside  (commun)
    ================================================ */
    	@media (min-width: 992px) {
    		.collapse.show-lg {
			    display: block;
			}
    	}

	/* 4.1. Page de listing (commun)
    ================================================ */
		.content-catalogue {
			height: 100%;
		}

		.content-catalogue .div_img {
			height: 100%;
			display: flex;
			flex-direction: column;
		}

		.content-catalogue .div_info {
			margin-top: auto!important;
		}

		.top_title_product {
		    color: var(--body-txt-color-light);
		}

		.title_product {
			font-size: 1.2rem;
		}

		.container-img {
			width: 100%;
		}

		.container-with-indication .indication_product {
			line-height: normal;
			top: 2rem;
			right: -8px;
			background: var(--color-primary);
			color: var(--btn-txt-color);
			box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		    -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		    -o-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		    -ms-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
		    z-index: 999;
		}

		.container-with-indication .indication_product:after {
		    border-color: var(--color-primary) rgba(0, 0, 0, 0) rgba(0, 0, 0, 0);
		    border-style: solid;
		    border-width: 4px 8px 0 0;
		    height: 0;
		    right: 0;
		    bottom: -4px;
		    width: 0;
		    position: absolute;
		    content: "";
		}

		.btn_cookie{
			padding : 5px 20px;
			border-radius: 18px;
			min-width: 150px;
		}

		.btn_cookie.disabled {
			background: #ccc;
			box-shadow: inset 3px 3px 5px 0px rgba(50, 50, 50, 0.75);
		}

		.btn_cookie.active:hover{
			border-style: outset;
		}

		.btn_cookie.disagree.active{
			background: #FF000050;
			box-shadow: inset 3px 3px 5px 0px rgba(50, 50, 50, 0.75);
		}
		.btn_cookie.agree.active{
			background: #92d05050;
			box-shadow: inset 3px 3px 5px 0px rgba(50, 50, 50, 0.75);
		}


	/* 4.1. Fiche billetterie
    ================================================ */
		.title_selection {
			font-size: 1rem;
		    background: var(--titselect-bg-color);
	    	color: var(--titselect-txt-color);
		}

		.label_horaire p {
			color: var(--btn-txt-color);
			background: var(--btn-bg-color);
			cursor: pointer;
		}

		.label_horaire:hover p,
		[type="radio"]:checked + .label_horaire p {
			color: var(--btn-txt-color-hover);
			background: var(--btn-bg-color-hover);
		}

		.s_dispo {
			border-top: 1px dotted var(--btn-txt-color);
		}

		.description_tarif p {
			margin: 0;
			font-size: 0.9em;
		}

	/* 4.2. Connexion
    ================================================ */
	    .content_login {
		    background: #F5F5F5;
		}

		.icon_check {
			color: transparent;
		}

		.errorlist {
			margin: .5rem 0 0;
			padding: 0;
			list-style: none;
			color: #dc3545;
		}

	/* 4.3. Espace compte
    ================================================ */

		#change-password{
			color: #28a745;
			border: 1px solid #28a745;
			padding: 8px;
		}
		/* Adresses */
		.formulaire-adresse {
		   	background: #EEE;
		}

		#photo-profil{
			text-align: right;
			margin-top : -30px;
		}

		#mentions-courtes{
			margin-bottom: 12px;
		}

		.btn-alert {
			color: red;
		}

		.btn-alert:hover {
			border : red 1px solid;
			background: red;
			color: white;
		}
