:root {
  --card_width: 180px;
  --row_increment: 1px;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Fredoka", sans-serif;
    font-optical-sizing: auto;
    font-weight: 490;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
    overflow-x: clip;
}

img, video{
    max-width: 100vw;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

ul,
p,
h1,
h2,
h3 {
    margin: 0;
    padding: 0;
}

li,
a {
    text-decoration: none;
    list-style: none;
    outline: none;
}



/* page projet individuel*/

.titre {
    margin-top: 6rem;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
}

.titre div h1 {
    padding-bottom: 0.5rem;
}

.titre a {
    align-items: center;
    display: flex;
}

.btn-retour {
    cursor: pointer;
    width: 3rem;
    height: 3rem;
}

.expl-projet {
    padding: 1rem 1rem;
}

.para-projet {
    margin: 1rem 0;
}

.para-projet h2 {
    margin-bottom: 0.5rem;
}

.img-carrousel,
.imgs-carrousel-pc img,
.imgs-carrousel-pc video {
    border-radius: 10px;
    box-shadow: 9px 9px 18px 3px rgba(0, 0, 0, 0.29);
}

.carrousel {
    position: relative;
}

.fleche-carrousel {
    margin: 1rem 1.5rem;
    position: absolute;
    display: flex;
    justify-content: space-between;
    bottom: 50%;
    transform: translateY(50%);
    left: 0;
    right: 0;
}

.fleche-projet {
    width: 3.5rem;
    cursor: pointer;
}

.fleche-haut,
.fleche-gauche{
    width: 0;
}

.galerie-projet h2 {
    margin: 0 0.6rem 1rem;
}

.galerie-projet {
    margin: 0 0.5rem;
}

.imgs-galerie-projet {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.img-galerie-projet {
    width: 100%;
    cursor: pointer;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 3px 3px 9px rgba(0, 0, 0, 0.4);
    transition: 0.2s;
}

.imgs-carrousel-pc {
    display: none;
    justify-content: center;
    gap: 1rem;
    margin: 0 2rem;
}

.imgs-carrousel-pc li img,
.imgs-carrousel-pc li video {
    max-height: 70dvh;
}

.decouverte-autre-projet {
    padding: 1rem 0;
}

.decouverte-autre-projet h2{
    padding: 0 2.5rem;
}

.block-decouverte {
    display: grid;
    transition: 0.2s;
    cursor: pointer;
}

.blocks-decouvertes {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    padding: 1rem 0 0;
}

.block-decouverte h3 {
    padding: 0.5rem 1rem;
    flex-direction: column-reverse;
    display: flex;
    grid-area: 1/1/2/2;
    z-index: 1;
    color: white;
    text-shadow: 1px 2px 9px rgba(0, 0, 0, 0.85);
    
}

.img-decouverte {
    width: 100%;
    box-shadow: 3px 3px 9px rgba(0, 0, 0, 0.4);
    grid-area: 1/1/2/2;
    aspect-ratio: 16/9;
    object-fit: cover;
}


/* overlay projet individuel */
.overlay {
    position: fixed;
    z-index: 13;
    background-color: white;
    margin: 0;
    padding: 0;
    height: 100dvh;
    width: auto;
    top: 0;
    left: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.header-overlay {
    background-color: white;
    justify-content: space-between;
    width: 100vw;
    display: flex;
    flex-direction: row;
    padding: 1rem 0.5rem;
    align-items: center;
    box-sizing: border-box;
}

.header-overlay a{
    display: flex;
    justify-items: center;
}

.centre-overlay {
    min-height: 0;
    width: 100vw;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-c-o {
    border-radius: 10px;
    box-shadow: 9px 9px 18px 3px rgba(0, 0, 0, 0.29);
    display: block;
}

.centre-overlay h2 {
    display: none;
}

.txt-img-overlay{
    position: relative;
}

.txt-overlay{
    position: absolute;
    margin: 1rem;
    bottom: 0;
    z-index: 2;
}

.fond{
    z-index: -3;
    height: 100vw;
    width: 100%;
    transform: rotate(-30deg) scale(4);
    position: absolute;
}

.btn-info{
    cursor: pointer;
    z-index: 3;
    width: 3.5rem;
    height: 3.5rem;
    position: absolute;
    right: 0;
    margin: 0.4rem;
}

.color-img-centre::after{
    border-radius: 10px;
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0.7;
}

.footer-overlay{
    position: relative;
    background-color: white;
    padding: 1rem 0.5rem;
    width: max-content;
    min-width: 100vw;
}

.nav-overlay {
    transition: 0.5s;
    justify-content: center;
    overflow-x: auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
    position: relative;
}

.nav-overlay li {
    position: relative;
}

.blanc::after {
    border-radius: 10px;
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0.5; 
}

.nav-img {
    width: auto;
    border-radius: 10px;
    height: 7rem;
    cursor: pointer;
}

.fleche-overlay-horizontal{
    pointer-events: none;
    display: flex;
    box-sizing: border-box;
    padding: 0 1.5rem 0 1rem;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    width: 100vw;
    justify-content: space-between;
    transform: translateY(-50%);
}

.fleche-overlay-verticale{
    pointer-events: none;
    display: none;
}

.fleche-overlay-horizontal .fleche-projet,
.fleche-overlay-verticale .fleche-projet{
    pointer-events: auto;
    border-radius: 50%;
}

/* page projets */

.tags{
    margin: 2rem 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tags li{
    cursor: pointer;
}

.galerie-projets{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin: 1rem;
    gap: 10px;
}

.galerie-projets li img{
    border-radius: 10px;
    box-shadow: 3px 3px 9px 1px rgba(0, 0, 0, 0.29);
    aspect-ratio: 1/1;
    object-fit: cover;
}

.cache{
    display: none !important;
}

.droite{
    text-align: end;
}

/* galerie */

.t-galerie{
    margin-top: 6rem;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
}

.card {
 padding: 0;
 margin: 15px 10px;
}

.card img, .card video{
    max-width: 100%;
    box-shadow: 9px 9px 18px 3px rgba(0, 0, 0, 0.29);
    border-radius: 0.7rem;
}

.pin_container {
 margin: 0;
 padding: 0;
 width: 100vw;
 position: absolute;
 left: 50%;
 transform: translateX(-50%);
display: grid;
 grid-template-columns: repeat(auto-fill, 190px);
 grid-auto-rows: var(--row_increment);
 justify-content: center;
}

/* page index */

.m-index{
    box-sizing: border-box;
    padding: 1rem;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
}

.boite-index{
    position: relative;
    color: white;
    box-sizing: border-box;
    padding: 2rem;
    height: 100%;
    width: 100%;
    border-radius: 16px;
}

.li-index{
    align-items: center;
    font-size: 1.5rem;
    gap: 2rem;
    justify-content: center;
    flex-direction: column;
    display: flex;
    height: 70%;
}

.li-index a{
    z-index: 2;
    color: white;
    text-decoration-line: underline;
}

.h1-index{
    z-index: 2;
    justify-content: center;
    width: 100%;
    height: 30%;
    display: flex;
    text-align: center;
    align-items: center;
    font-size: xx-large;
}

.video-fond{
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 16px;
    object-fit: cover;
    z-index: -1;
}

/* */
/* */
/* */
/* */
/* */
/* */
/* */
/*a supprimer*/
/* */
/* */
/* */
/* */
/* */
/* */

.lien-logo {
    color: white;
}

.nav-desktop {
    display: none;
}

.nav-desktop li a {
    color: rgb(0, 0, 0);
}

a {
    text-decoration: none;
    position: relative;
}

body {
    position: relative;
}

header {
    margin: 0;
    height: 5rem;
    display: flex;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.562);
    position: fixed;
    top: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    z-index: 12;
}

li {
    text-decoration: none;
    list-style: none;
    outline: none;
}

nav div {
    width: 90vw;
    display: flex;
    justify-content: space-between;
}

nav div img {
    height: 35px;
}

nav ul {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
}

nav a {
    font-size: 1rem;
}

nav {
    align-items: center;
    justify-items: center;
}

.volet {
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100vw;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: white;
    gap: 5rem;
    font-size: 1.4rem;
    top: -100dvh;
    transition: 0.3s;
    font-weight: bold;
    z-index: 10;
}

.volet li a {
    color: black;
}

.bt-volet {
    content: url("../images/b-menu-noire.svg");
    height: 2rem;
    width: 2rem;
}


@media (min-width: 480px) {

    /* version tablette et pc */

    html {
        scroll-behavior: smooth;
    }

    .presentation div {
        gap: 2rem;
        margin: 0 3rem;
    }

    nav div {
        display: none;
    }

    .nav-desktop {
        display: flex;
    }

    .para-projet {
        margin: 2rem 0;
    }

    .galerie-projet {
        margin: 0 1rem;
    }

    .imgs-carrousel-pc {
        display: flex;
        margin: 0;
    }

    .img-carrousel {
        display: none;
    }

    .fleche-carrousel {
        display: none;
    }

    .blocks-decouvertes {
        padding: 1rem 2rem ;
        grid-template-columns: repeat(2, 1fr);
    }

    .block-decouverte:hover {
        transform: scale(1.02);
    }

    .img-decouverte{
        border-radius: 10px;
    }
}

@media (min-width: 480px) and (max-width: 1000px) {
    .titre {
        padding: 0 2rem;
    }

    /* version tablette*/
    .imgs-galerie-projet {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .expl-projet {
        padding: 1rem 2rem;
    }
    
    .galerie-projets{
        grid-template-columns: repeat(3, 1fr);
    }
    
    .fond{
        transform: rotate(-30deg) scale(2);
    }

}

@media (min-width:1000px) {
    .overlay{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        height: auto;
        width: 100vw;
        grid-template-columns: auto 1fr auto;
    }

    .header-overlay h2{
        display: none;
    }

    .header-overlay{
        justify-content: center;
        align-items: start;
        width: 6rem;
    }

    .centre-overlay h2{
        display: block;
    }

    .centre-overlay{
        gap: 20px;
        padding: 3rem 1rem;
        flex-direction: column;
        height: 100dvh;
        min-width: 0;
        width: auto;
    }

    .footer-overlay{
        height: 100dvh;
        min-height: 100dvh;
        min-width: auto;
        width: fit-content;
        padding: 2rem;
    }

    .nav-overlay{
        flex-direction: column;
        transition: 0.5s;
    }

    .fleche-overlay-verticale{
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 10rem;
        display: flex;
        height: 93vh;
        position: absolute;
        top: 0;
        z-index: 2;
        padding: 2rem 0;
    }

    .fleche-overlay-horizontal{
        display: none;
    }
    
    .nav-img{
        height: auto;
        width: 10rem;;
    }

    .titre {
        padding: 0 3rem;
    }

    .imgs-galerie-projet {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .img-galerie-projet:hover {
        transform: scale(1.02);
    }

    .imgs-carrousel-pc {
        display: flex;
    }

    .img-carrousel {
        display: none;
    }
    
    .fleche-carrousel {
        display: none;
    }

    .expl-projet {
        padding: 1rem 3rem;
    }

    .galerie-projet {
        margin: 0 1.5rem;
    }
    
    .galerie-projets{
        grid-template-columns: repeat(4, 1fr);
    }

    .pin_container{
        grid-template-columns: repeat(auto-fill, 250px);
        width: 80vw;
    }

    .card:hover{
        transition: 0.2s;
        transform: scale(1.02);
        cursor: pointer;
    }

    .t-galerie{
        width: 80vw;
        padding: 0 2rem;
    }

    .tt-galerie .tags{
        width: 80vw;
    }

    .tt-galerie{
        display: flex;
        align-items: center;
        flex-direction: column;
    }

    .h1-index{
        justify-content: start;
        padding-left: 1.5rem;
    }

    .li-index{
        align-items: start;
        padding-left: 1.5rem;
    }
    
    .fond{
        transform: rotate(-30deg) scale(1.5);
    }
}
/*

                <video class="img-c-o" autoplay muted loop>
                    <source src="./videos/an-bateau.webm" type="video/webm">
                </video>
*/