@charset "utf-8";
/* CSS Document */
.introduction {
 margin: 20px 0
}
/**légende des pistes de ski de fond**/
.piste-legende {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  align-items: center;
			background-color: #DCDCDC;
			padding: 1rem;
			margin-top:2rem;
}
.piste-legende p {
 margin-bottom: 0
}

.legende-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legende-item .icon {
  width: 20px;
  height: auto;
}
		
li.horaire-suivant {
  background-color:#108848;color:white;border-radius: 6px 6px 0 0;    
	line-height: 1em;
    font-size: 35px;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 15px 15px;
}
.onglets-menu li.actif {
   
    border-radius: 6px 6px 0 0;
}		
.grille-pistes {
  gap: 1rem;
  margin-bottom: 2rem;
}
		
/**fart du jour**/
.fart-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
		

/* Étiquettes de couleurs des farts */
.fart {
  font-size: 0.875rem;
  padding: 0.3em 0.6em;
  border-radius: 5px;
  background-color: #eee;
  color:whitesmoke;
  white-space: nowrap;
	font-weight: bold;
}
.fart.nom {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.fart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* Couleurs de fart */
.fart.vert {
  background-color: #108848;
}

.fart.bleu {
  background-color: #107CC0;
	color:white
}

.fart.rouge {
  background-color: #dc3b00;
}

.fart.violet {
  background-color: #8015db;
}
		
.fart.jaune {
  background-color: #ffcb04;
border: black;
}
.fart.blanc {
  background-color: #efefef;
color: #545454;
	border: 1px solid #545454;
}		
/* Nom de la piste */
.piste-nom {
  font-size: 1rem;
}
/* Icône du style de ski */
.piste-style {
  width: 28px;
  height: auto;
}	
/* État des pistes et difficulté*/
		
.piste-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  /*flex-wrap: wrap;*/
}

/* Icônes de difficulté */
.difficulte {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 2px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Icône de difficulté */
.piste-icon {
  width: 20px;
  height: auto;
}	

		
		
.etat {
  padding: 0.2em 0.6em;
  border-radius: 4px;
  font-size: 0.9rem;
}

/* Couleurs selon état */
.etat.bonne {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.etat.passable {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.etat.ferme {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/** grille responsive / tableau  **/
		
.grid-schedule {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Nombre de colonnes selon la classe */


.grid-schedule.cols-1 {
  grid-template-columns: 1fr;
}
  .grid-schedule.cols-2,
  .grid-schedule.cols-3 {
    grid-template-columns: 1fr;
  }

@media (min-width: 768px) {
.grid-schedule.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-schedule.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
}


/* Item */
.grid-item {
display: flex;
  border: 1px solid #ddd;
  padding: 1rem 0.8rem;
  /*flex-direction: column;*/
gap: 0.5rem;
flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
	overflow: hidden;
	background-color: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


/* Ligne horizontale si on veut que ce soit sur 1 ligne */
.grid-item.horizontal {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}		

.grid-item.highlight {
  background-color: #004080;
  border-left: 5px solid #007BFF;

}
.grid-item p {
		   margin-bottom: 0
	}


h4.grille {
			
	padding: 1rem;
 
  background-color: #074b98; /* bleu ville */
  border-left: 4px solid #107CC0;
  font-weight: bold;
  border-radius: 6px;
 color: white;
 

		}
		
.grid-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.grid-item .time {
  font-weight: bold;
  color: #222;
  flex: 1 1 150px;
}
		.grid-item .titre {
  font-weight: bold;
  color: #222;
  flex: 1 1 200px;
}

.grid-item .type {
  color: #555;
  flex: 1 1 200px;
}

.grid-item .btn {
  padding: 0.4rem 0.8rem;
  background-color: #108848;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.3s;
  
}
.btn:focus,
.btn:focus-visible {
outline: none;
box-shadow: none;
}
.grid-item .reservation {
	flex: 1 1 150px;
}	
		
		/* Responsive */
@media (min-width: 768px) {
  .grid-item .reservation {
	text-align: right;
  }
}
				
/* Emphase de la date */
.date-highlight {
  background-color: #074b98; /* bleu profond ou autre couleur */
  color: white;
  padding: 0.75rem 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  border-bottom: 1px solid #ccc;
}
.highlight {
  background-color: #074b98;
  border-left: 5px solid #107CC0;
  padding: 0.4em 0.6em;
  margin-bottom: 0.5em;
  display: block;
  color: white;
width: 100%;
}	

/*message spécial dans tableau**/
.message { font-size: 14px; color:#545454; font-style: italic; font-weight: bold}	
		
		
		
.ouvert{
background-color: green;padding: 0.3rem;border-radius: 6px;font-size: 0.6em;margin-left: 12px}	
		
		
.statut-fiche-installation {padding: 0 0.3rem;border-radius: 6px; font-weight: bold; font-size: 14px; color: black; display: block; width: fit-content; margin-top:5px}
		
.statut-ouvert {border: 2px solid #108848;}		
.statut-ferme {border: 2px solid #dc3b00;}
.statut-preparation {border: 2px solid #ee7523;}		
		
		
.etiquette {
    margin-left: 0!important;
    margin-right: 10px;
    padding: 5px 10px;
    font-size: 13px;
	margin-top:4px;
	text-transform:none
}
	
	
/**encadré contact bas de page**/
		
		
.contact-wrapper {
margin-top:40px;
  display: flex;
  flex-wrap: wrap;
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.contact-wrapper h2 {margin-top:0	}
		
.contact-photo-side {
  width: 100%;
  max-width: 400px;
  object-fit: cover;
}

.contact-details {
  padding: 1.5rem;
  flex: 1;
  min-width: 250px;
}


/***Recherche***/
.engin-recherche select {
    width: 200px;
	padding:6px;
	font-size: 1em;
}
.engin-recherche label {
    font-weight: bold;
}

.engin-recherche {
    background-color:  #f2f2f2;
    padding: 20px;
}

.engin-recherche .colonnes-2{
    column-gap: 20px;
	margin: 0;
	margin-top:10px;
	display: flex;
	flex-wrap:wrap;
}		
		

/* Filtre de consultatioin */
.consultations-filtre .engin-recherche, .consultations-quartier .engin-recherche{
    background-color:  #f2f2f2;
    padding: 20px;
}
.consultations-filtre .engin-recherche .zone_cac table, .consultations-quartier .engin-recherche .zone_cac table {
    width: auto;
    margin-top: -10px;
}
.consultations-filtre .engin-recherche .zone_cac label, .consultations-quartier .engin-recherche .zone_cac label {
	margin-right: 20px
}		

.consultations-filtre .item .p{margin-bottom:5px;}
.introduction {
	margin:20px 0 34px;
}


/***recherche installations sportives***/
	.message { font-size: 14px; color:#545454; font-style: italic; font-weight: bold
		
	}	
		.picto-interdiction-cannabis {
  background-image: url('/img/pictos/picto-interdiction-cannabis.svg');
}

.picto-interdiction-alcool {
  background-image: url('/img/pictos/picto-interdiction-alcool.svg');
}

.picto-interdiction-fumer {
  background-image: url('/img/pictos/picto-interdiction-fumer.svg');
}


@media (max-width: 600px) {
  .pictos .picto {
    width: 50px;
    height: 50px;
  }

  .bloc-pictos-et-texte {
    align-items: flex-start;
  }
}
		.bloc-pictos-et-texte {
  display: flex;
  flex-direction: column;
  align-items:start ;
  margin-bottom: 1em;
}

.pictos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1em;
}

.pictos .picto {
  width: 60px;
  height: 60px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0 0 auto;
}
		
		
		
.fiche-installation ul.activites:last-of-type {
  margin-bottom: 0;
}
		
/**fiche**/
.activite-emphase {
  padding: 0.7rem;
 background-color: #074b98; 
  border-left: 4px solid #107CC0;
  font-weight: bold;
  border-radius: 6px;
color: white
}
		
		
.fiche-installation {
  width: 99%;
  margin:20px auto;
  background: #fff;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.fiche-installation ul {margin-left: 0}

.fiche-col  {display: flex;
  flex-wrap: wrap; column-gap:20px}

.fiche-col-gauche {
  flex: 1 1 250px;
}
.fiche-col-droite  {
  flex: 1 1 70px;
}
		
		
@media (max-width: 700px) {
  .fiche-col-droite, .fiche-col-gauche {
    flex: 1 1 100%;
  }
}		
		
.fiche-installation h2 {
  margin: 0 0 20px 0
}

.activites {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
}

.activites li {
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
  font-size: 1rem;
  /*display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;*/
 margin-top:0;
}

.bt-reservation {
margin-left: 10px;
font-weight: bold;
}

.coordonnees {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1rem;
}

.services img {
  margin-right: 0.5rem;
}

.adresse {
  margin: 0.8rem 0;
}

.lien-googlemap {
  display: inline-block;
  margin-top: 0.3rem;
  text-decoration: underline;
  
}
.services {
	margin: 0.8rem 0;
	}
.statut {color:#dc3b00;border: 2px solid #dc3b00;
    padding: 0.3rem;
    border-radius: 6px; font-weight: bold; font-size: 14px; margin:0.8rem 0; display: inline}

.statut-ouvert {
  color:#108848;border-color: #108848;
}

.statut-preparation {
  color:black;border-color: #ee7523;
}
		
.statut-ferme {
  color:black;border-color: #dc3b00;
}
		
.annule {
  color:#dc3b00;
}

/* Responsive */
@media (max-width: 700px) {
  .fiche-installation {
    flex-direction: column;
  }
}
	
figure.loisirs img {
	display: none
	}	
@media (min-width: 700px) {
figure.loisirs img { display: block; min-width: 400px; height: auto
	}
	}	
		
.engin-recherche input {font-size:1em; padding:6px }


/**activité annulée**/
.encadre-annulation {
          background-color: white;
          box-shadow: inset 0 0 0 0.3em #dc3b00;
          border-radius: 6px
      }

div[class*="picto-"].encadre-annulation:before {
          filter: invert(50%) brightness(0%);
      }


/**index installations sportives**/
.grid-item.image-card {
  padding: 0; 
  overflow: hidden;
  position: relative;
}

.grid-item.image-card figure {
  margin: 0;
  position: relative;
  height: 100%;
}
		
.grid-item.image-card figure::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%; 
  background: linear-gradient(to top, rgba(33,40,55,0.8), rgba(33,40,55,0));
  pointer-events: none; 
}
		
.grid-item.image-card a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.grid-item.image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover; 
transition: transform 0.4s ease;
}

/* Bandeau titre */
.grid-item.image-card .titre {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0.6rem 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5),
               0 4px 8px rgba(0, 0, 0, 0.65);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
z-index: 1; 
}

	
.grid-item.image-card:hover img {
  transform: scale(1.05);
}