body {
  font-family: "nunito", sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  padding: 0;
  color: #2c2b5e;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  color: #2c2b5e;
  background: #ffffff;
  border: 2px solid #2c2b5e;
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  border-radius: 0;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #2c2b5e;
  transition: left 0.4s ease;
  z-index: 0;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary span {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.btn-primary:hover span {
  color: #ffffff;
}
.btn-secondary {
  background-color: #2c2b5e;
  border: none;
  border-radius: 22px;
  color: #fff;
  padding: 13px 30px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  font-size: 14px;
  font-weight: 400;
  display: inline-block;
}
.btn-secondary:hover {
  background-color: #fff;
  color: #2c2b5e;
}
a {
  color: #5d9cec;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}
a:hover {
  color: #2c2b5e;
}
h2 {
  margin-top: 60px;
  font-size: 35px;
  font-weight: 700;
  color: #2c2b5e;
  justify-self: center;
  width: fit-content;
}
h2::after {
  content: "";
  display: block;
  position: absolute;
  width: 100px;
  height: 3px;
  background-color: #2c2b5e;
  margin-top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

/* HEADER HEADER HEADER HEADER */
header {
  background-color: #2c2b5e;
  position: fixed;
  width: 100%;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.logo-header {
  height: 58px;
  padding: 19px 0;
}
.btn-header {
  background-color: #2c2b5e;
  border: 1px solid #fff;
  border-radius: 22px;
  color: #fff;
  padding: 10px 15px;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
.contact {
  justify-self: flex-end;
  padding-right: 50px;
  display: flex;
  align-items: center;
  column-gap: 20px;
}
.btn-header:hover {
  background-color: #fff;
  color: #2c2b5e;
}
.tel-header {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  font-weight: 700;
  display: flex;
  align-items: center;
  column-gap: 10px;
  transition: all 0.3s ease-in-out;
}
.tel-header:hover {
  color: #5d9cec;
}
.tel-header img {
  height: 30px;
}

/* MAIN MAIN MAIN MAIN */
.slide {
  padding-top: 100px;
  width: 100%;
}
.slide-text {
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 32px 48px;
  color: white;
  text-align: center;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.slogan {
  font-weight: 700;
  margin: 0 0 25px 0;
}
/* PRESTATIONS PRESTATIONS PRESTATIONS */
.prestations {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.prestations h3 {
  margin-bottom: 0;
}
.prestations-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
}
.prestation {
  position: relative;
  padding: 30px;
  border: 1px solid #cdced4;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: none;
  overflow: hidden;
  max-width: 400px;
  text-align: center;
}
.prestation::before,
.prestation::after,
.prestation span::before,
.prestation span::after {
  content: "";
  position: absolute;
  background: #5d9cec;
  transition: transform 0.5s ease;
}
.prestation::before {
  height: 2px;
  width: 100%;
  top: 0;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
}
.prestation::after {
  height: 2px;
  width: 100%;
  bottom: 0;
  right: 0;
  transform: scaleX(0);
  transform-origin: right;
}
.prestation span::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 0;
  transform: scaleY(0);
  transform-origin: top;
}
.prestation span::after {
  width: 2px;
  height: 100%;
  bottom: 0;
  right: 0;
  transform: scaleY(0);
  transform-origin: bottom;
}
.prestation:hover::before,
.prestation:hover::after {
  transform: scaleX(1);
}
.prestation:hover span::before,
.prestation:hover span::after {
  transform: scaleY(1);
}

/* PERSPECTIVES PERSPECTIVES PERSPECTIVES */
.perspectives {
  padding: 0 20px;
}
.images {
  display: flex;
  justify-content: center;
  column-gap: 20px;
}
.perspective-img {
  max-width: 332px;
  max-height: 487px;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.perspectives h2 {
  margin-bottom: 60px;
}
.texte {
  display: flex;
  justify-content: center;
  column-gap: 40px;
}
.desc {
  color: #2c2b5e;
  max-width: 805px;
}
.desc p {
  margin: 0;
}

/* REALISATIONS REALISATIONS REALISATIONS */
.realisations {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin-top: 60px;
  margin-bottom: 40px;
}
.realisations .encarts {
  display: flex;
  align-items: center;
  column-gap: 20px;
  margin-bottom: 40px;
}
.encart-360 {
  text-align: center;
}
.encart-360 .titre {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}
.encart-360 .description {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  margin-top: 0;
}

/* FOOTER FOOTER FOOTER FOOTER */
footer {
  background-color: #2c2b5e;
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.logo-footer {
  width: 374px;
  height: 121px;
}
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 70px;
  margin-top: 40px;
  margin-bottom: 0;
}
footer .tel,
.mail,
.adresse {
  display: flex;
  align-items: center;
  column-gap: 20px;
  text-align: left;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}
footer a:hover {
  color: #5d9cec;
}

/* MEDIA QUERIES MEDIA QUERIES MEDIA QUERIES */
@media (max-width: 1550px) {
  .realisations .encart-360 iframe {
    width: 450px;
    height: 400px;
  }
  .texte {
    flex-direction: column;
    align-items: center;
  }
  .desc {
    max-width: 684px;
    text-align: center;
    margin-top: 20px;
  }
}
@media (max-width: 991px) {
  .btn-header {
    display: none;
  }
  .prestations-list {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
  .realisations .encarts {
    flex-direction: column;
    row-gap: 20px;
  }
}

@media (max-width: 767px) {
  .slide iframe {
    width: 100%;
    height: 200px;
  }
  .slide-text {
    position: relative;
    width: fit-content;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #2c2b5e;
    margin-top: 20px;
  }
  .desc {
    padding: 20px;
  }
  h2 {
    font-size: 28px;
    margin-top: 30px;
  }
  .btn-header {
    display: none;
  }
  .tel-header span {
    display: none;
  }
  .contact {
    padding-right: 20px;
  }
  .prestations-list {
    grid-template-columns: 1fr;
  }
  .images img {
    width: 200px;
    height: 300px;
  }
  .logo-footer {
    width: 250px;
    height: 80px;
  }
  .footer-links {
    width: fit-content;
    display: block;
    margin: auto;
    margin-top: 40px;
  }
  .footer-links a {
    margin-bottom: 20px;
  }
  .footer-links a:last-child {
    margin-bottom: 0;
  }
  .footer-links .adresse-icon {
    margin-right: 11px;
  }
}
@media (max-width: 600px) {
  .images img {
    width: 150px;
    height: 220px;
  }
  .perspectives h2 {
    font-size: 20px;
    margin-bottom: 40px;
    margin-top: 40px;
  }
}
@media (max-width: 480px) {
  .slide-text {
    padding: 16px;
  }
  .slide-text h1 {
    font-size: 24px;
  }
  .slide-text p {
    font-size: 16px;
  }
  .prestations-list {
    grid-template-columns: 1fr;
    padding: 10px;
  }
  .realisations .encart-360 iframe {
    width: 100%;
    height: 300px;
  }
}
