/**********************************************************************************/
/*********************************Partie Web***************************************/
/**********************************************************************************/

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  padding: 10px 150px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.printer-container{
  width: 55px;
  height: 55px;
  background-color: hsl(0, 0%, 95%);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.printer{
  width: 45px;
  height: 50px;
}

.TypeSearch{
  width: 100%;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.title{
  color: #3c3c3c;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 10px;
}

.inputs{
  display: flex;
  align-items: center;
  background-color: #ebebeb;
  border-radius: 12px;
  overflow: hidden;
  width: 400px;
  height: 45px;
}

.inputs input {
  flex: 1;
  height: 100%;
  padding: 0 14px;
  font-size: 16px;
  border: none;
  outline: none;
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.inputs button, .inputs a{
  width: 70px;
  height: 100%;
  background-color: #0685ac;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.inputs a {
    text-align: center;
    text-decoration: none;
}

.inputs button:hover, .inputs a:hover{
  background-color: #1796bd;
}

.alphabet-container, .niveau-container{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.alphabet-letter,.niveau-radio{
  display: none;
}

.alphabet-label, .niveau-label{
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.4s;
  border: 2px solid transparent;
}

.alphabet-label{
  width: 40px;
  height: 40px;
  background-color: #ebebeb;
  color: #333;
  font-weight: bold;
  font-size: 18px;
  border-radius: 8px;
  text-decoration: none;
}

.niveau-label {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: #ebebeb;
  color: #333;
  font-weight: bold;
  font-size: 18px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.alphabet-label:hover, .niveau-label:hover{
  background-color: #0685ac;
  color: #fff;
}

.words-container {
  width: 100%;
  margin-top: 20px;
}

.words-header {
  color: #3c3c3c;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.words-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: #0685ac;
  border-radius: 2px;
}

.words-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 30px;
}

.word-card {
  border: none;
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  border: 2px solid #ebebeb;
  position: relative;
  overflow: hidden;
  text-align: right;
}

.word-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: #0685ac;
}

.word-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.word-name {
  font-size: 18px;
  font-weight: 600;
  color: #4a6fa5;
  cursor: pointer;
}

.word-category {
  background-color: #ebebeb;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}

.word-description {
  color: #546e7a;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 5px;
}

.word-example {
  font-size: 12px;
  font-weight: 700;
  margin-top: 5px;
  color: #666;
}

.word-level {
  display: inline-block;
  margin-top: 5px;
  background-color: #bef1f8;
  color: #00838f;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
}

.word-relations {
  margin-top: 5px;
}

.synonyms {
  color: #3c3c3c;
  font-size: 14px;
}

.antonyms {
  color: #3c3c3c;
  font-size: 14px;
}

.search-letter {
    color: #4a6fa5;
}

.active-label {
  background-color: #0685ac;
  color: #fff;
}

.word-actions {
    display: flex;
    justify-content: flex-end; /* left in RTL */
    margin-top: 10px;
}

.open-img {
  align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin-top: 8px;
    padding: 4px 8px;

    background: #f5f5f5;
    color: #555;

    border: 1px solid #ddd;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 500;

    cursor: pointer;
    transition: all .2s ease;
}

.open-img:hover {
    background: #0685ac;
    border-color: #0685ac;
    color: #fff;
}

.open-img:active {
    transform: scale(0.97);
}

.dialog-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.dialog-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  position: relative;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dialog-container.show {
  opacity: 1;
  transform: translateY(0);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-img {
    background: none;
    border: none;
    font-size: 25px;
    cursor: pointer;
}

.dialog-body {
    margin-top: 15px;
    text-align: center;
}

.dialog-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.page-container{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: auto;
  margin-bottom: 30px;
  gap: 10px;
}

/**********************************************************************************/
/*********************************Partie Responsive********************************/
/**********************************************************************************/
@media (max-width: 768px) {

  .body {
    padding: 0 20px;
  }

  .navbar {
    padding: 10px 20px;
  }

  .nav-right p {
    font-size: 10px;
  }

.printer-container{
  width: 40px;
  height: 40px;
}

.printer{
  width: 35px;
  height: 40px;
}

  .icon {
    width: 40px;
    height: 40px;
  }

  .btn {
    width: 100%;
  }

  .title {
    font-size: 15px;
  }

  .TypeSearch {
    padding-top: 120px;
  }

  .inputs {
    width: 300px;
  }

  .words-grid {
    grid-template-columns: repeat(1, 1fr);
  }

}