

/*single service : */

/*Modif Angelo*/
.main{
  width: 100%;
}



/* Header Section */
.services-header{
  position: relative;
  text-align: left;
  margin: 0 auto;
  width: 90%;
}

.formation-header {
  position: relative;
  text-align: left;
  margin: 30px;
  width: 100%;
  max-width: 100vw;
}

@media (max-width: 600px) {
  .formation-header {
    margin: 0;
  }
}

.formation-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.services-header__image, .formation-header__image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 350px;
  object-position: 35% 0;
  z-index: 0; 
}

.services-header__title, .formation-header__title {
  font-family: 'Marcellus', serif;
  position: absolute;
  bottom: 1rem;
  margin-left: 30px;
  margin-bottom: 50px;
  font-size: 3em;
  color: white;
  line-height: 1;
  max-width: 50%;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.3);
  padding: .2rem;
  padding-left: .5rem;
  padding-right: .5rem;
}

@media (max-width: 600px) {
  .services-header__title, .formation-header__title {
    font-size: 2em;
      padding-bottom: 10px;
  }
}

.services-header::before, .formation-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
 /*background: linear-gradient(to right, rgba(39, 38, 38, 0.837), rgba(57, 56, 56, 0));*/
  z-index: 1;
}



.services-header__content, .formation-header__content {
  margin: 30px;
}

.services-header__description {
  margin: 30px;
  font-size: 1.1rem;
  color: #444;
  max-width: 800px;
}

/* Pricing Section */
/* Layout */
.pricing-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

.pricing-section__top {
  display: flex;
  justify-content: center;
  width: 100%;
}

.pricing-section__bottom {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

/* Card container with badge */
.pricing-card-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Badge */
.pricing-card__badge {
  position: absolute;
  top: -12px;
  background: #e6f4ea;
  color: #2e7d32;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}

.pricing-card__badge.green {
  background-color: #e6f4ea;
  color: #388e3c;
}

.pricing-card__badge.blue {
  background-color: #e3e9fc;
  color: #3f51b5;
}

/* Cards */
.pricing-card {
    width: 250px;
    height: 450px;
  background: white;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 40px 25px 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  text-align: center;
  max-width: 320px;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

}

.pricing-card--highlighted {
  background: #e02929;
  color: white;
  box-shadow: 0 12px 30px rgba(224, 41, 41, 0.3);
}

.pricing-card--highlighted .pricing-card__price {
  background: white;
  color: #e02929;
}

/* Price styling */
.pricing-card__price {
  background: #e02929;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 20px;
      width: fit-content;
    align-self: end;
    font-size: larger;
}

.pricing-card__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
 text-align: left;
}

.pricing-card__doc {
  margin-top: 10px;
  color: #bf2323;
  font-size: 0.8rem;
}
.pricing-card__title {
  font-size: 1.5rem;
  font-weight: 600;
}

.pricing-card__details {
  margin: 2rem 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-section__bottom {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card__badge {
    position: static;
    margin-bottom: 10px;
  }
}



/*
single service : mis a disposition d'espace de travail
*/

.image-grid {
  max-width: 600px;       /* however wide you like */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr;
  /* let rows size automatically to their content */
  grid-auto-rows: auto;
  gap: 12px;
}

/* Placement rules unchanged */
.grid-item.large {
  grid-column: 1 / 2;
  grid-row:    1 / 3;
}
.grid-item.small:nth-of-type(2) {
  grid-column: 2 / 3;
  grid-row:    1 / 2;
}
.grid-item.small:nth-of-type(3) {
  grid-column: 2 / 3;
  grid-row:    2 / 3;
}
/* swap portrait & landscape positions */
.grid-item.landscape {
  /* now on the left */
  grid-column: 1 / 2;
  grid-row:    3 / 4;
}
.grid-item.portrait {
  /* now on the right */
  grid-column: 2 / 3;
  grid-row:    3 / 4;
}

/* force both bottom images to the same height */
.grid-item.landscape img,
.grid-item.portrait img {
  width: 100%;
  height: 180px;       /* same height for both */
  object-fit: cover;
  border-radius: 6px;
}


/* All images still fill width */
.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

/* Constrain only the last two */
.grid-item.portrait img,
.grid-item.landscape img {
  max-height: 180px;    /* adjust this to taste */
  width: 100%;
}

/* Mobile: stack */
@media (max-width: 768px) {
  /*
  .image-grid {
    grid-template-columns: 1fr;
  }
  .grid-item {
    grid-column: auto !important;
    grid-row:    auto !important;
  }
    */
  /* let portrait/landscape return to natural ratio on mobile */
  .grid-item.portrait img,
  .grid-item.landscape img {
    max-height: none;
  }
}


/*horaires*/
h3.horaire__title, h3.map__title {
  height: fit-content;
    width: fit-content;
    color: #D80000;
    border-right: #D80000 5px solid;
    grid-area: title;
    font-family: "Marcellus", serif;
    font-size: 1.2em;
    padding: 0 1rem 0 0;
    margin: 2rem 0;
    align-self: start;
    font-weight: bold;
}

.horaire__content {
    max-width: 400px;
    margin: 2rem auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.horaire__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.horaire__note {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}



@media (max-width: 500px) {
  .horaire__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/*go to adresse*/
.map {
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    margin-top: 20px;
    overflow: hidden;
}

.map iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

.map__container {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .map__container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 600px) {
    .map iframe {
        height: 220px;
    }
}

/* --- Train line header --- */



/* --- “J’y vais !” button --- */
.go-button {
  display: inline-block;
  margin-top: 12px;
  background: #ffffff;
  color: #cb3030;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.2s;
}


.direction {
    max-width: 400px;
    margin:  2rem auto ;
    padding: 20px;
    background: #cb3030;
    color: #e3e9fc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.direction__transport {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;

}
#TER-vert {
  background-color: #2e7d32;
  padding: 5px 10px;
  color: #ffffff;
  font-weight: bold;}

.service-content{
  padding: 5%;
  margin: 0 auto;
}




/**formation-header**/
.formation__header {
  width: 100%;
  height: 300px;

}



.formation-header__link {
  color: #ffffff;
  text-decoration: underline ;
}

.formation-header__description {
  margin: 30px 0;
  font-size: 1.1rem;
  color: #444;
  max-width: 1000px;

}

.formation-header-label
{
  margin-bottom: 20px;
}

.formation-header-label>* {
  
  display: inline-block;
  background: #e02929;
  color: white;
  padding: 5px 10px;
  margin: 0 5px 10px 0;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: bold;
}

.formation-header__break-line {
  display: block;
  width: 100%;
  height: 1px;
  background: #ff0707;
  margin: 40px 0;
}

.formation-header__subtitle {
  font-size: 1.5rem;
  margin: 20px 0;
}

.formation-details__subtitle:hover{
    text-decoration: underline;
    color: #D80000;
    cursor: pointer;

}
.formation-details__title {
    height: fit-content;
    width: fit-content;
    color: #D80000;
    border-right: #D80000 5px solid;
    grid-area: title;
    font-family: "Marcellus", serif;

    padding-right: 1rem;
    align-self: end;
    font-weight: bold;
    margin: 3rem 0 1rem 0;
}

.formation-details{
margin: 0 2rem;
}


figure.wp-block-post-featured-image > img {
  display: none;
}

.ateca-formation__logos img{
  max-width: 100px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1)
}
