
.row {
    display: flex;
    margin-bottom: 7rem;
    gap: 3rem;
}

.row img{
    border-radius: 20px;
    height: 400px;
}


.row-1{
    margin-top: 5rem;
}

.rowContent-1{
    align-self: center;
    -webkit-animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.rowContent-1.active{
    -webkit-animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.row-title-1{
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    font-weight: bold;
    color: var(--color-second);
}

.row-3{
    flex-direction: row-reverse;
}

.rowContent-3{
    width: 50%;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px, rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
    background-color: white;
    min-height: 180px;
    align-self: center;
}

.rowContent-3 p {
    margin-bottom: 0.5rem;
}

.rowContent-3 ul{
    list-style: inside;
    margin-bottom: 1rem;
}

.rowContent-3 li::marker{
    color: var(--color-second);
    margin-left: -5em;
}


.row:nth-child(odd) .rowImg, .row:nth-child(odd) .rowContent .row-grap{
    -webkit-animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.row:nth-child(odd) .rowImg.active, .row:nth-child(odd) .rowContent.active .row-graph.active {
    -webkit-animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.row:nth-child(even) .rowImg, .row:nth-child(even) .rowContent {
    -webkit-animation: slide-out-right 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: slide-out-right 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}
.row:nth-child(even) .rowImg.active, .row:nth-child(even) .rowContent.active {
    -webkit-animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-right 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}




/*----------------- Partie graphique ---------*/

/* https://bennettfeely.com/csspiechart/ */

.row-graph{
    display: flex;
    gap: 4rem;
    margin-bottom: 7rem;
}





.chart {
    background-color: rgb(222, 255, 255);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: 2rem;
    -webkit-animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.chart.active{
    -webkit-animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}


.graph-title{
    text-align: center;
    font-size: 1.5rem;
    margin: 3rem 3rem 10px;
    font-weight: bold;
    padding-bottom: 1rem;
    /* border-bottom: 5px solid var(--color-main); */
}

.pie-chart {
    position: relative;
    max-width: 300px;
    width: 100%;
    margin: 0;
}

.pie-chart figcaption {
    font-size: smaller;
    text-align: right;
    margin: 1rem;
    width: 100%;
}

.pie-chart figcaption div{
    display: flex;
    justify-content: space-between;
}
.pie-chart span:after {
    display: inline-block;
    content: "";
    width: 0.8em;
    height: 0.8em;
    margin-left: 0.4em;
    height: 0.8em;
    border-radius: 0.2em;
    background: currentColor;
}

.row-graph-content{
    margin-top: 4rem;
    width: 78%;
    -webkit-animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: slide-out-left 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

.row-graph-content.active{
    -webkit-animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-left 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.row-graph-resume{
    align-self: center;
}

.row-graph-title{
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    font-weight: bold;
    color: var(--color-second);
}

.grid-contain{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 5rem 0;
    gap: 5rem;  
    margin-bottom: 7rem;
}

.grid-contain h2{
    margin-top: 3rem;
    font-weight: bold;
    padding-bottom: 1rem;
    border-bottom: 5px solid var(--color-main);
    align-self: center;
}

.row-grid{
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(4, 1fr);
    align-self: center;
    width: 850px;
    height: 416px;
}

.row-grid-item{
    border-radius: 20px;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -3px 0px inset;
    padding: 1.7rem;
    visibility: hidden;
}

.row-grid-item.active{
    visibility: visible;
    -webkit-animation: bounce-in-fwd 1.1s both;
    animation: bounce-in-fwd 1.1s both;
}
    
.row-grid-item-1 { 
    grid-area: 1 / 1 / 2 / 5; 
    padding: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    color: #5c5c5c;
    gap: 0.5rem;
}

.grid-item-tag{
    font-size: 0.8rem;
    border: solid 1px;
    padding: 0 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 16px;
}

.row-grid-item-2 { 
    grid-area: 1 / 5 / 2 / 13; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ABEBD2;
}

.row-grid-item-2 p {
    font-size: 2.4rem;
    font-family: 'Nunito';
    font-weight: bold;
    border-bottom: 6px solid var(--color-main);
    padding-bottom: 17px;
    color: white;
}

.row-grid-item-3 { 
    grid-area: 2 / 1 / 4 / 4; 
    background-color: var(--color-main);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    gap: 2rem;
}

.row-grid-item-4 { 
    grid-area: 2 / 4 / 4 / 7; 
    background-color: rgb(222, 255, 255);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-main);
    gap: 2rem;
}


.grid-item-score{
    font-size: 3.2rem;
}

.row-grid-item-4 .grid-item-score{
    font-size: 2.3rem;
}

.row-grid-item-5 { 
    grid-area: 2 / 7 / 4 / 13; 
    background-image: url('/img/publique/blue-car.jpg');
    background-size: cover;
}

.row-grid-item-6 {
    grid-area: 4 / 3 / 5 / 11;
    background-color: var(--color-second);
    color: white;
    display: flex;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 4px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -10px 0px inset;
}


.row-grid a:hover{
    background-color: var(--color-main);
    transition: 0.2s;
}

.row-grid-item-6 p {
    align-self: center;
    font-size: 2rem;
    font-family: 'Nunito';
    font-weight: bold;
}

.row-credit{
    text-align: center;
    margin-bottom: 1rem;
    color: #575757c7;
}

.row-grid-item:nth-child(1){
    animation-delay: 0.6s;
}


.row-grid-item:nth-child(3){
    animation-delay: 0.4s;
}

.row-grid-item:nth-child(4){
    animation-delay: 0.5s;
}

.row-grid-item:nth-child(5){
    animation-delay: 0.6s;
}

.row-grid-item:nth-child(6){
    animation-delay: 0.8s;
}





/* @media only screen and (max-width:1024px) {

} */

@media only screen and (max-width:900px) {

    .row{
        flex-direction: column;
    }

    .rowImg-1{
        margin-bottom: 0rem;
    }

    .row img{
        height: auto;
        width: 100%;
    }

    .row-title-1{
        font-size: 1.4rem;
    }

    .row-3{
        flex-direction: column;
    }

    .rowContent-3{
        padding: 1rem;
        width: 90%;
    }

    .row-graph{
        flex-direction: column;
    }

    .chart{
        width: 110%;
        align-self: center;
    }

    .graph-title{
        margin-top: 1rem;
    }

    .row-graph-content{
        margin-top: 0rem;
        width: auto;
    }

    .row-graph-title{
        font-size: 1.4rem;
    }

    .row-grid{
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        width: auto;
        height: 550px;
    }

    .row-grid-item{
        padding: 1rem;
    }
    

    .row-grid-item-1{
        grid-area: 2 / 1 / 3 / 3;
        align-items: center;
        gap: 0rem;
    }

    .row-grid-item-2{
        grid-area: 1 / 1 / 2 / 3;
    }

    .row-grid-item-2 p {
        font-size: 1.5rem;
        border-bottom: 5px solid var(--color-main);
    }

    .row-grid-item-3{
        grid-area: 3 / 1 / 4 / 2; 
        gap: 1rem;
        padding: 1rem
    }

    .row-grid-item-4{
        grid-area: 3 / 2 / 4 / 3;
        gap: 1rem;
        padding: 2rem;
    }

    .row-grid-item-5{
        display: none;
    }

    .row-grid-item-6{
        grid-area: 4 / 1 / 5 / 3;
    }
    
    .row-grid-item-6 p{
        font-size: 1.6rem;
        text-align: center;
        line-height: 2rem;
    }

    .grid-item-tag{
        font-size: 1rem;
    }

    .row-grid-item-4 .grid-item-score{
        font-size: 2rem;
    }

    .grid-item-resume{
        text-align: center;
    }




}