/* ----------------------------- */
/*   Autogrid                    */
/* ----------------------------- */


/*
Le pattern "Autogrid" a les particularités suivantes :
  * le nombre de colonnes s'adapte au nombre d'éléments (6 éléments = 6 colonnes)
  * les colonnes se répartissent équitablement par défaut (elles ont toutes la même largeur)
  * il ne peut y avoir qu'une seule ligne (pas de retour à la ligne)
  * des gouttières doivent pouvoir s'appliquer entre les colonnes

1- Réalisez un pattern "Autogrid" avec une gouttière interne de 1rem.

*/



/* Reset et Déco */

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

* {
  box-sizing: inherit;
}

body {
  max-width: 80%;
  margin: 2rem auto;
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1.5;
}

h1 {
  margin-top: 20px;
  margin-bottom: 40px;
  color: #345;
  text-shadow: 1px 1px 1px #fff;
  font-weight: normal;
}

.autogrid {
  margin-bottom: 1rem;
}

div>div {
  padding: 1rem;
  color: #fff;
}

div>div:nth-of-type(1) {
  background: orange;
}

div>div:nth-of-type(2) {
  background: hotpink;
}

div>div:nth-of-type(3) {
  background: olivedrab;
}

div>div:nth-of-type(4) {
  background: dodgerblue;
}

div>div:nth-of-type(5) {
  background: slategray;
}

div>div:nth-of-type(6) {
  background: tomato;
}

div>div:nth-of-type(7) {
  background: peru;
}
