#index-img{
    min-width: 100%;
    max-height: 100dvh;
    overflow: hidden;
}
#first-section img{
    min-width: 100%;
    min-height: 100dvh;
    object-fit: contain; /* garde le ratio, pas de rognage */
    object-position: center;
    display: block;
    margin: 0 auto;
}

#header-img-div{
    width: 100%;
    max-height: 200px;
    overflow: hidden;
}
#header-img-div img{
    width: 100%;
    object-fit: contain; /* garde le ratio, pas de rognage */
    object-position: center;
    display: block;
    margin: 0 auto;
    translate: 0 -30%;
}

.main-content {
    padding: var(--main-padding);
}

.main-title{
    padding-bottom: 0;
    display: flex;
    justify-content: center;
}
.main-title h1{
    font-family: var(--font-serif);
    text-transform: uppercase;
    font-size: 2rem;
    font-weight: 900;
    text-align: center;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}
.main-title h1{
    background-color: white;
}
.main-title h1::before,
.main-title h1::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100px;         /* longueur du trait */
    height: 2px;          /* épaisseur du trait */
    background: #333;     /* couleur du trait */
}
.main-title h1::before {
  right: 100%;
  margin-right: 15px;
}

.main-title h1::after {
  left: 100%;
  margin-left: 15px;
}

#index-content {
    text-align: center;
}
#index-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}
#index-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
#index-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    text-align:center;
}

#index-links {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: center;
    container-type: inline-size;
}

#index-links i{
    transform: scale(1.2);
    font-weight: 100;
}

.index-link-presta {
    text-decoration: none;
    padding: 3em;
    border-radius: 16px 0;
    /*box-shadow: var(--box-shadow);*/
    transition: all 0.3s;
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    align-content: center;

    width: 30dvw;
    width: clamp(40%, 40cqw, 100%);
    aspect-ratio: 3 / 2.2;

    background-image: url(../img/bg-beton-texture.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@container (min-width: 1600px) {
    .index-link-presta {
        width: 30%;
        aspect-ratio: 4 / 2;
    }
}
a.index-link-presta:hover{
    box-shadow: var(--box-shadow-hover);
    background-color: var(--col-light-active);
}

.index-link-presta-active{
    box-shadow: 0px 0px 0px 8px var(--font-active-c);
}


.index-link-presta h3{
    font-size: 1.4rem;
    line-height: 1.2;
    margin-bottom: 1em;
    font-family: var(--font-serif);
}
.index-link-presta button{
    margin-top: 1.5em;
    background-color: var(--font-active);
}

.index-link-presta ul{
    text-align: left;
    margin-top: 1em;
    margin-bottom: 1em;
    list-style-type: none;
    padding-left: 1.5em;
}
.index-link-presta p{
    line-height: 1.3;
}
.index-link-presta ul>li{
    margin-top: .5em;
    margin-bottom: .9em;
    line-height: 1.3;
    padding-left: 0;
}
.index-link-presta ul>li:before{
    content: "\f46c"; /* Caractère de puce personnalisé */
    color: var(--font-active); /* Couleur de la puce */
    font-family: var(--font-awesome);
    font-weight: 900;
    transform: translate(-1.5em, 0em); /* Ajuste la position de la puce */
    font-size: 1.2em; /* Taille de la puce */
    display: inline-block;
    position: absolute;
}
.conclusion{
    font-weight: 600;
    color: var(--font-active-f);
    line-height: 1.3;
}

#contact-link{
    margin-top: 2em;
}

#contact-link-container{
    text-align: center;
    margin-bottom: 3em;
    margin-top: 2em;
}

@media screen and (max-width: 1079px) {
    #index-img {
        height: 30dvh;
    }
    #first-section img {
        width: 100%;
        height: auto;
        min-width: unset;
        min-height: unset;
    }
    #index-content p{
        text-align: justify;
    }
    .main-title h1::before,
    .main-title h1::after {
        display: none;
    }

    .index-link-presta {
        width: 100%;
    }
}