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

.mondrian {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 100px;
    grid-auto-flow: dense;
    list-style: none;
    margin: 0;
    padding: 0;
    background: black; 
    gap: 10px;          
}

.mondrian img {
    width: 100%;
    height: 100%;
}

.mondrian__nav{
    grid-column: 1/ span 2;
    grid-row: 1/ span 2;
}
.mondrian > li:nth-child(4) {
    grid-row: span 6;
}

.mondrian > li:nth-child(5) {
    grid-row: span 2;
}

.mondrian > li:nth-child(6) {
    grid-column: span 1;
    grid-row: span 3;
}

.mondrian > li:nth-child(2) {
    grid-column: span 1;
    grid-row: span 4;
}

.mondrian > li:nth-child(14) {
    grid-column: span 2;
    grid-row: span 2;
}

.mondrian__titre {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 12px;
    font-weight: bold;
    font-size: 63px;
}
/*-------------nav-----------------*/
.nav{
    background-color: #9C0000;
    width: fit-content;
    width: 100%;
    height: 100%;
}
.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: 25px;
}
.a__nav--actif{
    text-decoration: underline;
}
.liste__nav{
    display: flex;
    margin: 0px;
    padding: 20px 40px;
}
.el__nav{
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding: 0px 12px 0px 12px;
}


/*test*/

.mondrian__el {
    position: relative;
    overflow: hidden;
}

.mondrian__el img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Texte par-dessus */
.mondrian__label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-family: "Red Hat Text", sans-serif;
    font-weight: bold;
    font-size: 1.2rem;
    color: black;
    padding: 6px 10px;
}

/*-------------------contenu----------------*/
.titre{
    font-family: "Red Hat Text", sans-serif;
}
h1{
    color: transparent;
    position: absolute;
}
h2{
    font-size: 39px;
    margin: 78px 0px 39px 39px;
}
.contenu p{
    max-width: 60ch;
}
.contenu__texte{
    margin-right: 48px;
}
.contenu{
    display: flex;
    margin: 0px 39px;
}

.design__beyonce{
    margin: 78px 78px 78px 39px;
    display: flow-root;
}
.design__beyonce p{
    max-width: 90ch;
}

.image__beyonce{
    float: left;
    margin-right: 1em;
    margin-top: 1em;
    shape-outside: polygon(2.22% 14.1%, 36.85% 1.68%, 36.85% 16.19%, 96.96% 16.19%, 96.96% 39.78%, 59.49% 39.78%, 60.05% 99.36%, 0% 100%);
}
footer{
    height: 364px;
    background-image: url("images/footerdefault.svg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: bottom center;
    display: flex;
    justify-content: center; 
    align-items: center; 
    margin-top: 148px;
    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 (max-width: 900px){
    body{
        font-size: 20px;
    }
    .mondrian__el--tel{
        display: none;
    }
    .mondrian {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 60px;
        gap: 5px;          
    }

    .mondrian img {
        width: 100%;
        height: 100%;
    }
    .mondrian__titre {
        top: 3px;
        left: 5px;
        padding: 8px 12px;
        font-weight: bold;
        font-size: 41px;
    }
    .mondrian__nav{
        grid-column: 1/ span 1;
        grid-row: 1/ span 5;
    }
    .nav{
        background-color: #9C0000;
        width: fit-content;
        width: 100%;
        height: 100%;
    }
    .a__nav:hover{
        font-size: 21px;
    }
    .liste__nav{
        display: flex;
        flex-direction: column;
        padding: 30px 0px 0px 0px;
    }
    .el__nav{
        writing-mode: horizontal-tb;
        transform: rotate(0deg);  
        padding: 0px 12px 8px 12px;
    }
    h2{
        font-size: 32px;
        margin: 64px 0px 32px 32px;
    }
    .contenu p{
        max-width: 60ch;
    }
    .contenu{
        display: block;
        margin: 0px 32px;
    }

    .design__beyonce{
        margin: 20px 32px;
    }
    .design__beyonce p{
        max-width: 60ch;
        margin: 0px;
    }

    .image__beyonce{
        display: none;
    }
    .img__tel{
        width: 100%;
        margin-top: 20px;
    }
    footer{
    height: 296px;
    background-image: url(images/footerteldefault.svg);
    margin-top: 82px;
    }
}