body {
  display: grid;
  grid-auto-rows: 1fr;
}

.grid {
  display: grid;
  /*grid-template-rows: 100px repeat(5, minmax(100px, 1fr)) 100px;*/
  grid-gap: 4px;
}
.grid > div {
  /*   background: black;*/
}
.grid > div::before {
  content: "";
  width: 0;
  padding-bottom: 100%;
  grid-row: 1/1;
  grid-column: 1/1;
}

@media screen and (max-width: 960px) {
  body {
    grid-template-columns: 1fr 100% 1fr;
    background-color: grey;
  }

  .grid {
    grid-template-columns: repeat(24, 40);
    grid-template-rows: repeat(24, 40);
  }
}
@media screen and (max-width: 1152px) {
  body {
    grid-template-columns: 1fr 960px 1fr;
  }

  .grid {
    grid-template-columns: repeat(24, 40px);
    grid-template-rows: repeat(24, 40px);
  }
}
@media screen and (min-width: 1153px) {
  body {
    grid-template-columns: 1fr 1152px 1fr;
  }

  .grid {
    grid-template-columns: repeat(24, 48px);
    grid-template-rows: repeat(24, 48px);
  }
}
.firstrow {
  grid-column: 1/24;
  grid-row: 1/1;
  background-color: blue;
  outline: 4px black solid;
}
.deco {
  grid-column: 1/6;
  grid-row: 2/4;
  background-color: red;
  outline: 4px black solid;
}

.titre {
  background-color: yellow;
  outline: 4px black solid;
}
@media screen and (max-width: 960px) {
  .titre {
    grid-column: 1/24;
    grid-row: 2/4;
  }
}
@media screen and (min-width: 960px) {
  .titre {
    grid-column: 5/16;
    grid-row: 2/2;
  }
}

.deco2 {
  background-color: green;
  outline: 4px black solid;
}
@media screen and (max-width: 960px) {
  .deco2 {
    grid-column: 1/24;
    grid-row: 2/4;
    display: none;
  }
}
@media screen and (min-width: 960px) {
  .deco2 {
    grid-column: 10/24;
    grid-row: 3/3;
  }
}

/*# sourceMappingURL=styles.css.map */
