/* 1. Use a more-intuitive box-sizing model */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* 2. Remove default margin */
* {
    margin: 0;
}

/* 3. Enable keyword animations */
@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 6. Improve media defaults */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

/* 7. Inherit fonts for form controls */
input,
button,
textarea,
select {
    font: inherit;
}

/* 8. Avoid text overflows */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

/* 9. Improve line wrapping */
p {
    text-wrap: pretty;
}

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

/*
  10. Create a root stacking context
*/
#root,
#__next {
    isolation: isolate;
}



/*FONTS*/

h1 {
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    color: #010355;
    text-transform: uppercase;
    font-size: 1.125em;
    margin: auto;
    padding-block: 50px;
}

h2 {
    font-family: "Outfit", sans-serif;
    font-size: 3.9em;
}

h3 {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1.5em;
    color: #010355;
    text-transform: uppercase;
}

p {
    font-family: "courier";
    font-weight: 400;
    color: #010355;
    font-size: 0.9em;
}

span {
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    color: #010355;
    font-size: 1em;
}

a {
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    font-size: 1em;
    text-decoration: none;
    color: #010355;
}

a:hover {
    color: #FF98FB;
}

.cta {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    border: solid #FF98FB 5px;
    border-radius: 50px;
    width: 175px;
    height: 50px;
    font-size: 0.75em;
    font-weight: 800;
    text-decoration: none;
    color: #010355;
    text-transform: lowercase;
}


.cta:hover {
    background-color: #FF98FB;
    font-size: 0.75em;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}



/*MENU*/

header {
    border-bottom: solid #EEEFEB;
    width: 100%;
    padding: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 70px;
    height: 50px;
}

.menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-list {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 50px;
}

@media screen and (max-width: 576px) {
    .menu-list {
        gap: 0;
    }

    .menu-list nav ul {
        padding: 0;
    }
}


nav ul {
    list-style: none;
    display: flex;
    gap: 50px;

}

nav ul a {
    text-decoration: none;
    color: #010355;
}

nav ul a:hover {
    color: #FF98FB;
}



/*HERO*/

.hero {
    margin: auto;
    max-width: 1200px;
    border-left: solid #EEEFEB;
}

.hero h1 {
    padding: 50px;
}

/* SLIDER PROJECT */

.swiper {
    width: 1100px;
    height: 600px;
    margin: auto;
}

.swiper-layout {
    padding: 0 50px 50px 50px;
}

.swiper-nav {
    width: 200px;
    height: 50px;
    z-index: 10;
    display: flex;
}

.swiper-button-next,
.swiper-button-prev {
    background-color: white;
    border-radius: 100%;
    height: 35px;
    width: 35px;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    content: "";
}



/*FOOTER*/

footer {
    border-top: solid #EEEFEB;
}


.footer-container {
    border-right: solid #EEEFEB;
}

.footer-container h2 {
    color: #00D084;
}

.formulaire-contact {
    max-width: 700px;
    width: 100%;
    padding: 50px;
}

.formulaire-contact,
h2 {
    margin-bottom: 14px;
}

.formulaire-contact p {
    padding: 0px 0 32px 0;
}

.rs-links {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    padding: 20px;
}

.rs-links a {
    text-transform: uppercase;
    text-decoration: none;
    color: #010355;
}

.rs-links a:hover {
    color: #FF98FB;
}

.sub-footer {
    background-color: #010355;
    padding: 40px;
    display: flex;
    align-items: center;
}

.sub-footer-contain {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.sub-footer p {
    color: white;
}

.sub-footer a {
    font-size: 0.75em;
    color: white;
}

.signature {
    display: flex;
    gap: 20px;
    align-items: center;
}

.signature p {
    font-family: "JetBrains Mono", monospace;
    font-weight: 600;
    font-size: 0.75em;
}

/*STRUCTURES PAGES*/

.portfolio,
.shop,
.contact {
    border-left: solid #EEEFEB;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.portfolio h1 {
    text-decoration: overline wavy;
}

.shop h1 {
    text-decoration: overline wavy;
}

.contact h1 {
    text-decoration: overline wavy;
}

.thumbnail span {
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 1em;
    color: #FF0C01;
}


.thumbnail a {
    position: relative;
    display: block;
}

.thumbnail a img {
    background-color: #fff;
}

.thumbnail a .thumbnail-title {
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    top: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    background-color: #ffceff;
}

.thumbnail:hover a .thumbnail-title {
    z-index: 10;
}

/*PAGE PROJETS*/

.grid {
    max-width: 1000px;
    padding: 0 0 70px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 50px;
    grid-row-gap: 50px;
    margin: auto;
}


.grid-link {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
}

.grid-link span:hover {
    color: #FF98FB;
}

.shop .grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(1, 1fr);
}

/*PAGE CONTACT*/

.presentation {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
}

.presentation img {
    max-height: 300px;
    padding: 40px;
}

.presentation p {
    width: 100%;
    padding: 50px 50px 50px 50px;
}

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

    .presentation img {
        padding: 30px;
    }

    .presentation p {
        padding: 30px;
    }

}





/*FICHE PROJETS*/

.section-projet {
    display: flex;
    border-left: solid #EEEFEB;
    padding: 50px;
    gap: 50px;
}

.projet-texte {
    width: 40%;
    display: flex;
    flex-direction: column;
}

.projet-texte p {
    margin-bottom: 16px;
}

.texte-title h1 {
    font-family: "Outfit", sans-serif;
    font-size: 3.9em;
    color: #FF98FB;
    text-transform: none;
    line-height: normal;
}

.texte-contenu {
    width: 100%;
}

.projet-grid {
    display: grid;
    padding: 20px 20px 20px 0px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    margin: auto;
}

.projet-grid-top {
    display: grid;
    padding: 20px 20px 20px 0px;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 20px;
    margin: auto;
}

.projet-images {
    width: 60%;
    display: flex;
    flex-direction: column;
}

.retour {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
}

.projet-img-top,
.projet-video {
    padding: 0px 20px 0px 0px;
}

.projet-img-top {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.projet-video {
    padding-top: 20px;
}


.guinguette img {
    box-shadow: 2px 2px 2px #EEEFEB;
}

/*FICHE PRODUIT*/

.fiche-produit {
    display: flex;
    flex-direction: row;
}

.produit-info {
    display: flex;
    flex-direction: column;
}


/*RESPONSIVE*/

/*notebook*/

@media screen and (max-width: 1440px) {
    .container {
        width: 100%;
        margin: auto;
        max-width: 800px;
    }

    .hero {
        margin: auto;
        max-width: 800px;
    }

    .hero h1 {
        padding: 30px;
    }


    .formulaire-contact {
        padding: 20px;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(5, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 20px;
        margin: auto;
        padding: 0 50px 50px 50px;
    }
}


/*tablette*/

@media screen and (max-width: 810px) {
    .container {
        width: 100%;
        margin: auto;
        max-width: 800px;
    }

    .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .logo {
        gap: 140px;
    }

    .swiper {
        width: 600px;
        height: 400px;
        margin: auto;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(5, 1fr);
        grid-column-gap: 20px;
        grid-row-gap: 20px;
        margin: auto;
        padding: 0 50px 50px 50px;
    }

    .footer-container .formulaire-contact {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .rs-links {
        justify-content: flex-end;
        padding: 30px;
    }


    .sub-footer-contain {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .sub-footer-contain nav ul {
        padding: 0;
        gap: 20px;
    }


    .presentation {
        display: flex;
        flex-direction: column-reverse;
    }


    .section-projet {
        display: flex;
        flex-direction: column;
    }

    .projet-texte {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .shop .grid {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
    }

}

/*mobile*/
@media screen and (max-width: 576px) {

    .container {
        width: 100%;
        margin: auto;

    }

    .section-projet {
        padding: 30px;
    }

    .menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }


    .hero h1 {
        text-align: center;
    }

    .swiper {
        width: 100%;
        height: auto;
        margin: auto;
    }

    .swiper-layout {
        padding: 0 20px 20px 20px;
    }

    .grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(7, 1fr);
        grid-row-gap: 20px;
        margin: auto;
    }

    .footer-container .formulaire-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .formulaire-contact p {
        text-align: center;
    }

    .rs-links {
        justify-content: center;
    }

    .presentation {
        display: flex;
        flex-direction: column-reverse;
    }

    .grid {
        padding: 0 30px 50px 30px;
        gap: 30px;
    }

    .texte-title h1 {
        font-size: 2.5em;
    }

    .section-projet .projet-texte {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .projet-grid {
        display: grid;
        padding: 0;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 20px;
        margin: auto;
        margin-bottom: 20px;
    }

    .projet-grid:last-of-type {
        margin-bottom: 0;
    }

    .projet-grid-top {
        display: grid;
        padding: 20px;
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: repeat(1, 1fr);
        gap: 20px;
        margin: auto;
    }

    .projet-img-top {
        padding: 20px;
    }

    .cart {
        display: none;
    }
}