@font-face {
  font-family: 'ABCDiatype';
  src: url('media/ABCDiatypeVariable-Trial.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

/* Global Styles */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'ABCDiatype', sans-serif;
  overflow: hidden;
  cursor: crosshair;
  transition: background-color 0.3s ease, color 0.3s ease;
  width: 100vw;
  height: 100vh;
  position: relative;
}

@media (max-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    cursor: crosshair;
    width: 100vw;
    height: 100vh;
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
  }
}

h1 {
  margin-top: 2%;
  font-size: 5em;
  font-weight: 700;
  letter-spacing: -2.7px;
  position: relative;
  z-index: 20;
}

/* Buttons and Links */
button, nav button, nav a {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: crosshair;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 500;
  letter-spacing: -0.4px;
  display: inline-block;
  z-index: 1000;
}

.clickable {
  text-decoration: none;
  color: white;
  transition: color 0.3s ease;
}

/* Navigation */
nav {
  width: 100%;
  /*max-width: 800px;*/
  display: flex;
  justify-content: space-between;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 200px;
  z-index: 1000;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  nav {
    justify-content: space-between;
    padding: 30px 30px;
    font-size: 0.7em;
    z-index: 1000;
  }
}

/* Layout Sections */
.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  max-width: 1200px;
}

.text-section {
  width: 45%;
  text-align: left;
}

.text-section p {
  font-size: 0.6em;
  line-height: 1.1;
  font-weight: 500;
}

.contact-section {
  display: flex;
  flex-direction: row;
  margin-top: 5%;
}

.image-section {
  width: 50%;
  z-index: 0;
}

.image-section img {
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  h1 {
    font-size: 2em;
    letter-spacing: -2px;
    text-align: center;
    position: fixed;
    top: 10%;
    
  }

  .container {
    flex-direction: column;
    align-items: center;
    margin-top: 120px;
  }

  .text-section, .image-section {
    width: 100%;
  }

  .text-section {
    text-align: justify;
  }

  .image-section {
    width: 70%;
    padding: 10%;
  }
  .grid {
    transform: translateY(-0px);
  }
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4, 1fr));
  grid-auto-rows: minmax(250px, auto);
  grid-template-columns: repeat(4, 1fr);
  gap: 0px;
  width: 105%;
  margin: 0;
  
}

.grid img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grid img:hover {
  opacity: 0.6;
}


.grid img:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.grid img:nth-child(2) {
  grid-column: span 1;
  grid-row: span 1;
}

.grid img:nth-child(3) {
  grid-column: span 1;
  grid-row: span 2;
}

.grid img:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}

.grid img:nth-child(5) {
  grid-column: span 2;
  grid-row: span 1;
}

.grid img:nth-child(6) {
  grid-column: span 2;
  grid-row: span 1;
}

.grid img:nth-child(7) {
  grid-column: span 1;
  grid-row: span 1;
}

.grid img:nth-child(8) {
  grid-column: span 2;
  grid-row: span 1;
}

.grid img:nth-child(9) {
  grid-column: span 1;
  grid-row: span 1;
}

.grid img:nth-child(10) {
  grid-column: span 1;
  grid-row: span 1;
}

.grid img:nth-child(11) {
  grid-column: span 1;
  grid-row: span 1;
}

.grid img:nth-child(12) {
  grid-column: span 2;
  grid-row: span 2;
}

.grid img:nth-child(13) {
  grid-column: span 2;
  grid-row: span 1;
}

.grid img:nth-child(14) {
  grid-column: span 1;
  grid-row: span 1;
}


/* Miscellaneous */
.tooltip {
  position: absolute;
  background-color: black;
  color: white;
  padding: 5px;
  display: none;
}

#mobile-message {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;
    color: white;
    padding: 5px;
    display: none;
    padding: 20px;
}


ul {
  list-style-type: none;
  color: black;
  font-size: 0.6em;
  font-weight: 600;
}

#grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}
