@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=PT+Sans+Narrow:wght@400;700&display=swap');

/*===========================================================*/
/*========== DESIGNER PAR DÉFAUT RESPONSIVE MOBILE ==========*/
/*===========================================================*/

/*==========GLOBAL==========/*/

* {
    box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.6rem;
    line-height: 1.8;
    background-color: #f3f2f5;
    color: #6a6d70;
    padding: 0 30px;
}


/*==========BODY-Global==========*/

h1, h2, nav a {
    font-family: 'PT Sans Narrow', sans-serif;
}

h1, h2 {
    text-transform: uppercase;
    font-weight: normal;
    color: #30a894;
}

/*==========BODY-Header==========*/

header {
  text-align: center;
}

nav {
  display: flex;
  flex-direction: column;
  background-color: #30a894;
}

nav a {
  flex: 1;
  font-size: 3rem;
  color: #fff;
  padding: 20px;
  text-decoration: none;
}

nav a:hover {
  background-color: #136759;
}


/*==========BODY-Main==========*/

h2 {
  font-size: 2.4rem;
  border-bottom: solid 1px #30a894;
}


/*Section*/

h1 {
    font-size: 4rem;
}

img {
    max-width: 100%; /*Elle ne pourra jamais dépasser son parent*/
}

p a {
  text-decoration: none;
  color: #30a894;
}

/*Aside*/

aside {
  display: none;
}


/*==========FOOTER==========/*/

footer {
  text-align: center;
  margin: 30px 0;
}

footer img {
  width: 50px;
}


/*===========================================================*/
/*=================== RESPONSIVE TABLETTE ===================*/
/*===========================================================*/


/*========== ASIDE ==========*/

@media screen and (min-width: 768px) { 
  
  aside {
    display: block;
    background-color: #b8dcb1;
    padding: 20px 30px;
  }
  
} 


/*===========================================================*/
/*=================== RESPONSIVE DESKTOP ===================*/
/*===========================================================*/


@media screen and (min-width: 1025px) {
  
  /*==========BODY-Global==========*/
  
  body {
    margin: auto;
    max-width: 80%;
  }
  
  /*==========BODY-Header==========*/
  
  nav {
    flex-direction: row;
    justify-content: space-between;
  }

  nav a {
   width: calc(100%/3);
  }
  
  /*==========BODY-Main==========*/

  main {
    display: flex;
  }
  
  section {
    flex-basis: 70%;
  }
  
  aside {
    flex-basis: 30%;
    margin-left: 30px;
  }
  
}





