body{
    width: 100%;
    max-width: 900px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 auto;
    margin-bottom: 40vh;
    font-family: 'Caladea'; 
    font-size: 20px;
    line-height: 26px;
    background-color: #f2f2f2;
    color: #333;
    --color:  #4acf9a;
    --color-hover: #44C4DB;
    scroll-behavior: smooth;
}

ul{
    list-style-position: inside;
}

a:hover{
    color: var(--color);
}
#presentation a,
#projets a {
    color: #44C4DB;
}

#ressources a{
    color: #333;
}

#ressources a:hover{
    color: #44C4DB;
}

figure, img{
    width: 100%;
}

#ressources ul,
#presentation ul{
    list-style-type: circle;
}

#presentation ul{
    list-style-type: "➺ ";
}



#hgroup {
    font-family: 'Millimetre';
    text-align: center;
    border: 4px ridge var(--color);
    margin-top: 40px;
    margin-bottom: 20px;
    padding-top: 20px;
    padding-bottom: 20px;
    color: var(--color);
}

#hgroup h1{
    font-size: 30px;
    margin-bottom: 10px;
}

nav ul { 
    width: 100%;
    display: flex;
    padding: 0 20%;
    justify-content:  space-between;
    font-family: 'Millimetre';
    /* margin-bottom: 20px; */
}


section{
    padding-top: 80px;
    padding-bottom: 60px;
}

section > h1{
    color: var(--color);
    font-family: 'Millimetre';
    text-align: center;
    padding: 20px 0;
    border-top: 3px ridge var(--color);
    border-bottom:  3px ridge var(--color);
    text-transform: uppercase;
    margin-bottom: 40px;
}

section h2{
    font-weight: bold;
    margin-top: 38px;
    margin-bottom: 7px;
}

p{
    margin-bottom: 13px;
}




#projets article{
    padding-top: 80px;
    margin-bottom: 40px;
    position: relative;
}

#exercices article {
    border: 1px solid #ccc;
    background-color: #eee;
    padding: 0 40px;
    margin-bottom: 40px;
    position: relative;
}

#exercices article h2 {
    margin-top: 30px;
    margin-bottom: 5px;
    font-family: 'Millimetre';
    color: rgb(65, 64, 64);
    font-size: 26px;
    font-weight: normal;
}

#exercices article h2 small{
    color: var(--color);
    font-size: 18px;
    display: block;
    margin-bottom: 7px;
}


article h3 {
    font-family: 'Millimetre';
    color: rgb(65, 64, 64);
    font-weight: normal;
    margin-bottom: 12px;
}

article h4{
    font-weight: bold;
    margin-bottom: 7px;
    margin-top: 40px;
}

.button-link{
    display: block;
    text-align: center;
    /* position: absolute;
    top: 26px;
    right: 28px; */
    cursor: pointer;
    margin-bottom: 40px;
}
.button-link button {
    border: 2px solid var(--color-hover);
    border-radius: 4px;
    padding: 8px 16px;
    color: var(--color-hover);
    font-family: 'Millimetre';
    cursor: pointer;
    text-transform: uppercase;
}

.button-link button svg{
    width: 32px;
    fill: var(--color-hover);
    padding-right: 10px;
    position: relative;
    top: 3px;
}

#workshop p{
 text-align: center;
 font-family: 'Millimetre';
 color: #555;
}

article ol{
    list-style: decimal;
}

article ol{ margin-left: 15px;}



article button:hover{
    border: 2px solid var(--color-hover);
    color: var(--color-hover);
}

article ul {
    list-style-type: "➺ ";
    margin-bottom: 40px;
}


article ul li {
    margin-bottom: 7px;
}

article ul li a{
    text-decoration: underline;
    text-decoration-color: var(--color-hover);
}


figure{
    margin-bottom: 26px;
}

.slider{
    margin-top: 26px;
    width: 80%;
    margin-left: 10%;
}


#lila figure img{
    border: 1px solid #999;
}


#work-louis{ 
    margin-top: 20px;
    display: flex; 
}

#work-louis a{
    display: inline-block;
    width: calc(20% - 10px);
    margin-right: 10px;
}

@media screen and (min-width: 700px){
    #ressources-container{
        columns: 2;
    }
}


#ressources > h1{
    width: 100%;
}
#ressources article {
    margin-right: 20px;
    margin-bottom: 26px;
    padding-bottom: 26px;
    border-bottom: 2px dotted #888;
    break-inside: avoid;
}

#ressources article h1{
    font-weight: bold;
    margin-top: 26px;
    margin-bottom: 13px;
}

#ressources article:first-of-type h1{
    margin-top: 0;
}

code{
    font-family: 'Courier New', Courier, monospace;
    white-space:nowrap;
    font-size: 0.8em;
}




#projet-page article{
    position: relative; 
    margin-top: 80px;
    border: 1px solid#ccc;
background-color:#eee;
padding: 30px 40px;
}

#projet-page article hgroup{
    margin-bottom: 20px;
}

#projet-page article hgroup h1{
    font-family: 'Millimetre';
    font-size: 28px;
}

#projet-page article hgroup h2{
    font-style: italic;
    margin-top: 5px;
}

#projet-page article button{
    border: 3px solid var(--color);
    border-radius: 50%;
    font-family: sans-serif;
    font-weight: 600;
    padding: 10px 20px;
    color: var(--color);
    position: absolute; 
    right: 10px;
    top: -20px;
    transform: rotate(5deg);
    background-color:#eee;
}

#projet-page article button:hover{
    border: 3px solid var(--color-hover);
    color: var(--color-hover)!important;
}

#projet-page article button:hover a{ color: var(--color-hover)!important;}

#projet-page article .description{
    max-width: 500px;
    margin-bottom: 30px;
}

#projet-page article .description blockquote p::before{ content: "« "; }
#projet-page article .description blockquote p::after{ content: " »"; }

#projet-page article .description blockquote p{ font-style: italic; }
#projet-page article .description blockquote p em{ font-style: normal; }


#projet-page article .images{
    display: grid;
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr;
}
#projet-page article .images figure{
    display: inline-block;
    width: 100%;
    height: 230px;
    border: 1px solid #888;
   margin: 0;
}

#projet-page article .images figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#note{
    margin-top: 100px;
    max-width: 500px;
}


#projets-couv a{
    display: block;
    width: 100%;
}

#projets-couv ul{
    display: grid; 

    font-family: 'Millimetre';
    font-size: 20px;

}



@media screen and (min-width: 500px){
    #projets-couv ul{
    grid-gap: 20px;
    grid-template-columns: 1fr 1fr;
}
}

@media screen and (min-width: 800px){
    #projets-couv ul{
    grid-gap: 30px;
    grid-template-columns: 1fr 1fr 1fr;
}
}

#projets-couv ul figure {
    border: 2px solid #777;
    height: 200px;
    width: 100%;
}

#projets-couv ul figure img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#projets-couv ul a:hover img{
    filter: brightness(50%);
}

#projets-couv ul li{
    margin-bottom: 10px;
}


@media screen and (max-width: 500px){
    #projets-couv ul li{
        margin-bottom: 30px;
}
}