/* -- -- -- -- -- HEADER - SECTION - DÉBUT -- -- -- -- -- */

@media (width > 991px) {
  .cHeader:has(+ .coreBusiness) > .illustration {
    aspect-ratio: 1380/609;
  }

  .cHeader:has(+ .coreBusiness) {
    row-gap: 67px;
  }
}

@media (width > 1199px) {
  body.template-service > *:not(nav):not(.prestations__container):not(.cases) {
      padding-left: 54px;
  }

  .cHeader:has(+ .coreBusiness) {
    column-gap: 5%;
  }
}

/* -- -- -- -- -- HEADER - SECTION - FIN -- -- -- -- -- */

/* -- -- -- -- -- COEUR DE MÉTIER - SECTION - DÉBUT -- -- -- -- -- */

.coreBusiness {
  display: grid;
  gap: 56px;
  margin-block: 48px 20px;
}

.coreBusiness::before {
  content: "";
  display: block;
  width: 40%;
  height: 3px;
  background-color: var(--white);
  margin-bottom: 12px;
}

.coreBusiness .top {
  margin-top: -45px;
}

.coreBusiness .top > .title {
  margin-bottom: 10px;
}

.coreBusiness .details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coreBusiness .details * {
  color: var(--white);
  font-family: var(--ffMMe);
  font-size: 0.9375rem;
  line-height: 1.5625rem;
}

.coreBusiness .details > h2 {
  font-size: 1.3125rem;
  line-height: 1.5625rem;
  text-transform: uppercase;
  font-family: var(--ffMXBo);
}

.coreBusiness .details ul {
  display: grid;
  gap: 15px;
}

.coreBusiness .details ul > li {
  list-style: disc;
  margin-left: 15px;
}

.coreBusiness .details ul > li strong {
  font-family: var(--ffMXBo);
  font-size: 1.25rem;
  line-height: 1.6875rem;
}

.coreBusiness__specification {
  width: 100%;
}

.miniature.specification .name {
  text-transform: uppercase;
  font-size: 1.125rem;
  line-height: 1.5rem;
}

.miniature.specification .name + * {
  margin-bottom: 10px;
}

.miniature.specification .caption {
  grid-template-columns: 1fr;
  row-gap: 0;
  padding-block: 16px;
  height: fit-content;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.miniature.specification .caption:has(:not(.name + *)) {
  padding-top: unset;
  margin-top: -4px;
}

.miniature.specification > img {
  width: 100%;
  height: auto;
  aspect-ratio: 331/238;
  object-fit: cover;
}

/* .specification__grid {
    display: grid;
    gap: 24px;
} */

.coreBusiness .cta > *:not(.cta__background) {
  z-index: 2;
  position: relative;
}

.coreBusiness .cta > .title {
  font-size: 1.875rem;
  line-height: 2.1875rem;
}

.coreBusiness .cta > .subtitle {
  font-size: 1.25rem;
  line-height: 2.1875rem;
  font-family: var(--ffMXBo);
  letter-spacing: normal;
  margin-bottom: 11px;
}

.coreBusiness .cta {
  gap: unset;
  background-color: #191919;
  border: 0px solid #0a0a0a;
  padding: 16px 16px 60px 16px;
  height: 92.5%;
  position: relative;
  transition: all 0.3s ease;
}

.coreBusiness .cta > .cta__background {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../../img/backgrounds/ctaBackground.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.coreBusiness .cta > .content {
  margin-bottom: 11px;
}

.coreBusiness__specification .swiper-button-next,
.coreBusiness__specification .swiper-rtl .swiper-button-prev,
.coreBusiness__specification .swiper-button-prev,
.coreBusiness__specification .swiper-rtl .swiper-button-next {
  bottom: 0px;
}

.coreBusiness__specification .miniature {
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
}

.coreBusiness .cta .cta__background {
  background-image: url(../../img/backgrounds/ctaBackground.png);
  background-size: cover;
  background-repeat: no-repeat;
  /* width: calc(100% + 28px);
    height: calc(100% + 24px); */
  border: 3px solid var(--black);
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0;
  opacity: 0;
  border: 0px solid #191919;
  transition: all 0.3s ease;
  opacity: 0;
  z-index: 0;
}

.coreBusiness .cta a.btn > .hovered__text {
  display: inline-block;
  font-family: var(--ffMXBo);
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  opacity: 0;
  position: absolute;
  left: -100%;
  transition: all 0.3s ease;
}

.coreBusiness .cta a.btn > .text {
  display: inline-block;
  font-family: var(--ffMXBo);
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  opacity: 1;
  position: relative;
  right: 0;
  transition: all 0.3s ease;
}

.coreBusiness .content li {
  padding-left: 15px;
  position: relative;
  color: var(--white);
}

.coreBusiness .content li::before {
  content: "";
  background-color: var(--white);
  border-radius: 50px;
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: auto;
  aspect-ratio: 1 / 1;
}

.coreBusiness .swiper-pagination {
  color: var(--white);
  z-index: 0;
}

.coreBusiness .miniature.specification .caption {
  height: fit-content;
}

@media (width > 575px) {
  .coreBusiness .miniature.specification .caption {
    height: 100%;
  }
}

@media (width > 767px) {
  .coreBusiness {
    padding-bottom: 71px;
    position: relative;
  }

  .coreBusiness__specification .swiper-button-next,
  .coreBusiness__specification .swiper-rtl .swiper-button-prev,
  .coreBusiness__specification .swiper-button-prev,
  .coreBusiness__specification .swiper-rtl .swiper-button-next {
    display: none;
  }

  .specification__grid {
    display: grid;
    grid-template-columns: repeat(2, calc(50% - 21px));
    gap: 49px 41px;
  }

  .coreBusiness__specification .miniature {
    margin: unset;
    position: static;
    width: 100%;
    padding: unset;
    gap: 20px;
    display: flex;
    flex-direction: column;
  }

  .coreBusiness .miniature .caption {
    height: 100%;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .coreBusiness .cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 24px;
    height: 100%;
  }

  .coreBusiness::before {
    position: absolute;
    top: 12px;
    left: 20px;
    width: 40px;
    margin-bottom: unset;
  }

  .coreBusiness .details {
    padding-left: 55px;
  }

  .coreBusiness .top {
    margin-top: unset;
    padding-left: 60px;
  }
}

@media (width > 991px) {
  .coreBusiness .top > .title {
    margin-bottom: 20px;
    font-size: 1.875rem;
    line-height: 2.5625rem;
  }

  .coreBusiness::before {
    top: 20px;
    left: 35px;
    width: 45px;
  }

  .coreBusiness .details ul {
    display: grid;
    gap: 22px;
  }

  .miniature.specification .name + * {
    margin-bottom: 20px;
  }

  .coreBusiness .cta > .subtitle,
  .coreBusiness .cta > .content {
    margin-bottom: 23px;
  }

  .miniature.specification .caption {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-inline: unset;
  }

  .coreBusiness .cta {
    justify-content: flex-start;
  }

  .specification__grid {
    grid-template-columns: repeat(3, calc(33% - 21px));
  }
}

@media (width > 1199px) {
  .coreBusiness {
    margin-block: 64px 73px;
    gap: 69px 89px;
    grid-template-columns: 0.7fr 0.3fr;
  }

  .coreBusiness::before {
    left: 54px;
  }

  .coreBusiness .details {
    gap: 19px;
    padding-left: unset;
  }

  .coreBusiness .details {
    grid-area: 1/2/3/3;
  }

  .coreBusiness::before {
    width: 122px;
  }

  .coreBusiness .top {
    padding-left: 137px;
  }

  .coreBusiness .cta {
    padding: 27px 28px;
    margin-inline: -16px -52px;
    width: calc(100% + 68px);
  }

  .coreBusiness__specification {
    padding-right: 50px;
    width: calc(100% + 50px);
  }
}

@media (width > 1399px) {
  .specification__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 49px 63px;
  }

  .coreBusiness {
    grid-template-columns: 0.8fr 0.2fr;
  }
}

@media (width > 1479px) {
  .coreBusiness::before {
    left: 54px;
  }

  .coreBusiness .details {
    width: 120%;
  }
}

@media (pointer: fine) {
  .coreBusiness .cta:hover .cta__background {
    border: 10px solid #191919;
    transition: all 0.3s ease;
    z-index: 1;
    opacity: 1;
  }

  .coreBusiness .cta:hover {
    transition: all 0.3s ease;
    border: 3px solid #0a0a0a;
    padding: 24px 25px;
  }

  .coreBusiness .cta:hover > *:not(.cta__background) {
    z-index: 1;
    position: relative;
  }

  .coreBusiness .cta:hover a.btn > .hovered__text {
    opacity: 1;
    left: 0;
    transition: all 0.3s ease;
    position: relative;
  }

  .coreBusiness .cta:hover a.btn > .text {
    opacity: 0;
    right: -100%;
    transition: all 0.3s ease;
    position: absolute;
  }
}

/* -- -- -- -- -- COEUR DE MÉTIER - SECTION - FIN -- -- -- -- -- */

/* -- -- -- -- -- TYPES DE PRESTATIONS - SECTION - DÉBUT -- -- -- -- -- */

body > .prestations__container {
  position: relative;
  max-width: unset;
}

.prestations {
  padding: 48px 20px 62px 20px;
  position: relative;
}

.prestations > .swiper-button-next,
.prestations > .swiper-button-prev {
  bottom: 5px;
}

.prestations > .swiper-button-prev--Desktop,
.prestations > .swiper-button-next--Desktop {
  display: none;
}

.prestations > .swiper-pagination {
  margin-bottom: 5px;
}

.prestations__background {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 45%;
  background-image: url(../../img/backgrounds/ironBackground.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
}

.prestations > .title,
.prestations > .content {
  text-align: center;
}

.prestations > .title {
  margin-bottom: 5px;
}

.prestations .types {
  margin-top: 36px;
}

/* .prestations .miniature .caption {
  display: block;
  padding: 0px 11px 18px 11px;
  justify-content: flex-start;
  position: relative;
}

.prestations .miniature .caption > .title {
  align-self: flex-start;
}

.prestations .miniature .caption > .content {
  margin-bottom: 43px;
}

.prestations .miniature .caption > .link {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.5625rem;
} */

.prestations .swiper-pagination {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.375rem;
  font-family: var(--ffMMe);
  z-index: 0;
}

.prestations .types > .swiper-slide {
  height: auto;
}

.prestations .types > .swiper-slide > .miniature {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.prestations .types .swiper-slide > .miniature .illustration {
  aspect-ratio: 331/238;
}

body.template-service .prestations__container .prestations > .title {
  text-align: center;
}

@media (width > 991px) {
  body.template-service .prestations__container .prestations > .title {
    text-align: center;
  }

  .prestations {
    padding: 93px 35px 105px 35px;
  }

  .prestations > .title {
    margin-bottom: 10px;
    font-size: 1.875rem;
    line-height: 2.5625rem;
  }

  .prestations .types {
    margin-top: 72px;
  }

  /* .prestations .miniature .caption {
    gap: 37px;
    padding-bottom: 19px;
    padding: 0px 11px;
  }

  .prestations .miniature .caption > .link {
    margin-top: 26px;
  } */

  .prestations > .swiper-button-prev--Desktop,
  .prestations > .swiper-button-next--Desktop {
    display: block;
    bottom: 42.5%;
  }

  .swiper-button-prev--Desktop:after,
  .swiper-button-next--Desktop:after {
    display: block;
  }

  .prestations > .swiper-button-prev--Desktop {
    left: 0px;
  }

  .prestations > .swiper-button-next--Desktop {
    right: 0px;
  }

  /* .prestations .miniature .caption > .content {
    margin-bottom: 59px;
  }

  .prestations .miniature .caption > .link {
    bottom: 17px;
  } */
}

@media (width > 1199px) {
  .prestations {
    padding-inline: 50px;
  }

  .prestations > .title,
  .prestations > .content {
    margin-inline: auto;
    width: 70%;
  }

  .prestations > .swiper-button-prev--Desktop {
    left: 10px;
  }

  .prestations > .swiper-button-next--Desktop {
    right: 10px;
  }

  .prestations .swiper-pagination {
    bottom: unset;
    margin-top: 13px;
    text-align: end;
    padding-inline: 35px calc(15% + 90px);
    top: 130px;
  }

  .prestations > .swiper-button-prev--Desktop,
  .prestations > .swiper-button-next--Desktop {
    bottom: 40%;
  }

  .prestations > .swiper-button-next:not(.swiper-button-next--Desktop),
  .prestations > .swiper-button-prev:not(.swiper-button-prev--Desktop) {
    bottom: unset;
    margin-top: 5px;
    top: 130px;
  }

  .swiper-button-next {
    right: calc(15% + 50px);
  }

  .swiper-button-prev {
    left: unset;
    right: calc(15% + 149px);
  }
}

@media (width > 1479px) {
  .prestations > .swiper-button-prev--Desktop {
    left: 0px;
  }

  .prestations > .swiper-button-next--Desktop {
    right: 0px;
  }
}

/* -- -- -- -- -- TYPES DE PRESTATIONS - SECTION - FIN -- -- -- -- -- */

/* -- -- -- -- -- NOS RÉALISATION - SECTION - DÉBUT -- -- -- -- -- */

body .realisation {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-block: 81px 69px;
}

body .realisation::before {
  content: "";
  display: block;
  width: 40%;
  height: 3px;
  background-color: var(--white);
  margin-bottom: 12px;
}

body .realisation .illustration__content {
  position: relative;
}

body .realisation .illustration {
  aspect-ratio: 4/3;
}

body .realisation .details {
  position: absolute;
  bottom: 10%;
  left: 10%;
}

body .realisation .details::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 2px;
  top: 5%;
  height: 90%;
  background-color: var(--white);
}

body .realisation .details > .building {
  font-size: 1.25rem;
  line-height: 1.6875rem;
  text-transform: uppercase;
  font-family: var(--ffMSeBo);
  width: 80%;
}

body .realisation .details > .name {
  font-size: 1.875rem;
  line-height: 2.1875rem;
  text-transform: uppercase;
  font-family: var(--ffMXBo);
  width: 80%;
}

body .realisation__caroussel {
  width: 100%;
}

@media (width > 767px) {
  body .realisation {
    margin-block: 81px 69px;
    padding-block: unset;
    position: relative;
  }

  body .realisation .details {
    left: 79px;
    bottom: 40px;
  }

  body .realisation .illustration {
    aspect-ratio: 1226/649;
  }

  body .realisation .details > .name,
  body .realisation .details > .building {
    width: 100%;
  }

  body .realisation::before {
    position: absolute;
    top: 12px;
    left: 20px;
    width: 40px;
    margin-bottom: unset;
  }

  body .realisation > .title,
  body .realisation > .content {
    padding-left: 60px;
  }
}

@media (width > 991px) {
  body .realisation {
    margin-block: 102px 139px;
    padding-block: unset;
    gap: 20px;
  }

  body .realisation::before {
    left: 35px;
    top: 20px;
    width: 45px;
  }

  body .realisation .title {
    font-size: 1.875rem;
    line-height: 2.5625rem;
  }

  body .realisation .details > .name {
    font-size: 2.8125rem;
    line-height: 3.875rem;
  }


  body .realisation .details::before {
    left: -15px;
    width: 2px;
  }

  body .realisation__caroussel {
    width: calc(100% - 60px);
    margin-left: 60px;
    margin-top: 60px;
  }
}

@media (width > 1199px) {
  body .realisation {
    margin-top: 163px;
  }

  body .realisation::before {
    width: 122px;
  }

  body.template-service .realisation::before {
    left: 54px;
  }

  body .realisation > .title,
  body .realisation > .content {
    padding-left: 137px;
  }

  body .realisation__caroussel {
    margin-left: 137px;
    width: calc(100% - 137px);
  }

  body .realisation .details {
    left: 90px;
  }

  body .realisation .details::before {
    left: -20px;
  }
}

@media (width > 1479px) {
  body .realisation::before {
    left: 54px;
  }

  body .realisation > .title,
  body .realisation > .content {
    padding-inline: 137px 71px;
  }

  body .realisation__caroussel {
    margin-inline: 122px 71px;
    width: calc(100% - 193px);
  }
}

/* -- -- -- -- -- NOS RÉALISATION - SECTION - FIN -- -- -- -- -- */

/*-- -- -- -- -- ÉTUDE DE CAS - SECTION - DÉBUT -- -- -- -- -- */

.cases {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-inline: 0;
  margin-bottom: 60px;
}

.cases > .cHeader {
  margin-inline: 20px;
}

.cases__caroussel {
  width: 100%;
}

.cases .miniature .caption {
  column-gap: 4px;
}

.cases .miniature .illustration {
  aspect-ratio: 635/513;
}

.cases .cHeader > *:nth-child(4).link {
  font-size: 0.875rem;
  line-height: 1.1875rem;
}

@media (width > 767px) {
  .cases .cHeader > *:nth-child(4).link {
    grid-area: 2/2/3/3;
  }

  .cases .miniature,
  .cases .miniature .illustration {
    padding: unset;
  }
}

@media (width > 991px) {
  .cases {
    gap: 59px;
    margin-bottom: 120px;
  }

  .cases .cHeader .subtitle {
    font-size: 1rem;
    line-height: 1.375rem;
  }

  .cases .cHeader .title {
    font-size: 2.5rem;
    line-height: 3.4375rem;
  }

  .cases > .cHeader {
    padding-block: unset;
    margin-top: unset;
    row-gap: 29px;
  }
}

@media (width > 1199px) {
body.template-service .cases > .cHeader {
  padding-left: 27px;
}

  .cases > .cHeader {
    margin-inline: 70px 24px;
    column-gap: 312px;
  }

  .cases__caroussel {
    padding-inline: 10%;
  }

  .cases .miniature .caption > .link {
    font-size: 0.875rem;
    line-height: 1.1875rem;
    grid-row: 1/3;
  }
}

@media (width > 1479px) {
  body > .cases {
    max-width: unset;
  }

  .cases > .cHeader {
    max-width: 1440px;
    margin-inline: auto;
  }

  .cases__caroussel {
    padding-inline: 10%;
  }
}

/*-- -- -- -- -- ÉTUDE DE CAS - SECTION - FIN -- -- -- -- -- */
