/*DEBUT body*/

body {
    position: relative;
    font-family: "Museo Sans", sans-serif;
    margin: 0;
    height: auto; /* Change de 100vh à auto */
    min-height: 100vh; /* Assure une hauteur minimale */
    overflow-y: scroll; /* Force la barre de défilement verticale */
    overflow-x: hidden;
    z-index: 0;
}

#intro {
    position: relative;
    width: 45%;
    height: 150px;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    margin-bottom: 20px;
}

#intro h1 {
    font-style: normal;
    font-size: 24px;
    font-weight: 100;
    line-height: 1.2; 
}

footer {
    position: relative;
    z-index: 10;
    margin-top: -5px; /* Pousse le footer vers le bas */
}

#scrollToTopBtn {
    position: fixed;
    bottom: 5%;
    right: 3%;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: none; /* Caché par défaut */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Bouton circulaire rouge */
#scrollToTopBtn::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #bb4144;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1001;
    opacity: 1;
    transition: all 0.2s ease;
}

/* Flèche vers le haut (triangle) */
#scrollToTopBtn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-bottom: 20px solid white;
    z-index: 1002;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Effet hover sur le bouton */
#scrollToTopBtn:hover::after {
    background: #a03437;
    transform: translate(-50%, -50%) scale(1.1);
}

#scrollToTopBtn:hover::before {
    transform: translate(-50%, -80%) scale(1.1);
}

/* Media query pour mobile - tous les paragraphes en 0.5rem */
@media screen and (max-width: 768px) {
    p {
        font-size: 0.8rem !important;
    }
 
    #intro {
        width: 80% !important;
    }

    #intro h1 {
        font-size: 0.9rem !important;
    }
}

/* Media query pour grand écran - tous les paragraphes en 0.8rem */
@media screen and (min-width: 2000px) {
    p {
        font-size: 1.8rem !important;
    }

    li {
        font-size: 1.8rem !important;
        padding-left: 20px;
    }

    ul { 
        margin-left: 5%;
    }


    #intro h1 {
        font-size: 2.5rem !important;
    }

    #intro {
        margin-bottom: 2%;
    }

   h2 {
       font-size: 2.5em !important;
   }

   h3 {
    font-size: 2em !important;
   }



}



/*FIN body*/