/* julie burin des roziers
feuille de style qui s'applique sur toutes les pages
09.01.2025 */

@import url('https://fonts.googleapis.com/css2?family=Itim&display=swap');
a, a:visited{
    text-decoration: none;
    color: inherit;
}
body{
    font-family: "Itim", serif;
    color: #940000;
    margin:0;
    font-size:20px;
    overflow-x: hidden;
}
.active-page{
    text-decoration: underline;
    text-underline-offset: 8px;
    font-weight: bold;

}
.off-screen-menu{
    background-color: #ff9d85;
    height: 100vh;
    width: 100%;
    max-width: 450px;
    position: fixed;
    top:0;
    left: -465px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.2em;
    transition: .3s ease;
    box-shadow: 8px 0 15px rgba(0, 0, 0, 0.3);
}
.off-screen-menu.active{
    left: 0px;
}
ul{
    list-style-type: none;
}
li{
    padding-bottom: 40px;
}
nav{
    padding-left: 10px;
    padding-right: 10px;
    position: fixed;
    display: flex;
    top:0;
    left:0;
    right:0;
    height: 68px;
    background-color: #fff5f0;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
    font-size: 1.2em;
    justify-content: space-between;
    align-items: center;
}

/* menu hamburger */
.ham-menu{
    height: 50px;
    width: 50px;
    margin-right: auto;
    position : relative;
    cursor: pointer;
}
.ham-menu span{
    height: 5px;
    width: 100%;
    background-color: #940000;
    border-radius: 25px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .3s ease;
}
.ham-menu span:nth-child(1){
    top: 25%;
}
.ham-menu span:nth-child(3){
    top: 75%;
}
.ham-menu.active span:nth-child(1){
    top:50%;
    transform: translate(-50%,-50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2){
    opacity:0;
}
.ham-menu.active span:nth-child(3){
    top:50%;
    transform: translate(-50%,-50%) rotate(-45deg);
}
/* fin du menu hamburger */

header div{
    margin-top: 68px;
    background-color: #c1e76b;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 3em;
    padding: 100px;
}
.subtitle{
    background-color: #ff9d85;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    padding: 100px;
    padding-left: 200px;
    padding-right: 200px;
    font-size: 1.2em;
}

/* bouton pour revenir en haut */
#button-top{
    display: none;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 99;
    border: none;
    outline: none;
    background-color: #ff9d85;
    color: #940000;
    cursor: pointer;
    padding: 15px;
    height:50px;
    width: 50px;
    border-radius: 25px;
    font-size:18px;
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}
button span{
    background-color: #940000;
    width: 20px;
    height: 5px;
    border-radius: 25px;
    position: absolute;
    left: 20%;
    top: 25%;
}
button span:nth-child(1){
    transform: rotate(45deg);
    left: 40%;
}
button span:nth-child(2){
    transform: rotate(-45deg);
}
button span:nth-child(3){
    transform: rotate(-90deg);
    width: 30px;
    top: 40%;
}
/* fin bouton pour revenir en haut */


footer{
    color: #ff9d85;
    background-color: #940000;
    display:flex;
    justify-content: space-between;
    padding: 10px;
}

/* pour s'adapter aux écrans de taille plus petite */
@media screen and (max-width: 800px){
    .subtitle{
        padding-top: 100px;
        padding-bottom: 100px;
        padding-left: 50px;
        padding-right: 50px;
    }
    footer{
        flex-direction: column;
        align-items: center;
    }
}