/* FONTstuff*/
@import url('https://fonts.googleapis.com/css2?family=Amiri&family=Courier+Prime&display=swap');

@font-face {
    font-family: "ReadyActive";
    src: url("../fonts/ReadyActive-Light.otf");
}
@font-face {
    font-family: "ReadyClouded";
    src: url("../fonts/ReadyClouded-Light.otf");
}
@font-face {
    font-family: "Syne";
    src: url("../fonts/Syne/static/Syne-Regular.ttf");
    font-style: normal;
    font-weight: 400;
}
@font-face {
    font-family: "Syne";
    src: url("../fonts/Syne/static/Syne-Bold.ttf");
    font-style: normal;
    font-weight: 700;
}
@font-face {
    font-family: "Syne";
    src: url("../fonts/Syne_Tactile/SyneTactile-Regular.ttf");
    font-style: italic;
    font-weight: 400;
}

@font-face {
    font-family: "Caladea";
    src: url("../fonts/Caladea/caladea-regular.ttf");
    font-style: normal;
    font-weight: 400;
}
@font-face {
    font-family: "Caladea";
    src: url("../fonts/Caladea/caladea-italic.ttf");
    font-style: italic;
    font-weight: 400;
}

/* Ajouts Typo de Benjamin avec des bisous */
@font-face {
    font-family: "Compagnon";
    src: url("../fonts/Compagnon/Compagnon-Light.woff");
    font-style: normal;
    font-weight: 400;
}
@font-face {
    font-family: "Compagnon";
    src: url("../fonts/Compagnon/Compagnon-Italic.woff");
    font-style: italic;
    font-weight: 400;
}
@font-face {
    font-family: "Gap";
    src: url("../fonts/Gap/gapsansbold-webfont.woff");
    font-style: normal;
    font-weight: 400;
}
@font-face {
    font-family: "Gap";
    src: url("../fonts/Gap/gapsansblack-webfont.woff");
    font-style: normal;
    font-weight: 800;
}
@font-face {
    font-family: "Syne Extra";
    src: url("../fonts/Syne-Extra-Condensed.woff");
    font-style: normal;
    font-weight: 400;
}
@font-face {
    font-family: "PicNic";
    src: url("../fonts/Picnic/PicNic-Regular.woff");
    font-style: normal;
    font-weight: 400;
}



@media (min-width: 48rem) {
  :root {
    font-size: calc(1rem + ((1vw - .48rem) * 1.389));
    /* .48rem = viewportWidthMinimum /100 */
    /* 1.389rem = 100 * fontSizeDifference / viewportWidthDifference */
  }
}

@media (min-width: 120em) {
  :root {
    font-size: 2rem;
  }
}


/* Core Stuff */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
:root {
    --color-regular: var(--main-bg-color);
    --color-active:  #7944db;
 }

html{
    scroll-behavior: smooth;
}
body {
    font-size: 1rem;
    line-height: 1.25;
    color: rgb(54, 54, 54);
    padding: 0;
    margin: 0;
    font-family: "Compagnon";
    background-color: #f6fafe9c;
    
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
    /* transition: color 250ms; */
    transition: font-style 0.3s ease;
}

a:hover {
    color: var(--color-active);
    /* transition: color 250ms; */
    font-style: italic;
    position: relative;
    transition: font-style 0.3s ease;
}

.caption a:hover, .path-about-contact a:hover{
    line-height: .8;
}


pre {
    background: none;
    margin: 1rem 0;
    border-radius: 2px;
}

blockquote {

}

table{
    text-align: left;
}
td{
     vertical-align: top;
}

p{
    margin:  0;
}

h1{
    font-weight: 400;
    font-size: 1.2rem;
}


/* Utility Classes */
.margin {
    margin: 0 .5rem;
}

.padding {
    padding: 1rem 1.5rem;
}

.left {
    float: left;
}

.right {
    float: right
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

/****************/
/**** HEADER  ***/
/****************/
.header{
  /* background-color: #f6fafe9c; */
}
.nav{
    display: grid;
    grid-template-columns: calc(100% - 50% - 1.5rem) calc(50% - 1.5rem);
    column-gap: 3rem;
    /* align-items: end; */
}
.pad_menu_item{
    /* padding: 0 0 0 4.9rem; */
}
.main_nav{
  font-size: .7rem; 
  text-align: right; 
}
.main_nav a:hover{
    position:relative;
    bottom:.23em;
}
.active:hover{
    bottom: 0em !important;
    margin-bottom: .2em;
}
.active{
    color:var(--color-active);
}
/* Ready juste sur premier lettre */
/* .title{
font-family: "ReadyActive";

} */
.title{
    font-family: 'Compagnon';
    font-size: 1rem;
    line-height: .7;
}
.title em{
    font-size: .7rem;
    line-height: 1.25;
}
.title p::first-letter {
    font-size: 1.6rem;
    font-family: "ReadyActive";
}
.main_nav, .title{
    display: flex;
    flex-direction: column;
}
.arrow_menu{
    margin: 0 .7rem 0 0rem;
    font-family: "Compagnon";
    font-style: italic;
    color:var(--color-active);
}
.title img{
    width : 100px;
}

/****************/
/*** GRID MEDIA */
/****************/
.path-home{
    /* background-color: #e4eeeb; */
    align-content: center;
}
.path-web .intro h2{
    font-weight: 400;
    font-family: "Compagnon";
    text-transform: none;
    margin: 0;
    font-size: 1.5em;
    letter-spacing: auto;
    padding: 0;
}
.path-web-archive{}
.path-illustrations, .path-home, .path-web{
    display: grid;
    grid-template-columns: calc(100% - 50% - 1.5rem) calc(50% - 1.5rem);
    column-gap: 3rem;
    /* background-color: #f6fafe9c; */
}
.path-web{
    /* calc(100% - 25% - 1.5rem) calc(25% - 1.5rem)*/
    grid-template-columns: 25% 25% 25% 25%;
    row-gap: 4em;
    column-gap: 0;
}
.path-web .items.desc{
    grid-column: span 1;
    padding: 0 1rem;
}
.path-web .items.proj{
    grid-column: span 3;
    margin: .5rem 0 0 0;
}

.path-web .caption{
    position: sticky;
    top:.5rem;
}

.path-illustrations h2, .path-home h2, .path-web h2, .credits h2, #control h2, .misc{
    font-family: "Syne Extra";
    font-weight:900;
    margin: .2rem 0 .2rem 0;
    font-size: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.path-web .items{
    margin-bottom: 3rem;
}
.items{    
    margin-bottom: 1.5rem;
    position: relative;
}

.path-web .gallery {
    background: transparent;
    background-image: radial-gradient(white 1px, transparent 0);
    background-size: 9px 9px;
    background-position: -10px -19px;
    width: 100%;
    height: 40vw;
    margin-bottom: 0;
    
}
.gallery{
        width: 100%;
        height: 30vw;
        margin-bottom: 0;
}
.g-items{
    height: auto !important;
}
.figure{
    cursor:pointer;
}
.zoom{
    position: absolute;
    font-size: 1rem !important;
    opacity: 0;
    top: 38%;
    margin: 0 0 0 50%;
    right: 50%;
    transition: all 250ms;
    
    pointer-events: none;
}

.see-more{
    grid-column:span 4;
    text-align: center;
}

.see-more a:hover{
    font-style: normal;
    color:white
}
    .candy-button {
        display: inline-block;
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
        font-weight: bold;
        color: white;
        text-align: center;
        text-decoration: none;
        border: none;
        border-radius: 50px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
        color: #373737ed;
    }

    .candy-button:hover {
        background-color: cadetblue;
        transform: translateY(-2px);
        box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
    }

    .candy-button:active {
        transform: translateY(0);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    }

.caption{
    padding: 0 .2rem;
}
.caption a{
    border-bottom: 1px solid var(--color-active);  
}
.caption strong{
    font-weight: normal;
    color:var(--color-active);
}
.caption p{
    font-family: "Compagnon";
    font-size: .7rem;
}
.caption em{
    position: relative;
    bottom:.1em
}
/* .caption a:hover{
    font-weight: 900;  
} */
.figure{
    overflow: hidden;
}
.figure img, .figure video{
    height: 100%;
    width: auto;
    margin: 0 auto;
}

.slick-list, .slick-track {
    height: 100%;
    width: 100%;
    padding: 0px !important;
}

button{
    opacity: 0;
    transition: all 500ms;
}
.gallery:hover button{
    opacity: .7;
    transition: all 500ms;
}

.slick-custom-arrow{
    border: none;
    background: black;
    color:white;
    font-size: .6rem;
    border-radius: 1rem !important;
}

.slick-prev, .slick-next {
    padding: .7em .7em .5em .7em;
    position: absolute;
    bottom: 45%;
    cursor: pointer;
    transition: .3s background, .3s color;
    z-index: 99;
}
.slick-prev {
    left: 1em;

}
.slick-next {
    right: 1em;
    z-index: 999;
}

/************/
/*GRID MISC */
/************/

.grid_misc{
    grid-column: span 9;
    position: relative;
    column-gap: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;

}

.misc_items{
    display: inline-block;
    margin: 0 0 35px 0;
}

.misc_items .caption{
   /* display: inline-block;*/

}

.misc_items img{
    max-width: 100%;
}


.caption{
    font-size: .6rem;
}


/************/
/* COMICS ***/
/************/


.banner img{
    width: 60%;
}
.subscribe a{

}
.banner, .subscribe{
    text-align: center;
    grid-column: span 3;
}
.path-comics{
    display: grid;
    grid-template-columns: 20% 60% 20%;
    
}
.path-comics ul li::marker{
    color:lightblue;
    font-family: 'Amiri', serif;
    content: counter(list-item, persian)"\a0";
}

.path-comics ul{
    padding: .3rem;
    list-style: none;
    /* list-style:persian inside; */
}
.toc{
    position: sticky;
    top: 1rem;
    height: auto;
    font-size: .6rem;
    /* line-height: 1.8; */

}
.toc a:hover{
    line-height: .8;
}
.comic h2{
    text-align: center;
    padding: 0;
    margin: 0;
    /* background: black; */
    /* background: black;
    color:white; */
    font-family: "PicNic";
    font-size: 4em;
    font-weight: normal;
    
}
.comic h2 span{
    font-size: 1.8rem;
    opacity: 0.4;
    margin: 0 -.4rem;
}
.comic h2 span:first-of-type{
    padding-bottom: 1rem;
    font-variant-position: super;
}
.comic h2 span:last-of-type{
    font-variant-position: sub;
}
.comic img{
    width: 100%;
}
.comics_main{
    width: 100%;
    margin: 0 auto;
    
}

.trad{
    display: none;
    position: absolute;
    right: 10%;
    padding: .5rem 0 0 0;
    font-size: .5rem;
    max-width: 15%;
    /* display: flex; */
    flex-direction: column;
    
}
.trad_content{
    border: solid 1px black;
    padding: 1rem;
    margin-bottom: 5%;
}
/*************/
/**** ShOP **/
/*************/
.cart_logo{
    float: right;
    font-size: .6rem;
    border: solid 1px black;
    border-radius: 1rem;
    padding: .3rem;
    text-align: center;
}
.cart_button{
    bottom: 1rem;
    right: 1.3rem;
    position: fixed;
}
/* item */


.snipcart-categories{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 3rem;
    /* padding: 0 5rem; */
}
.snipcart-categories .snipcart-item{
    /* text-align: left !important; */
}
.single_item{
    /* border-left: 1px solid black;
    border-bottom: 1px solid black; */
    -webkit-box-shadow: 0 4px 6px -6px #222;
    -moz-box-shadow: 0 4px 6px -6px #222;
    box-shadow: 4px 4px 10px -10px #222;
    padding: 0.5rem 0.5rem .5rem .5rem;
    /* background-color: grey; */
    width: auto !important;
    margin: 0;
}
.snipcart-details{
    font-size: .8rem;
    line-height: 1;
}
.single_item h3{
  margin: 0;
  font-family: "Syne Extra";
  font-weight: 900;
  margin: .2rem 0 .2rem 0;
  font-size: .8em;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.price{
    display: block;
    margin-top: .5rem;
    margin-bottom: .3rem;
    /* float: right; */
}
.snipcart-details a{
    /* background-color: #2f2f2f14; */
    /* float: right; */
}
.single_item img{
    width: 100%;
}
.snipcart-thumb{
    cursor: pointer;
}
.wavy_arrow{
    transform: rotate(90deg);
    margin-bottom: .3rem;
}
/*************/
/**** ABOUT **/
/*************/
.path-about-contact{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 2rem;
    
}
#control{
    grid-column: span 4;
    
}
.path-about-contact .title{
    font-weight: bolder;
}

.path-about-contact a{
    border-bottom: 1px solid var(--color-active); 
}

.path-about-contact ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
.about_web ul{
    list-style: circle;
}
.about_info, .about_main_content{
    grid-column: span 2;
}
.about_info li:nth-of-type(1):before {
    content: "♫";
    padding-right: 10px;
}
.about_info li:nth-of-type(2):before {
    content: "♩";
    padding-right: 20px;
}
.about_info li:nth-of-type(3):before {
    content: "♬";
    padding-right: 10px;
}
.about_bottom{
    grid-column: 3 / span 2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}
.credits{
    grid-column: span 2;
    /* grid-column: span 1;
    position: relative; */
    /* position: absolute;
    width: 20%;
    bottom: 2rem;
    left: 2rem; */
    /* transform: rotate(-15deg);
    margin-left: 15%;
    margin-top: 10%; */
}
blockquote{
    font-size: .8rem;
    width: 100%;
    height: auto;
    margin: 0;
    /* border: solid 1px grey;
    padding: 2rem 1rem;
    background: white; */

}
/* .trou{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid grey;
    position: absolute;
    top: 2%;
    left: calc( 50% - 5px );
    background-color: white;
}
.line{
    width: 20px;
    height: 20px;
    border-bottom: 1px solid grey;
    position: absolute;
    top: 2%;
    transform-origin: center;
    transform: rotate(-45deg);
    left: calc( 50% - 16px );
} */

/******** Gridy - drawing *******/ 
.gridy{
  position: relative;
  float: left;
  display: grid;
  width: 300px;
  height: 400px;
  margin: 0 2rem 0 0;
  /*transform: scale(1.3);*/
  /*display: none;*/
}
.matrix{
  position: relative;
  float: left;
  width: 300px;
  height: auto;
  word-break: break-all;
  margin: 0 0 0 8rem;
  resize: none;
  border: none;
  background: #2f2f2f14;
  border-radius: 4%;
  padding: 1rem 1rem;
  transform: scale(1.3);
}

.matrix:focus{
  outline: none !important;
  border:  solid 1px lightgrey;
}
.matrix:hover{
  cursor: text;
}


.pixel{
  /* border: 1px solid rgb(238, 238, 238); */
  cursor: pointer;
  box-sizing: border-box;
}
.gridy:hover .pixel {
  border: 1px solid rgb(207, 206, 249);
}

.pixel:hover{
  background: lightgrey;
}

/* end griddy */

/*******************/
/** WEB PORTEFOLIO**/
/*******************/
.video-controls{
    position: absolute;
    left:0;
    color:white;
    font-size: 15px;
}
.video-controls i{
    padding: .3rem;
    background-color: grey;
    cursor: pointer;

}
.video-controls i:hover{
    background-color: cadetblue;
}
.browser {
    font-size: 18px;
    /* box-shadow: 0 0.25em 0.9em -0.1em rgba(0,0,0,.3); */
    width: 100% !important;
    position: relative;
    
  }
  


  .browser .browser-navigation-bar {
      /* display: block;
    box-sizing: border-box;
      height: 2.1em;
      position: absolute;
      top: 0;
    padding: 0.3em;
    width: 100%;
    background: linear-gradient(to bottom, #edeaed 0%, #dddfdd 100%);
    border-bottom: 2px solid #cbcbcb; */
  }
   
  .browser i {
    /* display: inline-block;
      height: 0.7em;
      width: 0.7em;
      border-radius: 0.45em;
      background-color: #eee;
      margin: 0.4em 0.15em; */
  }
  
  /* .browser i:nth-child(1) {background-color: rgb(255, 86, 79)}
  
  .browser i:nth-child(1):hover {background-color: rgb(255, 20, 25)}
  
  .browser i:nth-child(2) {background-color: rgb(255, 183, 42)}
  
  .browser i:nth-child(2):hover {background-color: rgb(230, 175, 42)}
  
  .browser i:nth-child(3) {background-color: rgb(37, 198, 58)}
  
  .browser i:nth-child(3):hover {background-color: rgb(10, 225, 10)}
  
  .browser input {
    font-size: 0.75em;
    vertical-align: top;
    display: inline-block;
      height: 1.6em;
    color: #aaa;
      width: calc(100% - 6em);
    border: 0.1em solid #E1E1E1;
      border-radius: 0.25em;
      background-color: #eee;
    margin: 0.1em;
    padding: 0 0.4em;
  }
  
  .browser-container {
    
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    
    text-align: center;
  }
  .play_icon{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-60%, -30%);
    margin: 0 !important;
    font-size: 2rem !important;
    background-color: transparent !important;
  } */

  a.info{
    display: none;
}


/************/
/* TWEAK ILLUS */
/************/
.nav{
    text-align: center;
    grid-template-columns: 1fr;
}
.path-home{
    grid-template-columns: 100%;
    padding-bottom: 3rem;
}
.path-home .gallery {
    width: 100%;
    height: 44vw;
    margin-bottom: 0;
}
.path-home pre{
    font-size: 10px;
    font-family: monospace  ;
    text-align: center;
    margin-top: 4rem;
}
.path-home a{
    text-decoration: underline;
}
.path-home a:hover{
        position:relative;
        line-height: .4;

}
.slick-dots{
    list-style: none;
    padding: 0;
    position: relative;
    text-align: center;
    opacity: 1;
}
.slick-dots li{
    display: inline-block;
    opacity: 1;
}
.slick-dots button{
    display: block;
    float: left;
    opacity: 1;
    margin-right: .3rem;
    border-radius: 1rem;
    color: var(--color-active);
    border: solid 1px var(--color-active);
    background: none;
    cursor: pointer;
    font-size: 0;
    height: 10px;
    width: 10px;
}
.slick-active button{
    background:    var(--color-active);
}
/************/
/*SMARTPHONE*/
/************/

@media only screen and (max-width: 600px){ 
    a.info{
        display: inline-block;
        cursor: pointer;
        font-size: 16px;
        font-family: 'syne';
        
        border: solid 1px var(--color-active);
        padding: 0.1rem 0.5rem 0.2rem 0.5rem;
        border-radius: 1rem;
    }
   .fa-plus{
        font-size: 12px !important;
        color: var(--color-active) !important;
   }
    .smartphone_display{
        display: block !important;
        position: fixed;
        top:50%;
        transform: translate(0, -50%);
        left:0;
        width:100vw;

        background:rgb(249, 251, 254);
        padding: 2rem !important;
        z-index: 2000;
        border:  solid 1px var(--color-active);
    }
    .fa-times{
        float: right;
        color: var(--color-active);
        cursor: pointer;
    }
    .path-illustrations, .path-home, .path-web{
        grid-template-columns: 100%;
    }
    .gallery{
        height: 58vw;
    }
    .zoom{
        display: none !important;
    }

    .path-comics{
        display: grid;
        grid-template-columns: 100%;
        
    }
    .banner{
        grid-column: span 1;
    }
    .banner img{
        width: 100%;
    }
    .table_of_content{
        display: none;
    }
    .path-about-contact{
        grid-template-columns: 1fr;
        grid-gap: 0rem;
    }
    .path-web{
        row-gap: 1rem;
    }
    .path-web .items.proj,.path-web .items.desc{
        grid-column:1;
        margin: 0;
        padding: 0;
    }
    .path-web .items.desc{
        display: none;
    }
    .about_info, .about_main_content, .credits{
        grid-column: 1;
        
    }
    .gridy{
        display: none;
    }

    .snipcart-categories{
        grid-template-columns: 1fr;
    }
    .about_main_content{
        margin-bottom: 1rem;
    }
    .misc{
        margin-top: 1rem;
    }
    .credits{
        margin-top: 1rem;
    }
}