/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
  pour plus d'explication sur les différentes règles :)
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

*:not(dialog) {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    position: fixed;
    line-height: 1.5em;
    -webkit-font-smoothing: antialiased;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #eee;
    font-size: 1.2em;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-wrap: balance;
}

#root,
#__next {
    isolation: isolate;
}

/*========================= root =========================*/
@font-face {
    font-family: "redaction";
    src: url(MEDIA/fonts/webfonts/Redaction-Regular.woff2) format("woff2");
}

@font-face {
    font-family: "redaction";
    src: url(MEDIA/fonts/webfonts/Redaction-Bold.woff2) format("woff2");
    font-weight: bold;
}

@font-face {
    font-family: "redaction";
    src: url(MEDIA/fonts/webfonts/Redaction-Italic.woff2) format("woff2");
    font-style: italic;
}

@font-face {
    font-family: "redaction 35";
    src: url(MEDIA/fonts/webfonts/Redaction_35-Regular.woff2) format("woff2");
}

@font-face {
    font-family: "redaction 35";
    src: url(MEDIA/fonts/webfonts/Redaction_50-Bold.woff2) format("woff2");
    font-weight: bold;
}

@font-face {
    font-family: "redaction 35";
    src: url(MEDIA/fonts/webfonts/Redaction_35-Italic.woff2) format("woff2");
    font-style: italic;
}

@font-face {
    font-family: "redaction 100";
    src: url(MEDIA/fonts/webfonts/Redaction_100-Regular.woff2) format("woff2");
}

/*========================= header =========================*/
header {
    font-family: "redaction";
    color: limegreen;
    display: flex;
    position: relative;
    top: 0;
    width: 100vw;
    height: 15vh;
    align-items: center;
    z-index: 2;
    overflow: hidden;
    justify-content: space-around;
}

button,
#box3 a {
    border: none;
    padding: .35em .5em;
    cursor: pointer;
    background-color: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    color: limegreen;
    font-size: 1.2em;
    text-decoration: none;
}

#btn-contact {
    display: none;
}

#box1 {
    display: flex;
    gap: 1em
}

#box2 {
    font-family: "redaction 35";
    text-align: center;
    line-height: 1em;
}

#box2 h1 {
    margin-bottom: .5em;
}

#box3 {
    display: flex;
    gap: 1em;
}


/*========================= design sommaire =========================*/
.work {
    display: none;
    position: relative;
    flex-direction: column;
    column-gap: 3em;
    height: 76.5vh;
    width: 40vw;
    background-color: #9F9F9F;
    border-radius: 1em;
    margin-left: 2.5vw;
    z-index: 2;
    overflow: scroll;
}

.wrap-filtre {
    display: inline-flex;
    font-family: 'redaction';
    font-size: 1.1em;
    border-bottom: 1px solid black;
    padding: 1em;
    gap: .5em;
    justify-content: space-evenly;
    align-items: center;
    max-width: 40vw;

}

/* .wrap-filtre p {
    font-family: 'redaction';
    font-weight: bold;
    font-size: 1.2em;
} */

.wrap-filtre button {
    display: flex;
    justify-content: center;
    min-width: 4em;
}

.btn {
    background-color: #B9B9B9;
    color: black;
}

.selection {
    display: inline-flex;
    border-bottom: 1px solid black;
    font-family: 'redaction 35';
    color: black;
    justify-content: space-between;
    line-height: 3em;

}

.selection div {
    display: flex;
    margin-right: 1.5em;
    color: black;
    align-self: center;
    height: 1em;
    width: 1em;
    /* clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); */
    border-radius: 10%;
}

.code .filtre {
    background-color: green;
}

.edition .filtre {
    background-color: limegreen;
}

.affiche .filtre {
    background-color: greenyellow;
}

.selection h6 {
    display: flex;
    text-align: left;
    margin-left: 1em;
    margin-top: .5em;
    margin-bottom: .5em;
    font-size: 2.5em;
    align-items: center;

}

.selection:hover {
    background-color: #B9B9B9;
    color: green;
    font-family: 'redaction 100';
}

/*========================= design panel work =========================*/
.panel-info {
    display: none;
    position: absolute;
    background-color: #9F9F9F;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    height: 78vh;
    top: 13.5vh;
    width: 95vw;
    border-radius: .5em;
    left: 2.5vw;
    font-family: "redacation 35";
    z-index: 3;
    overflow: scroll;
    font-size: 2em;
    padding: 1.5em;
    padding-top: 2em;
    grid-template-columns: repeat(13, 1fr);
    gap: 1em;
}

.txt {
    grid-column: 1/span 5;
    grid-row: 1;
    font-family: 'redaction';
}

section h6 {
    font-size: 1.4em;
    font-family: 'redaction 35';
    line-height: 1.2em;

}

section h4 {
    font-size: 1em;
    font-family: 'redaction 35';
    line-height: 1.2em;

}

section p {
    font-size: .6em;
    line-height: 1.2em;
    font-family: 'redaction';
}

section a {
    color: green;
    text-decoration: underline;
    cursor: pointer;
    border: none;
    box-shadow: none;
    padding: 0;
    font-family: 'redaction 35';
    line-height: 1.2em;

    &:hover {
        font-family: 'redaction 100';
    }
}

.img {
    grid-column: 6/span 8;
}

.img-2 {
    grid-column: 1/span 13;
}

.img-3 {
    grid-column: 1/span 4;
}

.img-4 {
    grid-column: 5/span 9;
    grid-row: 2;
}

.img-exeption {
    grid-column: 6/span 4;
}

.img-exeption2 {
    grid-column: 10/span 4;
}

.close {
    border: none;
    display: none;
    position: absolute;
    right: .5em;
    top: .25em;
    width: 1em;
    height: 1em;
    background-color: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    cursor: pointer;
    z-index: 4;
    border-radius: 100%;

    &:hover {
        background-color: limegreen;

        &::before,
        &::after {
            background-color: whitesmoke;
        }
    }
}

.close::before,
.close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: limegreen;
    height: .1em;
    width: .5em;
    border-radius: .2em;
}

.close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/*========================= panel about =========================*/
.moi {
    display: none;
    position: relative;
    flex-direction: column;
    column-gap: 3em;
    background-color: #9F9F9F;
    border-radius: 1em;
    left: 50%;
    max-height: 76.5vh;
    max-width: 70vw;
    transform: translateX(-50%);
    z-index: 2;
    overflow: scroll;
    padding: 2em;
    align-items: center;
    font-family: 'redaction 35';
}


/*========================= background =========================*/
#background {
    position: absolute;
    z-index: 1;
    height: 75vh;
    width: 100vw;
}

#wrapper {
    position: absolute;
    top: 20%;
    left: 30%;
    transform: scale(500%);
}

/* #wrap {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    height: 100%;
    width: 100%;
    align-items: center;
    margin-top: 5em;
    transform: rotate(-24deg);
}

#haut {
    display: inline-flex;
    padding-right: 3em;
}

#feuille-1 {
    display: block;absolute
    background-color: green;
    clip-path: polygon(0% 20%, 40% 0%, 90% 100%, 74% 100%);
    height: 8em;
    width: 5.5em;
}

#feuille-2 {
    display: block;
    background-color: green;
    clip-path: polygon(0 0, 100% 0%, 80% 100%, 10% 100%);
    height: 8em;
    width: 1.5em;
}

#feuille-3 {
    display: block;
    background-color: rgb(0, 150, 0);
    clip-path: polygon(60% 0, 100% 10%, 68% 100%, 20% 100%);
    height: 8em;
    width: 3em;
}

#feuille-4 {
    display: block;
    background-color: rgb(0, 150, 0);
    clip-path: polygon(40% 20%, 100% 50%, 50% 100%, 0% 100%);
    height: 8em;
    width: 2em;
}

#milieu {
    display: inline-flex;
}

#polygone-g {
    display: block;
    background: #FFA500;
    background: linear-gradient(-90deg, rgba(255, 165, 0, 1) 0%, rgba(230, 127, 1, 1) 100%);
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 0% 100%);
    height: 6em;
    width: 7em;

}

#polygone-d {
    display: block;
    background-color: orange;
    clip-path: polygon(0% 0%, 50% 0%, 100% 100%, 0% 100%);
    height: 6em;
    width: 7em;

}

#bas {
    display: inline-flex;
    height: 25em;

}

#triangle-rectangle-d {
    background-color: orange;
    display: block;
    clip-path: polygon(0%0%, 0%100%, 100%0%);
    width: 7em;
}

#triangle-rectangle-g {
    display: block;
    background: #FFA500;
    background: linear-gradient(-90deg, rgba(255, 165, 0, 1) 0%, rgba(230, 127, 1, 1) 100%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%);
    width: 7em;
} */

/*========================= panel contact =========================*/
.contact {
    display: none;
    position: absolute;
    flex-direction: column;
    background-color: limegreen;
    border-radius: .5em;
    top: 77vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    overflow: hidden;
    padding: .5em;
    color: black;
    font-family: "redaction 35";
    font-size: 1.5em;
}

.contact a {
    text-decoration: none;
    border: none;
    padding: 0;
    cursor: pointer;
    background-color: transparent;
    box-shadow: none;
    color: black;
    font-size: 1em;
}

.contact a:hover {
    color: whitesmoke;
    transition: ease-in-out 200ms;
}

/*========================= footer =========================*/
footer {
    position: absolute;
    width: 100vw;
    height: 10vh;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.buttonC {
    border: none;
    padding: .35em .5em;
    cursor: pointer;
    background-color: whitesmoke;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    color: limegreen;
    font-size: 1.2em;
    text-decoration: none;
}

/*========================= version mobile =========================*/
@media screen and (max-width: 1279px) {


    

    /*========================= header =========================*/
    header {
        font-family: "redaction";
        color: limegreen;
        display: flex;
        flex-direction: column-reverse;
        position: relative;
        width: 100vw;
        height: auto;
        z-index: 2;
        padding: .35em;
        margin-bottom: 1em;
    }

    header a {
        display: none;
    }

    button {
        border: none;
        padding: .35em .5em;
        cursor: pointer;
        background-color: whitesmoke;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        color: limegreen;
        font-size: 1.2em;
        text-decoration: none;
    }

    #box1 {
        display: flex;
    }


    #box2 {
        font-family: "redaction 35";
        text-align: center;
        gap: 1em
    }

    #box2 h1 {
        font-size: 2.5rem;
        line-height: 3rem;
        margin-bottom: .3em;
    }

    #box2 h4 {
        font-size: .9em;
        margin-bottom: 1em;
    }

    #box3 {
        display: none;
    }


    #btn-contact {
        display: flex;
    }

    /*========================= background =========================*/
    #background {
        position: absolute;
        z-index: 1;
        height: 75vh;
        width: 100vw;
    }

    #wrapper {
        position: absolute;
        top: 5vh;
        left: 15vw;
        transform: translate(-50%, -50%);
        transform: scale(3);
    }

    /*========================= sommaire =========================*/
    .work {
        display: none;
        position: relative;
        flex-direction: column;
        column-gap: 3em;
        height: auto;
        max-height: 65vh;
        width: auto;
        background-color: #9F9F9F;
        border-radius: 1em;
        z-index: 2;
        overflow: scroll;
        margin-left: .3em;
        margin-right: .3em;
        padding-bottom: 1em;
    }

    .wrap-filtre {
        display: inline-flex;
        font-family: 'redaction';
        font-size: .8em;
        border-bottom: 1px solid black;
        padding: 1em;
        gap: .5em;
        justify-content: space-evenly;
        align-items: center;
        max-width: 100vw;

    }

    .wrap-filtre button {
        display: flex;
        justify-content: center;
        min-width: 4em;
    }

    .btn {
        background-color: #B9B9B9;
        color: black;
    }


    .selection {
        display: inline-flex;
        border-bottom: 1px solid black;
        font-family: "redaction 35";
        color: black;
        justify-content: space-between;
        line-height: 3em;

    }

    .selection div {
        display: flex;
        margin-right: 1.5em;
        color: black;
        align-self: center;
        height: 1em;
        width: 1em;
        /* clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 70%, 0 100%); */
        border-radius: 10%;
    }

    .code .filtre {
        background-color: green;
    }

    .edition .filtre {
        background-color: limegreen;
    }

    .affiche .filtre {
        background-color: greenyellow;
    }

    .selection h6 {
        display: flex;
        text-align: left;
        margin-left: 1em;
        margin-top: .5em;
        margin-bottom: .5em;
        font-size: 1.2em;
        align-items: center;
        max-width: 75%;
        line-height: 1.2em;

    }

    .selection:hover {
        background-color: #B9B9B9;
        color: green;
        font-family: 'redaction 100';
    }

    /*========================= design panel work =========================*/
    .panel-info {
        display: none;
        position: absolute;
        background-color: #9F9F9F;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        height: 100vh;
        width: 100vw;
        top: 0;
        left: 0;
        font-family: "redacation 35";
        z-index: 3;
        overflow: scroll;
        overflow-x: hidden;
        padding: 2em 1em;
        gap: 1em;
        font-size: .8em;
    }

    .txt {
        grid-column: 1/span 8;
        font-family: 'redaction';
        font-size: .8em;
    }

    section h6 {
        font-size: 2em;
        font-family: "redaction 35";
        line-height: 1em;

    }

    section p {
        font-size: .8em;
        line-height: 1.1em;
        font-family: 'redaction';
    }

    section a {
        color: green;
        text-decoration: underline;
        cursor: pointer;
        border: none;
        box-shadow: none;
        padding: 0;
        font-family: "redaction 35";
        line-height: 1.2em;

        &:hover {
            font-family: "redaction 100";
        }
    }

    .img,
    .img-2,
    .img-3,
    .img-4,
    .img-exeption,
    .img-exeption2 {
        grid-column: 1/span 13;
    }

    .close {
        border: none;
        display: none;
        position: absolute;
        top: 1vh;
        left: 85vw;
        width: 2em;
        height: 2em;
        background-color: whitesmoke;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        cursor: pointer;
        border-radius: 100%;
        z-index: 4;

        &:hover {
            background-color: limegreen;

            &::before,
            &::after {
                background-color: whitesmoke;
            }
        }
    }

    .close::before,
    .close::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        background-color: limegreen;
        height: .17em;
        width: 1em;
        border-radius: .2em;
    }

    .close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    /*========================= panel about =========================*/
    .moi {
        display: none;
        position: relative;
        flex-direction: column;
        column-gap: 3em;
        background-color: #9F9F9F;
        border-radius: 1em;
        max-height: 65vh;
        max-width: 95vw;
        z-index: 2;
        overflow: scroll;
        padding: 1em;
        align-items: center;
        font-family: 'redaction 35';
    }

    /*========================= footer désactivé car sur mobile autre dispo =========================*/
    footer {
        display: none;
    }

    .buttonC {
        border: none;
        padding: .35em .5em;
        cursor: pointer;
        background-color: whitesmoke;
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
        color: limegreen;
        font-size: 1.2em;
        text-decoration: none;
    }

    /*========================= panel contact =========================*/
    .contact {
        display: none;
        position: absolute;
        flex-direction: column;
        background-color: limegreen;
        border-radius: .5em;
        top: 77vh;
        width: auto;
        left: 50%;
        transform: translateX(-50%);
        z-index: 4;
        overflow: hidden;
        padding: .5em;
        color: black;
        font-family: "redaction 35";
        font-size: .8em;
    }

    .contact a {
        text-decoration: none;
        border: none;
        padding: 0;
        cursor: pointer;
        background-color: none;
        box-shadow: none;
        color: black;
        font-size: 1em;
    }
}

/*========================= à la fin les changements de classe car la priorité css > avec la dernière classe ajoutée ! =========================*/
.active {
    display: flex;
}

.active-grid {
    display: grid;
}

.hidden {
    display: none;
}

.presse {
    padding: .35em .5em;
    cursor: pointer;
    background-color: limegreen;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 30px 60px -12px inset, rgba(0, 0, 0, 0.3) 0px 18px 36px -18px inset;
    color: whitesmoke;
    font-size: 1.2em;
    transition: all 0.5s;
}