: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: hidden;
  position: relative;
}

/* GIF de fond global */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;

  z-index: -1;
  pointer-events: none;
}

/* Grille carrée */
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 1fr;
  width: 100vw;
  height: 100vh;
}

/* Chaque case */
.case {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

/* Image de la case */
.case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: all 0.5s ease;
filter: saturate(1.5);
}

/* Overlay bleu visible seulement au survol */
.case::after {
  content: "";
  position: absolute;
  top:0; left:0;
  width: 100%; height: 100%;
  background: var(--overlay-hover);
  opacity: 0;
  z-index: 3;
  transition: opacity 0.3s ease;
}

/* Survol d’une case */
.case:hover::after {
  opacity: 1;
}

.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 */
.grid:hover .case:not(:hover) {
  opacity: 0;
}

.label {
  position: absolute;
  left: 20px;
  bottom: 20px;
  font-weight: 700;
  text-shadow: 0 4px 18px rgba(0,0,0,.3);
  pointer-events: none;
  color: #000;
  transition: opacity 0.5s ease;
}

.col:hover .label {
  opacity: 0;
}


.overlay-text {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  color: #fff;
  opacity: 0;
  z-index: 10;
  transition: opacity 0.5s ease;
  text-align: justify; /* Justification automatique */
  pointer-events: none; /* ne bloque pas le survol */
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
		font-size: 14px;
}
.overlay-text h2{
	font-family: Gotham, "Helvetica Neue", Helvetica, Arial, "sans-serif";
	font-weight: bold;
}
.case:hover .overlay-text {
  opacity: 1;
}

/* Optionnel : styles pour les titres et paragraphes */
.overlay-text h {
  margin: 0 0 10px 0;
  font-size: 1.5em;
}

.overlay-text p {
  margin: 0;
  font-size: 1em;
  line-height: 1.4em;
}
 .bouton-projets {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: blue; /* 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);
  }