/* Effet de lueur sur les cartes */
.glass-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 40px -10px rgba(6, 182, 212, 0.2);
}

/* Désactive le fond blanc de l'autofill sur Chrome, Edge et autres */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #fff !important;
    background-color: transparent !important;
    transition: background-color 9999s ease-in-out 0s;
}


/* 1. FIXER LA FLÈCHE (Centrage et style) */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important; /* Force la zone de la flèche à prendre toute la hauteur */
    top: 0 !important;
    right: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Remplacer l'icône par défaut par ta flèche blanche personnalisée */
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: none !important; /* Supprime le triangle moche par défaut */
    width: 12px !important;
    height: 12px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' fill-opacity='0.8' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    margin: 0 !important;
    position: static !important; /* Sort de la position absolue de Select2 */
}

/* 2. FIXER L'OPTION SÉLECTIONNÉE (Enlever le fond blanc) */
/* On remplace le blanc par un fond sombre avec une bordure ou un texte de couleur accent */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(6, 182, 212, 0.1) !important; /* Fond bleu très léger */
    color: #06b6d4 !important; /* Texte Cyan */
}

/* Option au survol quand elle est déjà sélectionnée */
.select2-container--default .select2-results__option--highlighted[aria-selected=true] {
    background-color: #06b6d4 !important; /* Fond plein au survol */
    color: #020617 !important; /* Texte noir au survol */
}

/* Ajustement pour que le texte sélectionné dans la barre soit bien blanc */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 50px !important; /* Aligne verticalement le texte avec la hauteur du select */
    color: white !important;
}


/* Style global de la boîte de sélection */
.select2-container--default .select2-selection--single {
    background-color: #020617 !important;
    /* brand-dark */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0.75rem !important;
    height: 50px !important;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: white !important;
    padding-left: 1rem !important;
}

/* Le menu déroulant (Dropdown) */
.select2-dropdown {
    background-color: #0f172a !important;
    /* slate-900 */
    border: 1px solid rgba(6, 182, 212, 0.3) !important;
    /* brand-accent border */
    border-radius: 0.75rem !important;
    overflow: hidden;
}

/* L'OPTION AU SURVOL (Highlight) - C'est ici que la magie opère */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #06b6d4 !important;
    /* TA COULEUR ACCENT */
    color: #020617 !important;
    /* Texte sombre pour lisibilité */
}

/* L'option déjà sélectionnée dans la liste */
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: rgba(6, 182, 212, 0.1) !important;
    color: #06b6d4 !important;
}

/* RESET TOTAL DES OPTIONS (anti fond blanc) */
.select2-container--default .select2-results__option {
    background-color: transparent !important;
    color: #cbd5e1 !important;
}

/* OPTION SÉLECTIONNÉE (TOUJOURS, MÊME SANS HOVER) */
.select2-container--default 
.select2-results__option[aria-selected="true"] {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #06b6d4 !important;
}

/* OPTION SÉLECTIONNÉE MAIS PAS SURVOLÉE */
.select2-container--default 
.select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #06b6d4 !important;
}

/* OPTION AU SURVOL */
.select2-container--default 
.select2-results__option--highlighted {
    background-color: #06b6d4 !important;
    color: #020617 !important;
}

/* FIX BLANC : FOCUS / ACTIVE */
.select2-container--default 
.select2-results__option:focus,
.select2-container--default 
.select2-results__option:active {
    background-color: rgba(6, 182, 212, 0.15) !important;
    color: #06b6d4 !important;
}


/* Custom Checkbox */


.custom-checkbox {
  position: relative;
  padding-left: 30px;
  /* espace pour la checkbox */
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  /* text-sm */
  color: #ffffff;
}

/* Cache la checkbox réelle */
.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 18px;
  width: 18px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 1;
}

/* La case personnalisée */
.custom-checkbox .checkmark {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 18px;
  width: 18px;
  background-color: none;
  border: 2px solid #06b6d4;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Le tick qui apparaît quand la checkbox est cochée */
.custom-checkbox .checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #020617;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  color: #3567f3;
}

/* Quand la checkbox est cochée, change la couleur de fond */
.custom-checkbox input[type="checkbox"]:checked~.checkmark {
  background-color: #06b6d4;
}

/* Affiche le "tick" */
.custom-checkbox input[type="checkbox"]:checked~.checkmark:after {
  display: block;
}

@keyframes like-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

.like-animate {
  animation: like-pop 0.35s ease;
}

#scroll-container::-webkit-scrollbar {
    height: 5px;
}

#scroll-container::-webkit-scrollbar-track {
    background: transparent;
}

#scroll-container::-webkit-scrollbar-thumb {
    background-color: #06b6d4;
    border-radius: 999px;
}

#scroll-container::-webkit-scrollbar-thumb:hover {
    background-color: #06b6d4;
}

#scroll-container {
    scrollbar-width: thin;
    scrollbar-color: #06b6d4 transparent;
}