/* Styles de base */
body {
    margin: 0;
    font-family: 'Sanchez', serif;
    background-color: #2f3e46;
    color: #ffffff;
    scroll-behavior: smooth;
    overflow-x: hidden; /* Éviter le débordement horizontal */
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px; /* Légère marge pour éviter que le contenu touche les bords */
    box-sizing: border-box; /* Inclut le padding dans la hauteur totale */
}

.section-1 {
    background-color: #2f3e46;
    position: relative;
}

/* Sapins */
.trees-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px; /* Réduit l'espacement entre les sapins pour petits écrans */
    margin-bottom: 20px;
}

.tree {
    object-fit: contain;
}

.tree.large {
    width: 80px;
    height: 110px;
}

.tree.middle {
    width: 100px;
    height: 140px;
}

/* Textes */
.text-container h1 {
    font-family: 'Sacramento', cursive;
    font-size: 4rem;
    margin: 10px 0;
}

.text-container h2 {
    font-size: 1.5rem;
    font-family: 'Sanchez', serif;
    color: #c3d7d9;
    margin: 0;
}

/* Styles des autres sections */
.otherSection {
    justify-content: flex-start;
    padding: 30px 20px;
}

.otherSection h1 {
    font-size: 2.5rem; /* Taille réduite pour petits écrans */
    font-family: 'Sacramento', cursive;
    margin: 10px 0 20px;
    text-align: center;
}

.otherSection img {
    width: 100%; /* Rendre l'image responsive */
    max-width: 300px; /* Limiter la taille maximale */
    height: auto; /* Maintenir les proportions */
    border-radius: 50%; /* Image ronde */
    object-fit: cover; /* Couper l'image correctement */
    margin-bottom: 20px;
}

.otherSection p {
    font-size: 1rem; /* Texte légèrement plus petit pour les mobiles */
    max-width: 90%; /* Limiter la largeur à 90% de l'écran */
    line-height: 1.6;
    color: #2b2b2b;
    text-align: justify;
}

/* Couleurs des sections */
.section-2 {
    background-color: #9C98A2;
    color: #333;
}

.section-3 {
    background-color: #e8f5e9;
    color: #2f3e46;
}

.section-4 {
    background-color: #F9E26B;
    color: #2f3e46;
}

.section-5 {
    background-color: #e8f5e9;
    color: #2f3e46;
}

.section-6 {
    background-color: #F6CC8A;
    color: #2f3e46;
}

.section-7 {
    background-color: #F6F1E3;
    color: #2f3e46;
}

.section-8 {
    background-color: #2f3e46;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    height: 100vh;
    padding: 20px;
    padding-bottom: 0;
    box-sizing: border-box;
}

.section-8 img {
    height: auto;
    max-width: 60%; /* Adapter l'image à l'écran */
    object-fit: cover;
    margin-bottom: 0;
}

.section-8 p {
    color: #ffffff;
}

/* Styles des liens */
.map-link {
    display: block;
    font-size: 1.2rem;
    color: #2b2b2b;
    text-decoration: none;
    margin-top: 20px;
    transition: color 0.3s;
}

.map-link:hover {
    color: #0056b3;
}

/* Effets de neige */
.snow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.snow {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: snowfall 5s linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Styles pour l'écran */
.scroll-down {
    position: absolute;
    bottom: 10px;
    font-size: 1rem;
    color: #c3d7d9;
    animation: bounce 2s infinite;
    text-decoration: none;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Media Queries pour tablettes et téléphones */
@media (max-width: 768px) {
    /* Sapins pour tablettes */
    .trees-container {
        gap: 5px; /* Réduire encore l'espacement entre les sapins */
    }

    .tree.large {
        width: 60px;
        height: 90px;
    }

    .tree.middle {
        width: 80px;
        height: 110px;
    }

    .text-container h1 {
        font-size: 3rem; /* Réduire légèrement la taille des titres */
    }

    .text-container h2 {
        font-size: 1.2rem; /* Réduire légèrement la taille des sous-titres */
    }

    .otherSection h1 {
        font-size: 2rem;
    }

    .otherSection img {
        max-width: 250px; /* Réduire la taille maximale de l'image */
    }

    .otherSection p {
        font-size: 0.9rem;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    /* Sapins pour télécphones */
    .trees-container {
        gap: 5px;
        margin-bottom: 15px;
    }

    .tree.large {
        width: 80px;
        height: 110px;
    }

    .tree.middle {
        width: 100px;
        height: 140px;
    }

    .text-container h1 {
        font-size:4rem; /* Encore plus petit pour les petits écrans */
    }

    .text-container h2 {
        margin-top: 20px;
        font-size: 2.5rem;
    }

    .otherSection h1 {
        font-size: 3.5rem; /* Réduire encore pour les très petits écrans */
    }

    .otherSection img {
        max-width: 400px; /* Réduire encore la taille des images */
    }

    .otherSection p {
        font-size: 1.3rem; /* Ajuster le texte pour qu'il reste lisible */
    }
}
