/* Réinitialisation CSS — https://ateliers.esad-pyrenees.fr/web/pages/ressources/css/reset/ */
*, *::before, *::after { box-sizing: border-box; } body { line-height: 1.45; -webkit-font-smoothing: antialiased; } img, picture, video, canvas, svg { display: block; height: auto; max-width: 100%; } input, button, textarea, select { font: inherit; margin: 0; } iframe { border: 0; }

body {
  font-family: 'adelphe';
  margin: 0;
  font-size: large;
}

h1 {
  font-family: 'adelphegras';
  margin: 0;
  font-size: 100px;
}

a {
  color: azure;
}

h2 {
  font-family: 'adelphegras';
  margin: 0;
  font-size: 50px;
}

section {
  padding: 40px;
  background: #091131;
  color: #a5aed6;
}
section:nth-child(even) {
  color: #091131;
  background: #a5aed6;
}

figure { margin: 0; }
figcaption { text-align: center; margin: .5em 0;}

/* --------------------------------------------------- grille 1 */
.grid1 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px,1fr));
  gap: 20px;
}
.grid1 img {
  width: 100%;
}


/* --------------------------------------------------- grille 2 */
.grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px,1fr));
  gap: 20px;
  align-items: center;
  justify-content: center;
  align-content: center;
}
.grid2 figure {
  justify-self: center;
}
.grid2 img {
 width: 100%;
}



/* --------------------------------------------------- grille 3 */
.grid3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
  gap: 20px;
  align-items: center;
  justify-content: center;
  align-content: center;
}
.grid3 figure {
  width: 100%;
  aspect-ratio: 1/1;
}
.grid3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@font-face {
  font-family: 'adelphe';
  src: url('adelphe.otf')
}

@font-face {
  font-family: 'adelphegras';
  src: url('adelphegras.otf')
}