@import url("https://fonts.googleapis.com/css?family=Montserrat:100,200,300,400,500,600,700,800,900");

/* Base styles */
body, html {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  overflow: hidden;
  user-select: none;
}

body {
  display: flex;
  overflow: hidden;
}

a { color: #fff; }

#intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex: 0 0 20%;
  padding: 20px;
  background-color: #000;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  text-align: left;
  min-width: 120px;
  max-width: 600px;
}

#intro h1 {
  margin: 0;
  font-size: 40px;
  line-height: 46px;
  color: #939393;
  margin-left: 30px;
}

#intro h6 {
  margin: 10px 0 0;
  font-size: 25px;
  line-height: 30px;
  color: #939393;
  margin-left: 30px;
  margin-bottom: 20px;
  font-weight: 300;
}

#intro h7 {
  position: absolute;
  margin: 10px 0 0;
  font-size: 25px;
  line-height: 30px;
  color: #939393;
  margin-left: 30px;
  margin-top: 30%;
  font-weight: 300;
}

#intro p {
  margin-top: 10px;
  font-size: 18px;
  line-height: 26px;
  color: #6f6f6f;
  margin-left: 30px;
  margin-right: 30px;
  text-align: justify;
}

#gallery {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  gap: 65px;
  padding-left: 5%;
  background-color: #000;
  height: 100%;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.photo {
  position: relative;
  flex: 0 0 auto;
  height: 950px;
  overflow: visible;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: margin 0.3s ease;
}

.photo:hover {
  margin-left: 50px;
  margin-right: 50px;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.photo .reflection {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scaleY(-1);
  opacity: 1;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0)
  );
  clip-path: inset(50% 0 0 0);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.photo .reflection img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.photo:hover img {
  transform: scale(1.1);
  filter: brightness(0.7);
}

.photo:not(:hover) img {
  transform: scale(1);
  filter: brightness(1);
}

.photo .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--hover-color, rgba(0, 0, 0, 0.5));
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.photo:hover .overlay {
  opacity: 0.5;
  transform: scale(1.1);
}

.photo .text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
  pointer-events: none;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo:hover .text-container {
  opacity: 1;
}

.photo .text-container .category {
  position: absolute;
  top: 35%;
  right: -200px;
  font-size: 96px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.photo .text-container .description {
  position: absolute;
  bottom: 10px;
  left: 45%;
  font-size: 34px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  text-align: center;
  transition: opacity 0.3s ease;
}

.photo:hover .text-container {
  opacity: 1;
}

.photo .text-container .description,
.photo .text-container .category {
  color: #fff;
  opacity: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

.photo:hover .reflection {
  opacity: 0;
}

.photo:not(:hover) .reflection {
  opacity: 1;
}

#scroll-bar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #333;
  z-index: 1000;
}

#scroll-bar {
  width: 0;
  height: 100%;
  background-color: #ff214f;
  transition: width 0.1s ease;
}

/* Responsive breakpoints */

/* Très grands écrans (34", 55", etc.) */
@media (min-width: 2561px) {
  #intro {
    flex: 0 0 12%;
    max-width: 900px;
    font-size: 1.2em;
    padding: 40px;
  }
  .photo {
    height: 1400px;
  }
  #gallery {
    gap: 120px;
    padding-left: 8vw;
  }
  .photo .text-container .category {
    font-size: 160px;
    right: -350px;
  }
  .photo .text-container .description {
    font-size: 70px;
    bottom: 30px;
    left: 50%;
  }
}

/* Grands écrans (27", 32") */
@media (max-width: 2560px) {
  .photo {
    height: 950px;
  }
  #gallery {
    gap: 65px;
    padding-left: 5vw;
  }
  .photo .text-container .category {
    font-size: 96px;
    right: -200px;
  }
  .photo .text-container .description {
    font-size: 34px;
    bottom: 10px;
    left: 50%;
  }
}

/* Écrans moyens (21", 24") */
@media (max-width: 1920px) {
  #intro {
    flex: 0 0 18%;
    padding: 18px;
  }
  .photo {
    height: 700px;
  }
  #gallery {
    gap: 40px;
    padding-left: 3vw;
  }
  .photo .text-container .category {
    font-size: 72px;
    right: -120px;
  }
  .photo .text-container .description {
    font-size: 24px;
    bottom: 10px;
    left: 50%;
  }
}

/* Petits laptops */
@media (max-width: 1366px) {
  #intro {
    flex: 0 0 22%;
    padding: 10px;
  }
  .photo {
    height: 500px;
  }
  #gallery {
    gap: 25px;
    padding-left: 2vw;
  }
  .photo .text-container .category {
    font-size: 48px;
    right: -80px;
  }
  .photo .text-container .description {
    font-size: 18px;
    bottom: 5px;
    left: 50%;
  }
}

/* Tablettes */
@media (max-width: 1024px) {
  #intro {
    flex: 0 0 30%;
    padding: 8px;
  }
  #intro h1 { font-size: 28px; }
  #intro h6 { font-size: 18px; }
  #intro p { font-size: 14px; }
  .photo {
    height: 350px;
  }
  #gallery {
    gap: 15px;
    padding-left: 1vw;
  }
  .photo .text-container .category {
    font-size: 32px;
    right: -40px;
  }
  .photo .text-container .description {
    font-size: 14px;
    bottom: 5px;
    left: 50%;
  }
}

/* Smartphones */
@media (max-width: 600px) {
  body {
    display: block !important;
    flex-direction: column !important;
    overflow: auto !important;
  }
  #intro {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    flex: none !important;
    box-shadow: none !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 10px 8px 10px 8px !important;
    position: static !important;
    display: block !important;
  }
  #gallery {
    width: 100vw !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding-left: 0 !important;
    gap: 10px !important;
    display: flex !important;
  }
}

/* Pour les écrans de 27 pouces (1920x1080) */
@media (max-width: 2560px) {
  .photo {
    height: 800px;
  }

  .photo .text-container .category {
    font-size: 80px;
    right: -150px;
  }

  .photo .text-container .description {
    font-size: 28px;
    bottom: 10px;
    left: 50%;
  }
}

/* Pour les écrans de 24 pouces (1920x1080) */
@media (max-width: 1920px) {
  #gallery {
    padding-left: 2%;
  }

  .photo {
    height: 700px;
  }

  .photo .text-container .category {
    font-size: 72px;
    right: -120px;
  }

  .photo .text-container .description {
    font-size: 24px;
    bottom: 10px;
    left: 50%;
  }
}

/* Pour les écrans de 21 pouces (1366x768 ou 1600x900) */
@media (max-width: 1600px) {
  .photo {
    height: 600px;
  }

  .photo .text-container .category {
    font-size: 60px;
    right: -100px;
  }

  .photo .text-container .description {
    font-size: 20px;
    bottom: 10px;
    left: 50%;
  }
}

/* Pour les écrans de 19 pouces (1280x720 ou moins) */
@media (max-width: 1366px) {
  .photo {
    height: 500px;
  }

  .photo .text-container .category {
    font-size: 48px;
    right: -80px;
  }

  .photo .text-container .description {
    font-size: 18px;
    bottom: 5px;
    left: 50%;
  }
}

/* Pour les écrans de taille moyenne (tablettes) */
@media (max-width: 1024px) {
  #intro h1 {
    font-size: 32px;
  }

  #intro h6 {
    font-size: 20px;
  }

  #intro p {
    font-size: 16px;
  }

  .photo {
    height: 700px;
  }

  .photo .text-container .category {
    font-size: 72px;
    right: -150px;
  }

  .photo .text-container .description {
    font-size: 28px;
    bottom: 10px;
    left: 50%;
  }
}

/* Pour les petits écrans (smartphones) */
@media (max-width: 768px) {
  #intro {
    flex: 0 0 30%;
    padding: 10px;
  }

  #intro h1 {
    font-size: 24px;
  }

  #intro h6 {
    font-size: 18px;
  }

  #intro p {
    font-size: 14px;
  }

  #gallery {
    gap: 30px;
    padding-left: 10px;
  }

  .photo {
    height: 500px;
  }

  .photo .text-container .category {
    font-size: 48px;
    right: -100px;
  }

  .photo .text-container .description {
    font-size: 20px;
    bottom: 5px;
    left: 50%;
  }
}

/* Pour les très petits écrans (moins de 480px) */
@media (max-width: 480px) {
  #intro {
    flex: 0 0 40%;
    padding: 5px;
  }

  #intro h1 {
    font-size: 20px;
  }

  #intro h6 {
    font-size: 16px;
  }

  #intro p {
    font-size: 12px;
  }

  #gallery {
    gap: 20px;
    padding-left: 5px;
  }

  .photo {
    height: 300px;
  }

  .photo .text-container .category {
    font-size: 32px;
    right: -50px;
  }

  .photo .text-container .description {
    font-size: 16px;
    bottom: 5px;
    left: 50%;
  }
}
