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

    /* coleurs */
    --blue-principal : #00247D;
    --blue-secondaire : #bad0dd;
    --gris-principal : #CFD2D6;
    --jaune-principal : #fddaa0;
    
    --rouge-principal : #CF142B;


    --texte-principal: #221f1f;
    --texte-gris: #484848;
    --texte-blanc-casse: var(--gris-principal);
    --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;
    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;
    background-color: rgba(0, 0, 0, 0.1);
    background-image: linear-gradient( to top left, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 1px), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) calc(50% + 1px), rgba(0, 0, 0, 0) 100% ), linear-gradient( to top right, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) calc(50% - 1px), rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0) calc(50% + 1px), rgba(0, 0, 0, 0) 100% );
}

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

p{
    max-width: 30rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--police-titre);
    font-weight: 600;
    line-height: 1.25;
    color: var(--texte-gris);
    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 > * + *{
    margin-top: var(--goutiere-1000);
}

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

input{
    font: inherit;
}

[type=checkbox]{
    display: none;
}


label, a{
    cursor: pointer;
    display: inline-block;
    color: inherit;
    padding: var(--goutiere-50);
    background-color: #959595 !important;
    color: #1c1c1c;
}

a:hover, label:hover, a:focus, label:focus{
    background-color: rgb(71, 70, 70) !important;
    color: white;
}


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

body > header nav + nav{
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

body >header > nav .logo{
    margin-inline-end: auto;
}


main > header {
    display: flex;
    flex-direction: column;
    gap: var(--goutiere-200);
}

main > header > h4{
    text-align: center;
}

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

main > header select{
    width: 5rem;
}

main > header > div + div{
    display: none;
    flex-flow: row wrap;
    justify-content: flex-start;
    gap: var(--goutiere-200) var(--goutiere-400);
    margin-top: var(--goutiere-200);
}

main > header > div + div label{
    border-radius: .5rem;
}

main > header .filter-button:checked + div + div{
    display: flex;
}

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

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

main > section > article > img{
    height: 20rem;
    width: inherit;
}

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

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: #959595;
}

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 > *:last-child{
    margin-bottom: var(--goutiere-1000);
    font-size: var(--texte-400);
}


@media screen and (min-width:1200px) {
    body > header {
        display: flex;
        justify-content: space-between;
        background-color: rgb(182, 176, 176);
        padding: 1rem;
    }
    body > header > nav + nav {
        position: static;
        margin: 0;
    }


    main > section{
        display: grid;
        grid-template-columns: repeat(4, 18rem);
        justify-content: center;
        gap: var(--goutiere-400);
    }
    main > section > article + article{
        margin: 0;
    }
    main > section > label{
        grid-column: -1 / 1;
    }
}