* {
  margin: 0;
  padding: 0;
}

:root {
  --main-color: #FD0008;
  --second-color: #000;
  --third-color: #fff;
}

html {
  font-size: 62.5%;
}

@font-face {
  font-family: 'caviar';
  src: url('../font/caviar_dreams/CaviarDreams.ttf');
}

body {
  font-size: 1.5rem;
  font-family: "caviar", serif;
  color: #181818;
}

/* Section header and main slider */
#header-section {
  background-color: var(--main-color);
  background-position: center center;
  background-size: cover;
  display: grid;
}

#menu-logo {
  padding-right: 12%;
}

#menu-logo > img {
  width: 100px;
  height: auto;
  transition: transform 0.4s ease;
}

#menu-logo > img:hover {
  transform: scale(1.15) rotate(5deg);
  cursor: pointer;
}

#menu-items {
  padding: 0% 2%;
  width: 100%;
  margin: 0 auto;
  position: fixed;
  background-color: var(--second-color);
  border-bottom: 20px solid var(--main-color);
}

#menu-items > ul {
  display: flex;
  align-items: center;
  justify-content: center;
}

#menu-items > ul > li {
  list-style-type: none;
}

#menu-items > ul > li > a {
  color: var(--third-color);
  text-decoration: none;
}

.menu-items-labels {
  padding-left: 3%;
  font-weight: bold;
}

.menu-items-labels > a:hover {
  color: var(--main-color) !important;
  cursor: pointer;
  transition: .2s ease all;
}

#header-description {
  padding-top: 20vh;
  padding-left: 30vh;
  text-transform: uppercase;
}

#menu-items.scrolled {
  background-color: var(--second-color);
}

/* Section Footer */
#footer-section {
  color: white;
  background-color: var(--second-color);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 3%;
}

#footer-section > div > small {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
}

.copyright-link > a {
  color: var(--main-color);
  text-decoration: none;
}

.copyright-link > a:hover {
  cursor: pointer;
  color: var(--third-color);
  transition: .5s ease all;
}

#galerie-section {
  margin-top: 3%;
}

/* additions for gallery */
.gallery-controls {
  margin-bottom: 3%;
  font-size:1.4rem; 
}

.gallery-grid {
  display: grid;
  gap: 4rem 3.5rem;
  align-items: stretch;
}

/* classes dynamiques cols-N (1..8) */
.cols-1 { grid-template-columns: repeat(1, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
.cols-6 { grid-template-columns: repeat(6, 1fr); }
.cols-7 { grid-template-columns: repeat(7, 1fr); }
.cols-8 { grid-template-columns: repeat(8, 1fr); }

.gallery-item {
  overflow: hidden;
  background: var(--second-color);
  border-radius: 0 25px 0 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
}

.gallery-item:hover {
  cursor: pointer;
  scale: 1.05;
  transition: .3s ease all;
}

.gallery-item img {
  width: 100%;
  height: 220px; /* same size for all items */
  object-fit: cover; /* crop to fill consistently */
  display:block;
}

.gallery-item figcaption {
  padding: 0.8rem;
  font-size: 1.6rem;
  /* background: var(--second-color); */
  color: var(--third-color);
  text-align: center;
}

.work-with-us {
  text-align: center;
  padding-bottom: 6%;
  font-size: 1.8rem;
}

.work-with-us > span > a {
  text-decoration: none;
  background-color: var(--main-color);
  color: var(--third-color);
  padding: 20px;
  font-weight: bold;
  letter-spacing: 3px;
  border-radius: 0 25px 0 25px;
}

.work-with-us > span > a:hover {
  background-color: var(--second-color);
  color: #fff;
  transition: .2s ease all;
}

/* responsive: smaller screens reduce columns */
@media (max-width: 900px) {
  .cols-8, .cols-7, .cols-6 { grid-template-columns: repeat(4, 1fr); }
  .cols-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .gallery-item img { height:160px; }
  .cols-4, .cols-3, .cols-2, .cols-1 { grid-template-columns: repeat(2, 1fr); }
  .cols-2, .cols-1 { grid-template-columns: 1fr; }
}




























/* Responsive Design */
@media screen and (max-width: 1024px) {
  #header-description {
    padding-left: 3vh;
    font-size: 2rem;
  }

  .menu-items-labels {
    padding-left: 2%;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 768px) {
  /* Burger */
  #burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 25px;
  }

  #burger span {
    height: 3px;
    width: 100%;
    background-color: var(--main-color);
    border-radius: 2px;
  }

  #menu-items {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 35px 0px;
  }

  /* couche de background */
  #menu-items::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: transparent;
    transition: background-color 0.3s ease;
    z-index: -1;
  }

  /* background au scroll */
  #menu-items.scrolled::before {
    background-color: var(--second-color);
  }

  /* menu burger */
  #menu-items > ul {
    flex-direction: column;
    background-color: var(--second-color);
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    transform: translateY(-150%);
    transition: transform 0.4s ease;
  }

  #menu-items.active > ul {
    transform: translateY(0);
  }

  #menu-items > ul > li {
    font-size: 1.6rem;
    padding: 15px 0;
  }

  #menu-logo {
    padding: 15px 0;
  }

  /* Section Galerie */
  #galerie-section {
    margin-top: 20% !important;
  }

  .work-with-us {
    margin: 5% auto;
  }

  /* Footer */
  #footer-section {
    padding: 5%;
    text-align: center;
  }

  #footer-section > div > small {
    font-size: 1.5rem;
    line-height: 1.4;
  }

  .copyright-link > a {
    font-size: 1.5rem;
  }
}