main {
    background-color: #f9f9f9;
    padding-bottom: 50px;
}


/* Section dématérialisation */
#externalisation{
    background-image: url("../images/demat-courriers-bg.jpg");
    background-size: cover;
    background-position: center 60%;
    height: 550px;
    background-repeat: no-repeat;
}

#externalisation h1 {
    padding-top: 120px;
    font-size: 2.5rem;
    color: white;
    margin: 11px auto;
    max-width: 900px
}

#externalisation p {
    font-size: 1.2rem;
    color: white;
    margin: 11px auto;
    line-height: 1.8;
    max-width: 900px
}

/* Liste des avantages */
#features {
    margin-top: -230px;
    margin-left: 700px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 0.6s ease-out forwards;
    width: 40%;
    height: auto;
    position: relative; /* Nécessaire pour positionner l'image relative à la section */
}
#features h2 {
    font-size: 1.8rem;
    color: #012a7d;
    margin-bottom: 30px;
    padding-top: 20px;
}

#features ul {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 30px auto;
    text-align: left;
}

#features ul li {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 330px;
}

#features ul li::before {
    content: "✔";
    color: #012a7d;
    font-weight: bold;
    margin-right: 10px;
}

#features img {
    position: absolute; /* Position absolue pour placer l'image */
    top: 40px; /* Décale l'image du haut */
    right: 40px; /* Décale l'image de la droite */
    width: 25%;
    height: auto;
}

/* Section impact */
#impact {
    margin-left: 100px;
    margin-top: -350px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    opacity: 0;
    transform: translateY(50px);
    animation: slideIn 0.8s ease-out forwards;
    width: 40%;
    height: auto;
    position: relative; /* Nécessaire pour positionner l'image relative à la section */
}

#impact h2 {
    font-size: 1.8rem;
    color: #012a7d;
    margin-bottom: 30px;
    padding-top: 20px;
}

#impact p {
    font-size: 1rem;
    color: #333;
    line-height: 2;
    max-width: 300px;
}

#impact img {
    position: absolute; /* Position absolue pour placer l'image */
    top: 30px; /* Décale l'image du haut */
    right: 30px; /* Décale l'image de la droite */
    width: 27%;
    height: auto;
}



@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */
@media screen and (max-width: 990px) {
    #features, #impact {
        width: 90%;
        margin: 20px auto;
        position: relative;
        text-align: center;
    }

    #features img, #impact img {
        position: relative;
        width: 20%;
        margin-bottom: 20px;
        display: block;
        margin-left: 45%;
    }

    #features ul li, #impact p {
        max-width: 100%;
        text-align: center;
    }
}
