@import url("https://fonts.googleapis.com/css?family=Montserrat:400,400i,700|Poppins:400,500,600,700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Quicksand:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --background-color: #f1f1f1;
  --text-color: #000000;
  --titre-color: #6c757d;
  --primary-color: #ab9ff2;
  --secondary-color: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --input-background: #f9f9f9;
  --accent-color: #2575fc;
  --success-color: #60d394;
  --error-color: #ee6055;
  --jaune-color: #ffd97d;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* refonte du 17/8 A refaire en dur car trop de bootstrap en conflit*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  padding-top: 80px;
  background-color: #f1f1f1;
  color: var(--text-color);
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
}

.comments {
  display: block;
  margin: 0 auto;
  max-width: 600px;
}

h1 {
  font-size: 0.3rem;
}

h1,
h2,
h3 {
  font-family: 'Quicksand', sans-serif;
  color: var(--titre-color);
}

/* HEADER MENU PROFIL */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(241, 241, 241, 0.024);
  color: var(--text-color);
  padding: 15px 0;
  box-shadow: var(--card-shadow);
  z-index: 1000;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--shadow-color);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

.header-content h1 {
  font-size: 1.8rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Modern Dropdowns */
.profile-dropdown,
.menu-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn,
.profile-btn,
.menu-btn {
  background: none;
  border: none !important;
  color: var(--text-color);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.dropdown-btn:hover {
  background-color: rgba(var(--primary-color), 0.1);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--secondary-color);
  min-width: 220px;
  box-shadow: var(--card-shadow);
  z-index: 1;
  text-decoration: none;
  border-radius: 12px;
  right: 0;
  padding: 12px 12px;
  transform-origin: top right;
  animation: fadeIn 0.2s ease-out;
  border: 1px solid var(--border-color);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-dropdown .dropdown-content {
  left: 0;
}

.dropdown.open .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--text-color);
  padding: 12px 20px;
  display: flex;
  text-decoration: none;
  align-items: center;
  transition: var(--transition);
  font-size: 0.95rem;
}

.dropdown-content a:hover {
  background-color: var(--border-color);
  border-radius: 8px;
  color: white;
}

.logout {
  border: 1px solid var(--error-color);
  color: var(--error-color);
  border-radius: 8px;
}

.logout i {
  color: var(--error-color);
  /*fill marche po*/
}

.pwa-btn {
  display: none;
  border: 1px solid #ab9ff2;
  color: #ab9ff2;
  padding: 10px 20px;
  border-radius: 12px;
  margin-top: 20px;
  cursor: pointer;
}

.dropdown-content i {
  margin-right: 12px;
  width: 20px;
  text-align: center;
}

/* Par défaut, le dropdown est masqué */
.profile-dropdown .dropdown-content,
.menu-dropdown .dropdown-content {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  z-index: 1000;
  right: 0;
}

/* au click mobile */
.profile-dropdown.open .dropdown-content,
.menu-dropdown.open .dropdown-content {
  display: block;
}

/* à l'hover sur pc */
.profile-dropdown:hover .dropdown-content,
.menu-dropdown:hover .dropdown-content {
  display: block;
}

.container {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0;
}

/* MENU GAUCHE PERSO */
.profile-picture-thumbnail {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  /*border: 2px solid #ab9ff2;*/
}

/* Style pour l'image dans le dropdown */
.profile-picture-small {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 8px;
  vertical-align: middle;
}


.profile-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}

/* Style pour aligner l'icône et le texte dans le dropdown */
.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-small {
  padding: 8px 15px;
  background-color: #ab9ff2;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-small:hover {
  background-color: #8a7bd9;
}

/* PAGES - Home = feed */
/* INPUT en bas */
.comment-post {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 10px 15px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  border-top: 1px solid #ddd;
  z-index: 9999;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reply-post {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reply-post textarea {
  flex: 1;
  resize: none;
  height: 50px;
  padding: 10px 15px;
  font-size: 14px;
  border-radius: 24px;
  border: 1px solid #ccc;
  background: #f9f9f9;
}

.file-post,
.btn-post {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.file-post:hover,
.btn-post:hover {
  background: var(--accent-color);
}

.file-post input {
  display: none;
}

/* Comment Form */
.comment-form {
  background: var(--secondary-color);
  padding: 25px;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.comment-form h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--titre-color);
}

.comment-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  resize: vertical;
  min-height: 120px;
  margin-bottom: 15px;
  font-family: 'Poppins', sans-serif;
  transition: var(--transition);
  background-color: var(--input-background);
}

.comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

.comment-form button {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comment-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-color), 0.2);
}

.comment-form button i {
  margin-right: 8px;
}

.comments-section {
  background: transparent;
  padding: 25px;
  gap: 20px;
}

.comments-section h2 {
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--titre-color);
}

.comment {
  margin-top: 20px;
  padding: 20px 20px;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  border-radius: 12px;
  transition: var(--transition);
}

.comment:hover {
  transform: translateY(-2px);
}

.comment:last-child {
  border-bottom: none;
  border-top: 1px dashed rgba(155, 156, 156);
}

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

.comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  border: 2px solid #ab9ff2;
}

.default-avatar {
  background: #ab9ff2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2em;
}

.comment-author {
  display: flex;
  flex-direction: column;
}

.comment-date {
  font-size: 0.8em;
  color: #666;
}

.comment-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-picture-comment {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ab9ff2;
}

.comment-icon {
  font-size: 40px;
  color: #ab9ff2;
}

.comment-username {
  margin: 0;
  font-weight: bold;
  color: #333;
}

.comment-content {
  margin-left: 50px;
  padding: 10px;
  background: white;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* PAGES - HOME média partagé */
.img-partage,
.videomp4 {
  max-width: 200px !important;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  /* revenue à comment img car conflit à trouver!!!*/
}

/* Conteneur parent critique */
.comment {
  position: relative;
  overflow: hidden;
  /* Contient les floats NUL C EST FAUX */
}

@media (max-width: 768px) {
  .comment {
    padding: 15px !important;
    position: relative;
    overflow: hidden;
  }
}

/* Reset des styles conflictuels */
.comment img,
.comment video {
  margin: 0 auto !important;
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px;
}


.owner-link {
  text-decoration: none;
  color: var(--primary-color);
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
}

.like-btn,
.like-btn i {
  background: none;
  border: none;
  color: var(--titre-color);
  cursor: pointer;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  text-decoration: none;
}

.like-btn:hover {
  opacity: 0.8;
}

.like-btn.liked {
  color: var(--error-color);
  animation: pop 0.3s ease;
}

.like-btn.liked i {
  color: var(--error-color);
}

@keyframes pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.3);
  }

  100% {
    transform: scale(1);
  }
}


/* Effet de cœur qui s'envole */
.floating-heart {
  font-size: 4rem;
  color: var(--error-color);
  animation: floatHeart 1s ease forwards;
  pointer-events: none;
  z-index: 999;
}

@keyframes floatHeart {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-40px) scale(6);
  }
}

@media (max-width: 600px) {
  .floating-heart {
    font-size: 3rem;
  }
}


/* Styles pour les réponses aux commentaires */
.reply-form {
  margin-top: 10px;
  padding: 10px;
  background-color: var(--background-color);
  border-radius: 8px;
}

.reply-form textarea {
  width: 100%;
  min-height: 30px;
  padding: 8px;
  border-radius: 8px;
  resize: vertical;
  font-family: inherit;
  font-size: 14px;
  margin-bottom: 8px;
  border: none;
  background-color: var(--background-color);
}

.reply-form .file-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px 12px;
  background-color: var(--background-color);
  color: var(--primary-color);
  border-radius: 6px;
  font-size: 12px;
  margin-right: 10px;
  transition: background-color 0.2s;
}

.reply-form .file-label:hover {
  background-color: #ddd;
  transform: translateY(-2px);
}

.reply-form input[type="file"] {
  display: none;
}

.reply-form .btn-reply {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
}

.reply-form .btn-reply:hover {
  background-color: var(--accent-color);
}

@media (max-width: 768px) {
  body {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .header-content {
    padding: 0 15px;
  }
}

/* fin de la refonte du 7/8 */



/* PAGE - UPLOAD cadenas pour upload public*/
.lock-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.lock-toggle i {
  font-size: 1.2rem;
  width: 20px;
  transition: all 0.3s ease;
}

/* Quand cochée (public) */
.lock-toggle input:checked+i {
  color: var(--success-color);
}

.lock-toggle input:checked+i::before {
  content: "\f09c";
  /* Icône ouverte */
}

/* Quand décochée (privé) */
.lock-toggle input:not(:checked)+i::before {
  content: "\f023";
  /* Icône fermée */
}

/* Texte dynamique */
.lock-toggle input:checked~.status-text::after {
  content: "public";
}

.lock-toggle input:not(:checked)~.status-text::after {
  content: "privé";
}

.text-success {
  color: var(--success-color);
}

.text-secondary {
  color: #6c757d;
}

/* Modern Auth Forms */
.auth-container {
  max-width: 500px;
  margin: 60px auto;
  padding: 40px;
  background: var(--secondary-color);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.auth-container h2 {
  margin-bottom: 25px;
  text-align: center;
  font-size: 1.8rem;
  color: var(--titre-color);
  position: relative;
}

.auth-container h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  margin: 10px auto 0;
  border-radius: 2px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--titre-color);
}

.form-group input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  background-color: var(--input-background);
  transition: var(--transition);
}

input {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  background-color: var(--input-background);
  transition: var(--transition);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color), 0.1);
}

.auth-container button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 15px;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
}

.auth-container button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-color), 0.2);
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.auth-links a {
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.auth-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Modern Alerts */
.alert {
  padding: 15px;
  margin-bottom: 25px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.alert-danger {
  background-color: rgba(var(--error-color), 0.1);
  color: var(--error-color);
  border-left: 4px solid var(--error-color);
}

.alert-success {
  background-color: rgba(var(--success-color), 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

/* Profile Page USER*/
.profile-picture-container {
  margin-bottom: 20px;
  text-align: center;
}

.profile-picture {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ab9ff2;
  margin-bottom: 10px;
}

.profile-picture-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.profile-picture-link:hover {
  opacity: 0.8;
}

.profile-picture-form {
  margin-top: 10px;
}

.website-form {
  margin-top: 15px;
}

.website-form .form-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.website-form input {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* PAGE - profil STAT*/
.profile-stats {
  display: flex;
  gap: 5px;
  margin-top: 7px;
  margin-top: 2rem;
  padding: 1rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.profile-stats p {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  font-size: 0.7rem;
  font-weight: 300;
  color: #333;
  transition: transform 0.2s ease;
}

.profile-stats p:hover {
  transform: translateY(-3px);
}

.profile-stats i {
  font-size: 0.8rem;
  color: #0077cc;
  flex-shrink: 0;
}

.profile-container {
  max-width: 1000px;
  margin: 60px auto;
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.profile-header {
  text-align: center;
  margin-bottom: 30px;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 auto 15px;
}

.profile-info {
  margin-bottom: 30px;
}

.profile-info-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.profile-info-item:last-child {
  border-bottom: none;
}

.profile-info-label {
  font-weight: 500;
  color: var(--titre-color);
}

.profile-info-value {
  font-weight: 400;
}

.profile-actions {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  border-radius: 12px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--primary-color), 0.2);
  color: white;
}

.btn i {
  margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .header-content {
    padding: 0 15px;
  }

  .container,
  .auth-container,
  .profile-container {
    margin: 20px 15px;
    padding: 25px;
  }

  .comment-form,
  .comments-section {
    padding: 20px;
  }
}

/* Animation for new comments */
@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.new-comment {
  animation: slideIn 0.4s ease-out;
}

/* gallery et public files */

.search-container {
  max-width: 800px;
  margin: 0 auto;
}

.file-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.file-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  background: white;
}

.file-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.upload-card {
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.upload-form {
  text-align: center;
  width: 100%;
}

.upload-label {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 16px;
  color: #6c757d;
  border: 1px dashed #3498db;
  background-color: rgba(52, 152, 219, 0.1);
  border-radius: 8px;
  padding: 10px 10px;
}

.img-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.upload-label i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #007bff;
}

#file-upload {
  display: none;

}

.file-icon {
  font-size: 40px;
  text-align: center;
  margin-bottom: 10px;
  color: #6c757d;
}

.file-icon .fa-file-csv {
  color: #28a745;
}

.file-icon .fa-file-excel {
  color: #217346;
}

.file-icon .fa-file-code {
  color: #ffc107;
}

.file-icon .fab.fa-google-drive {
  color: #4285F4;
}

.file-icon .fas.fa-database {
  color: #ab9ff2;
}

.file-info {
  flex-grow: 1;
}

.file-info h5 {
  font-size: 16px;
  margin-bottom: 5px;
  word-break: break-word;
}

.file-info small {
  display: block;
  color: #6c757d;
}

.file-type {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 5px;
}

.file-type.csv {
  background: #d4edda;
  border: 1px dashed #155724;
  color: #444
}

.file-type.excel {
  background: #d1e7dd;
  color: #0f5132;
}

.file-type.json {
  background: #fff3cd;
  color: #856404;
}

.file-type.googlesheet {
  background: #d1e3f6;
  color: #0c63e4;
}
.file-type.sql {
  background: #ab9ff2;
  color: #fff;
}

.file-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 15px;
  gap: 4px;
}

.file-actions a,
.file-actions i,
.file-actions button {
  width: 15px;
}


.file-types {
  margin: 10px 0;
}

.badge {
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
  margin-right: 5px;
}

.badge-csv {
  background: #d4edda;
  color: #155724;
}

.badge-excel {
  background: #d1e7dd;
  color: #0f5132;
}

.badge-json {
  background: #fff3cd;
  color: #856404;
}
.badge-sql {
  background: #fff3cd;
  color: var(--primary-color);
}
@media (max-width: 768px) {
  .file-gallery {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 480px) {
  .file-gallery {
    grid-template-columns: 1fr;
  }
}

.ui-autocomplete {
  position: absolute;
  z-index: 1000;
  cursor: default;
  padding: 0;
  margin-top: 2px;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.ui-autocomplete li {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.ui-autocomplete li:hover {
  background-color: #f5f5f5;
  cursor: pointer;
}

.ui-autocomplete li:last-child {
  border-bottom: none;
}

.file-meta p {
  margin-bottom: 5px;
}

.file-content {
  max-height: 600px;
  overflow: auto;
}

/* Style spécifique pour l'affichage des tarifs avec le template json */
.file-content {
  background-color: #f8f9fa;
  padding: 5px;
  border-radius: 4px;
  max-height: 1000px;
  overflow: auto;
}

.price-template {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.price-header {
  border-left: 4px solid #3498db;
}

.json-display {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 4px;
  max-height: 1000px;
  overflow: auto;
}

.table-responsive {
  max-height: 1000px;
  overflow-y: auto;
}

thead th {
  position: sticky;
  top: 0;
  background-color: #343a40 !important;
  color: white;
  padding: 5px 5px;
  width: auto;
  overflow: auto;

}

.text-right {
  text-align: right;

}

.table-hover tbody tr:hover {
  background-color: var(--primary-color);
  color: var(--background-color);
  transition: background-color 0.3s ease;
}

tbody td {
  background-color: var(--primary-color);
  color: var(--background-color);
  border-bottom: 1px solid grey;
  padding: 5px 5px;
}

.column-selectors {
  max-width: 800px;
}

.column-selectors select {
  min-width: 200px;
}

/* traduction */
html[lang="ar"] {
  direction: rtl;
  text-align: right;
}