:root {
  --overlay-hover: blue; /* bleu électrique */
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: sans-serif;
  overflow-y: scroll; /* scroll vers l'affiche */
  overflow-x: hidden;
}

/* Grille complète occupant toute la fenêtre */
.grid {
  display: grid;
  width: 100vw;
  height: 100vh; /* grille = toute la fenêtre */
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
}

/* Chaque case */
.case {
  position: relative;
  overflow: hidden;
}

/* Images dans chaque case */
.case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: all 0.5s ease;
  filter: saturate(1.5);
}

/* Overlay bleu électrique uniquement au survol */
.case::after {
  content: "";
  position: absolute;
  top:0; left:0;
  width: 100%; height: 100%;
  background: var(--overlay-hover);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.case:hover::after {
  opacity: 0.3; /* overlay visible au survol */
}

/* Survol : zoom de l’image au centre */
.case:hover img {
  position: fixed;
  top: 50%;
  left: 50%;
  width: auto;
  height: 90vh;
  object-fit: contain;
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 999;
}

/* Les autres cases disparaissent au survol */
.grid:hover .case:not(:hover) {
  opacity: 0;
}

.case:hover::after {
  background: var(--overlay-hover); /* force la couleur bleu électrique */
  opacity: 1;
}

/* Affiche en dessous de la grille */
.full-image {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
	background: blue; 
}

.full-image img {
  max-height: 100%;
  width: auto;
  display: block;
}
  .bouton-projets {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: white; /* bleu du texte */
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    text-decoration: none; /* pas de soulignement */
    background: none; /* pas de fond */
    border: none; /* pas de contour */
    padding: 8px 12px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 1000;
  }

  .bouton-projets:hover {
    color: #0056b3; /* bleu plus foncé au survol */
    transform: translateY(-2px);
  }



