/*****************************/
/* BELOW 1200px (Landscape Tablets) */
/*****************************/

@media (max-width: 75em) {
  /*** GENERAL ***/
  p {
    line-height: 2;
    font-size: 1.2rem;
  }
  .info-bdsm .panel.twocol ul {
    columns: 2;
    column-gap: 2.6rem;
  }
  .info-bdsm .panel.twocol li {
    break-inside: avoid;
  }
  .info-bdsm .panel {
    max-width: 95%;
    margin: 0 auto;
  }
  .cards-foundations {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

/*****************************/
/* BELOW 944px (Tablets) */
/*****************************/
@media (max-width: 59em) {
  /*** GENERAL ***/
  p {
    line-height: 1.8;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }
  .info-bdsm .panel {
    padding: 1.6rem 1.8rem;
  }
  .info-bdsm .panel ul {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  /*********************
	RUBRIQUES INFORMATIVES
	PRATIQUES DIVERSES
	ACCESSOIRES DIVERS
	CONTRATS / LIMITES
	**********************/
  .subsection img {
    width: 600px;
  }

  .subsection ul {
    font-size: 1rem;
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
  }

  /*** OTHER SECTIONS ***/
  .home-img {
    width: 80%;
  }
  .main-home {
    grid-template-columns: 1fr;
  }
}

/*****************************/
/* BELOW 704px (Smaller Tablets) */
/*****************************/
@media (max-width: 44em) {
  /*** GENERAL ***/
  p {
    line-height: 1.6;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 0.8rem;
  }

  /*** OTHER SECTIONS ***/
  /*********
	 RUBRIQUES
	**********/
  .subsection img {
    width: 500px;
  }

  .cards-foundations {
    grid-template-columns: 1fr;
  }

  .subsection ul {
    grid-template-columns: 1fr;
    font-size: 1.2rem;
    grid-row-gap: 1.2rem;
  }

  /********
	INFO-BDSM
	*********/
  .info-bdsm {
    grid-template-columns: 1fr;
  }
  .info-bdsm-img2 {
    grid-row: 3;
  }
  .info-bdsm-img4 {
    grid-row: 7;
  }
  .info-bdsm-img {
    height: 300px;
  }
  .info-bdsm .panel {
    margin: 0 0.8rem;
  }
  .info-bdsm .panel ul {
    font-size: 1.2rem;
    line-height: 1.65;
  }

  /*** MOBILE NAVIGATION ***/
  .navbar {
    opacity: 0.95;
  }

  .navbar-container input[type="checkbox"],
  .navbar-container .hamburger-lines {
    display: block;
  }

  .navbar-container {
    display: block;
    position: relative;
    height: 90px;
  }

  .navbar-container input[type="checkbox"] {
    position: absolute;
    display: block;
    height: 32px;
    width: 30px;
    top: 20px;
    left: 20px;
    z-index: 5;
    opacity: 0;
  }

  .navbar-container .hamburger-lines {
    display: block;
    height: 23px;
    width: 35px;
    position: absolute;
    top: 17px;
    left: 20px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .navbar-container .hamburger-lines .line {
    display: block;
    height: 4px;
    width: 100%;
    border-radius: 10px;
    background: #333;
  }

  .navbar-container .hamburger-lines .line1 {
    transform-origin: 0% 0%;
    transition: transform 0.4s ease-in-out;
  }

  .navbar-container .hamburger-lines .line2 {
    transition: transform 0.2s ease-in-out;
  }

  .navbar-container .hamburger-lines .line3 {
    transform-origin: 0% 100%;
    transition: transform 0.4s ease-in-out;
  }

  .navbar .menu-items {
    padding-top: 100px;
    background: red;
    height: 100vh;
    max-width: 250px;
    transform: translate(-150%);
    display: flex;
    flex-direction: column;
    margin-left: -40px;
    padding-left: 50px;
    transition: transform 0.5s ease-in-out;
    box-shadow: 5px 0px 10px 0px #aaa;
  }

  .navbar .menu-items li {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 500;
  }

  .navbar .menu-items a:link,
  .navbar .menu-items a:visited {
    color: black;
  }

  .navbar .menu-items a:hover,
  .navbar .menu-items a:active {
    color: white;
  }

  .logo {
    position: absolute;
    padding: 0;
    margin: 0.2rem;
    padding-right: 0.5rem;
    top: 5px;
    right: 5px;
  }

  .has-submenus:after {
    content: "\025BC";
    color: black;
  }

  .has-submenus ul a:hover,
  .has-submenus ul a:active {
    color: red !important;
  }

  .navbar-container input[type="checkbox"]:checked ~ .menu-items {
    transform: translateX(0);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
    transform: rotate(35deg);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
    transform: scaleY(0);
  }

  .navbar-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
    transform: rotate(-35deg);
  }
}

/*****************************/
/* BELOW 544px (Phones) */
/*****************************/
@media (max-width: 34em) {
  /*** OTHER SECTION ***/
  /*********
	 RUBRIQUES
	**********/
  .subsection img {
    width: 400px;
  }
}
