 .hover-menu {
          position: absolute;
          background: #222;
          color: #fff;
          padding: 15px;
          border-radius: 12px;
          box-shadow: 0 8px 16px rgba(0,0,0,0.3);
          width: 250px;
          z-index: 1000;
          pointer-events: none;
          display: none;
        }

        .hover-menu img {
          width: 100%;
          height: auto;
          border-radius: 8px;
          margin-bottom: 10px;
        }

        .hover-menu p {
          font-size: 0.9rem;
          line-height: 1.4;
        }

        html {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        }


        
        * {
          margin: 0;
          padding: 0;
          box-sizing: border-box;
          font-family: 'Segoe UI', Tahoma, sans-serif;
        }

        body {
          display: flex;
          flex-direction: column;
          min-height: 100vh;
          background-color: #666;
          color: #333;

        }

        /* Top Banner */
      /*  header {
        display: flex;
        justify-content:space-between;
        align-items: stretch;
        align-content: stretch;
        background-color: #555;
        }*/

        /* Layout */
        .container20 {
          display: flex;
          flex: 1;
          min-height: 0; /* essentiel pour scroll enfants */
          width: 100%;
        }

      .tabs {
  position: fixed;
  top: 60px; /* hauteur du header si fixe, sinon 0 */
  left: 0;
  width: 200px;
  height: calc(100vh - 145px); /* prend toute la hauteur visible sauf header */
  background: #444;
  padding: 20px 10px;
  box-shadow: inset 6px 6px 12px #3a3a3a, inset -6px -6px 12px #4e4e4e;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto; /* scroll si menu trop long */
  border-radius: 0;
  z-index: 100; /* au-dessus du contenu */
      }

      .tab {
        background: #444;
        color: #fff;
        padding: 10px 20px;
        border-radius: 12px;
        box-shadow: 4px 4px 8px #3a3a3a, -4px -4px 8px #4e4e4e;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
      }

      .tab-content {
  margin-left: 200px; /* largeur sidebar */
  flex: 1;
  padding: 40px 20px;
  overflow-y: auto; /* scroll contenu si besoin */
  min-height: 0;
      }





      .tab:hover,
      .tab.active {
        box-shadow: inset 4px 4px 8px #3a3a3a, inset -4px -4px 8px #4e4e4e;
      }

        /* Main Content */
        .main {
          flex: 1;
          padding: 40px 20px;
        }

        .grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
          gap: 30px;
          max-width: 1200px;
          margin: 0 auto;
        }

        .card {
          background-color: #444;
          border-radius: 12px;
          overflow: hidden;
          transition: transform 0.3s ease, box-shadow 0.3s ease;
          cursor: pointer;
          text-decoration: none;
          width: 300px;
        }


        .card a div {

          text-decoration: none;

        }


        .card:hover {
          transform: translateY(-8px);
          box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
          background-color: #333;
        }

        .card img {
          width: 100%;
          height: 150px;
          object-fit: cover;
        }

        .card-body {
          padding: 20px;
        }

        .card-title {
          font-size: 1.2rem;
          font-weight: bold;
          margin-bottom: 10px;
          color: #222;
        }

        .card-text {
          font-size: 0.95rem;
          color: #555;
        }

        /* Responsive Sidebar */
        @media (max-width: 768px) {
          .container20 {
            flex-direction: column;
          }

          .sidebar {
            width: 100%;
            display: flex;
            overflow-x: auto;
          }

          .sidebar ul {
            display: flex;
          }

          .sidebar li {
            flex: 1;
            text-align: center;
            border-bottom: none;
            border-right: 1px solid #bbb;
          }
        }



    @media (max-width: 768px) {
      .tabs {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        border-radius: 12px;
      }

      .tab {
        text-align: center;
        font-size: 1rem;
        padding: 12px;
        border-radius: 10px;
      }

      .main {
        padding: 20px 10px;
      }

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