body{
    background-color: #E4E4D4;
    font-family: "Liter", sans-serif;
    font-size: 20px;
    margin: 0px;
    line-height: 140%;
}

.container__nav{
    display: flex;
}

.liste__nav{
    display: flex;
    margin: 0px;
    padding: 20px 40px;
    flex-direction: column;
}
.el__nav{
    padding: 20px 0px 20px 0px; 
}
.nav{
    background-color: #9C0000;
    width: fit-content;
}
.liste{
    list-style: none;
}
a{
    text-decoration: none;
    color: white;  
}
.a__nav{
    transition: text-decoration 0.3s ease-in-out;
}
.a__nav:hover{
    font-size: 21px;
}
.a__nav--actif{
    text-decoration: underline;
}
.a__texte{
    color: #9C0000;
}
.a__texte:hover{
    text-decoration: underline;
}
.a__texte--encadre{
    color: black;
}
.a__texte--encadre:hover{
    text-decoration: underline;
}
/*-------------redbox----------------*/ 
.redbox{
    font-size: 25px;
}
.container__redbox{
    padding: 20px;
    width: 200px;
    height: 300px;
    display: grid;
    grid-template-columns: max-content;
    grid-template-rows: repeat(4, 1fr);
}
.redbox__letter{
    width: 30px;
    height: 30px;
}
.J{
    grid-column: 2;
    grid-row: 1;
    font-weight: bold;
}
.E{
    grid-column: 3;
    grid-row: 2;
}
.N{
    grid-column: 4;
    grid-row: 2;
}
.S{
    grid-column: 7;
    grid-row: 2;
    font-weight: bold;
}
.I{
    grid-column: 1;
    grid-row: 3;
}
.M{
    grid-column: 2;
    grid-row: 3;
}
.M2{
    grid-column: 5;
    grid-row: 3;
}
.O{
    grid-column: 6;
    grid-row: 3;
}
.N2{
    grid-column: 4;
    grid-row: 4;
}
.S2{
    grid-column: 5;
    grid-row: 4;
}
/*----------------corps du texte--------------*/

main{
    padding: 20px;
}
.titre{
    font-family: "Red Hat Text", sans-serif;
}
.titre__1{
    font-size: 41px;
    margin: 82px 0px 41px 0px;
    line-height: 140%;
}
.opinion__variation--taille{
    font-size: 25px;
}
.titre__2{
    font-size: 32px;
}
.opinion__variation--designs{
    display: grid;
    width: 100vw;
    overflow-x: hidden;
}
.opinion__variation--designs p{
    margin-right: 30px;
}
.opinion__variation--designs > *{ 
    grid-area: 1 / 1;
}

.svg__tel{
    justify-self: end;
    align-self: center;
    z-index: -100;
}
.svg__ordi{
    display: none;
}
.image__opinion{
    width: 100%;
    object-fit: cover;
}

/*-------------------------- factuel--------------------*/
.chapeauweb{
    color: #9C0000;
    margin-bottom: 48px;
}
.entete__encadre{
    display: none;
}
.corps__encadre{
    background-color: #9C0000;
    color: white;
    padding: 20px;
}
.corps__texte--faits{
    max-width: 70ch;
}
.corps__faits{
    display: flex;
    flex-direction: column-reverse;
}
/*----------------footer------------------*/
footer{
    display: flex;
    height: 296px;
    background-image: url(images/footerteldefault.svg);
    margin-top: 82px;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: bottom center;
    justify-content: center; 
    align-items: center; 
    color: white;
    }
.footer__contenu{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.a__footer{
transition: font-size 0.2s ease-in-out;
}
.a__footer:hover{
    font-size: 24px;
}

@media (min-width: 900px){
    body{
        font-size: 24px;
    }
    .liste__nav{
        flex-direction:row;
        padding: 48px;
    }
    .a__nav:hover{
        font-size: 25px;
    }
    .el__nav{
        writing-mode: vertical-lr;
        transform: rotate(180deg);
        padding: 0px 19px 0px 19px;
    }
    .redbox{
        display: none;
    }
    .corps{
        display: flex;
        margin-top: 63px;
    }

    .corps__texte{
        max-width: 55ch
    }
    .opinion__variation--taille{
        font-size: 31px;
    }
    .svg__tel{
        display: none;
    }
    .svg__ordi{
        display: block;
    }
    .svg__hori{
        margin-left: 65%;
        margin-top: 63px;
    }
    .titre__1--opinion{
        margin-top: 0px;
    }
    .image__opinion{
        height: 100%;
        width: auto;
    }
    .opinion__variation--designs{
        width: 55ch;
    }
    /*---------------------factuel-----------------*/
    .corps__faits{
        flex-direction: row-reverse;
        overflow: visible;
        margin-top: 78px;
    }
    .titre__1{
        font-size: 63px;
    }
    .titre__1--faits{
        font-size: 63px;
        margin-left: 25%;
        margin-right: 25%;
    }
    .chapeauweb{
        margin-bottom: 48px;
        margin-left: 20%;
        margin-right: 20%;
    }
    .entete__encadre{
        display: inline-block;
        margin-left: 80%;
        border-style: solid;
        border-color: black;
        border-width: 5px;
        padding: 0px 24px;
    }
    .corps__encadre{
        width: 120%;
        margin-left: -25%;
        padding: 24px;
        max-width: 80ch;
    }
    .titre__2{
        font-size: 39px;
    }
    .corps__texte{
        margin: 0px 48px 0px 48px;
    }
    .corps__texte{
        max-width: 55ch;
    }
    .image__faits{
        object-fit: cover;
        z-index: -100;
    }
    .corps__image{
        display: flex;
    }

    .corps__texte--faits{
        margin-left: 24px;
    }
    footer{
        height: 364px;
        background-image: url("images/footerdefault.svg");
        margin-top: 148px;
    } 
}
    