/* 
==================================================
Fichier : assets/css/trouver-un-pro.css
But : Styles complets pour le module "Trouver un Pro"
      incluant les améliorations (animations, toasts, etc.)
==================================================
*/

/* ============================================= */
/*  1) VARIABLES GLOBALES (pour harmoniser)      */
/* ============================================= */
:root {
  --accent-color: #615eff;       /* Couleur accent (coeur, etc.) */
  --accent-hover: #ff746b;       /* Couleur accent au survol */
  --primary-bg: #ffffff;         /* Fond principal des cartes, modales… */
  --secondary-bg: #f5f7fa;       /* Fond gris clair */
  --text-color: #333;            /* Couleur de texte principale */
  --subtext-color: #777;         /* Couleur de sous-texte */
  --border-color: #ddd;          /* Couleur de bordure légère */
  --radius: 8px;                 /* Rayon standard pour arrondis */
  --transition-fast: 0.2s;       /* Durée de transition */
  --shadow-light: 0 2px 6px rgba(0,0,0,0.08);
  --shadow-medium: 0 4px 12px rgba(0,0,0,0.1);
  --toast-duration: 3s;          /* Durée d’affichage du toast */
}

/* ===================================================== */
/*  2) STRUCTURE GLOBALE / REINITIALISATION QUICK        */
/* ===================================================== */
body {
  margin: 0;
  padding: 0;
  background: var(--secondary-bg);
  color: var(--text-color);
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

button, select, input {
  font-family: inherit;
  font-size: 14px;
}

/* Juste pour s’assurer que les images ne débordent pas */
img {
  max-width: 100%;
  display: block;
}

/* ============================================= */
/*  3) BOUTON AIRBNB FILTRE + AFFICHAGE LISTING  */
/* ============================================= */

/* Le conteneur #global-modal-container est souvent en position: fixed; 
   ou position: relative. On va tout gérer à l'intérieur. */

/* Overlay */
.filter-overlay {
  position: fixed; /* ou absolute si #global-modal-container est en fixed */
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none; 
  transition: opacity 0.3s ease;
  z-index: 900;
}
.filter-overlay.show-overlay {
  opacity: 1;
  pointer-events: auto; /* cliquable */
}

/* Drawer (panneau latéral) */
.filter-drawer {
  position: fixed; /* ou absolute => selon votre setup */
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 6px rgba(0,0,0,0.2);
  transform: translateX(100%); /* caché à droite */
  transition: transform 0.3s ease;
  z-index: 999;
  display: flex;
  flex-direction: column;
}
.filter-drawer.show-drawer {
  transform: translateX(0%); /* slide in */
}

/* Header du drawer */
.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f8fa;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}
.filter-drawer-header h2 {
  margin: 0;
  font-size: 1.2rem;
}
.filter-drawer-header h2 span {
  font-weight: 400;
  color: #888;
}
.close-filter {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
}

/* Corps du drawer */
.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

/* Sections de formulaire */
.filter-section {
  margin-bottom: 1.2rem;
}
.filter-section label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.filter-section input[type="text"],
.filter-section input[type="number"],
.filter-section select {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem;
}
.filter-section i.fa {
  margin-right: 4px;
  color: #666;
}

/* Triple fields (Région, Dept, Ville) */
.triple-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

/* Range fields (Prix min, Prix max) */
.range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Footer du drawer */
.filter-drawer-footer {
  border-top: 1px solid #eee;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
}
.btn-link {
  background: none;
  border: none;
  color: #666;
  text-decoration: underline;
  cursor: pointer;
}
.btn-primary {
  background: #ff5a5f; /* Couleur Airbnb-ish */
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover {
  background: #ff7a7f;
}


/*----------------------------------------------------

/* Conteneur listing sous forme de grille responsive */
#trouverUnProListingContainer {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
 
}

/* Bouton Charger Plus */
#loadMorePrestatairesBtn {
  display: block;
  margin: 0 auto 24px;
  padding: 8px 16px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: background var(--transition-fast);
  margin-top: 15px;
}
#loadMorePrestatairesBtn:hover {
  background-color: var(--accent-hover);
}

/* ============================================= */
/*  4) CARTE PRESTATAIRE                         */
/* ============================================= */
.provider-card {
  background: var(--primary-bg);
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid #f3f3f3;
  box-shadow: var(--shadow-light);
  display: flex
;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  max-width: 480px;
  /* margin: 30px 0px 30px 0px; */
}

.provider-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* ---------- Cover Photo + logo overlap ---------- */
.cover-photo {
  position: relative;
  width: 100%;
  height: 180px; /* Hauteur augmentée pour plus de présence visuelle */
  background-size: cover;
  background-position: center center;
  background-color: #fffafa; /* Couleur fallback */
  transition: background-image 0.3s ease-in-out;
}

.logo-wrapper {
  position: absolute;
  bottom: -30px;
  left: 24px; /* plus d’espace à gauche qu’avant */
  width: 60px;
  height: 60px;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-light);
}

.logo-wrapper img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* ---------- Header de la carte ---------- */
.card-header {
  margin-top: 40px;           /* Laisser plus de place au logo overlap */
  padding: 16px 24px 0 24px;  /* Espacements latéraux plus généreux */
  position: relative;
}

.provider-name {
  margin: 0 0 8px 0;    /* Sépare le titre du sous-titre */
  font-size: 20px;      /* Légèrement plus grand */
  font-weight: 700;
  color: var(--text-color);
}

.category-city {
  margin: 0;            /* Sera espacé du nom via margin-bottom du provider-name */
  font-size: 14px;
  color: var(--subtext-color);
}

/* Wishlist Button */
.wishlist-btn {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 22px;
  color: var(--subtext-color);
  transition: transform 0.3s, color 0.3s;
}
.wishlist-btn:hover {
  transform: scale(1.2);
  color: var(--accent-hover); /* Unifié avec la couleur de survol générale */
}
/* Quand le prestataire est en favoris => .favorited 
   => on garde la couleur de survol (accent-hover) */
.wishlist-btn.favorited i {
  color: var(--accent-hover);
}

/* Animation "pop" au clic */
.wishlist-animate {
  animation: wishlist-pop 0.5s ease-in-out;
}
@keyframes wishlist-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Lien vers le site web */
.website-link {
  font-size: 13px;
  color: var(--accent-color);
  text-decoration: none;
  margin-top: 4px;
  display: inline-block;
}
.website-link:hover {
  text-decoration: underline;
}

/* ---------- Body de la carte ---------- */
.card-body {
  padding: 2px 24px; /* Plus généreux qu’auparavant */
}

.main-title {
  margin: 16px 0 8px 0; /* Meilleur espacement pour aérer l’accroche */
  color: #4a8920;
  font-size: 16px;
  font-weight: 600;
}

.description {
  margin: 0 0 16px 0;       /* Plus d’espace en bas */
  font-size: 14px;
  color: #444;
  line-height: 1.4;         /* Améliore la lisibilité */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-icons {
  display: flex;
  align-items: center;
  gap: 8px; 
  margin-bottom: 16px;      /* Plus d’espace en bas */
}

.icon {
  display: inline-flex;
  align-items: center;
  color: #615eff;
  text-decoration: none;
  font-size: 16px; 
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.icon:hover {
  color: #ff746b;
  transform: scale(1.1);
}

/* Si afficher_icone() renvoie un SVG, ajuster au besoin */
.icon svg {
  width: 20px;
  height: 20px;
}

/* Optionnel : si vous voulez cibler le path du SVG directement */
.icon svg path {
  fill: currentColor;
}

.phone-number {
  margin-left: auto;
  font-weight: bold;
  color: var(--text-color);
  font-size: 14px;
}

/* ---------- Footer de la carte ---------- */
.card-footer {
  padding: 8px 24px 24px 24px; /* Plus d’air en bas de la carte */
  display: flex;
  flex-direction: column;
  gap: 12px; /* Espace vertical entre éléments du footer */
}

/* ============================= */
/*        BARRE DE REACTIONS     */
/* ============================= */
.reactions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Tu peux ajouter un fond léger ou un border si tu veux le détacher visuellement */
}

/* Boutons (like, share, voir qui a voté) */
.like-btn, .share-btn, .view-reactions-btn {
  background: none;
  border: none;
  color: var(--subtext-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  position: relative;   /* Utile si on veut un effet confetti local */
  transition: 
    color var(--transition-fast), 
    transform var(--transition-fast);
}
.like-btn:hover,
.share-btn:hover,
.view-reactions-btn:hover {
  color: var(--text-color);
  transform: scale(1.08); /* Légère mise en avant au survol */
}

/* Animation "like-pop" (un peu modifiée) */
.like-animate {
  animation: like-pop 0.6s ease-in-out;
}

@keyframes like-pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  50%  { transform: scale(0.9); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}


/* ================================ */
/*   EXEMPLE : EFFET CONFETTI CSS   */
/* ================================ */
/* Idée : quand on clique sur like, on ajoute temporairement la classe .confetti-active 
   (via JS), qui fait apparaître de petits "pseudos-éléments" colorés 
*/
.confetti-active::after,
.confetti-active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color); /* Couleur confetti 1 */
  opacity: 1;
  animation: confetti-burst 0.8s ease-out forwards;
}

/* On peut dupliquer l’effet avec d’autres pseudos-éléments, ou un ::before coloré différemment. */
.like-btn.confetti-active::before {
  background: var(--accent-hover); /* Couleur confetti 2 */
  transform: translate(-50%, -50%) rotate(45deg);
}

@keyframes confetti-burst {
  0% { 
    transform: translate(-50%, -50%) scale(1); 
    opacity: 1; 
  }
  50% {
    opacity: 1; 
  }
  100% {
    transform: translate(-200%, -200%) scale(0.5);
    opacity: 0;
  }
}

/* ============================= */
/*   LE COMPTEUR DE REACTIONS    */
/* ============================= */
.reactions-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #444;
  position: relative;
}
.reactions-count .emojis {
  font-size: 16px;
  display: inline-flex;
  gap: 4px;
  /* Au survol, on peut faire "wobble" les émojis */
  transition: transform 0.2s;
}
.reactions-count .emojis:hover {
  transform: rotate(3deg) scale(1.1);
}

/* Quand le compteur s’incrémente, on peut flasher la couleur */
.update-animate {
  animation: counter-flash 0.4s ease-in-out;
}
@keyframes counter-flash {
  0%   { color: var(--accent-color); transform: scale(1.4); }
  100% { color: inherit; transform: scale(1); }
}

/* ============================================= */
/*  6) BOUTON "VOIR DETAILS"                     */
/* ============================================= */
.button-details {
  display: inline-block;
  margin: 0 16px 16px 16px;
  padding: 8px 16px;
  background-color: #f8f7f7;
  border-radius: 20px;
  color: #717171;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.button-details:hover {
  background-color: #615eff;
  transform: translateY(-2px);
  color: #fff;
}

/* ============================================= */
/*  7) BARRE DE PROMO                            */
/* ============================================= */
.promo-bar {
  background-color: #fff1f1;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  box-shadow: inset 0 0 4px rgba(0,0,0,0.05);
}
.promo-badge {
  background-color: var(--accent-color);
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 13px;
}
.promo-discount {
  font-size: 16px;
  font-weight: bold;
  margin-left: 8px;
  color: var(--accent-color);
}
.promo-remaining {
  margin-left: auto;
  margin-right: 8px;
  color: #555;
  font-size: 14px;
}
.promo-details {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 16px;
}
.promo-details:hover {
  text-decoration: underline;
}


/* ============================================= */
/*  9) POPUP DE RÉACTIONS (version fun)          */
/* ============================================= */
#reactionPopup.reaction-popup {
  position: absolute;
  display: none;
  z-index: 10000;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  padding: 8px 12px;
  /* On retire la transition pour laisser la place aux @keyframes */
  transition: none; 
  /* Petite réduction initiale : l'animation va partir de là */
  transform: scale(0.8);
  opacity: 0;
}
#reactionPopup.reaction-popup.open {
  opacity: 1;
  transform: scale(1);
}
/* Quand la popup s'ouvre, on lance la keyframe de "pop" */
#reactionPopup.reaction-popup.open {
  animation: popupEnter 0.4s ease forwards;
}

/* Les boutons de réaction */
.reaction-btn {
  background: none;
  border: none;
  font-size: 22px;
  margin: 0 4px;
  cursor: pointer;
  /* Pour un effet "rebond" au survol */
  transition: transform 0.2s ease;
}
.reaction-btn:hover {
  transform: translateY(-4px) scale(1.3) rotate(-5deg);
}

.reaction-popup .reaction-btn {
  font-size: 22px;
  background: none;
  border: none;
  margin: 0 6px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.reaction-popup .reaction-btn:hover {
  transform: scale(1.3) translateY(-3px) rotate(-5deg);
}

/* Les boutons emoji */
.reaction-popup .reaction-btn {
  font-size: 22px;
  background: none;
  border: none;
  margin: 0 4px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

/* Au survol, on déclenche une animation keyframes "fun-bounce" */
.reaction-popup .reaction-btn:hover {
  animation: fun-bounce 0.5s ease forwards;
}

/* Définition de l'animation bounce */
@keyframes fun-bounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.3) rotate(-10deg); }
  50%  { transform: scale(0.9) rotate(8deg);  }
  70%  { transform: scale(1.2) rotate(-5deg); }
  100% { transform: scale(1)   rotate(0deg);   }
}





/* ============================================= */
/* 10) EFFETS "LAZY" sur images                  */
/* ============================================= */
/* Les images avec classe .lazy sont floutées ou 
   autrement stylées avant d'être chargées */
.lazy {
  filter: blur(3px);
  transition: filter 0.2s ease;
}
.lazy:not([data-src]) {
  filter: none; /* si pas data-src, pas de blur */
}

/* ============================================= */
/* 11) TOAST DE FEEDBACK                         */
/* ============================================= */
/* Container en position fixe dans le coin */
#toast-container {
  position: fixed;
  top: 20px; 
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 99999;
}

.toast {
  padding: 10px 16px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow-light);
  animation: toast-in 0.3s ease;
}
@keyframes toast-in {
  0% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.toast.hide {
  animation: toast-out 0.3s ease forwards; 
}
@keyframes toast-out {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-20px); }
}

/* Couleurs par type */
.toast-info {
  background-color: #2196f3; /* Bleu info */
}
.toast-success {
  background-color: #4caf50; /* Vert success */
}
.toast-error {
  background-color: #f44336; /* Rouge error */
}

/* ============================================= */
/* FIN DU FICHIER CSS                            */
/* ============================================= */


.promo-cta {
  margin-left: 8px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.promo-cta:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}
/* ============================================= */
/* Effet fly wishlist                          */
/* ============================================= */
.fly-anim {
  pointer-events: none;
  opacity: 1;
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}
.fa-heart.in-wishlist {
  color: red;
}


/* =============================
   1) Conteneur principal
   ============================= */
   .mini-wishlist-sidebar {
    position: fixed;  /* fixée sur le côté droit */
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    /* On peut l’animer à l’ouverture/fermeture (ex. transition transform) */
    transform: translateX(0);
    transition: transform 0.3s ease;
  }
  
  /* Exemple : si tu veux la masquer en position fermée :
  .mini-wishlist-sidebar.closed {
    transform: translateX(100%);
  } */
  
  /* =============================
     2) Header de la sidebar
     ============================= */
  .mini-wishlist-sidebar .wishlist-sidebar-header {
    background: linear-gradient(90deg, #ffaa80, #ff746b);
    color: #fff;
    color: #fff;
    padding: 16px;
    position: relative;
    margin-top: 10px;
    border-radius: 10px 10px 0px 0px;
  }
  .mini-wishlist-sidebar .wishlist-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    color: #ffffff;
  }
  .mini-wishlist-sidebar .wishlist-sidebar-header .close-wishlist-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 16px;
    cursor: pointer;
  }
  .mini-wishlist-sidebar .wishlist-sidebar-header .close-wishlist-btn:hover {
    opacity: 0.8;
  }
  
  /* =============================
     3) Body (liste des items)
     ============================= */
  .mini-wishlist-sidebar .wishlist-sidebar-body {
    flex: 1;
    overflow-y: auto; /* scroll si trop d’items */
    padding: 12px;
    background: #fafafa;
  }
  
  /* =============================
     4) Style des items
     ============================= */
  .mini-wishlist-sidebar .wishlist-item {
    background: #ffffff;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
  }
  .mini-wishlist-sidebar .wishlist-item:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  }
  
  .mini-wishlist-sidebar .wishlist-item-logo img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid #ff9671; /* petit cercle coloré */
  }
  
  .mini-wishlist-sidebar .wishlist-item-infos {
    flex: 1;
  }
  
  .mini-wishlist-sidebar .wishlist-item-infos h4.wishlist-item-nom {
    font-size: 16px;
    margin: 0 0 4px 0;
    color: #333;
  }
  .mini-wishlist-sidebar .wishlist-item-infos p.wishlist-item-details {
    margin: 0;
    font-size: 14px;
    color: #666;
  }
  
  /* =============================
     5) Footer
     ============================= */
  .mini-wishlist-sidebar .wishlist-sidebar-footer {
    padding: 10px 16px;
    background: #f5f5f5;
    text-align: center;
    border-top: 1px solid #eee;
  }
  .mini-wishlist-sidebar .wishlist-sidebar-footer .btn-pdf {
    background: #ff6f91;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .mini-wishlist-sidebar .wishlist-sidebar-footer .btn-pdf:hover {
    background: #ff5679;
  }
  
  /* =============================
     6) Scrollbar perso (optionnel)
     ============================= */
  .mini-wishlist-sidebar .wishlist-sidebar-body::-webkit-scrollbar {
    width: 6px;
  }
  .mini-wishlist-sidebar .wishlist-sidebar-body::-webkit-scrollbar-track {
    background: #f0f0f0;
  }
  .mini-wishlist-sidebar .wishlist-sidebar-body::-webkit-scrollbar-thumb {
    background: #ff9671;
    border-radius: 3px;
  }
  
  /* ---------------------------
       RESET & VARIABLES
       --------------------------- */
       * {
        margin: 0; padding: 0;
        box-sizing: border-box;
      }
      :root {
        --accent-color: #ff5a5f;   /* Exemple style Airbnb */
        --accent-hover: #ff7b80;   /* Hover plus clair */
        --subtext-color: #333;
        --border-color: #ddd;
        --radius: 6px;
        --transition-duration: 0.4s;
      }
      body {
        font-family: "Helvetica Neue", Arial, sans-serif;
        color: var(--subtext-color);
        padding: 1rem;
      }
  
      /* ---------------------------
         BOUTON D’OUVERTURE (DEMO)
         --------------------------- */
      #openFilterModalBtn {
        background: #f7f8ff;
        color: #615eff;
        border: 1px solid #615eff30;
        padding: 0.6rem 1.2rem;
        border-radius: 8px;
        font-weight: 600;
        cursor: pointer;
        margin: 30px 15px 15px 15px;
        width: 95%;
        transition: background-color 0.3s ease;
      }
      #openFilterModalBtn:hover {
        background-color: var(--accent-hover);
        color:#fff;
      }
  
/* ============================================= */
/*  8) MODALE FILTRE & MODALE PROFIL             */
/* ============================================= */


      /* ---------------------------
         DRAWER LATÉRAL
         --------------------------- */
      .filter-drawer {
        position: absolute;
        top: 0; 
        right: 0;
        width: 400px;            /* largeurs variables possibles */
        max-width: 90%;          /* sur mobile, on s’adapte */
        height: 100%;
        background: #fff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.2);
        transform: translateX(100%);  
        transition: transform var(--transition-duration) ease-in-out;
        display: flex;
        flex-direction: column;
        z-index: 1001;
      }
      .filter-drawer.show {
        transform: translateX(0);
      }
  
      /* ------ HEADER DU DRAWER ------ */
      .filter-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: #f6f8fa;
        border-bottom: 1px solid #eee;
      }
      .filter-drawer-header h2 {
        margin: 0;
        font-size: 1.2rem;
        color: var(--subtext-color);
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }
      .filter-drawer-header h2 i {
        color: var(--accent-color);
        font-size: 1.2rem;
      }
      
      /* ------ BODY DU DRAWER ------ */
      .filter-drawer-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem;
      }
      .filter-section {
        margin-bottom: 1.5rem;
      }
      .filter-section label {
        font-weight: 600;
        display: block;
        margin-bottom: 0.4rem;
        color: #444;
      }
      .filter-section input[type="text"],
      .filter-section input[type="number"],
      .filter-section select {
        width: 100%;
        padding: 0.55rem 0.7rem;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        font-size: 0.95rem;
        outline: none;
        transition: border-color 0.3s ease;
      }
      .filter-section input:focus,
      .filter-section select:focus {
        border-color: var(--accent-color);
      }
  
      /* Arrangement en grilles pour certains champs */
      .multi-fields {
        display: grid;
        gap: 0.8rem;
      }
      @media (min-width: 500px) {
        .multi-fields-3 {
          grid-template-columns: 1fr 1fr 1fr;
        }
        .multi-fields-2 {
          grid-template-columns: 1fr 1fr;
        }
        #openFilterModalBtn {
          margin: 35px 15px 15px 15px;
      }
      }
      
      /* Icône dans le label */
      .with-icon label i {
        margin-right: 0.4rem;
        color: #666;
      }
  
      /* ------ FOOTER DU DRAWER ------ */
      .filter-drawer-footer {
        border-top: 1px solid #eee;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        background-color: #f6f8fa;
      }
      .filter-drawer-footer button {
        cursor: pointer;
        font-size: 0.95rem;
        padding: 0.6rem 1.2rem;
        border-radius: 4px;
        border: none;
        transition: background-color 0.2s ease;
      }
      .btn-reset {
        background: none;
        color: #555;
        border: 1px solid transparent;
      }
      .btn-reset:hover {
        text-decoration: underline;
      }
      .btn-apply {
        background: var(--accent-color);
        color: #fff;
        font-weight: bold;
      }
      .btn-apply:hover {
        background: var(--accent-hover);
      }
  
      /* ------ BOUTON FERMETURE (petite croix) ------ */
      .filter-close-btn {
        background: none;
        border: none;
        font-size: 1.2rem;
        color: #888;
        cursor: pointer;
        transition: color 0.2s ease;
      }
      .filter-close-btn:hover {
        color: var(--accent-color);
      }
      
      /* Masque le scrollbar sur WebKit (optionnel) */
      .filter-drawer-body::-webkit-scrollbar {
        width: 6px;
      }
      .filter-drawer-body::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 3px;
      }

      /* ———————— BLOC CONSEILS ———————— */

