@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

:root {
  /* COLORS  */
  --primary-color: #ffc260;
  --secondary-color: #1D202D;
  --tertiary-color: #fdfdfc;

  /* FONT MANAGEMENT  */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--secondary-color);
  color: var(--tertiary-color);
  font-family: var(--font);

  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
}

/* GENERAL STYLING  */
.menu-toggle {
  display: none;
}

a {
  color: var(--tertiary-color);
  text-decoration: none;
}

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

/* HERO SECTION  */
.hero {
  background-color: transparent;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
}

.hero-title {
  font-size: 4rem;
}

.hero video {
  position: absolute;
  top: -20;
  left: 0;
  min-width: 100%;
  min-height: 100%;
  z-index: -1;
  object-fit: cover;
}

.hero-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-text,
.hero-arrow {
  position: relative;
  z-index: 3;
}

/* MOSAIQUE  */
.mosaique {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 12px;
  margin: 15px;
  width: 99%;
}

.tile {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background-color: black;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

@media (max-width: 1050px) {
  .mosaique {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

/* MOSAIQUE HOVER EFFECT  */

.description {
  opacity: 0;
  font-size: 2rem;
  font-weight: 200;
  width: 100%;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.tile img:hover {
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.still img:hover { /* Stills des projets sans effets hover */
  opacity: 1;
}

.tile img:hover + .description {
  opacity: 1;
  position: absolute;
  bottom: 50%;
  right: 50%;
  transform: translate(50%, 50%);
  transition: opacity 0.4s ease;
}