@import url("https://fonts.googleapis.com/css?family=Montserrat:100,300,400,500,700,900");

body {
  background-color: #333;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1 {
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

h5 {
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  font-weight: 100;
}

.text {
  font-weight: bold;
  width: 100%;
  text-align: center;
  font-size: 1em;
  z-index: 2;
  color: #ffffff; /* Blanc pur pour un meilleur contraste */
  padding-top: 100px;
  padding-bottom: 50px;
  /* Ombre portée pour détacher le texte du fond */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.containerName {
  font-weight: 700; /* Un peu plus gras pour faire ressortir le numéro de l'étape */
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.block-w {
  overflow: hidden;
  flex: 1 1 auto;
  float: left;
  background-color: #f2f2f2;
  width: 19%;
  height: 350px; /* Augmenté légèrement pour donner de l'air au texte */
  transition: 0.3s ease-in-out;
}

.active {
  width: 58%;
}

.block {
  display: flex;
  flex-flow: row wrap;
}

/* Images de fond */
.block1 { background-image: url(../images/etape1.webp); background-size: cover; -webkit-background-size: cover; }
.block2 { background-image: url(../images/etape2.avif); background-size: cover; -webkit-background-size: cover; }
.block3 { background: url(../images/etape3.jpg); background-size: cover; -webkit-background-size: cover; }
.block4 { background-image: url(../images/etape4.webp); background-size: cover; -webkit-background-size: cover; }
.block5 { background-image: url(../images/etape5.jpg); background-size: cover; -webkit-background-size: cover; }
.block6 { background-image: url(../images/etape6.jpg); background-size: cover; -webkit-background-size: cover; }
.block7 { background-image: url(../images/etape7.png); background-size: cover; -webkit-background-size: cover; }
.block8 { background: url(../images/etape8.jpg); background-size: cover; -webkit-background-size: cover; }
.block9 { background-image: url(../images/etape9.webp); background-size: cover; -webkit-background-size: cover; }
.block10 { background-image: url(../images/etape10.jpg); background-size: cover; -webkit-background-size: cover; }

/* Calque sombre sur l'image pour contraster */
.back {
  background-color: rgba(0, 0, 0, 0.55); /* Assombri de 0.3 à 0.55 */
  height: 100%;
  top: 0;
  z-index: 1;
  width: 100%;
  transition: 0.3s ease-in-out;
  cursor: pointer;
}

.block-w:hover .back {
  background: rgba(0, 0, 0, 0.75); /* Encore plus sombre au survol pour bien lire */
}

.block-w:hover .text {
  color: #ffffff;
}

.hellothere {
  margin-top: 10px;
  padding: 15px 20px;
  font-size: 0.75em;
  font-weight: 400;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9);
}

.min {
  width: 10%;
}

@media (max-width: 900px) {
  .block-w {
    flex: 1 1 100%;
    width: 100%;
  }
}