html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}
section {
  width: 100%;
}

h1 {
  color: #7bacaddd;
  font-size: calc(0.5rem + 2.5vw);
  font-family: "nexa-rust-sans-black-2", sans-serif;
  font-weight: 700;
  font-style: normal;
  position: relative;
  display: inline-block;
  text-align: center;
}

h1::before,
h1::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  width: 20px;
  background-color: #7bacaddd;
}

h1::before {
  left: -40px;
}

h1::after {
  right: -40px;
}

h3 {
  color: white;
  font-size: calc(0.5rem + 1.5vw);
  font-family: "nexa-rust-sans-black-2", sans-serif;
  font-weight: 400;
  font-style: normal;
  position: relative;
  display: inline-block;
  text-align: center;
}

h3::before,
h3::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  width: 20px;
  background-color: white;
}

h3::before {
  left: -40px;
}

h3::after {
  right: -40px;
}

h5 {
  color: #7bacaddd;
  font-size: calc(0.5rem + 0.75vw);
  font-family: "nexa-rust-sans-black-2", sans-serif;
  font-weight: 100;
  font-style: normal;
  position: relative;
  /* display: inline-block; */
  text-align: center;
}

h5::before,
h5::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  width: 20px;
  background-color: #7bacaddd;
}

h5::before {
  left: -40px;
}

h5::after {
  right: -40px;
}

p {
  color: grey;
  font-size: 0.8rem;
  font-family: "montserrat", sans-serif;
  font-weight: 200;
  font-style: normal;
  word-wrap: break-word; /* For older browsers */
  overflow-wrap: break-word; /* For newer browsers */
  text-align: center;
}

a {
  color: white;
  font-weight: bold;
}

a:hover {
  color: grey;
  font-weight: bold;
}

#info,
#intro,
#services,
#links,
#forms,
#about {
  margin: 150px 20px;
  padding: 0 20px;
  max-width: 100%;
  box-sizing: border-box;
}

/* Shadow effects for images */
.img-shadow {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
  transition: all 0.3s ease-out;
}

/* Grid layout for images */
.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 10px;
}

.full-height {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.half-height {
  grid-column: 2 / 3;
  grid-row: auto;
}

.text-content {
  max-width: 100%; /* Set maximum width */
  overflow-wrap: break-word; /* Enable word wrapping */
}

.img-responsive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-position: center center;
}

.overlay-text-footer {
  position: absolute;
  top: 70%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-weight: bold;
  width: 100%;
  text-align: center;
}
.footer {
  width: 100%;
  height: 30vh;
  position: relative;
  overflow: hidden;
}

.footer:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 30%;
  background-color: transparent;
  border-radius: 0 0 40% 20%;
  box-shadow: 0 0 0 9999px #7bacaddd;
}

.footer:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background-image: url(/assets/Logo_Fleur-droite-0945d43ee0918219b8c3f17f77f86d358d736909aa37e156be291244c344e10d.png);
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}

.error_bg {
  background-image: url(/assets/error_bg-e30bcb861ad485d6b9e1643e90f0d3c34a7f08fe4c03bfd8e616752e16b49fa0.jpg);
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.btn-outline-secondary {
  color: #7bacaddd;
  border-color: #7bacaddd;
  border-radius: 20px;
}

.btn-outline-secondary:hover {
  color: white;
  background-color: #7bacaddd;
  border-color: #7bacaddd;
  border-radius: 20px;
}

.error {
  position: relative;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}
.error p {
  color: grey;
}
.error a {
  color: #7bacaddd;
}

.navbar-brand {
  height: 90px;
}

.arrow-container {
  position: fixed;
  bottom: 150px;
  right: 30px;
  width: 80px;
  height: 40px;
  background-color: #7bacaddd;
  color: white;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
  transform-origin: right bottom;
  font-size: 0.7rem;
}

.navbar-toggler {
  border: none;
  background: transparent;
  outline: none;
  cursor: pointer;
}

.navbar-toggler-icon {
  display: inline-block;
  width: 30px;
  height: 3px;
  position: relative;
  transition: all 0.25s ease-in-out;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #7bacaddd;
  transition: all 0.25s ease-in-out;
}

.navbar-toggler-icon::before {
  top: -10px;
}

.navbar-toggler-icon::after {
  top: 10px;
}

#nav-toggle:checked + .navbar-toggler .navbar-toggler-icon {
  background: transparent;
}

#nav-toggle:checked + .navbar-toggler .navbar-toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

#nav-toggle:checked + .navbar-toggler .navbar-toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-link:focus {
  color: #7bacaddd !important;
  background-color: transparent;
}

.footer_logo {
  height: 125px;
  width: 125px;
  text-align: center;
}

.fa-brands .fa-facebook {
  color: grey;
  font-size: 3rem;
  transition: color 0.3s ease;
}

.fa-brands .fa-facebook:hover {
  color: white;
}

.navbar {
  text-align: center;
  background-color: #f8f8f8;
}

.nav-item {
  display: inline-block;
  margin-right: 20px;
}

.nav-link {
  text-decoration: none;
  color: grey;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
}

.nav-link:hover {
  color: grey !important;
  font-weight: bold;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: #7bacad;
  left: 0;
  bottom: 0;
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link:focus::after {
  width: 100%;
}

.nav-link.active {
  color: #7bacad !important;
  font-weight: bold;
}

.main-services-banner {
  background-image: url(/assets/services_img_2-1b7772a2d17f384ff41a77d9d336ec36aef3929513797a85091e44561e787b43.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-top-left-radius: 100px;
  border-top-right-radius: 100px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  height: 500px;
  width: 100%;
  position: relative;
}

.circle {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-repeat: no-repeat;
  background-position: center;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.circle_mobile {
  width: 80px;
  height: 80px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto;
  color: white;
}

/* Left circles */
.circle-left-1 {
  top: 10%;
  left: 0;
  transform: translateX(-50%);
  background-image: url(/assets/construction-ff0a6329ee1290113159fc9df9fc761659121180902348c28e9bd89286eac2f8.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.circle-left-2 {
  top: 50%;
  left: 0;
  transform: translateX(-50%);
  background-image: url(/assets/cout-projet-183f2dd3c9d304c9cb90073340e13d864b41ddb4f2fb04f194d241fc5d201fde.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.circle-left-3 {
  top: 80%;
  left: 0;
  transform: translateX(-50%);
  background-image: url(/assets/redaction-2a077814d98a2405cbe4527bd08befc9b9ebb10e848b49e56e81c90cab81ad68.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Right circles */
.circle-right-1 {
  top: 10%;
  right: 0;
  transform: translateX(50%);
  background-image: url(/assets/particulier-b01354caeb75c76b4136142362ef5372b5c67ffa4348b0b32450218b4df6cca3.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.circle-right-2 {
  top: 50%;
  right: 0;
  transform: translateX(50%);
  background-image: url(/assets/tenue-livre-4711d4f68ac3a3889d9885a8d436c63c8f2be95c446b986a611111cc0c7b5216.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.circle-right-3 {
  top: 80%;
  right: 0;
  transform: translateX(50%);
  background-image: url(/assets/convention-f8f07ae756fb7fbcef3f4884c71cd2e55dd44b49ac7a61ec3d1bc4a8eabbfbad.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Mobile Left circles */
.mobile-circle-left-1 {
  background-image: url(/assets/construction-ff0a6329ee1290113159fc9df9fc761659121180902348c28e9bd89286eac2f8.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.mobile-circle-left-2 {
  background-image: url(/assets/cout-projet-183f2dd3c9d304c9cb90073340e13d864b41ddb4f2fb04f194d241fc5d201fde.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.mobile-circle-left-3 {
  background-image: url(/assets/redaction-2a077814d98a2405cbe4527bd08befc9b9ebb10e848b49e56e81c90cab81ad68.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

/* Mobile Right circles */
.mobile-circle-right-1 {
  background-image: url(/assets/particulier-b01354caeb75c76b4136142362ef5372b5c67ffa4348b0b32450218b4df6cca3.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.mobile-circle-right-2 {
  background-image: url(/assets/tenue-livre-4711d4f68ac3a3889d9885a8d436c63c8f2be95c446b986a611111cc0c7b5216.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.mobile-circle-right-3 {
  background-image: url(/assets/convention-f8f07ae756fb7fbcef3f4884c71cd2e55dd44b49ac7a61ec3d1bc4a8eabbfbad.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.form-container {
  background-color: rgb(250, 250, 159);
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  color: white;
  border-radius: 20px;
}

.body-content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.useful_link {
  background-image: url(/assets/link_bg-adb3c1f7283071dd7b0d050eafeb7ba456ab958da03b019379669a1c074a1aae.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 20px;
  border-radius: 20px;
}

.useful_link_img {
  height: 200px;
  /* border-top-left-radius: 100px; */
  border-top-right-radius: 100px;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  padding: 10px;
  background-color: white;
}

.rounded-circle-image {
  max-width: 400px;
  height: 400px;
  border-radius: 50%;
  padding: 5px;
  border: 2px solid grey;
  object-fit: cover;
}

.content-container {
  width: 100%;
  min-height: 100vh;
  background-image: url(/assets/background-7377b018a2286835d80b89dbfa9331b95c464e42ee069393fe3fe3eb932f5610.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
}

.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.main-banner {
  width: 100%;
  height: auto;
  display: block;
}

.image-overlay {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.overlay-text {
  position: relative;
  text-align: center;
  z-index: 10;
}

@media (max-width: 575.98px) {
  .main-services-banner {
    height: 300px;
    margin: 20px 0;
  }

  .main-banner {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 52vh;
  }

  .main-logo {
    width: 40%;
    height: auto;
  }

  h1::before {
    left: -30px;
  }

  h1::after {
    right: -30px;
  }
  h3::before {
    left: -30px;
  }

  h3::after {
    right: -30px;
  }
  h5::before {
    left: -30px;
  }

  h5::after {
    right: -30px;
  }

  .circle {
    display: none;
  }

  .rounded-circle-image {
    margin-bottom: 150px;
  }

  .form-container {
    display: flex;
    flex-direction: column;
  }

  .row.overlay-text-footer {
    top: 60%;
  }

  .footer {
    height: 60vh;
  }

  .footer:after {
    top: 15%;
  }

  .useful_link_img {
    height: 175px;
  }

  #info,
  #intro,
  #services,
  #links,
  #forms,
  #about {
    margin: 100px 20px;
    padding: 0 20px;
    max-width: 100%;
    box-sizing: border-box;
  }

  #intro_img {
    margin-bottom: 100px;
  }

  #intro_text {
    text-align: center;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {

  .main-services-banner {
    height: 300px;
    margin: 20px 0;
  }

  .main-banner {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 40vh;
  }

  .main-logo {
    width: 40%; /* Responsive width of the logo */
    height: auto; /* Maintain aspect ratio */
  }

  .circle {
    display: none;
  }

  .rounded-circle-image {
    margin-bottom: 150px;
  }

  #info,
  #intro,
  #services,
  #links,
  #forms,
  #about {
    margin: 100px 20px;
    padding: 0 20px;
    max-width: 100%;
    box-sizing: border-box;
  }

  #intro_img {
    margin-bottom: 100px;
  }

  #intro_text {
    text-align: center;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {

  .main-services-banner {
    height: 300px;
    margin: 20px 0;
  }

  .main-banner {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 50vh;
  }

  .main-logo {
    width: 40%; /* Responsive width of the logo */
    height: auto; /* Maintain aspect ratio */
  }

  .circle {
    display: none;
  }
  .rounded-circle-image {
    margin-bottom: 150px;
  }

  #info,
  #intro,
  #services,
  #links,
  #forms,
  #about {
    margin: 100px 20px;
    padding: 0 20px;
    max-width: 100%;
    box-sizing: border-box;
  }

  #intro_img {
    margin-bottom: 100px;
  }

  #intro_text {
    text-align: center;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .main-banner {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 50vh;
  }

  .circle_mobile {
    display: none;
  }

  .main-logo {
    width: 40%;
    height: auto;
  }

  .service-item {
    justify-content: space-between;
  }
}

@media (min-width: 1200px) {
  .main-banner {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 50vh;
  }

  .circle_mobile {
    display: none;
  }

  .main-logo {
    width: 40%;
    height: auto;
  }
  .service-item {
    justify-content: space-between;
  }
}
