@media screen and (max-width: 767px) {
  .first-image {
    max-height: 450px !important;
  }
	
	.description-section-formation {
    padding-right: 5% !important;
		padding-left: 5% !important;
  }
	
	.separator-100-px {
		height: 50px !important;
	}
	
	.separator-50-px {
		height: 0 !important;
	}
	
	.img-paysage {
		width: 25em !important;
	}

  .align-center-phone > * {
    margin-left: auto !important;
    margin-right: auto !important;
  }
	
	.description-objectif {
		padding: 5% !important;
	}
	
	.video-incendie {
    height: 200px !important;
  }
	
	.carousel-track img {
    height: 40px;
    gap: 1em;
  }
	
	.case-presentation-complete {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.header-wrapper {
	z-index: 100;
}

p {
  font-family: "Albert Sans", sans-serif;
}

.container-block-formation {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
	width: 100%;
}

.block-formation {
  flex: 1;
  box-sizing: border-box;
}

.full-width {
	width: 100%;
}

.presentation-container {
	width: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
}

.bandeau-elements-media {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    flex-wrap: wrap;
}

.bordered-12 {
	border-radius: 12px;
	overflow: hidden;
}

.img-paysage {
  aspect-ratio: 16 / 9;
  width: 20em;
  height: auto;
  object-fit: cover;
  max-height: 255px;
}

.prix-dynamique {
	color: black;
}






.carousel-container {
  overflow: hidden;
  width: 100%;
  background: #fff;
  padding: 1em 0;
}

.carousel-track {
  display: flex;
  gap: 2em;
  animation: scroll-carousel 40s linear infinite;
  width: max-content;
}

.carousel-track img {
  height: 60px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.05);
}

@keyframes scroll-carousel {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}





.grid-afgsu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.afgsu-card {
  border: 2px solid #656d6f;
  border-radius: 12px;
  padding: 1.2rem;
  text-align: center;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: auto;
  min-height: 220px;
}

.nom-formation {
  font-weight: bold;
  font-size: 1.1rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.ville {
  font-weight: 600;
  font-size: 1.4rem;
  color: #000;
}

.dates-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 0.5rem;
}

.dates {
  color: #555;
  font-size: 0.93rem;
  line-height: 1.3;
}

.prix {
  font-size: 1.1rem;
  color: #000;
  margin-top: 0.5rem;
}

.btn-inscription {
  margin-top: 0.8rem;
  padding: 0.5rem 1rem;
  background-color: #ce0106; 
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.btn-inscription:hover {
  background-color: #a50004;
}

.places-restantes {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #333;
  font-style: italic;
  font-weight: bold;
}

.places-restantes.complet {
  color: #a50004;
  font-weight: bold;
  font-style: normal;
}








.post-type-formation .comments-area,
.post-type-formation .comments,
.post-type-formation .comment-respond,
.post-type-formation .comment-navigation {
  display: none !important;
}

.wp-block-spacer[style*="height: 205.734px"] {
  height: 80px !important;
}

.form-contact input,
.form-contact textarea,
.form-contact select {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.form-contact button {
  background: #ce0106;
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.form-contact button:hover {
  background: #a50004;
}


#contact-formation {
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #ddd;
  font-family: inherit;
}

#contact-formation label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #111;
}

#contact-formation input,
#contact-formation select,
#contact-formation textarea {
  width: 100%;
  padding: 0.6rem 0.9rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 0.3rem;
  box-sizing: border-box;
  background: #fefefe;
  transition: border-color 0.3s ease;
}

#contact-formation input:focus,
#contact-formation select:focus,
#contact-formation textarea:focus {
  border-color: #ce0106;
  outline: none;
}

#contact-formation button[type="submit"] {
  background-color: #ce0106;
  color: #fff;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 1rem;
  display: inline-block;
}

#contact-formation button[type="submit"]:hover {
  background-color: #a80004;
}
