
.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;
  }

  
.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;
  }

.label-with-toggle {
  display: inline-flex;        /* <-- au lieu d'un block qui prend 100% */
  align-items: center;
  gap: .5rem;
  margin-bottom: .25rem;
}

/* Bouton +/– */
.toggle-btn {
  line-height: 1;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 999px;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  cursor: pointer;
}

/* Cache/affiche la zone repliable */
.collapsible[hidden] { display: none; }

/* Zone de texte en pleine largeur, comme la transcription */
.collapsible textarea {
  width: 100%;
  box-sizing: border-box;
}






.lang-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 9999;
}

.lang-overlay.hidden{ display:none; }

.lang-modal{
  width: min(920px, 92vw);
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 22px;
  position: relative;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
}

.lang-close{
  position:absolute;
  top: 12px;
  right: 12px;
  border:none;
  background: transparent;
  font-size: 22px;
  cursor:pointer;
  color:#d00000;
  font-weight:700;
}

.lang-modal-header{
  display:flex;
  align-items:center;
  gap: 12px;
  margin-bottom: 14px;
}

.lang-modal-flag{
  width: 34px;
  height: 24px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 1px 6px rgba(0,0,0,.15);
}

.lang-modal-title{
  margin:0;
  font-size: 22px;
}

.lang-grid{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)); /* 5 colonnes */
  gap: 10px;
}

@media (max-width: 760px){
  .lang-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.lang-tile{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid #ddd;
  border-radius: 12px;
  background:#fafafa;
  cursor:pointer;
  text-align:left;
  transition: transform .08s ease, background .08s ease;
}

.lang-tile:hover{
  background:#f0f0f0;
  transform: translateY(-1px);
}

.lang-flag{
  width: 28px;
  height: 20px;
  object-fit: cover;
  border-radius: 4px;
}

.lang-label{
  font-weight: 600;
}


.hidden { display: none !important; }

.add-video-header{
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  gap: 12px;
}

.choose-lang-btn{
  border:none;
  border-radius: 999px;
  padding: 8px 14px; 
  cursor:pointer;
  font-weight: 600;
  display: inline-flex;
}

.choose-lang-btn:hover{
  background: rgba(255,255,255,0.20);
}

.add-video-title-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap; /* au cas où sur mobile */
}

.add-video-flag{
  width: 34px;     /* ajuste */
  height: 24px;    /* ajuste */
  object-fit: cover;
  border-radius: 6px;
  margin-top: 13px;
}

.hidden{
  display: none;
}

/* bouton subtitles (mauve) */
.subtitle-btn{
  background-color: #E5D4FF !important;
  border: 1px solid #ccc !important;
  color: #000 !important;
  padding: 8px 14px;            /* même que les autres boutons */
  border-radius: 999px;         /* même forme pilule */
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .05s;
}

/* hover */
.subtitle-btn:hover{
  background-color: #d9c2ff !important;
}

/* actif (enfoncé) */
.subtitle-btn.active,
.subtitle-btn[aria-pressed="true"]{
  background-color: #B48CFF !important;
  color: #fff !important;
  border-color: #7b4dff !important;
}

/* petit effet "pressed" */
.subtitle-btn:active{
  transform: translateY(1px);
}












body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/others-images/magicwallpaper2.png');
  background-size: cover;
  background-position: 85%;
  background-repeat: no-repeat;
  z-index: -1;
}

body {
  background: linear-gradient(to bottom, #0a0f2c, #1e2a4a);
  background-attachment: fixed;
  min-height: 100vh;
  color: white;
  font-family: Arial, sans-serif;
}

.main-content {
  display: flex;
  justify-content: center;
  width: 85%;
  margin: 20px auto;
}

.text-wrapper {
  background-color: #2f2a1a;
  color: white;
  opacity: 0.85;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 20px;
  width: 100%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.expression-title-expression-page {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
}

.video-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
    margin-top: 12px;
}

.video-form label {
  font-weight: bold;
  color: whitesmoke;
}

.video-form input,
.video-form select,
.video-form textarea {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid #999;
  border-radius: 6px;
  color: white;
  padding: 8px;
}

.video-form input::placeholder,
.video-form textarea::placeholder {
  color: #bbb;
}

#transcriptionText {
  margin-top: 10px;
}


#filter-panel {
  display: grid;
  gap: 12px;
  margin: 15px 0;
}

.difficulty-filter, .meme-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.difficulty-btn, .tag-btn,
#generateTranscriptBtn, #generateTranslationBtn, #previewBtn {
  background-color: rgba(255,255,255,0.1);
  border: 1px solid #aaa;
  color: black;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s;
}



.difficulty-btn[aria-pressed="true"], .tag-btn[aria-pressed="true"] {
  background-color: rgba(255,255,255,0.25);
  border-color: #fff;
}

.difficulty-btn:hover, .tag-btn:hover,
#generateTranscriptBtn:hover, #generateTranslationBtn:hover, #previewBtn:hover {
  background-color: rgba(255,255,255,0.3);
}



/* EASY */
.difficulty-btn-mobile[data-difficulty="easy"] {
    background-color: #B3FF9B;
}

.difficulty-btn-mobile[data-difficulty="easy"].active {
    background-color: #7FFF57;
   /* color: white;-*/
}

.difficulty-btn[data-difficulty="easy"] {
    background-color: #B3FF9B;
}

.difficulty-btn[data-difficulty="easy"].active {
    background-color: #00FF00;
    font-size: 1.12rem; 
   /* color: white;*/
}

.difficulty-btn-mobile[data-difficulty="easy"].active {
    background-color: #00FF00;
    font-size: 1.12rem; 
  /*  color: white;*/
}

/* MEDIUM */
.difficulty-btn-mobile[data-difficulty="medium"] {
    background-color: #FFFF9B;
}

.difficulty-btn[data-difficulty="medium"] {
    background-color: #FFFF9B;
}

.difficulty-btn-mobile[data-difficulty="medium"].active {
    background-color: #FFFF00;
    font-size: 1.12rem; 
   /* color: white; */
}

.difficulty-btn[data-difficulty="medium"].active {
    background-color: #FFFF00;
    font-size: 1.12rem; 
    /* color: white; */
}

/* HARD */
.difficulty-btn-mobile[data-difficulty="hard"] {
    background-color: #FF9F9B;
}

.difficulty-btn[data-difficulty="hard"] {
    background-color: #FF9F9B;
}

.difficulty-btn-mobile[data-difficulty="hard"].active {
    background-color: #FF0000;
    font-size: 1.12rem; 
    /* color: white; */
}

.difficulty-btn[data-difficulty="hard"].active {
    background-color: #FF0000;
    font-size: 1.12rem; 
    /* color: white; */
}

.tag-btn {
  padding: 5px;
  background-color: #C4E1FF;
  border: 1px solid #ccc;
    padding: 8px 14px;              /* même padding que .difficulty-btn */
  border-radius: 999px; 
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  color: #000; /* texte noir par défaut */
}

/* Popular Meme — actif (bleu vif) */
.tag-btn.active,
.tag-btn[aria-pressed="true"] {
  background-color: #007BFF;
  color: #fff;
  border-color: #0056b3;
}



.status-hint {
  font-size: 13px;
  color: #ddd;
}

.label-with-generate {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 15px;
}

/* Bouton Generate magique */
.generate-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;

  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;

  /* Dégradé animé */
  background: linear-gradient(
    120deg,
    #3b82f6,
    #06b6d4,
    #a855f7,
    #ec4899
  );
  background-size: 300% 300%;
  animation: magicGradient 6s ease infinite;

  box-shadow:
    0 0 0 rgba(255,255,255,0),
    0 4px 15px rgba(168, 85, 247, 0.35);

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

/* Hover : plus "magique" */
.generate-btn:hover{
  transform: translateY(-1px);
  box-shadow:
    0 0 12px rgba(236, 72, 153, 0.6),
    0 6px 18px rgba(59, 130, 246, 0.5);
}

/* Clic */
.generate-btn:active{
  transform: translateY(0);
  box-shadow:
    0 0 6px rgba(255,255,255,0.4);
}

/* Animation du dégradé */
@keyframes magicGradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.translations-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.translation-option {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
}


.translations-box{
  margin-top: 10px;
}

.translations-lang-buttons{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Boutons de langues (même esprit que tag-btn) */
.translation-lang-btn{
  background-color: #dae2ff;
  border: 1px solid #ccc;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  color: #000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.translation-lang-btn:hover{
  background-color: #c9d5ff;
}

.translation-lang-btn.active{
  background-color: #B48CFF;
  color: #fff;
  border-color: #7b4dff;
}

/* bouton EN verrouillé */
.translation-lang-btn.locked{
  cursor: default;
  opacity: .95;
}

/* petite croix */
.translation-lang-remove{
  font-weight: 800;
  line-height: 1;
  opacity: .9;
}


#openTranslationModal{
  width: auto !important;
  align-self: flex-start;   /* dans la colonne */
  display: inline-flex;
  max-width: fit-content;
}

/* si tu as un reset qui met les buttons en block */
button.choose-lang-btn{
  width: auto !important;
}

.translations-row{
  display: flex;
  align-items: center;      /* ✅ même niveau vertical que English */
  justify-content: space-between;
  gap: 12px;
}

.translations-lang-buttons{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* ✅ bouton petit, pas full width */
.choose-lang-btn--small{
  width: auto !important;
  align-self: center;
  padding: 8px 14px !important;
  font-size: 0.95rem;
  white-space: nowrap;      /* ✅ ne va pas à la ligne */
}

.alert-error{ background:#ffe6e6;color:red; padding:12px; border-radius:10px; margin-bottom:12px; }
.alert-success{ background:#e9ffe6; padding:12px; border-radius:10px; margin-bottom:12px; }
.field-error{ color:#b00020; font-size:0.9rem; margin-top:6px; }


.magic-wand-logo {
    width: 24px;
    height: 24px;
    margin-left: 10px;
}

