body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.scroll.active {
    background-color: #ddf;
}

.scroll {
    border: 1px solid #ccc;
    margin: 0 5px;
    border-radius: 10px;
}

.section {
    display: flex;
    padding: 2rem;
    font-size: 1.2rem;
}

.bg-img {
    height: 55vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.5;
}

.nav-link {
    padding: 0.4rem 0;
    font-size: 1.2rem;
    margin: 0.4rem 0.4rem;
}

.nav-item a {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.scroll {
    padding-left: 0.5rem;
}


header {
    padding-top: 100px;
}

header ul {
    list-style-type: none;
}

.copyright {
    font-size: 0.8rem;
}

.adresse {
    text-align: right;
    padding-top: 2.5rem;
}

.telephone {
    text-align: right;
    padding-top: 1rem;
    font-size: 1.9rem;
}


/* Style par défaut : masqué avec décalage et rotation */
.image-animated {
    opacity: 0;
    transform: translateY(120px) rotate(5deg);
    /* Décalage vers le bas et rotation initiale */
    transition: opacity 1.6s ease-out, transform 1.6s ease-out;
}

/* Classe ajoutée lorsque l'image devient visible */
.image-visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
    /* Ramène à 0 pour l'effet d'apparition */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(150px);
    }

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

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: linear-gradient(-90deg, #ddd, #fff);
    background-size: cover;
}

/* Style de base pour les éléments de la liste */
header ul li {
    opacity: 0;
    animation: fadeIn 2s ease forwards;
    /* Durée et type d'animation */
}

/* Application d'un délai d'animation différent pour chaque élément */
header ul li:nth-child(1) {
    animation-delay: 1s;
}

header ul li:nth-child(2) {
    animation-delay: 2s;
}

header ul li:nth-child(3) {
    animation-delay: 3s;
}

footer {
    padding-top: 2rem;
}

/* pour les tous petits écrans */
@media (max-width: 480px) {

    footer img.baby {
        width: 80%;
        padding-right: 20%;
    }

    header h1 {
        font-size: 3rem;
        text-align: right;
        padding-bottom: 1rem;
    }

    .adresse,
    .telephone {
        font-size: 1rem;
    }

    header h2 {
        font-size: 1.4rem;
    }

    header p {
        padding-top: 2rem;
        font-size: 1.2rem;
    }

    footer {
        padding-top: 2rem;
    }

    footer p {
        font-size: 1.4rem;
    }

    .imgRight {
        width: 50%;
    }
}


/* pour les petits écrans */
@media (min-width: 480px) and (max-width: 576px) {

    footer img.baby {
        width: 80%;
        padding-right: 20%;
    }

    header h1 {
        font-size: 3rem;
        text-align: right;
        padding-bottom: 1rem;
    }

    .adresse {
        font-size: 1.6rem;
    }

    header h2 {
        font-size: 1.7rem;
    }

    header p {
        padding-top: 2rem;
        font-size: 1.2rem;
    }

    footer {
        padding-top: 2rem;
    }

    footer p {
        font-size: 1.4rem;
    }

    .imgRight {
        width: 50%;
    }
}

/* pour les écrans moyens */
@media (min-width: 577px) and (max-width: 768px) {


    footer img.baby {
        padding-right: 10%;
    }

    header h1 {
        font-size: 3.5rem;
        text-align: right;
        padding-bottom: 1rem;
    }

    .adresse {
        font-size: 1.6rem;
    }

    header h2 {
        font-size: 1.6rem;
    }

    header p {
        padding-top: 3rem;
        font-size: 1.5rem;
    }

    footer {
        padding-top: 2rem;
    }

    footer p {
        font-size: 1.3rem;
    }

    .imgRight {
        width: 50%;
    }

}

/* pour les grands écrans */

@media (min-width: 769px) {

    .section {
        text-align: justify;
    }

    footer img.baby {
        width: 90%;
        padding-right: 10%;
    }

    header h1 {
        font-size: 4rem;
        text-align: right;
        padding-bottom: 3rem;
    }

    .adresse {
        font-size: 1.6rem;
    }

    header h2 {
        font-size: 1.8rem;
    }

    header p {}

    footer {
        padding-top: 2rem;
    }

    footer p {
        font-size: 2rem;
    }

    .imgRight {
        width: 30%;
    }
}
