* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: sans-serif;
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('/others-images/testbibli10.png');
    background-size: cover;
    background-position: 85%;
    background-repeat: no-repeat;
    z-index: -1;
}

@keyframes highlightFlash {
    0% { background-color: yellow; }
    100% { background-color: transparent; }
}

.highlighted-word {
    animation: highlightFlash 2s ease-in-out;
    transition: background-color 0.3s;
}

.vocabulary-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.vocabulary-list li {
  margin: 0.5rem 0;
  color: whitesmoke;
}

.vocabulary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: white;
    font-family: 'Rajdhani', sans-serif;
}
.vocabulary-table th,
.vocabulary-table td {
    border: 1px solid white;
    padding: 12px;
    text-align: left;
}
.vocabulary-table th {
    background-color: rgba(255, 255, 255, 0.1);
    font-size: 1.2em;
}
.tag {
    padding: 4px 8px;
    margin-right: 4px;
    border: 1px solid white;
    border-radius: 8px;
    font-size: 0.9em;
    display: inline-block;
}
.familiarity.common { background-color: transparent; }
.familiarity.familiar { background-color: transparent; }
.familiarity.vulgar { background-color: transparent; }
.tag.youth { background-color: transparent; }

.expressions-content {
    margin-top: 70px;
    max-width: 90%;
    margin-left: 12%;
    margin-right: 12%;
}

.expressions-content p {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: whitesmoke;
}

body {
    background: linear-gradient(to bottom, #0a0f2c, #1e2a4a);
    background-image: url('/others-images/testbibli10.png'); 
    background-size: cover;
    background-position: 10%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;   /* fallback pour anciens navigateurs */
    min-height: 100dvh;  /* solution pour iPhone / Safari mobile */
  /*  color: #e0f7ff;*/
}

.explanation h1,
.explanation-mobile h1,
.explanation h2,
.explanation-mobile h2,
.main-text-videos-desktop h2,
.second-main-text-mobile h2,
.no-results-message p,
.link-desktop,
.link-mobile {
    color: #e0f7ff !important;
}

.no-results-message p
{
    color: #e0f7ff !important;
}

.linguateka-logo {
    display: flex;
    justify-content: left, top;
    flex-wrap: wrap;
    margin-top: 15px;
    margin-left: 10px;
}

.linguateka-logo h1 {
    font-size: 22px;

    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(to right, #3B82F6, #06B6D4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 25px;
    margin-left: 10px;
}

.linguateka-logo-image {
    margin-left: 5px;
    width: 47px;
}


.top-controls-mobile {
    display: none;
}

.top-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: column;
    gap: 30px;
    padding: 10px;
    position: absolute;
    top: 15px;
    right: 15px;
}

.combo-box {
    display: flex;
    align-items: center;
    background-color: #dae2ff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.combo-box-mobile {
    display: flex;
    align-items: center;
    background-color: #dae2ff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.burger-wrapper {
    display: flex;
    align-items: center;
}

.burger-wrapper-mobile {
    display: flex;
    align-items: center;
}

.burger-wrapper button {
    background-color: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    color: #000;
}

.burger-wrapper-mobile button {
    background-color: transparent;
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    color: #000;
}

#burger-content {
    position: absolute;
    width: 165px;
    top: 60px;
    right: 10px;
    background-color: #f5f7ff;
    border: 1px solid #dae2ff;
    border-radius: 8px;
    padding: 10px;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

#burger-mobile-content {
    position: absolute;
    top: 60px;
    right: 10px;
    background-color: #f5f7ff;
    border: 1px solid #dae2ff;
    border-radius: 8px;
    padding: 10px;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}


#burger-content a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
}

#burger-mobile-content a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
    color: #333;
}

#burger-content a:hover {
    text-decoration: underline;
}

#burger-mobile-content a:hover {
    text-decoration: underline;
}

    .other-icon-top-controls {
    width: 30px;
  }

    .other-icon-top-controls-mobile {
    width: 27px;
  }

  .wrapper-mobile-other-icons {
    flex-direction: row;
    display: flex;
    gap: 22px;
    right: 68px;
    position: absolute;
  }

  
.languages-flags-wrapper {
    position: relative;
    width: 200px;
    height: 0px;
    margin-top: 90px;
}

.index-french-flag img {
    width: 45px;
    position: absolute;
    top: -45px;  
    left: 5%;
}


.index-polish-flag img {
    width: 45px;
    position: absolute;
    bottom: 0;
    left: 68%;
    flex-direction: column;
}


.index-japanese-flag img {
    width: 45px;
    position: absolute;
    top: -45px;  
    right: 0;
}

.explanation-mobile {
    display: none;
}

.explanation {
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;  
}

.explanation h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}


.top-bar-desktop {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 60px;
}

#searchBar,
#searchBar-mobile {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #4acfff;
    color: #ffffff;
}

.searchBarWrapperDesktop {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    z-index: 1;
}

#searchBar {
    width: 100%;
    width: 400px; 
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
  /*  min-width: 350px;*/
}

#searchBar-mobile {
   display: none;
    
}

.no-results-message {
    display: none; 
    text-align: center; 
    margin-top: 40px;
}

.no-results-message p{
    font-size: 1.2em; 
    font-weight: bold;
}

.no-results-message img {
    width: 100px; 
    height: auto; 
    margin-bottom: 20px;
}

.fake-filter-wrapper {
    border-style: none;
    visibility: hidden;
}

.fake-filter-wrapper button {
    border-style: none;
}


.filter-icon-button {
    width: 35px; 
    height: 35px;    
    border-style : none;
    border-left-style : none;
}

.filter-icon-button-mobile {
    width: 35px; 
    height: 35px;    
    border-style : none;
    border-left-style : none;
}

.filter-wrapper {
    border-style: none;
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.filter-wrapper img {
    background-color: transparent;
}

.filter-wrapper-mobile {
    display: none;
}


#filter-panel {
    position: absolute;
    top: -53px;
    right: -211px;
    background-color: #f5f7ff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    width: 205px;
}

#filter-panel-mobile {
    position: absolute;
    top: 46px;
    left: 33%;
    background-color: #f5f7ff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 10;
    width: 180px;
}

#filter-panel.hidden {
    display: none;
}

#filter-panel-mobile.hidden {
    display: none;
}

.familiarity-filter {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.familiarity-filter-mobile {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 5px;
}

.familiarity-btn {
    flex: 1;
    padding: 5px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.familiarity-btn-mobile {
    flex: 1;
    padding: 5px;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}

.tag-btn {
    flex: 1;
    padding: 5px;
    background-color: #C4E1FF;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 3px;
}

.tag-btn.active {
    background-color: #007BFF;
    color: white;
    border-color: #0056b3;
}

.tag-btn-mobile {
    flex: 1;
    padding: 5px;
    background-color: #C4E1FF;
    border: 1px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 3px;
    min-width: 100px;
}

.tag-btn-mobile.active {
    background-color: #007BFF;
    color: white;
    border-color: #0056b3;

}

/* COMMON */
.familiarity-btn-mobile[data-familiarity="common"] {
    background-color: #B3FF9B;
}

.familiarity-btn-mobile[data-familiarity="common"].active {
    background-color: #7FFF57;
    color: white;
}

.familiarity-btn[data-familiarity="common"] {
    background-color: #B3FF9B;
}

.familiarity-btn[data-familiarity="common"].active {
    background-color: #00FF00;
    color: white;
}

.familiarity-btn-mobile[data-familiarity="common"].active {
    background-color: #00FF00;
    color: white;
}

/* FAMILIAR */
.familiarity-btn-mobile[data-familiarity="familiar"] {
    background-color: #FFFF9B;
}

.familiarity-btn[data-familiarity="familiar"] {
    background-color: #FFFF9B;
}

.familiarity-btn-mobile[data-familiarity="familiar"].active {
    background-color: #FFFF00;
    color: white;
}

.familiarity-btn[data-familiarity="familiar"].active {
    background-color: #FFFF00;
    color: white;
}

/* VULGAR */
.familiarity-btn-mobile[data-familiarity="vulgar"] {
    background-color: #FF9F9B;
}

.familiarity-btn[data-familiarity="vulgar"] {
    background-color: #FF9F9B;
}

.familiarity-btn-mobile[data-familiarity="vulgar"].active {
    background-color: #FF0000;
    color: white;
}

.familiarity-btn[data-familiarity="vulgar"].active {
    background-color: #FF0000;
    color: white;
}


.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 100px 70px; 
    justify-content: center;
    margin-top: 60px;
    margin-left: 18%;
    margin-right: 18%;
}

.card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.3s ease;

    width: 150px;
    overflow: hidden;
    position: relative;
    border-radius: 12px;
}

.image-card-wrapper {
  position: relative;
  width: 100%;
  height: 100px;
}


.card img {
  width: 100%;
  height: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 0 16px rgba(138, 180, 248, 0.5);
}

.expression-title {

    color: whitesmoke;
    margin-left: 4px;
    margin-top: 2px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}


.footer-custom {
    background-color: rgba(0, 0, 0, 0.4);
    color: #aad7ff;
}

.footer-link {
    background-color: rgba(255, 255, 255, 0.1);
    color: #aad7ff;
}

.footer-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer-custom {
    background-color: #1d1e27;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    gap: 30px;
    flex-wrap: wrap;
    font-family: sans-serif;
    margin-top: 80px;
  }
  
  .footer-left h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
  }
  
  .footer-left p {
    font-size: 14px;
    margin: 4px 0 0;
  }
  
  .footer-right {
    display: flex;
    align-items: center;
  }
  
  .linkedin-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    color: whitesmoke;
  }
  
  .linkedin-icon {
    width: 25px;
    margin-right: 8px;
  }
  
  .footer-center {
    display: flex;
    gap: 10px;
  }
  
  .footer-link {
    background-color: #dae2ff;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    text-decoration: none;
    color: black;
    transition: background-color 0.3s;
  }
  
  .footer-link:hover {
    background-color: #c9d5ff;
  }
  
  .flag-icon {
    width: 20px;
    height: 14px;
  }

    .flag-icon-burger {
    width: 19px;
    height: 14px;
    margin-left: 4px;
    border: 1px solid #ccc;
  }

  
  @media (max-width: 780px) {

    body {
    background-image: url('/others-images/testbibli8.png'); 
    background-position: 81%;
    }

    .linguateka-logo {
        display: flex;
        justify-content: left;
        flex-wrap: wrap;
        margin-top: 5px;
        margin-left: 10px;
    }
    
    .linguateka-logo h1 {
        font-size: 15px;
    
        font-family: 'Poppins', sans-serif;
        font-weight: 700;
        background: linear-gradient(to right, #3B82F6, #06B6D4);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-top: 10px;
    }
    
    .linguateka-logo-image {
        width: 30px;
    }

    .top-controls {
        display: none;
    }

    .top-controls-mobile {
        display: flex;
        flex-direction: column;
        align-items: stretch; /* pour que les éléments prennent toute la largeur */
        gap: 12px;
        margin: 30px 3%;
      }

    .explanation-mobile {
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center; 
        margin-top: 15px; 
    }

    .explanation-mobile h1 {
        font-family: 'Rajdhani', sans-serif;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 2px;
        text-align: center;
        text-transform: uppercase;
    }

    .index-french-flag img {
        width: 40px;
        left: 12px;
    }

    .index-polish-flag img {
        width: 40px;
        bottom: 6px;
    }

    .index-japanese-flag img {
        width: 40px;
        right: 12px;
    }

    .top-bar-desktop {
        display: none;
      }

    .top-bar-mobile {
        display: flex;
        flex-direction: column;
    }

        .explanation {
        display: none;
    }

    .combo-box {
        display: none;
    }

    .combo-box-mobile {
        max-width: 250px;
        position: absolute;
        justify-content: flex-end;
        top: 13px;
        right: 15px;
    }

    #searchBar {
        display: none;
    }

    #searchBar-mobile {
        display: block;
        width: 85%; 
        padding: 10px;
        border: 2px solid #ccc;
        border-radius: 5px;
        font-size: 12px;
        min-width: unset;
        box-sizing: border-box;
        margin-top: 7px;

      }

    .filter-wrapper-mobile {
        display: flex;
        position: relative;
        margin-left: 30px; 
        margin-top: 20px;
        width: 90%;
        align-items: center;
        border-style: none;
      }

    .filter-wrapper-icon-mobile {
        margin-left: 5px;
      }

    .filter-wrapper-icon-mobile {
        margin-left: 5px;
      }

    .filter-yellow-icon img {
        width: 35px;
        height: 35px;
    }

    .filter-yellow-icon-mobile {
        width: 35px;
        height: 35px;
    }

    .expressions-content {
    margin-top: 30px;
    max-width: 90%;
    margin-left: 7%;
    margin-right: 7%;
    }

    .expressions-content p {
        font-family: 'Rajdhani', sans-serif;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: whitesmoke;
    }

        .footer-custom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 15px 10px;
        gap: 15px;    
        margin-top: 20px;
      }
    
      .footer-center {
        flex-direction: row;
        width: 100%;
        order : 3;
        justify-content: center;
      }


      .footer-left {
        order: 1;
      }
    
      .footer-link {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 12px;
        width: 36%;
        flex-wrap: nowrap;
        overflow: hidden;
        gap: 8px;
      }
      .footer-link span {
        flex: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .footer-link svg {
        flex-shrink: 0;
      }
      
    
      .footer-right {
        order: 2;
      }

  }

