/* CSS pour la page "Nos métiers" modernisé */
main {
    display: flex;
    justify-content: center;
    height: auto;
}

section {
    box-sizing: content-box;
    padding-top: 10px;
    padding-bottom: 100px;
    max-width: 800px;
}

.scrolled {
    overflow: scroll;
    /* Utilisation de dvh (Dynamic Viewport Height) qui s'ajuste dynamiquement */
    height: calc(100dvh - 114px);
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}


.pb {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

/* Fallback pour les navigateurs qui ne supportent pas dvh */
@supports not (height: 100dvh) {
    .scrolled {
        height: calc(100vh - 114px);
    }
}

.scrolled::-webkit-scrollbar {
    display: none;
}

.content {
    color: #000;
    line-height: 1.6;
}

.content p {
    font-family: 'Inter', sans-serif;
}

/* Override the global list-style: none for content lists */
.content ul, .content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.content ul li, .content ol li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.content ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: dodgerblue;
    border-radius: 50%;
}

h1 {
    color: dodgerblue;
    margin-bottom: 30px;
    font-size: 2.5em;
    border-bottom: 2px solid dodgerblue;
    padding-bottom: 10px;
}

h2 {
    color: dodgerblue;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.8em;
}

h3 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.4em;
}

p {
    margin-bottom: 15px;
}

.chantier-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
}

@media screen and (max-width: 768px) {
    .content {
        margin: 10px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.2em;
    }
    
    /* Pour les petits écrans, utilisation de svh */
    .scrolled {
        height: calc(100svh - 114px);
    }
}

@media screen and (min-width: 1021px) {
    /* Pour les grands écrans, utilisation de lvh */
    .scrolled {
        height: calc(100lvh - 114px);
    }
}

@media screen and (max-width: 1020px) {
    main {
        background-position: center;
    }
}