@import url("https://fonts.googleapis.com/css2?family=Londrina+Solid:wght@100;300;400;900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: "reality";
  src: url(police/reality.otf);
}

body {
  margin: 0;
  font-family: "roboto", sans-serif;
  min-width: 400px;
}

header {
  color: white;
  padding: 15px;
  background-color: #37e3e6;
}
nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline-block;
  margin-left: 10px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 300;
}

nav ul li a:hover {
  font-weight: 800;
}

h1 {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 0;
  color: white;
  font-family: "reality";
  font-size: 6em;
}

h2 {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 0;
  color: #37e3e6;
  font-family: "roboto";
  font-size: 2em;
}

a {
  text-decoration: none;
}

footer {
  background-color: #37e3e6;
  color: white;
  text-align: center;
  margin-top: 30px;
  padding: 20px;
}

#bienvenue {
  background-color: white;
  height: 100vh;
  color: white;
  overflow: hidden;
}

/*
#capy {
  justify-items: center;
  padding: 50px;
  background-color: #eeb574;
  height: 100%;
  width: auto;
  color: white;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-gap: 15px;
  max-width: auto;
}

.capy-content {
  display: flex;
  margin: 0;
  border: 3px solid red;
  max-width: 100%;
  height: auto;
  overflow: auto;
  justify-content: flex-end;
}

.capy-content > *:nth-child(odd) {
  justify-content: flex-end;
}

.capy-content > *:nth-child(even) {
  justify-content: flex-start;
}
  */

/* Grille 2 colonnes pour la section capy */
#blubblub {
  background-color: #f1c5d2;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding: 50px;
  justify-content: center;
  justify-items: center;
}

#bearsalmon {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding: 50px;
  background-color: #10db9f;
  justify-content: center;
  justify-items: center;
}

#capy {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding: 50px;
  background-color: #eeb574;
  justify-content: center;
  justify-items: center;
}

/* Titre en haut sur toute la largeur */
#capy h1 {
  grid-column: 1 / -1; /* occupe les 2 colonnes */
  text-align: center;
}

/* Chaque média (gif / vidéo) = un item de grille */
.capy-content {
  padding: 15px;
  box-sizing: border-box;
  max-width: 75%;
  height: auto;
  display: block; /* très important pour les images/vidéos */
}

/*
#capy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  grid-gap: 15px;
  border: 3px solid black;
}*/

#logo {
  border: white solid;
  border-radius: 5px;
  padding: 5px;
}

#logo3 {
  width: auto;
  height: 30px;
}

#flex-header {
  display: flex;
  justify-content: space-between;
}

#flex-presentation {
  display: flex;
  height: 100vh;
  justify-content: center;
  background-color: #37e3e6;
  flex-basis: 50px;
}

#main1 {
  display: block;
  justify-content: center;
  max-width: 100%;
  height: calc(100vh - 50px);
  margin: 0px auto;
}

#main2 {
  display: none;
}

#projet-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(70px, auto);
  grid-gap: 15px;
  margin-top: 50px;
  margin-left: 100px;
  margin-right: 100px;
}

#contact {
  margin-top: 30px;
  text-align: center;
}

.texte-presentation {
  text-align: center;
  margin: 0;
}

.projet {
  background: #37e3e6;
  border-radius: 10px;
  color: white;
  padding: 30px 25px;
  transition: all 0.3s;
  text-shadow: 0 0 3px black;
}

.projet:hover {
  scale: 103%;
  opacity: 0.7;
}

.projetBlub {
  background: center url(images/blub-eagle.png);
  background-size: cover;
}

.projetCapy {
  background: center url(images/capy.png);
  background-size: cover;
}

.projetBearsalmon {
  background: center url(images/bearsalmon.png);
  background-size: cover;
}

.projetsynthwave {
  background: center url(images/synthwave.png);
  background-size: cover;
}

.projetAstroDojo {
  background: center url(images/astro.png);
  background-size: cover;
}

.bouton {
  border-radius: 30px;
  justify-content: center;
  background: #37e3e6;
  color: white;
  padding: 15px 30px;
  margin-top: 15px;
}

/*
#flex-presentation:hover #main1 {
  display: none;
}

#flex-presentation:hover #main2 {
  display: block;
}

#main1 {
  display: none;
}

.container {
  width: 1100px;
  margin: 0 auto;v
}
*/

@media all and (max-width: 1120px) {
  .container {
    width: 700px;
  }
  #bienvenue {
    width: 700px;
  }
  body {
    width: 700px;
  }
  #flex-presentation,
  .texte-presentation {
    padding: 15px;
  }
  #projet-grille {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media all and (max-width: 730px) {
  .container {
    width: 100%;
  }
  #bienvenue {
    width: 100%;
  }
}
