/* FONTS */
@font-face {
  font-family: 'Poppins';
  src: url('../../fonts/poppins/Poppins-Light.ttf');
  font-style: normal;
  font-weight: normal;
}
@font-face {
  font-family: 'Poppins-italic';
  src: url('../../fonts/poppins/Poppins-Italic.ttf');
  font-style: normal;
  font-weight: normal;
}
@font-face {
  font-family: 'Poppins-light-italic';
  src: url('../../fonts/poppins/Poppins-LightItalic.ttf');
  font-style: normal;
  font-weight: normal;
}
/* GENERAL */
:root{
  /* --color: #89a8f7; */
  --color: #b7cbff;
  --secondary-color: #0202ae;
  --white: white; 
  /* #000 / #fff */
  /* #7361ff (mauve electric)  #0202ae (bleu nuit) #000ff0 (bleu electric)*/
}
*{
  padding: 0;
  margin: 0;
  width: fit-content;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none;
}
html{
  font-size: 12pt;
}
body{
  font-family: 'Poppins', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  background-color: var(--color);
  color: var(--white);
  width: 100vw;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: scroll;
}

/* PANNEAU INFOS */
#infos{
  position: fixed;
  top: 50vh;
  left: 70vw;
  padding: .5em;
  box-shadow: 5px 5px 10px var(--secondary-color);
  width: fit-content;
  max-width: 40ch;
  transform-origin: bottom right;
  height: fit-content;
  background-color: var(--color);
}
#infos_p{
  display: block;
  background-color: transparent;
  color: var(--secondary-color);  
  width: fit-content;
  font-size: 1.2rem;
  align-items: center;
}
#infos_h1{
  align-items: center;
  cursor: ne-resize;
  color: red;
  margin: 0;
  animation: jump-shaking 4s infinite;
  font-size: 1.5rem;
}
@keyframes jump-shaking {
  0% { transform: translateX(0) }
  5% { transform: translateY(-9px) }
  15% { transform: translateY(-9px) rotate(17deg) }
  35% { transform: translateY(-9px) rotate(-17deg) }
  45% { transform: translateY(-9px) rotate(17deg) }
  55% { transform: translateY(-9px) rotate(-17deg) }
  70% { transform: translateY(0) rotate(0) }
}
/* FOND P5JS */
.canvas{
  display: block;
  position: fixed;
  z-index: -10;
  background-color: transparent;
}
/* GENERAL */
a{
  font-family: 'Poppins-light-italic', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  text-decoration: none;
  color: var(--secondary-color);
  width: fit-content;
  text-wrap: nowrap;
}
a:hover{
  background-color: var(--white);
  color: var(--secondary-color) !important;
  padding: .2em .5em;
}
em{
  font-family: 'Poppins-light-italic', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}
h1,h2,h3,h4{
  font-family: 'Poppins-italic', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  font-size: 2rem;
  padding: .2em .5em;
  margin-top: 1em;
  margin-bottom: .2em;
  color: var(--secondary-color);
  background-color: var(--white);
  border: .1em solid var(--secondary-color);
  width: fit-content;
  min-width: max-content;
}
p{
  font-size: 1.5rem;
  line-height: 1.5rem;
  max-width: 50ch;
  width: max-content;
  padding: .5em .8em;
  background-color: var(--secondary-color);
  text-wrap: pretty;
}
p>a{
  text-decoration: underline;
  color: var(--white) !important;
 
}
strong{
  font-weight: bold;
}
i{
  font-style: italic;
}
img:not(.grid img){
  width: auto;
  height: 75.5vh;
}
/* MENU NAVIGATION */
#header {
  display: none;
}
#titleBar {
  background-color: transparent;
  height: fit-content;
  width: min-content; 
}
#titleBar .toggle {
  background-image: url(/user/themes/oxygen/images/favicon-invert.png);
  background-color: var(--secondary-color);
  box-shadow: 5px 5px 10px var(--white);
  background-repeat: no-repeat;
  background-size: 5em 5em;
  height: 5em;
  width: 5em;
  position: absolute;
  left: 1.5em;
  top: 1.5em;
  transform-origin: top left;
  transition: .5s;
}
#titleBar .toggle:hover{
  transform: scale(1.5);
}

/* menu hamburger */
#navPanel {
  -webkit-overflow-scrolling: touch;
  background: var(--color);
  border-top: 5px solid transparent;
  box-shadow: 5px 0px 20px var(--white);
  z-index: 10010 !important;
  padding-bottom: 1em;
}
#navPanel .link {
  border: .1em solid var(--secondary-color);
  border-radius: 50px;
  color: var(--secondary-color);
  display: block;
  padding: .2em .5em;
  text-decoration: none;
  margin-left: 1em;
}
/* tous les liens */
#navPanel .link.depth-0 {
  color: var(--white);
  background: var(--secondary-color);
  margin-top: .2em;
}
/* les sous-liens */
#navPanel .link.depth-1{
  margin-left: 2em;
}
#navPanel .link.depth-1:hover{
  margin-left: 3em;
}
/* les sous-sous-liens */
#navPanel .link.depth-2{
  margin-left: 3em;
}
#navPanel .link.depth-2:hover{
  margin-left: 4em;
}

/* HOME - CONTACT */
.home section, .pdlc section{
  box-shadow: none;
}
.home img{
  width: 10em !important;
  height: auto !important;
}

/* CATEGORY : EDITION - ATELIERS - SCENE */
section{
  height: fit-content;
  width: fit-content;
  position: relative;
  top: 2.5em;
  left: 2.5em;
  padding-bottom: 4em;
  margin: 0 auto !important;
  overflow: auto;
}
.caroussel, .grid{
  display: flex;
  gap: 1em;
  max-width: 80vw;
  overflow-x: scroll;
  overflow-y: hidden;
  background-color: var(--color);
  border-right: .2em dashed var(--secondary-color);
  border-left: .2em solid var(--secondary-color);
}
.grid{
  flex-direction: column;
  box-shadow: none;
  max-width: 40vw;
  border-right: none !important;
  border-left: none !important;
}
.grid img{
  margin-top: 1em;
  width: 100%;
  height: auto;
}
.row{
  margin: 0 !important;
}
#draggable{
  width: fit-content;
  max-height: 80vh;
  cursor: move;
  position: fixed;
  overflow: auto;
  overflow-x: hidden;
  z-index: 1;
}
#draggable:hover{
  background-color: var(--color);
  box-shadow: 5px 5px 10px var(--white);
}
#draggable:hover::before{
  position: fixed;
  content: "Déplace moi";
  color: var(--color);
  background-color: var(--secondary-color);
  border-radius: 50px;
  padding: .2em .5em;
  font-size: .9rem;
  width: max-content;
}
.pdlc img{
  filter: grayscale(1);
}


/* RESPONSIVE */
@media (width <=1000px){
  p{  
    max-width: 80vw;
  }
  #infos{
    position: relative;
    top: 0;
    left: 0;
    margin-top: 1em;
  }
}
@media (width <=640px) {
  h1,h2,h3,h4{
    font-size: 1.5rem;
  }
  p{
    font-size: 1rem;
    line-height: 1rem;
  }
  section{
    left: 0;
    padding-top: 2em;
  }
  .caroussel, .grid{
    max-height: max-content;
    overflow: hidden;
    flex-direction: column;
    box-shadow: none;
    border-right: none;
    border-left: none;
  }
  .caroussel img{
    margin: 0 auto;
    width: 100%;
    height: auto;
  }
  .pdlc #home p{
    max-width: max-content;
  }
  #draggable{
    cursor: inherit;
    position: relative;
  }
  #draggable:hover{
    background-color: transparent;
    box-shadow: none;
  }
  #draggable:hover::before{
    display: none;
  }
}
