body{
    background-color: #fff;
    font-family: "segoe ui", "helvetica neue", "calibri", "roboto", sans-serif;
    color: dimgray;
}

a{ /*size des titres de la navigation principale*/
    text-decoration: none;
    font-size: 22px;
    font-weight: 400;
    color: chocolate;
    margin-top: 3px;
    margin-bottom: 3px;
}

a.size-nav-sec{ /*size des titres de la navigation secondaire*/
    font-size: 20px;
    font-weight: 400;
}

a:hover{ /*survol de "a" en gris*/
    color: dimgray;
}

main{ /*conteneur*/
    width: 100%;
    display: flex; /*aligne les champs horizontalement*/
    justify-content: space-between;
}

.left-hand-side{ /*conteneur*/
    display: flex; /*limite à leur strict encombrement la zone cliquable des mots*/
    align-items: flex-start;
    flex-direction: column; /*aligne les mots du champ verticalement*/
    height: 100%;
    width: 32%;
    box-sizing: border-box;
    text-align: left;
    padding-left: 50px;
    padding-right: 5%;
    position: sticky; /*top et sticky sont liés!*/
    top: 50px;
}

.in-the-middle{ /*conteneur*/
    width: 36%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.right-hand-side{ /*conteneur*/
    width: 32%;
}

.nav-secondaire{
    display: flex; /*limite à leur strict encombrement la zone cliquable des mots*/
    align-items: flex-end;
    flex-direction: column; /*aligne les mots du champ verticalement*/
    box-sizing: border-box;
    text-align: right;
    padding-right: 30px;
    padding-left: 3%;
    position: sticky; /*top et sticky sont liés!*/
    top: 50px; 
}

.nav-principale{
    display: flex; /*limite à leur strict encombrement la zone cliquable des mots*/
    align-items: flex-end;
    flex-direction: column; /*aligne les mots du champ verticalement*/
    box-sizing: border-box;
    text-align: right;
    padding-right: 30px;
    padding-left: 3%;
    position: sticky; /*top et sticky sont liés!*/
    top: 500px;
}

h1{
    font-size: 34px;
    font-weight: 400;
    margin-top: 0;
    margin-bottom: 15px;
}

h2{
    font-size: 26px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

p{
    font-size: 20px;
    font-weight: 400;
    margin-top: 5px;
    margin-bottom: 3px;
}

p.size-nav-pr{ /*size des titres en gris de la navigation principale*/
    font-size: 22px;
    font-weight: 400;
    margin-top: 3px;
    margin-bottom: 3px;
}

p.size-nav-sec{ /*size des titres en gris de la navigation secondaire*/
    font-size: 20px;
    font-weight: 400;
    margin-top: 3px;
    margin-bottom: 3px;
}

img{
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

nav hr{
    width: 150px;
    margin: 5px 0;
    border: 1px solid rgb(161, 161, 161);
    align-self: flex-end;
}

footer{
    text-align: center;
    width:100%;
    margin: auto;
    height: 30px;
    margin-top: 20px;
}

@media (max-width: 1500px){
 
    .left-hand-side{
    width: 27%;
    }

    .in-the-middle{
    width: 46%;
    }

    .right-hand-side{ /*conteneur*/
    width: 27%;
    }

}


@media (max-width: 1080px){

    main{
    display: contents; /*empile les trois champs*/
    }
 
    .left-hand-side{
    width: 70%;
    position: relative;
    top: 0;
    margin: auto;
    margin-bottom: 20px;
    margin-top: 10px;
    padding: 0;
    }

    .in-the-middle{
    width: 70%;
    margin: auto;
    }

    .right-hand-side{ /*conteneur*/
    width: 70%;
    margin: auto;
    margin-bottom: 20px;
    }

    .nav-secondaire{
    align-items: flex-start;
    margin-bottom: 10px;
    padding-left: 20px; /*décale les textes corespondants vers la droite*/
    position: relative;
    top: 0px;
    }

    .nav-principale{
    padding: 0;
    position: relative;
    top: 0px;
    }

}


@media (max-width: 480px){

    a{ /*nouvelle size des titres de la navigation principale*/
    font-size: 20px;
    }

    p.size-nav-pr{ /*nouvelle size des titres en gris de la navigation principale*/
    font-size: 20px;
    }

    a.size-nav-sec{ /*nouvelle size des titres de la navigation secondaire*/
    font-size: 18px;
    }

    p.size-nav-sec{ /*nouvelle size des titres en gris de la navigation secondaire*/
    font-size: 18px;
    }
    
    h1{
    font-size: 28px;
    }
    
    h2{
    font-size: 22px;
    }

    p{
    font-size: 16px;
    }
 
    .left-hand-side{
    width: 100%;
    }

    .in-the-middle{
    width: 100%;
    }

    .right-hand-side{ /*conteneur*/
    width: 100%;
    }

    nav hr{
    width: 100px;
    }

}

