/* --- Section 1 --- */
#section_1 {
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url("../assets/banner.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding: 15px;
    transition-duration: 1.5s;
}

#section_1 h1{
    text-align: center;
    color: var(--white);
    text-shadow: 3px 3px 1px var(--black);
    margin-bottom: 20px;
}

#section_1 h1 span {
    font-size: 42px;
    line-height: 60px;
    font-weight: 600;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    #section_1 h1 span {
        font-size: 28px;
        line-height: 36px;
    }
}

#section_1 p {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    text-shadow: 2px 2px 1px var(--black);
}

/* --- Section 2 --- */
#section_2 {
    padding: 0 5px;
    margin: 50px auto;
    text-align: center;
    color: var(--black);
}

@media (max-width: 1919px) {
    #section_2 {
        padding: 0 15px;
    }
}
#section_2>p {
    max-width: 900px;
    margin: 0 auto 15px;
}

#section_2 .services {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

#service_1, #service_2, #service_3, #service_4, #service_5, #service_6, #service_7 {
    background-position: center;
    background-size: cover;   
    margin-bottom: 50px;
}

#service_1 {
    background-image: url("../assets/services/copro.jpg");    
}

#service_2 {
    background-image: url("../assets/services/topography.jpg");   
}

#service_3 {
    background-image: url("../assets/services/grand_format/louvre-1759627_1280.jpg");   
}

#service_4 {
    background-image: url("../assets/services/expertise.jpg");   
}

#service_5 {
    background-image: url("../assets/services/foncier.jpg");   
}

#service_6 {
    background-image: url("../assets/services/urbanisme.jpg");   
}

#service_7 {
    background-image: url("../assets/services/diagnostics.jpg");   
}

#section_2 .elmt {
    position: relative;
    width: calc(360px - 20px);
    height: calc(360px - 20px);
    padding: 10px 10px 10px 10px;
    box-shadow: 4px 4px 5px 2px rgba(0,0,0,0.25);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1919px) {
    #section_2 .elmt {
        width: 300px;
        height: 300px;
    }
}


#section_2 .elmt:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    background-color: rgba(0,0,0,0.25);
    transition-duration: 0.4s;
}

#section_2 .services h3 {
    font-weight: bold;
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 2px 2px 1px var(--black);
    margin-bottom: 10px;
    z-index: 100;
}

#section_2 .services  p {
    color: var(--white); 
}

#section_2 .services  a {
    border-radius: 50px;
    padding: 5px 7px;
    font-size: 32px;
    background-color: var(--white);
    color: var(--black);
    text-decoration: none;
}

#section_2 .services  p , #section_2 .services  a {
    z-index: 100;
    transition: opacity 1s ease;
    opacity: 0;
    display: none;
    visibility: hidden;
}

#section_2 .elmt:hover:after {
    background-color: rgba(0,0,0,0.8);
}

#section_2 .elmt:hover h3{
    opacity: 0;
    visibility: hidden;
    display: none;
}
#section_2 .elmt:hover p, #section_2 .elmt:hover a {
    opacity: 1;
    visibility: visible;
    display: block;
}

#section_2 .elmt a:hover  {
    font-weight: bold;
}

/* ----- SECTION 3 ----- */
#section_3 {
    padding: 0 0 50px 0;
}

#section_3 .container {
    margin: auto;
    max-width: 1410px;
    padding: 0 15px;
}

#section_3 h2 {
    text-align: center;
}

#section_3 .container p {
    max-width: 900px;
    margin: 0 auto 35px;
    color: var(--black);
    text-align: center;
}

#section_3  #carousel-container {
    width: 100%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

#section_3 #carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

#section_3 .carousel-item {
    width: 100%;
    flex: 0 0 auto;
}

#section_3 .refs {
    display: flex;
    flex-flow: row wrap;
    gap: 50px;
    justify-content: space-around;
}

#section_3 .refs img {
    max-width: 200px;
    object-fit: contain;
}


/* --- Section 4 --- */
#section_4 {
    background-color: #f3f3f3;
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover;
}

#section_4 .container {
    max-width: 1410px;
    padding: 0 15px;
    margin: 0px auto;
    padding: 30px 15px;
}

#section_4 .container h2 {
    text-align: center;
}

#section_4 .carousel {
  position: relative;
  width: 100%;
  height: 600px; /* Ajustez la hauteur selon vos besoins */
  overflow: hidden;
}

#section_4 .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#section_4 .slide.active {
  opacity: 1;
}


#section_4 .carousel-indicators {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
  position: absolute;
  right: 215px;
  top: 200px;
  z-index: 1000;
}

@media (max-width: 1410px) {
    #section_4 .carousel-indicators {
        flex-direction: row;
        right: calc(50% - 33px);
        top: 0;
        z-index: 1000;
    }
}

#section_4 .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--red);
  margin: 0 5px;
  cursor: pointer;
  transition-duration: 0.4s;
}

#section_4 .indicator.active {
  background-color: var(--red);
  height: 25px;
  border-radius: 10px;
}

@media (max-width: 1410px) {
    
    #section_4 .indicator.active {
        height: 10px;
        width: 25px;
    }
}

#section_4 .content {
    position: relative;
    width: calc(60% - 215px);
    margin: auto;
    padding: 50px 75px 50px 300px ;
    border-radius: 5px;
    background-color: var(--white);
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
}

#section_4 .content h3 {
    font-weight: bold;
    margin: 50px 10px 10px 0;
}

#section_4 .content .date {
    position: absolute;
    color: var(--red);
    font-size: 12px;
    font-weight: bold;
    right: 35px;
}

#section_4 .content a {
    color: var(--red);
    text-decoration: none;
    text-transform: uppercase;
    transition-duration: 0.5s;
}

#section_4 .content a:hover {
    text-decoration: underline;
}

#section_4 .content img {
    position: absolute;
    left: -50px;
    top: calc(50% - 135px);
    border-radius: 5px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    width: 270px;
    height: 270px;
    object-fit: cover;
}

@media (max-width: 992px) {
    #section_4 .carousel {
        position: relative;
        width: 100%;
        height: 700px; /* Ajustez la hauteur selon vos besoins */
        overflow: hidden;
    }

    #section_4 .content {
        position: relative;
        max-width: 600px;
        width: 100%;
        margin: 200px auto;
        padding: 100px 15px 50px;
        border-radius: 5px;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    }

    #section_4 .content img {
        position: absolute;
        left: calc(50% - 270px/2);
        top: -200px;
        border-radius: 5px;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
        width: 270px;
        height: 270px;
        object-fit: cover;
    }

    #section_4 .carousel-indicators {
        top: 300px;
    }
}

@media (max-width: 700px)
{
    #section_4 .carousel-indicators {
        justify-content: start;
        left: 12%;
        width: 100px;
    }

 #section_4 .carousel {
        position: relative;
        width: calc(80% - 30px);
        min-width: 350px;
        height: 850px; /* Ajustez la hauteur selon vos besoins */
        overflow: hidden;
        margin: auto;
    }

    #section_4 .content {
        width: calc(80% - 30px);
        min-width: 300px;
    }
}


@media (max-width: 380px)
{
    #section_4 .carousel {
        position: relative;
        width: calc(80% - 30px);
        min-width: 300px;
        height: 900px; /* Ajustez la hauteur selon vos besoins */
        overflow: hidden;
        margin: auto;
    }

    #section_4 .content {
        width: calc(80% - 30px);
        min-width: 250px;
    }

    #section_4 .content img {
        left: calc(50% - 200px/2);
        top: -150px;
        border-radius: 5px;
        box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
        width: 200px;
        height: 200px;
        object-fit: cover;
    }

}
