/*Grand écran--------------------------------------------------------*/
html,body { overflow-x: hidden;}

h1 { font-size: 3rem;}
h2 { font-size: 2rem;}
h3 { font-size: 1.5rem;}

.sidebar {
  position: fixed;
  height: 100%;
  width: 25%;
  padding-top: 2rem;
}

.sidebar-about img {
  width: 14rem;
  object-fit: contain;
}

.sidebar-nav2 {
  padding-left: 10%;
}

.sidebar-nav-item2,
.sidebar-nav-item2current {
  padding-left: 8%;
}

.social-icons {
  display: block;
  width: 140px;
}

.content {
  margin-left: 25%;
}

.actu {
  display: flex;
}
.actu::before {
  margin-top: -0.3rem;
}

.prochainement {
  opacity: 0.85;
  right: -17rem;
}

.page {
  padding-left: 5%;
  padding-right: 5%;
  min-height: 27rem;
}

.tablo-visible table {
  margin: 0 0 1.5rem 1rem;
}

.la-ferme-en-images-paysage {
  margin-left: -10%;
  width: 120%
}

.flex65 {
  display: flex;
}

.float_right {
  float: right;
}

.cont2col {
  column-count: 2;
}

.bas-de-page {
  padding-left: 25%;
  background-size: auto;
}

footer {
  margin-left: 20rem;
}

/*Petit écran--------------------------------------------------------*/
@media (max-width: 70rem) {
  .sidebar-nav2 {
    padding-left: 0;
  }
}

/*Smartphone--------------------------------------------------------*/
@media (max-width: 62rem) {
  html,body { overflow-x: visible;}

  h1 { font-size: 2rem;}
  h2 { font-size: 1.5rem;}
  h3 { font-size: 1.25rem;}

  .sidebar {
    width: 100%;
    position: static;
    padding-top: 0.5rem;
    height: auto;
  }
  .sidebar-about {
    display: inline-block;
    width: auto;
  }

  .sidebar-about img {
    width: 10rem;
  }
  .sidebar-nav2 {
    display: inline-block;
    width: auto;
    min-width: 15rem;
  }

  .social-icons {
    display: inline-block;
    width: auto;
    vertical-align: bottom;
  }

  .content {
    margin-left: 0;
  }

  .actu {
    display: block;
  }
  .actu::before {
    float: left;
    margin-top: -0.6rem;
  }

  .prochainement {
    opacity: 0.95;
    right: -18rem;
  }

  .page {
    padding-left: 2%;
    padding-right: 2%;
  }

  .tablo-visible table {
    margin: 0 0 1.5rem 0;
  }

  .la-ferme-en-images-paysage {
    margin-left: 0;
    width: 100%
  }

  .bas-de-page {
    padding-left: 4%;
    background-size: 0%;
  }

  footer {
    margin-left: 0rem;
  }
}
/*Petit smartphone--------------------------------------------------------*/
@media (max-width: 35rem) {
  .cont2col {
    column-count: 1;
  }
  .flex65 {
    display: inline-block;
    width: 100%;
  }

  .float_right {
    float: none;
  }

}
/*Faible hauteur d'écran-----------------------------------------------------------*/
@media (max-height: 40.5rem) {
  .sidebar {
    padding-top: 0;
  }
  .sidebar-about img {
    height: 10rem;
    object-fit: contain;
  }

  .page {
    min-height: 20rem;
  }
}

@media (max-height: 33rem) {
  .sidebar-about img {
    height: 5rem;
  }

  .social-icons div {
    visibility: collapse;
    height: 2px;
  }

  .page {
    min-height: 15rem;
  }
}

