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

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

html, body {
  font-family: sans-serif;
  overflow-x: hidden; /* seulement horizontal bloqué */
}

/* 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;
}
/* Texte sur l’overlay bleu */
.overlay-text {
  position: absolute;
  top: 10%;                 /* centre verticalement */
  left: 40%;                /* centre horizontalement */
  transform: translate(-50%, -50%);
  color: white;             /* texte blanc */
  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;
  opacity: 0;               /* caché par défaut */
  z-index: 3;               /* au-dessus de l’overlay bleu */
  transition: opacity 0.3s ease;
}

/* Quand on survole la case */
.case:hover .overlay-text {
  opacity: 1;               /* le texte apparaît */
}

/* Affiche en dessous de la grille */
.full-image {
  width: 100%;
  height: 95vh;
  padding: 5vh 0;        /* espace intérieur en haut et en bas */
  display: flex;
  justify-content: center;
  align-items: center;
  background: blue;
}
.texte-bas-gauche {
  position: absolute;
  bottom: 90px; /* distance du bas */
  left: 30px;   /* distance de la gauche */
  color: white;
  font-family: Helvetica, Arial, sans-serif;
  z-index: 2000; /* au-dessus de l’image */
}

#titre {
  margin: 0 0 5px 0;    /* petit Ã©cart sous le titre */
  font-size: 16px;
  font-weight: bold; 
}


#texte {
  font-size: 1rem;
  margin-top: 8px;
}

.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);
  }


#langBtn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;           /* au-dessus de tout */
  background: white;
  color: blue;
  border: 1px solid blue;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#langBtn:hover {
  background: blue;
  color: white;
}

