html{
    scroll-behavior: smooth;
    font-family:Georgia, 'Times New Roman', Times, serif;
}

body{
    counter-reset: paragraphe;
}

h1,h2,h3{
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

nav a{
    color: black;
}

#texte a{
    color:red;
}

main{
    display: flex;
}

nav{
    position: fixed;
    top: 100px;
    width:30%;
}

nav li{
    list-style-type: none;
}

nav > ul > li{
    font-weight: bold;
}

#texte{
    margin-left: 30%;
    padding-top: 100px;
    width:600px;
    line-height: 140%;
}

#texte figure img{
    max-width: 100%;
}

figure{
    margin:40px 0;
}

.souligne{
    border-bottom:1px solid #000;
}

sup{
    width: 12px;
    height: 12px;
    border-radius:12px;
    background-color: black;
    color: white;
    text-align: center;
    display: inline-block;
    line-height: 12px;
    font-size: 10px;
}

#texte sup:hover{
    background-color: blue;
    cursor: pointer;
}

.note{
    float: right; /* cette propriété permet de sortir la note du flux */
    max-width: 200px;
    margin-right: -300px;
}

#texte img{
    transform: scale(1);
    transition: transform 0.5s;
}



#progression{
 height:10px;
 width: 0%;
 background-color: aqua;
 position: fixed;
 top:0px;
 left:0px;
 z-index: 2;
}

#texte p::before{
  content: counter(paragraphe);
  counter-increment: paragraphe;
  position: absolute;
  text-align: right;
  width: 18px;
  margin-left: -30px;
  font-size: 14px;
  opacity:0.4;
}