
/* Reset*/
a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,li,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}article,aside,details,figcaption,li,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}
*, *:before, *:after{margin:0;padding:0;border:0;box-sizing:border-box}
*{-webkit-tap-highlight-color: rgba(0,0,0,0);-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-font-smoothing: antialiased;-moz-osx-font-smoothing: grayscale}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100vh;
  overflow-x: auto;
  overflow-y: hidden;
  font-family: helvetica;
  font-size: 14px;
  color: black;
  background:white;
}

a {  text-decoration: none;}
a:hover {cursor: pointer;
text-decoration: underline;}
a:visited {
  color: blue;
  text-decoration: none;
}
h1{    display: block;
  position: fixed;
  left: 2vw;
  top: 20px;}
h1 a{text-decoration: none;}
h1 a:hover{text-decoration: none;}
p {  }
p i {
  font-style: italic !important;
}
video::-webkit-media-controls {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

video::-webkit-media-controls-enclosure {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}


.gallery-container {
  display: flex;
  overflow-x: auto;
  height: 100vh;
  scroll-behavior: smooth;
  padding:0vw 1vw;
}

.project {
  flex: 0 0 30vw; /* largeur d’un projet */
  height: 100%;
  overflow-y: auto;
  padding: 200px 1vw 0vw 1vw;
  border-right: 0px solid #ccc;
  scroll-snap-align: start;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-x: auto; white-space: nowrap;
}


.project img {
  width: 100%;
  margin-bottom: 2vw;
  display: block;
  object-fit: cover;
}

.project video {
  width: 100%;
  margin-bottom: 2vw;
  display: block;
  object-fit: cover;
}

.project p {
  margin-bottom: 10px;
display: none;
}

.project::-webkit-scrollbar {
  display: none;
}

.infos {
  position: fixed;
  top: 20px;
  left: calc(32vw - 200px); /* bord gauche 2e section */
}

.news {
  position: fixed;
  top: 20px;
  left: calc(62vw - 200px)  ; /* bord gauche 3e section */
}


/* Overlay plein écran pour l'image agrandie */
.image-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  overflow-y: auto; /* si le contenu est trop grand */
}

.image-overlay img {
  max-width: 70vw;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
}
.image-overlay video {
  max-width: 65vw;
  max-height: 90vh;
  display: block;
  margin: 0 auto;
  outline: none;
  border: none;
}
.image-overlay p {
  font-size: 14px !important;
  color: black !important;
  margin-top: 0px;
  text-align: left;
  max-width:30vw;
  min-width: 250px;
  padding: 0px 0px 0px 0px;
}

.image-overlay a {
  font-size: 14px;
  color: blue;
  text-decoration: none;
}

.image-overlay a:hover {
  text-decoration: underline;
}

.scroll-arrows {
  display: flex;
  z-index: 1000;
}

.arrow {
   top: calc(200px - 40px);
  font-size: 20px;
  color: black;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

#scroll-right{position:fixed;right:2vw;}
#scroll-left{position:fixed;left:2vw;}

.arrow:hover {
  background: white;
}


@media screen and (max-width: 768px) {
  body, html {
    overflow-x: hidden;
    overflow-y: auto;
  }

.gallery-container {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  height: 100vh;
  padding: 0px 10px;
}

.project {
  scroll-snap-align: center;
  flex: 0 0 100vw;
  height: 100%;
  box-sizing: border-box;
      flex: 0 0 85vw;
    padding: 90px 10px 0px 10px;
}


/*  .project {
    flex: 0 0 80vw;
    padding: 52px 0px 0px 20px;
  }*/


.project img {
    margin-bottom: 20px;

}

.project video {
    margin-bottom: 20px;

}


  .project p {
    display: none;
  }

  .news, .scroll-arrows {
display: none;
  }

 h1 {
  padding: 20px;
  margin: 0;
  flex: 1;
  top: 0px;
  left: 0;
}
a:hover {cursor: pointer;
text-decoration: none;}

.infos {
        padding: 20px 0px 0px 0px;
        gap: min(4vw, 30px);
        justify-content: flex-start;
        flex-wrap: wrap;
        top: 0px;
        right: 20px;
        left: auto;
}

.infos a:last-child {
  margin-left: auto; /* pousse Instagram vers la droite */
}

.arrow {
    display: none;
  }
.image-overlay{
  padding: 52px 20px 0px 20px;
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;}
.image-overlay p {
      max-width: none;
}
}
