:root {
    /* polices */
    --police-corp-principal: 'Anek Latin', sans-serif;
    --police-titre: 'Montserrat', serif;

    /* coleurs */
    --blue-principal : #00247D;
    --blue-secondaire : #bad0dd;
    --gris-principal : #CFD2D6;    
    --jaune-secondair: #f7f1e1;
    --jaune-secondair: #efeee1;


    --rouge-principal : #CF142B;
    --rouge-secondaire: #ff2f2f;


    --texte-principal: #221f1f;
    --texte-gris: #484848;
    --texte-blanc-casse: #e0d5d5;
    --texte-blanc: #fff;

    /* font-size et gutter, source type-scale.com #####################################################################*/
    /* font size scale, 1.250 – Major Third ###########################################################################*/
    --texte-1000: 4.5rem;
    --texte-900: 3.052rem;
    --texte-800: 2.441rem;
    --texte-700: 1.953rem;
    --texte-600: 1.563rem;
    --texte-500: 1.25rem;
    --texte-400: 1rem;
    --texte-300: 0.8rem;
    --texte-200: 0.64rem;
    --texte-100: 0.512rem;


    /* gutter 1.414 – Augmented Fourth ##################################################################################*/
    --goutiere-1000: 5.653rem;
    --goutiere-800: 3.998rem;
    --goutiere-600: 2.827rem;
    --goutiere-400: 1.999rem;
    --goutiere-300: 1.414rem;
    --goutiere-200: 1rem;
    --goutiere-100: 0.707rem;
    --goutiere-50: 0.500rem;

    line-height: 1.5625;
    letter-spacing: .025rem;
    color: var(--texte-principal);
}


*{
    margin: 0;
    padding: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-sizing: border-box;
    vertical-align: top;
}

body{
    font-family: var(--police-corp-principal);
    font-size: var(--texte-500);
    display: flex;
    flex-direction: column;
    margin: auto;
}

img{
    display: block;
    object-fit: cover;
    max-width: 100%;
    max-height: 100%;
    width: 5rem;
}

a > img, label > img{
    width: 2rem;
}

p{
    max-width: 30rem;
}

h1,
h2,
h3,
h4{
    font-family: var(--police-titre);
    font-weight: 600;
    line-height: 1.25;
    color: var(--rouge-principal);
    max-width: 40ch;
}

h1 {
    font-family: var(--police-titre);
    font-size: var(--texte-800);
    max-width: 40ch;
    font-weight: 900;
}

h2 {
    font-size: var(--texte-700);
}

h3 {
    font-size: var(--texte-600);
}

h4 {
    font-size: var(--texte-400);
}

p{
    max-width: 50rem;
}


body>*{
    margin: 0 auto;
    width:min(100%, 1280px);
}
body>:is(footer, header){
    width: 100%;
}

body > * + *{
    margin-top: var(--goutiere-1000);
}

body > * > * + *{
    margin-top: 2rem;
}

input, select{
    font: inherit;
}

[type=checkbox], [type=radio]{
    display: none;
}


label, a{
    cursor: pointer;
    display: inline-block;
    color: inherit;
    transition: all .2s ease-in-out;
}

a:hover, a:focus{
    color: var(--rouge-secondaire);
}


.button{
    background-size: 1.8rem;
    background-color: var(--rouge-secondaire);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    overflow: hidden;
}

.sociaux{
    background-color: var(--blue-principal);
}
.sociaux:hover{
    background-color: var(--rouge-secondaire);
}
.sociaux.facebook{
    background-image: url(./svg/facebook.svg);
}
.sociaux.twitter{
    background-image: url(./svg/twitter.svg);
}
.sociaux.instagram{
    background-image: url(./svg/instagram.svg);
}

.cta-secondaire{
    padding: var(--goutiere-50) var(--goutiere-100);
    border-radius: 0.5rem;
    text-decoration: none;
    font-family: arial;
    font-size: var(--texte-400);
    border: 2px solid;
    background-color: transparent;
    color: var(--texte-gris);
    font-weight: 600;
}
.cta-secondaire:focus, .cta-secondaire:hover{
    color: var(--rouge-secondaire);
}

body > header{
    background-color: var(--rouge-principal);
    color: white;
}

body > header nav{
    display: flex;
    justify-content: flex-end;
    gap: var(--goutiere-200);
    padding: var(--goutiere-100);
}

body > header nav:first-of-type{
    flex: 0 1 35rem;
    align-items: center;
    font-size: var(--texte-400);
    gap: var(--goutiere-100);
}

@media screen and (min-width: 375px) {
    body > header nav:first-of-type{
        font-size: var(--texte-500);
        gap: var(--goutiere-200);
    } 
}

body > header nav + nav{
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--rouge-principal);
}

body >header > nav a{
    text-decoration: none;
    background-color: #0000000a;
    padding: var(--goutiere-50);
    border-radius: .5rem;
}

body >header > nav a:hover{
    color: white;
    background-color: #00000038;
}

.logo{
    margin-inline-end: auto;
    background-image: url(./logo/version-1.png);
}

.compte{
    background-image: url(./svg/compte.svg);
}

.favoris{
    background-image: url(./svg/favoris.svg);
}

.notifications{
    background-image: url(./svg/notification.svg);
}




.filtreHeader {
    display: flex;
    flex-direction: column;
    gap: var(--goutiere-200);
}

.filtreHeader > h4{
    text-align: center;
    font-weight: bold;
    padding: var(--goutiere-50);
    background-color: #fdf6f7;
    min-width: 100%;
}

.filtreHeader > div{
    display: flex;
    justify-content: flex-end;
    gap: var(--goutiere-200);
    padding: 0 var(--goutiere-200);
}

.filtreHeader div :is(select, label){
    border-radius: 1rem;
    padding: 0.5rem;
    background-color: var(--blue-secondaire);
    border: none;
}

.filtreHeader div select{
    width: 5rem;
    font-weight: 600;
    color: #5d5d5d;
    cursor: pointer;
}

.filtreHeader div .filtre{
    background-image: url(./svg/filtre.svg);
}

.filtreHeader .filtre-button:checked + div .filtre{
    background-color: var(--rouge-secondaire);
    background-image: url(./svg/filtre-ouvert.svg);
}


.filtreHeader > div + div{
    display: none;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: var(--goutiere-200) var(--goutiere-800);
    margin-top: var(--goutiere-200);
    background-color: var(--jaune-secondair);
    padding: var(--goutiere-100);
}

.filtreHeader .filtre-button:checked + div + div{
    display: flex;
}


.filtreHeader input + label{
    border-radius: 0.5rem;
    line-height: 1.2;
    font-size: var(--texte-400);
}
.filtreHeader [type=checkbox] + label{
    padding-inline-start: var(--goutiere-400);
    background-position: left 0.25rem top 50%;
    background-size: 1.5rem;
}

.filtreHeader [type=checkbox]:checked + label{
    background-image: url(./svg/fermer.svg);
}

.filtreHeader input:checked + label{
    background-color: var(--rouge-secondaire);
    color: white;
}

.filtreHeader div + div span{
    display: flex;
    gap: var(--goutiere-100);
    flex-flow: row wrap;
}

main > section > article{
    display: flex;
    flex-flow: column;
    width: min(18rem, 100%);
    border: 1px solid #ff2f2f30;
    margin: auto;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--jaune-secondair);
}

main > section > article + article{
    margin-top: var(--goutiere-600);
}

main > section > article > img{
    width: 100%;
    height: inherit;
}

main > section > article > div{
    padding: var(--goutiere-200);
}

main > section > article > div span{
    font-size: var(--texte-400);
}

main > section > article > div footer{
    display: flex;
    justify-content: flex-end;
    gap: var(--goutiere-200);
    margin-top: var(--goutiere-400);
}

main > section > label{
    display: block;
    margin: var(--goutiere-800) auto 0 auto;
    width: max-content;
}



body > article > h2{
    padding: 0 var(--goutiere-300);
}

body > article > section{
    display: flex;
    flex-flow: column;
    gap: var(--goutiere-300);
    padding: 0 var(--goutiere-300);
}




body > footer {
    background-color: var(--blue-secondaire);
    color: var(--texte-principal);
    padding-top: var(--goutiere-200);
}

body > footer > div {
    display: flex;
    justify-content: space-around;
    gap: var(--goutiere-300);
    padding: var(--goutiere-100);
    width: max-content;
    margin: auto;
}

body > footer > p{
    margin-inline: var(--goutiere-200);
}

body > footer > p a{
    color: #00247d;
    background-color: #ffffff38;
    padding: 0.25rem;
}
body > footer > p a{
    margin-top: var(--goutiere-100);
}

body > footer > *:last-child{
    margin-bottom: var(--goutiere-1000);
    font-size: var(--texte-400);
}

@media screen and (min-width:500px) {
    main > section > article > img{
        height: 20rem;
        width: inherit;
    }

    main > section{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(15rem, 20rem));
        justify-content: center;
        gap: var(--goutiere-800) var(--goutiere-400);
        width: 90%;
        margin-inline: auto;
    }

    main > section > article {
        width: 100%;
    }

    main > section > article + article{
        margin: 0;
    }

    main > section > label{
        grid-column: -1 / 1;
    }
}

@media screen and (min-width:650px) {
    body > header {
        display: flex;
        justify-content: space-between;
        padding: var(--goutiere-200);
        gap: var(--goutiere-400);
    }
    body > header > nav {
        padding: 0;
    }
    body > header > nav + nav {
        position: static;
        margin: 0;
    }
}


@media screen and (min-width:768px) {
    body > footer > p{
        margin-inline: auto;
    }

}