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

@media (max-width: 75em) {
  .emplois-general,
  .emplois-details,
  .emplois-logo-info {
    font-size: 1rem;
  }

  .menu-items li {
    font-size: 0.8rem;
  }

  .white-box {
    width: 900px;
  }

  .emplois-logo img {
    width: 300px;
  }

  .membre-plan-agree::after {
    text-transform: none;
    top: 12%;
    right: -29%;
  }
}

/*****************************/
/* BELOW 944px (Tablets) */
/*****************************/
@media (max-width: 59em) {
  /*** GENERAL ***/
  p {
    line-height: 1.2;
    font-size: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.2rem;
  }

  .menu-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .menu-items li {
    font-size: 1rem;
  }

  .popup {
    width: 350px !important;
  }

  .popup p {
    line-height: 1.6rem !important;
  }

  .notremission ul li,
  .notremission-text {
    font-size: 1rem;
  }

  .notreconseil,
  .audio,
  .avantages-list {
    grid-template-columns: 1fr;
  }

  .membre-plan {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .membre-plan-box {
    width: 70%;
  }

  .membre-plan-agree::after {
    top: 82%;
    left: 50%;
    font-size: 0.8rem;
    transform: translateX(-50%);
  }

  .plan-price {
    font-size: 1.6rem;
  }

  .plan-name {
    font-size: 1.4rem;
  }
}

/*****************************/
/* BELOW 704px (Smaller Tablets) */
/*****************************/
@media (max-width: 44em) {
  /*** GENERAL ***/

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  h3 {
    font-size: 1rem;
  }

  p {
    line-height: 1.2;
    font-size: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
  }

  .login-form label,
  .form-member label,
  section.container.congres .prix_congres {
    font-size: 1rem;
    font-weight: normal;
  }

  .login-form input,
  .login-form select,
  .form-member input,
  .form-member select {
    padding: 0.8rem;
    font-size: 1rem;
  }

  .login-info {
    grid-column: span 2;
  }

  .login-forgot {
    font-size: 1.2rem;
  }

  .menu-items li {
    font-size: 0.8rem;
  }

  .home {
    background-size: contain;
  }

  .home p {
    font-size: 2rem;
  }

  .fo-column {
    padding: 0 0.8rem;
  }

  .notremission ul,
  .formations-grid,
  .grid-2cols,
  .employeurs_main,
  .main_info {
    grid-template-columns: 1fr;
  }

  .employeurs_nav ul {
    flex-direction: row;
    justify-content: space-between;
    margin: 0 2rem;
  }

  .audio figcaption {
    font-size: 1rem;
  }

  .audio-icon {
    height: 50px;
    width: 50px;
  }

  .avantages-list li {
    font-size: 1rem;
  }

  .formations_payantes {
    padding: 10px;
  }

  .formations_payantes > div {
    font-size: 0.8rem;
  }
}

/*****************************/
/* BELOW 544px (Phones) */
/*****************************/
@media (max-width: 34em) {
  /*** OTHER SECTION ***/
  .fo-column {
    padding: 0 0.4rem;
  }

  .home {
    height: 60vh;
  }
  .home p {
    font-size: 1.5rem;
  }

  .footer img {
    height: 15px;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    height: 155px;
  }

  .infosgenerales {
    font-size: 0.8rem;
  }

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

  .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: #fff;
    height: 100vh;
    max-width: 300px;
    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: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
  }

  .logo {
    position: absolute;
    padding: 0;
    margin: 0;
    top: 5px;
    right: 5px;
  }
  /* Style de base pour les sous-menus */
  .has-submenus {
    position: relative;
  }

  /* Affichage du sous-menu */
  .has-submenus ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    flex-direction: column;
    padding: 10px 0;
    border-radius: 4px;
  }

  /* Afficher le sous-menu au clic ou hover */
  .has-submenus.open ul {
    display: flex;
  }

  /* Les liens du sous-menu */
  .has-submenus ul li {
    font-size: 0.9rem;
  }

  .has-submenus ul li a {
    text-decoration: none;
    color: #333;
    display: block;
    width: 100%;
  }

  .has-submenus ul li a:hover {
    background-color: #f0f0f0;
  }

  .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);
  }
}
