/**MAJ V3 DEBUT**/

/* Full-width on mobile: break out of Divi column, no horizontal page scroll */
@media (max-width: 980px) {
	.et_pb_section:has(.arx-horaires-fullwidth-wrapper) .et_pb_row,
	.et_pb_section:has(.arx-horaires-fullwidth-wrapper) .et_pb_column {
		overflow-x: visible !important;
		max-width: none !important;
	}
	.et_pb_section:has(.arx-horaires-fullwidth-wrapper) {
		overflow-x: hidden !important;
		overflow-y: visible !important;
	}
	.arx-horaires-fullwidth-wrapper {
		width: 100vw;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
		overflow-x: hidden;
		overflow-y: visible;
	}
	.arx-horaires-fullwidth-wrapper #slider_sticker_page_tarif,
	.arx-horaires-fullwidth-wrapper .arx_horaires_global {
		width: 100% !important;
	}
}

.single_ligne .horaire p{
	padding-bottom: 0px !important;
}
.sticker_container_horaire_home span.titre{
	color: #51b848 !important;
    font-weight: 700;
    font-size: 22px;
}
.sticker_container_horaire_home span.titre.rouge_ferme{
	color: #d10000 !important;
}

.sticker_container_horaire_home span.titre.fermeture{
	color: #b84848 !important;
}
.btn_itineraire_google {
    background-color: var(--couleur-principale);
    padding: 15px;
    color: #ffffff;
    width: 100%;
    position: relative;
    display: block;
    border-radius: 8px;
    font-size: 20px;
    text-align: center;
    margin-top: 30px;
}
.sticker_container_horaire_home{
	padding-left: 50px;
}
.sticker_container_horaire_home::before{
	background-image: url(../img/picto_cadenas.webp);
    content: "";
    left: 0px;
    width: 30px;
    height: 45px;
    position: absolute;
    display: block;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
/**MAJ V3 FIN**/

.titre_horaire{
	color: var(--couleur-principale);
	font-size:2.2em;
	margin-bottom: 15px;
	margin-top: 50px;
    font-weight: 600;
}
.container_single_category .single_ligne {
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #000000;
    margin-bottom: 10px;
	padding-bottom: 10px;
	font-size:18px;

}
.container_single_category .single_ligne .jour{
	color: var(--couleur-principale);
	font-size:18px;
    font-weight: 600;
}

.container_onglets_horaires {
	padding: 0 20px !important;
    margin: 0px !important;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    border-radius: 20px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
	background-color: var(--couleur-principale-light);
    width: fit-content;
}
.container_onglets_horaires li{
	border-radius: 15px;
	display:inline-block;
	order: 3;
	padding:10px 20px 7px 20px;
	margin:20px 5px;
	background-color: #F5F5F5;
	cursor:pointer;
	border-bottom : solid 3px #f5f5f5;
	font-size:13px;
}
.container_onglets_horaires_mobile {
	background-color: var(--couleur-principale-light);
    border: none;
    padding: 15px 20px;
    border-radius: 15px;
    font-size: 1rem;
}

.container_onglets_horaires li.actif{
	/*border-bottom :solid 3px var(--couleur-principale);*/
	background-color: var(--couleur-principale);
    color: #ffffff;
	order: 1;
}

.arx_horaires_icon_button {
	color: blue;
}

.container_select_horaire_mobile {
    margin-bottom: 25px;
	display: none;
}

.container_horaire {
	background-color: var(--couleur-principale-light);
    padding: 20px;
    border-radius: 25px;
	border-top-left-radius: 0;
	margin-top: -1em;
}

.container_horaire.is_hidden {
    display: none;
}
.horaire_espace {
    gap: 10px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.horaire_espace p {
    padding-bottom: 0px;
}

.horaire_columns {
	display: flex;
	justify-content: space-between;
	align-items: stretch; /* Ensures that all columns have the same height */
}

.horaire_column {
	flex: 1;
	padding: 15px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	margin: 0px 10px;
	background-color: var(--couleur-principale-light);
	border-radius: 20px;
}
.horaire_column.is_period  h3 {
	color: var(--couleur-secondaire);
}

.horaire_column h3 {
	text-align: center;
}

.single_ligne {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 5px 0;
	flex: 1; /* Ensures all rows have the same height */
}
.horaire {
	text-align: end;
}

.horaires_content {
  display: flex;
  align-items: stretch;
  height: auto;
}

.horaires_content > div {
  /* width: -webkit-fill-available; */
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center; 
}

.horaires_content .arx_horaires_table_images {
  border-radius: 25px;
  height: auto;
  max-height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}


.infos_horaire {
	margin-top: 20px;
}



@media screen and (max-width: 768px) {
	.sticker_container_horaire_home::before{
		top: -50px;
		left: 0px;
	}
	.sticker_container_horaire_home{
		padding-left: 0px;
	}
	.container_onglets_horaires li {
		margin: 5px !important;
	}
	.container_onglets_horaires {
		display: none;
	}
	.container_select_horaire {
		display: none;
	}
	.container_select_horaire_mobile {
		display: block;
	}
	.titre_horaire {
		font-size: 1.6em;
	}

}

@media screen and (max-width: 428px) {
	.horaire_espace {
   		gap: 0px;
		flex-direction: column;
		margin-bottom: 10px;
	}

}


/* DÉBUT - SLICK HORAIRES */

#slider_sticker_page_tarif.is_slick {
	max-width: 85vw;
	position: fixed;
    left: 0px;
    top: 140px;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 20px;
    border-top-left-radius: 0;
	border-top-right-radius: 0;
    border-bottom-left-radius: 0;
	box-shadow: 0px 0px 5px 3px rgba(0,0,0,0.1);
	transition: left 0.5s ease;
	z-index: 10000 !important;
}
#slider_sticker_page_tarif.is_slick.close {
    left: 10px;
}

#slider_sticker_page_tarif.is_slick .sticker_container_horaire_home {
	padding-left: 0;
}

#slider_sticker_page_tarif.is_slick .sticker_container_horaire_home::before {
	display: none;
}

#slider_sticker_page_tarif.is_slick .arx_open_close_horaires {
    position: absolute;
    height: 45px;
    width: 45px;
    top: 0%;
    padding: 10px;
    right: -40px;
    background-color: #ffffff;
    border-radius: 20px;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    box-shadow: 5px 0px 5px 0px rgba(0, 0, 0, 0.1);
}

#slider_sticker_page_tarif.is_slick .arx_open_close_horaires.open {
    padding: 12.5px;
}

#slider_sticker_page_tarif.is_slick .arx_open_close_horaires .arx_open_icon {
    height: 25px;
    width: 25px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
	cursor: pointer;
	transition: opacity 0.5s ease;
    position: absolute;
}
#slider_sticker_page_tarif.is_slick .arx_open_close_horaires .arx_close_icon {
    height: 20px;
    width: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
	cursor: pointer;
	transition: opacity 0.5s ease;
    position: absolute;
}
#slider_sticker_page_tarif.is_slick .arx_open_close_horaires.close .arx_open_icon {
	opacity: 1;
	z-index: 1;
}
#slider_sticker_page_tarif.is_slick .arx_open_close_horaires.open .arx_open_icon {
	opacity: 0;
	z-index: 0;
}
#slider_sticker_page_tarif.is_slick .arx_open_close_horaires.open .arx_close_icon {
	opacity: 1;
	z-index: 1;
}
#slider_sticker_page_tarif.is_slick .arx_open_close_horaires.close .arx_close_icon {
	opacity: 0;
	z-index: 0;
}
#slider_sticker_page_tarif .btn_itineraire_google {
	padding: 10px;
	font-size: 18px;
	margin-top: 20px;
}
#slider_sticker_page_tarif .sticker_container_horaire_home span.titre {
	font-size: 20px;
}
#slider_sticker_page_tarif .sticker_container_horaire_home p {
	font-size: 17px;
}

@media only screen and (max-width: 768px) {
	
	#slider_sticker_page_tarif.is_slick {
		
		left: unset;
		right: 0;
		border-radius: 0;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 20px;
	transition: right 0.5s ease;
	
	}
	#slider_sticker_page_tarif.is_slick .arx_open_close_horaires {
		left: -45px;
		border-radius: 0;
		border-top-left-radius: 20px;
		border-bottom-left-radius: 20px;
		box-shadow: -5px 0px 5px 0px rgba(0, 0, 0, 0.1);
	}
	#slider_sticker_page_tarif.is_slick.close {
		left: unset;
	}
}
/* FIN - SLICK HORAIRES */

/* 2026 - DEBUT - NEW GRILLE HORAIRES */
.arx_horaires_tabs{
  display:flex;
  gap:24px;
  align-items:flex-end;
}

.arx_horaires_tabs .arx_tab{
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  line-height:1.1;
}

.arx_horaires_tabs .arx_tab .arx_tab_sub{
  margin-top:8px;
  font-size:12px;
  opacity:0;
}

.arx_horaires_tabs {
	display: flex;
	gap: 24px;
	list-style: none;
	padding: 0;
	margin: 0 0 18px 0;
	list-style-type: none !important;
	justify-content: center;
	align-items: flex-start;
}

.arx_horaires_tabs .arx_tab {
	cursor: pointer;
	padding: 10px 2px;
	font-weight: 400;
	opacity: 1;
	color: var(--couleur-principale);
}
.arx_horaires_tabs .arx_tab.is-active .arx_tab_label{
	border-bottom: 1px solid transparent;
	border-color: var(--couleur-principale);
	font-weight: 800;
}
.arx_horaires_tabs .arx_tab.is-active .arx_tab_sub{
	opacity: 1;
}

.arx_horaires_tabs .arx_tab.is-active{
	opacity: 1;
}
.arx_horaires_tabs .arx_tab .arx_tab_label {
	padding: 6px 10px;
}

.arx_horaires_tabs_mobile_wrap {
	display: none;
	margin: auto;
	text-align: center;
}

.arx_horaires_tabs_mobile {
	display: block;
	margin: 0 auto;
	padding: 10px;
	border: none;
	border-radius: 8px;
	padding: 0 !important;
	font-weight: 500;
	color: #111;
	cursor: pointer;
	font-size: 16px;
}

.arx_horaires_tabs_mobile_sub {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	opacity: 0.85;
	color: var(--couleur-principale, #111);
}

/* Quand slick est actif sur desktop, on neutralise le display:grid */
.arx_horaires_panel.is-desktop-slick .arx_horaires_grid {
  display: block !important;
  max-width: calc(3 * 420px + 2 * 22px); /* garde ton centrage 3 colonnes */
  margin-left: auto;
  margin-right: auto;
}

.arx_horaires_panel.is-hidden {
	display: none;
}

/* Desktop/tablette : 3 max, centré si 1 ou 2 cards */
.arx_horaires_grid {
	display: grid;
	gap: 22px;

	/* Colonnes auto (1 à 3), chaque tuile fait ~360px mini */
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

	/* On limite à 3 tuiles max par ligne en centrant le container */
	max-width: calc(3 * 420px + 2 * 22px); /* 3 cards + 2 gaps */
	margin-left: auto;
	margin-right: auto;
}

.arx_horaire_card {
	border: 1px solid color-mix(in srgb, var(--couleur-principale) 12%, transparent);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.arx_horaire_card_title {
	color: var(--couleur-principale);
	font-weight: 700;
	text-align: center;
	padding: 30px 12px;
	letter-spacing: .5px;
	font-size: 21px;
}

/* Force dark text on title for sufficient contrast whatever the secondary tint */
.arx_horaires_grid .arx_horaire_card_title {
	color: color-mix(in srgb, var(--couleur-principale) 85%, black);
}

/* Gradient by card: mix with plenty of white so background stays light
   and contrast is sufficient regardless of secondary. */
.arx_horaires_grid .arx_horaire_card:nth-child(1) .arx_horaire_card_title {
	background: color-mix(in srgb, var(--couleur-secondaire) 40%, white);
}

.arx_horaires_grid .arx_horaire_card:nth-child(2) .arx_horaire_card_title {
	background: color-mix(in srgb, var(--couleur-secondaire) 28%, white);
}

.arx_horaires_grid .arx_horaire_card:nth-child(n + 3) .arx_horaire_card_title {
	background: color-mix(in srgb, var(--couleur-secondaire) 20%, white);
}


.arx_horaire_card_body {
	padding: 14px 16px;
}

.arx_horaire_table {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.arx_horaire_row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	border-bottom: 1px dotted color-mix(in srgb, var(--couleur-principale) 30%, transparent);
	padding-bottom: 10px;
	padding-top: 10px;
}

.arx_horaire_row:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.arx_horaire_day {
	font-weight: 700;
	text-transform: capitalize;
	color: var(--couleur-principale);
}

.arx_horaire_hours {
	opacity: .9;
	text-align: right;
	color: var(--couleur-principale);
}

.arx_horaire_infos {
	margin-top: 20px;
	text-align: center;
	opacity: .8;
	font-size: .75em;
	line-height: 1em;
}

.arx_horaires_table_images {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 14px auto 0;
}

@media (max-width: 980px) {
	.arx_horaires_grid {
		grid-template-columns: 1fr;
		margin-left: 10px;
	}

	.arx_horaires_tabs {
		display: none;
	}

	.arx_horaires_tabs_mobile_wrap {
		display: block;
	}
}

/* 2026 - FIN - NEW GRILLE HORAIRES */

/* =========================
   MOBILE: pills + slick
   ========================= */

.arx_mobile_cat_tabs {
	display: none;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	margin: 30px 20px;
}

.arx_mobile_cat_tabs .arx_cat_tab {
	color: var(--couleur-principale);
	border: 1px solid var(--couleur-principale);
	border-radius: 999px;
	padding: 8px 13.5px;
	font-weight: 700;
	font-size: 13px;
	line-height: 1;
	cursor: pointer;
	background: #fff;
}

.arx_mobile_cat_tabs .arx_cat_tab.is-active {
	background: var(--couleur-principale);
	color: #fff;
	border-color: var(--couleur-principale);
}

@media (max-width: 980px) {
	.arx_mobile_cat_tabs {
		display: flex;
	}

	/* Slick remplace le grid, donc on neutralise le layout grid */
	.arx_horaires_grid {
		display: block;
	}

	/* optionnel : un peu plus “card” */
	.arx_horaire_card {
		box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	}
}

/* Desktop slick */
@media (min-width: 981px){
  .arx_horaires_grid.arx-slick-desktop.slick-initialized .slick-slide{ 
		margin: 0 13.5px; 
	}
  .arx_horaires_grid.arx-slick-desktop.slick-initialized .slick-list{ 
		margin: 0; 
		overflow: visible;
	}
  
	.arx_horaires_grid.arx-slick-desktop::before,
  .arx_horaires_grid.arx-slick-desktop::after{
    content:"";
    position:absolute;
    top:-10%;
    height:120%;
    z-index: 9;
    pointer-events:none;

    /* largeur = "le reste de l'écran" / 2 */
    width: calc((100vw - 100%) / 2);

    /* couleur de base du fond (modifiable) */
    --fade-bg: var(--arx-slick-fade-color, #fff);
  }

  /* côté gauche : gradient vers la droite */
  .arx_horaires_grid.arx-slick-desktop::before{
    left: calc(-1 * ((100vw - 100%) / 2));
    background: linear-gradient(to right, var(--fade-bg) 0%, rgba(255,255,255,0) 100%);
  }

  /* côté droit : gradient vers la gauche */
  .arx_horaires_grid.arx-slick-desktop::after{
    right: calc(-1 * ((100vw - 100%) / 2));
    background: linear-gradient(to left, var(--fade-bg) 0%, rgba(255,255,255,0) 100%);
  }
}

/* Mobile slick (pills) - do NOT override .slick-list padding: Slick sets it for centerMode */
@media (max-width: 980px) {
	.arx_horaires_grid .slick-list {
		overflow: visible !important;
	}

	.arx_horaires_grid.slick-initialized .slick-slide {
		margin: 0 10px;
		height: auto;
	}
	
	.arx_horaires_grid.slick-initialized .slick-slide > div {
		height: 100%;
	}
	
	.arx_horaires_grid.slick-initialized .arx_horaire_card {
		height: 100%;
	}

	/* No negative margin on list: it shifts content left and breaks centerMode */
	.arx_horaires_grid.slick-initialized .slick-list {
		margin: 0;
	}
	
	.arx_horaires_grid.slick-initialized .slick-track {
		display: flex !important;
		align-items: stretch;
	}
}


