/*TIMEO FIX: Remove padding right in user name in directory*/
.directory #members-directory-form .card:not(.term__card) .entry-header {
  padding-right: 0px;
}

/*TIMEO FIX: Remove padding right in user name in directory*/
.directory #members-directory-form .card:not(.term__card) .entry-header {
  padding-right: 0px;
}

.shortcode-author-avatars .grimlock-author-avatars__author-list {
  width: 100% !important;
  display: flex !important;
}



/* ===========================================
   BP DOCS – CHAMP UPLOAD PDF (formulaire création/édition)
   =========================================== */

.bp-doc-pdf-upload-field {
  margin: 24px 0;
  padding: 20px 24px;
  background: #f8faff;
  border: 1px solid #d0d9f2;
  border-radius: 8px;
}

.bp-doc-pdf-upload-title {
  margin: 0 0 6px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #2d3748 !important;
  border: none !important;
  padding: 0 !important;
}

.bp-doc-pdf-upload-desc {
  margin: 0 0 14px !important;
  font-size: 13px !important;
  color: #6b7280 !important;
}

.bp-doc-pdf-upload-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.bp-doc-pdf-upload-controls .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bp-doc-pdf-filename {
  margin-top: 10px;
  font-size: 13px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bp-doc-pdf-filename .dashicons {
  color: #dc2626;
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 1;
}


/* ===========================================
   BP DOCS – VIEWER PDF INLINE (page du document)
   =========================================== */

.bp-doc-pdf-viewer {
  margin: 32px 0 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
  border: 1px solid #e5e7eb;
}

.bp-doc-pdf-viewer-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  font-size: 13px;
  font-weight: 600;
  color: #1d4ed8;
  letter-spacing: 0.02em;
  /* Empêcher le label de s'étirer trop */
  min-width: 0;
}

/* Titre du document : tronqué avec ... si trop long */
.bp-doc-pdf-viewer-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.bp-doc-pdf-viewer-label .dashicons {
  color: #dc2626;
  font-size: 20px;
  width: 20px;
  height: 20px;
  line-height: 1;
}

.bp-doc-pdf-viewer-container {
  position: relative;
  width: 100%;
  /* Hauteur fixe pour l'iframe – ajustez selon vos besoins */
  height: 800px;
  background: #f3f4f6;
}

.bp-doc-pdf-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* -----------------------------------------------
   RESPONSIVE PDF VIEWER – Basculement CSS pur
   Mobile  (≤0px) : iframe Google Docs Viewer (--mobile)
   Desktop (≥481px): iframe proxy local (--desktop)
   ----------------------------------------------- */

/* Par défaut : l'iframe mobile est cachée (mode desktop/souris) */
.bp-doc-pdf-iframe--mobile {
  display: none !important;
}

/* Par défaut : l'iframe desktop et son wrapper sont visibles */
.bp-doc-pdf-iframe--desktop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Overlay anti-clic-droit :
   pointer-events: none = laisse passer scroll et interactions,
   le clic-droit est bloqué via JS sur le wrapper (contextmenu event) */
.bp-doc-pdf-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: transparent;
  pointer-events: none;
}

/* Sur tablette/desktop : réduire la hauteur sur les petits écrans */
@media (max-width: 768px) and (pointer: fine) {
  .bp-doc-pdf-viewer-container {
    height: 500px;
  }
}

/* -----------------------------------------------
   APPAREILS TACTILES (mobiles + tablettes)
   Détection via pointer:coarse = écran tactile,
   fonctionne en portrait ET en paysage
   ----------------------------------------------- */
@media (pointer: coarse) {

  /* Container : hauteur adaptée */
  .bp-doc-pdf-viewer-container {
    height: 600px;
    background: #f3f4f6;
    padding: 0;
    display: block;
    position: relative;
  }

  /* Grandes tablettes : un peu plus haut */
  @media (min-width: 769px) {
    .bp-doc-pdf-viewer-container {
      height: 768px;
    }
  }

  /* Masquer l'iframe desktop et son overlay */
  .bp-doc-pdf-iframe--desktop,
  .bp-doc-pdf-protect-wrap,
  .bp-doc-pdf-overlay {
    display: none !important;
  }

  /* Afficher l'iframe Google Docs Viewer, plein écran dans le container */
  .bp-doc-pdf-iframe--mobile {
    display: block !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* Scroll fluide sur tactile */
    touch-action: pan-y;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* Sur desktop (pointer:fine = souris) : masquer le lien mobile legacy */
@media (pointer: fine) {
  .bp-doc-pdf-mobile-link {
    display: none !important;
  }
}

/* ===========================================
   BOUTON "LAISSER UN COMMENTAIRE" – FORMULAIRE WP
   Correction : texte blanc au survol, padding correct, largeur auto
   =========================================== */

/* Ciblage large du bouton submit du formulaire de commentaires */
.comment-form p.form-submit input[type="submit"],
.comment-form .form-submit input[type="submit"],
#commentform input[type="submit"],
.comment-respond input[type="submit"],
input[name="submit"][type="submit"] {
  /* Largeur automatique (ne pas s'étirer sur toute la ligne) */
  width: auto !important;
  display: inline-block !important;

  /* Padding équilibré pour bien centrer le texte */
  padding: 10px 24px !important;
  line-height: 1.4 !important;
  vertical-align: middle !important;

  /* Style de base (reprend le style du thème, override uniquement ce qui pose problème) */
  cursor: pointer !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
}

/* Survol : texte blanc */
.comment-form p.form-submit input[type="submit"]:hover,
.comment-form .form-submit input[type="submit"]:hover,
#commentform input[type="submit"]:hover,
.comment-respond input[type="submit"]:hover,
input[name="submit"][type="submit"]:hover {
  color: #ffffff !important;
}


/* ===========================================
   BOUTON "J'AIME" – WP ULIKE
   Correction : taille normale, icône/texte restent blancs au survol
   =========================================== */

/* Normaliser la taille du bouton J'aime */
.wp_ulike_btn,
.wp-ulike-btn,
button.wp_ulike.btn,
.wp_ulike_general_class .wp_ulike_btn,
.wp_ulike_general_class button.wp_ulike {
  /* Empêcher le bouton d'être excessivement grand */
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 6px 14px !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

/* Conserver la couleur blanche du texte/icône au survol et à l'état actif */
.wp_ulike_btn:hover,
.wp-ulike-btn:hover,
button.wp_ulike.btn:hover,
.wp_ulike_general_class .wp_ulike_btn:hover,
.wp_ulike_general_class button.wp_ulike:hover,
.wp_ulike_btn:focus,
.wp-ulike-btn:focus,
button.wp_ulike.btn:focus,
.wp_ulike_btn.wp_ulike_is_liked,
.wp-ulike-btn.wp_ulike_is_liked,
button.wp_ulike.btn.wp_ulike_is_liked {
  color: #ffffff !important;
}

/* Conserver la couleur blanche des icônes SVG/pseudo-éléments au survol */
.wp_ulike_btn:hover *,
.wp-ulike-btn:hover *,
button.wp_ulike.btn:hover *,
.wp_ulike_btn:hover::before,
.wp-ulike-btn:hover::before,
button.wp_ulike.btn:hover::before,
.wp_ulike_btn:hover svg,
.wp-ulike-btn:hover svg {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Image (avatar) dans le bouton : ne pas changer au survol */
.wp_ulike_btn:hover img,
.wp-ulike-btn:hover img,
.wp_ulike_general_class button:hover .wp_ulike_put_image {
  filter: none !important;
}






















/* ================================
   PAGE MAP - AFFICHER TOUS LES CHAMPS
   Afficher: Nom + Fonction + Agence + Adresse + Téléphone
================================ */

/* S'assurer que TOUS les champs sont visibles sur la MAP */
#members-dir-map .bp-member-xprofile-custom-field,
.members-dir-map-sidebar .bp-member-xprofile-custom-field,
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field {
  display: block !important;
  visibility: visible !important;
  margin: 5px 0 !important;
  line-height: 1.3 !important;
}

/* ================================
   STYLE SPÉCIFIQUE POUR LA PAGE MAP
   Saut de ligne entre les champs + mise en forme
================================ */

/* Nom d'agence sur la MAP avec la même couleur grise que l'adresse */
#members-dir-map .bp-member-xprofile-custom-field[class*="agence"],
#members-dir-map .bp-member-xprofile-custom-field[class*="Agence"],
.members-dir-map-sidebar .bp-member-xprofile-custom-field[class*="agence"],
.members-dir-map-sidebar .bp-member-xprofile-custom-field[class*="Agence"],
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field[class*="agence"],
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field[class*="Agence"] {
  color: #666 !important;
  font-size: 0.9em !important;
  margin-bottom: 5px !important;
}

/* Style pour la fonction sur la MAP */
#members-dir-map .bp-member-xprofile-custom-field[class*="Fonction"],
#members-dir-map .bp-member-xprofile-custom-field[class*="Président"],
#members-dir-map .bp-member-xprofile-custom-field[class*="vice-Président"],
.members-dir-map-sidebar .bp-member-xprofile-custom-field[class*="Fonction"],
.members-dir-map-sidebar .bp-member-xprofile-custom-field[class*="Président"],
.members-dir-map-sidebar .bp-member-xprofile-custom-field[class*="vice-Président"],
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field[class*="Fonction"],
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field[class*="Président"],
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field[class*="vice-Président"] {
  color: #222 !important;
  font-weight: 500 !important;
}

/* Style pour l'adresse sur la MAP */
#members-dir-map .bp-member-xprofile-custom-field[class*="Adresse"],
.members-dir-map-sidebar .bp-member-xprofile-custom-field[class*="Adresse"],
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field[class*="Adresse"] {
  color: #666 !important;
  font-size: 0.9em !important;
  margin-top: 5px !important;
}

/* Style pour le téléphone sur la MAP */
#members-dir-map .bp-member-xprofile-custom-field[class*="téléphone"],
#members-dir-map .bp-member-xprofile-custom-field[class*="Numéro"],
.members-dir-map-sidebar .bp-member-xprofile-custom-field[class*="téléphone"],
.members-dir-map-sidebar .bp-member-xprofile-custom-field[class*="Numéro"],
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field[class*="téléphone"],
.members-dir-map-sidebar__content .bp-member-xprofile-custom-field[class*="Numéro"] {
  color: #666 !important;
  font-size: 0.9em !important;
}

/* ================================
   STYLE POUR LA PAGE D'ACCUEIL
   Appliquer la couleur noir foncé au champ fonction
================================ */

/* Rendre le champ fonction plus foncé sur la page d'accueil */
.grimlock-author-avatars .bp-member-xprofile-custom-field[class*="Fonction"],
.grimlock-author-avatars .bp-member-xprofile-custom-field[class*="Président"],
.grimlock-author-avatars .bp-member-xprofile-custom-field[class*="vice-Président"],
.shortcode-author-avatars .bp-member-xprofile-custom-field[class*="Fonction"],
.shortcode-author-avatars .bp-member-xprofile-custom-field[class*="Président"],
.shortcode-author-avatars .bp-member-xprofile-custom-field[class*="vice-Président"],
.region_content .bp-member-xprofile-custom-field[class*="Fonction"],
.region_content .bp-member-xprofile-custom-field[class*="Président"],
.region_content .bp-member-xprofile-custom-field[class*="vice-Président"] {
  color: #222 !important;
  font-weight: 500 !important;
}

/* ================================
   STYLE POUR MEMBER DIRECTORY
   Appliquer la même couleur foncée aux fonctions
================================ */

/* Rendre le champ fonction plus foncé dans le member directory */
#members-dir-list .bp-member-xprofile-custom-field[class*="Fonction"],
#members-dir-list .bp-member-xprofile-custom-field[class*="Président"],
#members-dir-list .bp-member-xprofile-custom-field[class*="vice-Président"],
.members-directory .bp-member-xprofile-custom-field[class*="Fonction"],
.members-directory .bp-member-xprofile-custom-field[class*="Président"],
.members-directory .bp-member-xprofile-custom-field[class*="vice-Président"] {
  color: #222 !important;
  font-weight: 500 !important;
}

/* ================================
   RÈGLES D'AFFICHAGE PAR PAGE
================================ */

/* PAGE D'ACCUEIL - Cacher adresse + téléphone */
.grimlock-author-avatars .bp-member-xprofile-custom-field[class*="Adresse"],
.grimlock-author-avatars .bp-member-xprofile-custom-field[class*="téléphone"],
.grimlock-author-avatars .bp-member-xprofile-custom-field[class*="Numéro"],
.grimlock-author-avatars .bp-member-xprofile-custom-field.bp-member-Adresse,
.grimlock-author-avatars .bp-member-xprofile-custom-field.bp-member-Numéro {
  display: none !important;
}

/* Sélecteurs alternatifs pour la page d'accueil */
.shortcode-author-avatars .bp-member-xprofile-custom-field[class*="Adresse"],
.shortcode-author-avatars .bp-member-xprofile-custom-field[class*="téléphone"],
.shortcode-author-avatars .bp-member-xprofile-custom-field[class*="Numéro"],
.shortcode-author-avatars .bp-member-xprofile-custom-field.bp-member-Adresse,
.shortcode-author-avatars .bp-member-xprofile-custom-field.bp-member-Numéro {
  display: none !important;
}

/* Section "Nos membres actifs" */
.region_content .bp-member-xprofile-custom-field[class*="Adresse"],
.region_content .bp-member-xprofile-custom-field[class*="téléphone"],
.region_content .bp-member-xprofile-custom-field[class*="Numéro"],
.region_content .bp-member-xprofile-custom-field.bp-member-Adresse,
.region_content .bp-member-xprofile-custom-field.bp-member-Numéro {
  display: none !important;
}

/* MEMBERS DIRECTORY - Cacher adresse seulement */
#members-dir-list .bp-member-xprofile-custom-field[class*="Adresse"] {
  display: none !important;
}

/* Forcer l'affichage de l'agence sur toutes les pages */
.bp-member-xprofile-custom-field[class*="agence"],
.bp-member-xprofile-custom-field[class*="Agence"] {
  display: block !important;
  visibility: visible !important;
}

/* ================================
   MISE EN FORME GÉNÉRALE
   Mettre tous les champs sur une ligne avec petits espaces
================================ */

/* Mettre tous les champs de profil en ligne avec petits espaces (sauf sur la MAP) */
.bp-member-xprofile-custom-field {
  display: inline !important;
  margin-right: 15px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}

/* Pour les pages de profil spécifiquement */
.item-summary__meta .bp-member-xprofile-custom-field,
.profile .bp-member-xprofile-custom-field {
  display: inline !important;
  margin-right: 15px !important;
  margin-bottom: 0 !important;
  line-height: normal !important;
}

/* Supprimer les retours à la ligne forcés */
.bp-member-xprofile-custom-fields {
  display: inline-block !important;
  width: 100% !important;
}

/* ================================
   GESTION DES POINTS/PUCES
   Cacher sur toutes les pages SAUF les profils individuels
================================ */

/* Cacher les points sur TOUTES les pages par défaut */
.grimlock-author-avatars .bp-member-xprofile-custom-field::before,
.shortcode-author-avatars .bp-member-xprofile-custom-field::before,
.region_content .bp-member-xprofile-custom-field::before,
#members-dir-list .bp-member-xprofile-custom-field::before,
#members-dir-map .bp-member-xprofile-custom-field::before,
.members-dir-map-sidebar .bp-member-xprofile-custom-field::before {
  display: none !important;
  content: none !important;
}

/* Supprimer les list-style sur les pages autres que profil */
.grimlock-author-avatars .bp-member-xprofile-custom-field,
.shortcode-author-avatars .bp-member-xprofile-custom-field,
.region_content .bp-member-xprofile-custom-field,
#members-dir-list .bp-member-xprofile-custom-field,
#members-dir-map .bp-member-xprofile-custom-field,
.members-dir-map-sidebar .bp-member-xprofile-custom-field {
  list-style: none !important;
  list-style-type: none !important;
}

/* GARDER les points UNIQUEMENT sur les pages de profil individuel */
.single-member .bp-member-xprofile-custom-field,
.profile .bp-member-xprofile-custom-field,
.member-profile .bp-member-xprofile-custom-field,
.bp-user .bp-member-xprofile-custom-field,
body.single-member .bp-member-xprofile-custom-field {
  list-style: disc !important;
  list-style-type: disc !important;
  margin-left: 20px !important;
  padding-left: 0 !important;
  margin-bottom: 1px !important;
  line-height: 1.2 !important;
}

/* Supprimer la couleur grise du nom d'agence sur les profils (garder couleur normale) */

/* Forcer l'affichage des points sur les profils avec pseudo-éléments si nécessaire */
.single-member .bp-member-xprofile-custom-field::before,
.profile .bp-member-xprofile-custom-field::before,
.member-profile .bp-member-xprofile-custom-field::before,
.bp-user .bp-member-xprofile-custom-field::before,
body.single-member .bp-member-xprofile-custom-field::before {
  content: "• " !important;
  display: inline !important;
  color: #777 !important;
  margin-right: 8px !important;
  font-weight: normal !important;
  font-size: 0.8em !important;
}




/* map des membres

/* Solution 1 : Forcer une hauteur plus grande sur l'InfoWindow */
.members-map .gm-style .gm-style-iw-c {
  max-height: 400px !important;
  /* Augmenter la hauteur maximale */
  min-height: 250px !important;
  /* Définir une hauteur minimale */
}

.members-map .gm-style .gm-style-iw-c .gm-style-iw-d {
  max-height: 400px !important;
  /* Augmenter la hauteur du contenu scrollable */
  overflow-y: auto !important;
  /* Assurer le scroll vertical */
  overflow-x: hidden !important;
  /* Cacher le scroll horizontal */
}

/*les icones */



/* Icône téléphone - fonctionne partout 
a[href^="tel:"]::before {
    content: "📞 ";
    font-size: 16px;
    margin-right: 5px;
}

 Icône adresse - pour la liste (garde ce qui fonctionne) 
.bp-member-xprofile-custom-field[class*="Adresse"]::before {
    content: "📍 " !important;
    font-size: 16px !important;
    margin-right: 8px !important;
    color: #2196F3 !important;
    display: inline-block !important;
}*/


/* Bouton X simple sans cercle */
button.gm-ui-hover-effect[aria-label="Fermer"] {
  background: white !important;
  border: 2px solid #ccc !important;
  border-radius: 4px !important;
  /* Coins légèrement arrondis au lieu d'un cercle */
  width: 24px !important;
  height: 24px !important;
  font-family: Arial, sans-serif !important;
  font-size: 16px !important;
  color: #333 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
}

button.gm-ui-hover-effect[aria-label="Fermer"]:hover {
  background: #f0f0f0 !important;
  border-color: #999 !important;
}

button.gm-ui-hover-effect[aria-label="Fermer"] span {
  display: none !important;
}

button.gm-ui-hover-effect[aria-label="Fermer"]::before {
  content: "×" !important;
  font-weight: bold !important;
}




/* Enlever le fond blanc et le cadre du widget */

.cera-widget-header {
  margin-bottom: 20px;
}

.cera-widget-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Afficher le sous-titre */
.cera-week-subtitle {
  color: #8b95a5;
  font-size: 14px;
  margin-bottom: 18px;
  font-weight: 400;
}

.cera-events-list {
  margin-top: 15px;
}

.cera-event-card {
  display: flex;
  background: #f5f7f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  transition: all 0.3s;
  border: none;
}

.cera-event-card:hover {
  transform: translateX(2px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cera-event-color-bar {
  width: 5px;
  background: #4E64DD;
  flex-shrink: 0;
}

.cera-event-content {
  padding: 16px 18px;
  flex: 1;
}

.cera-event-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #2c3e50;
}

.cera-event-title a {
  color: #2c3e50;
  text-decoration: none;
}

.cera-event-title a:hover {
  color: #4E64DD;
}

.cera-event-datetime {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 5px;
  font-weight: 500;
}

.cera-event-venue {
  color: #8b95a5;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
}

.no-events {
  text-align: center;
  color: #8b95a5;
  padding: 30px 20px;
  font-size: 14px;
}









/* ===========================================
   FIX BP BETTER MESSAGES - DESIGN OPTIMISÉ
   Checkboxes + Mise en page améliorée
   =========================================== */

/* ===== 1. GROUPE D'OPTIONS - CONTENEUR PRINCIPAL ===== */
.bm-user-settings .bpbm-options-group {
  margin-bottom: 25px !important;
}

/* ===== 2. TITRE DE SECTION ===== */
.bm-user-settings h4.bpbm-user-option-title,
.bpbm-user-options h4 {
  color: #333 !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
  margin-top: 0 !important;
  border-bottom: 2px solid #0073aa !important;
  padding-bottom: 8px !important;
}

/* ===== 3. CONTENEUR DE CHAQUE OPTION - SANS ESPACEMENT ===== */
.bm-user-settings .bpbm-user-option {
  margin-bottom: 0 !important;
  padding: 14px 16px !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  display: block !important;
  border-bottom: 1px solid #e8e8e8 !important;
  transition: background-color 0.2s ease !important;
}

/* Première option - coins arrondis en haut */
.bm-user-settings .bpbm-user-option:first-of-type {
  border-radius: 6px 6px 0 0 !important;
  background-color: #f9f9f9 !important;
}

/* Dernière option - coins arrondis en bas */
.bm-user-settings .bpbm-user-option:last-of-type {
  border-radius: 0 0 6px 6px !important;
  border-bottom: none !important;
  background-color: #f9f9f9 !important;
}

/* Option unique (si une seule) */
.bm-user-settings .bpbm-user-option:only-of-type {
  border-radius: 6px !important;
  background-color: #f9f9f9 !important;
}

/* Effet hover sur les options */
.bm-user-settings .bpbm-user-option:hover {
  background-color: #f5f5f5 !important;
}

/* Supprimer les pseudo-éléments du conteneur */
.bm-user-settings .bpbm-user-option::before,
.bm-user-settings .bpbm-user-option::after {
  display: none !important;
  content: none !important;
}

/* ===== 4. CHECKBOXES - STYLE MODERNE ===== */
.bm-user-settings .bpbm-checkbox,
.bm-user-settings input[type="checkbox"].bpbm-checkbox,
input#notifications_email_notifications,
input#notifications_sound_notifications {
  all: unset !important;

  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex-shrink: 0 !important;

  border: 2px solid #cbd5e0 !important;
  border-radius: 4px !important;
  background-color: #fff !important;

  cursor: pointer !important;
  position: relative !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;

  margin: 0 10px 0 0 !important;
  padding: 0 !important;
  vertical-align: middle !important;

  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Supprimer les pseudo-éléments par défaut */
.bm-user-settings .bpbm-checkbox::before,
.bm-user-settings input[type="checkbox"].bpbm-checkbox::before,
input#notifications_email_notifications::before,
input#notifications_sound_notifications::before {
  display: none !important;
  content: none !important;
}

/* État hover */
.bm-user-settings .bpbm-checkbox:hover,
.bm-user-settings input[type="checkbox"].bpbm-checkbox:hover,
input#notifications_email_notifications:hover,
input#notifications_sound_notifications:hover {
  border-color: #0073aa !important;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.08) !important;
}

/* État coché */
.bm-user-settings .bpbm-checkbox:checked,
.bm-user-settings input[type="checkbox"].bpbm-checkbox:checked,
input#notifications_email_notifications:checked,
input#notifications_sound_notifications:checked {
  background-color: #0073aa !important;
  border-color: #0073aa !important;
  box-shadow: 0 1px 3px rgba(0, 115, 170, 0.2) !important;
}

/* Checkmark (coche) */
.bm-user-settings .bpbm-checkbox:checked::after,
.bm-user-settings input[type="checkbox"].bpbm-checkbox:checked::after,
input#notifications_email_notifications:checked::after,
input#notifications_sound_notifications:checked::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  left: 50% !important;
  top: 50% !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #83c3fc !important;
  border-width: 0 2px 2px 0 !important;
  transform: translate(-50%, -55%) rotate(45deg) !important;
}

/* État focus */
.bm-user-settings .bpbm-checkbox:focus,
.bm-user-settings input[type="checkbox"].bpbm-checkbox:focus {
  outline: 2px solid #0073aa !important;
  outline-offset: 2px !important;
}

/* ===== 5. LABELS - STYLE AMÉLIORÉ ===== */
.bm-user-settings .bpbm-user-option label,
.bm-user-settings label[for*="notifications"] {
  display: inline-flex !important;
  align-items: flex-start !important;
  cursor: pointer !important;
  color: #2d3748 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  user-select: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  line-height: 1.5 !important;
}

.bm-user-settings .bpbm-user-option label:hover {
  color: #0073aa !important;
}

/* Supprimer les pseudo-éléments du label */
.bm-user-settings .bpbm-user-option label::before,
.bm-user-settings .bpbm-user-option label::after,
.bm-user-settings label[for*="notifications"]::before,
.bm-user-settings label[for*="notifications"]::after {
  display: none !important;
  content: none !important;
}

/* ===== 6. DESCRIPTION - TEXTE D'AIDE ===== */
.bm-user-settings .bpbm-user-option-description {
  color: #718096 !important;
  font-size: 13px !important;
  margin-top: 6px !important;
  margin-left: 28px !important;
  line-height: 1.5 !important;
  display: block !important;
}

/* ===== 7. SECTION NOTIFICATIONS PUSH - SANS ESPACE BLANC ===== */
/* Wrapper complet pour les notifications push */
.bpbm-options-group>label[for="notifications_push_notifications"],
.bpbm-options-group>label[for="notifications_push_notifications"]+.bpbm-user-option {
  background-color: #f9f9f9 !important;
  margin: 0 !important;
}

/* Label spécial pour les notifications push */
.bpbm-options-group>label[for="notifications_push_notifications"] {
  display: block !important;
  color: #2d3748 !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  padding: 14px 16px 6px 16px !important;
  border-bottom: none !important;
  line-height: 1.5 !important;
}

/* Conteneur des notifications push - complètement collé */
.bpbm-options-group>label[for="notifications_push_notifications"]+.bpbm-user-option {
  border-top: none !important;
  padding: 0 16px 14px 16px !important;
}

/* Description des notifications push - alignée avec le titre */
.bpbm-options-group>label[for="notifications_push_notifications"]+.bpbm-user-option .bpbm-user-option-description {
  margin: 0 !important;
  padding: 0 !important;
}

/* Bouton des notifications push */
.bm-user-settings .push-notifications-control button,
.push-notifications-control button {
  background-color: #0073aa !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 18px !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  margin-top: 8px !important;
  font-weight: 500 !important;
  font-size: 13px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.bm-user-settings .push-notifications-control button:hover {
  background-color: #005a87 !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15) !important;
  transform: translateY(-1px) !important;
}

.bm-user-settings .push-notifications-control button:active {
  transform: translateY(0) !important;
}






}














/* ===================================================
   FIX WIDGET BP BETTER MESSAGES MOBILE - VERSION FINALE
   Correction : rectangle parasite + déplacement + responsive only
   =================================================== */

/* IMPORTANT : Afficher UNIQUEMENT sur mobile/responsive */
#bp-better-messages-mini-mobile-open {
  display: none !important;
  /* Caché par défaut sur desktop */
}

/* Afficher uniquement sur tablettes et mobiles */
@media screen and (max-width: 800px) {
  #bp-better-messages-mini-mobile-open {
    display: block !important;
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;

    /* SUPPRIMER LE RECTANGLE PARASITE */
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 56px !important;
    height: 56px !important;
  }

  /* Empêcher tout fond/rectangle au hover, focus, active */
  #bp-better-messages-mini-mobile-open:hover,
  #bp-better-messages-mini-mobile-open:focus,
  #bp-better-messages-mini-mobile-open:active,
  #bp-better-messages-mini-mobile-open.active {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
  }

  /* Supprimer les pseudo-éléments parasites */
  #bp-better-messages-mini-mobile-open::before,
  #bp-better-messages-mini-mobile-open::after {
    display: none !important;
    content: none !important;
    background: none !important;
  }

  /* Icône du widget - bulle bleue stable SANS RECTANGLE */
  #bp-better-messages-mini-mobile-open .bp-better-messages-mini-mobile-open-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    background-color: #0073aa !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;

    /* Position absolue pour éviter le déplacement */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    /* Supprimer tout fond parasite */
    border: none !important;
    outline: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Supprimer les pseudo-éléments de l'icône */
  #bp-better-messages-mini-mobile-open .bp-better-messages-mini-mobile-open-icon::before,
  #bp-better-messages-mini-mobile-open .bp-better-messages-mini-mobile-open-icon::after {
    display: none !important;
    content: none !important;
  }

  /* Hover sur l'icône uniquement */
  #bp-better-messages-mini-mobile-open .bp-better-messages-mini-mobile-open-icon:hover {
    background-color: #005a87 !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.5) !important;
  }

  /* SVG de l'icône message */
  #bp-better-messages-mini-mobile-open .bp-better-messages-mini-mobile-open-icon svg {
    width: 24px !important;
    height: 24px !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* Badge compteur de messages non lus */
  #bp-better-messages-mini-mobile-open .count {
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    min-width: 22px !important;
    height: 22px !important;
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border-radius: 11px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 6px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    z-index: 2 !important;
  }

  /* Cacher le compteur quand il est à 0 */
  #bp-better-messages-mini-mobile-open .count.no-count,
  #bp-better-messages-mini-mobile-open .count:empty {
    display: none !important;
  }

  /* Empêcher les conflits avec les règles générales */
  #bp-better-messages-mini-mobile-open,
  #bp-better-messages-mini-mobile-open * {
    pointer-events: auto !important;
  }

  /* Animation d'apparition SANS déplacement */
  @keyframes fadeInWidgetStable {
    0% {
      opacity: 0;
    }

    100% {
      opacity: 1;
    }
  }

  /* Appliquer l'animation stable */
  #bp-better-messages-mini-mobile-open.bm-initialized {
    animation: fadeInWidgetStable 0.3s ease-out !important;
  }

  /* Forcer la stabilité pendant le chargement */
  #bp-better-messages-mini-mobile-open.bm-initialized .bp-better-messages-mini-mobile-open-icon {
    animation: none !important;
    transform: none !important;
  }
}

/* Supprimer TOUS les rectangles parasites possibles */
#bp-better-messages-mini-mobile-open>div:not(.bp-better-messages-mini-mobile-open-icon):not(.count),
#bp-better-messages-mini-mobile-open>span:not(.bp-better-messages-mini-mobile-open-icon):not(.count) {
  display: none !important;
}

/* Forcer la transparence sur tout élément enfant non prévu */
#bp-better-messages-mini-mobile-open>*:not(.bp-better-messages-mini-mobile-open-icon):not(.count) {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}













/* Style minimaliste - Aligné à gauche */
#wpforms-5501 {
  background: #fafbfc !important;
  border: 1px solid #e1e8ed !important;
  border-radius: 15px !important;
  padding: 45px 40px !important;
  max-width: 800px !important;
  margin: 40px 0 !important;
  /* ✅ Changé ici */
}

#wpforms-5501 h3 {
  color: #1a1a1a !important;
  font-size: 24px !important;
  font-weight: 600 !important;
  margin-bottom: 10px !important;
  text-align: center !important;
  letter-spacing: -0.5px !important;
}

#wpforms-5501 input[type="text"],
#wpforms-5501 select,
#wpforms-5501 textarea {
  background: white !important;
  border: 1px solid #d1d9e0 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  transition: border-color 0.2s ease !important;
}

#wpforms-5501 input:focus,
#wpforms-5501 select:focus,
#wpforms-5501 textarea:focus {
  border-color: #2c5aa0 !important;
  outline: none !important;
}

#wpforms-5501 .wpforms-submit {
  background: #2c5aa0 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 14px 40px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  margin: 25px auto 0 auto !important;
  display: block !important;
}

#wpforms-5501 .wpforms-submit:hover {
  background: #1e3a6f !important;
}








/* ====================================
   BP BETTER MESSAGES - DESIGN PREMIUM VISIO
   Version optimisée et non-redondante
   ==================================== */

/* ----- ANIMATIONS GLOBALES ----- */

@keyframes shimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

@keyframes pulse-icon-soft {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
  }

  50% {
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
  }
}

@keyframes blink-live-indicator {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

@keyframes rotate-gentle {

  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(5deg) scale(1.05);
  }
}

@keyframes blink-button-glow {

  0%,
  100% {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45), 0 2px 8px rgba(59, 130, 246, 0.3);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.7), 0 4px 16px rgba(59, 130, 246, 0.5), 0 0 0 4px rgba(59, 130, 246, 0.2);
    transform: scale(1.03);
  }
}

@keyframes bounce-icon {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}


/* ----- CARTE VISIOCONFÉRENCE - BASE COMMUNE ----- */

.bpbm-group-call-in-progress,
div[class*="bpbm-group-call"] {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
}


/* ----- INTERFACE PRINCIPALE - CARTE COMPLÈTE (DESKTOP UNIQUEMENT) ----- */

/* Desktop > 992px : Carte complète avec icône, texte, compteur */
@media (min-width: 993px) {

  .bpbm-group-call-in-progress,
  .bm-before-message-list .bpbm-group-call-in-progress {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
    border: 2px solid #3B82F6 !important;
    border-radius: 16px !important;
    padding: 18px 28px !important;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15), 0 2px 8px rgba(59, 130, 246, 0.1) !important;
    margin: 16px auto !important;
    gap: 24px !important;
    min-height: 85px !important;
    overflow: hidden !important;
    width: 72% !important;
    max-width: none !important;
  }

  /* Effet de brillance */
  .bpbm-group-call-in-progress::before,
  .bm-before-message-list .bpbm-group-call-in-progress::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    animation: shimmer 3s infinite !important;
  }

  /* Partie info (icône + texte + compteur) */
  .bpbm-group-call-in-progress-info,
  .bm-before-message-list .bpbm-group-call-in-progress-info {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex: 1 !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #1E40AF !important;
    position: relative !important;
    z-index: 1 !important;
  }

  /* Icône caméra */
  .bpbm-group-call-in-progress-info svg,
  .bpbm-group-call-in-progress svg:not(.bpbm-group-call-in-progress-join svg),
  .bm-before-message-list .bpbm-group-call-in-progress-info svg,
  .bm-before-message-list .bpbm-group-call-in-progress svg:not(.bpbm-group-call-in-progress-join svg) {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    padding: 13px !important;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    border-radius: 14px !important;
    fill: white !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35) !important;
    position: relative !important;
    animation: pulse-icon-soft 2.8s ease-in-out infinite !important;
  }

  /* Point LIVE rouge */
  .bpbm-group-call-in-progress-info svg::after,
  .bpbm-group-call-in-progress svg:not(.bpbm-group-call-in-progress-join svg)::after,
  .bm-before-message-list .bpbm-group-call-in-progress-info svg::after,
  .bm-before-message-list .bpbm-group-call-in-progress svg:not(.bpbm-group-call-in-progress-join svg)::after {
    content: "" !important;
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    width: 16px !important;
    height: 16px !important;
    background: #EF4444 !important;
    border: 3px solid white !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.5) !important;
    animation: blink-live-indicator 1.5s ease-in-out infinite !important;
  }

  /* Bulle compteur participants */
  .bpbm-group-call-participant-count,
  .bm-before-message-list .bpbm-group-call-participant-count {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    color: white !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    border-radius: 50% !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
    margin: 0 10px !important;
    border: 3px solid white !important;
    position: relative !important;
    z-index: 2 !important;
    animation: rotate-gentle 3s ease-in-out infinite !important;
  }

  /* Conteneur bouton desktop */
  .bpbm-group-call-in-progress-join,
  .bm-before-message-list .bpbm-group-call-in-progress-join {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    position: relative !important;
    z-index: 1 !important;
    flex-shrink: 0 !important;
  }
}


/* ----- VERSION MOBILE - BOUTON SEUL (≤ 992px) ----- */

@media (max-width: 992px) {

  /* Conteneur masqué sur mobile */
  .bpbm-group-call-in-progress,
  .bm-before-message-list .bpbm-group-call-in-progress,
  .chat-content .bpbm-group-call-in-progress {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 12px auto !important;
    box-shadow: none !important;
    justify-content: center !important;
    min-height: auto !important;
    width: 100% !important;
  }

  /* Masquer infos, icônes et compteur sur mobile */
  .bpbm-group-call-in-progress-info,
  .bpbm-group-call-in-progress svg:not(.bpbm-group-call-in-progress-join svg),
  .bpbm-group-call-participant-count,
  .bm-before-message-list .bpbm-group-call-in-progress-info,
  .bm-before-message-list .bpbm-group-call-in-progress svg:not(.bpbm-group-call-in-progress-join svg),
  .bm-before-message-list .bpbm-group-call-participant-count,
  .chat-content .bpbm-group-call-in-progress-info,
  .chat-content .bpbm-group-call-in-progress svg:not(.bpbm-group-call-in-progress-join svg),
  .chat-content .bpbm-group-call-participant-count {
    display: none !important;
  }

  /* Conteneur bouton centré sur mobile */
  .bpbm-group-call-in-progress-join,
  .bm-before-message-list .bpbm-group-call-in-progress-join,
  .chat-content .bpbm-group-call-in-progress-join {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 3px 0 !important;
    /* Marge de 3px */
  }
}


/* ----- WIDGET EXTERNE (.chat-content) - TOUJOURS BOUTON SEUL ----- */

.chat-content .bpbm-group-call-in-progress {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 12px auto !important;
  box-shadow: none !important;
  justify-content: center !important;
  min-height: auto !important;
  width: 100% !important;
}

.chat-content .bpbm-group-call-in-progress-info,
.chat-content .bpbm-group-call-in-progress svg:not(.bpbm-group-call-in-progress-join svg),
.chat-content .bpbm-group-call-participant-count {
  display: none !important;
}

.chat-content .bpbm-group-call-in-progress-join {
  display: flex !important;
  width: 100% !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 3px 0 !important;
  /* Marge de 3px */
}


/* ----- BOUTON "REJOINDRE" - STYLE UNIVERSEL ----- */

.bpbm-group-call-in-progress-join button,
.bpbm-group-call-in-progress button,
button[class*="group-call"],
.bpbm-group-call-type-video button {
  /* Couleur bleue forcée */
  background: #3B82F6 !important;
  background-color: #3B82F6 !important;
  background-image: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
  color: white !important;

  /* Taille par défaut (interface principale) */
  padding: 15px 32px !important;
  min-width: 240px !important;
  min-height: 54px !important;
  height: 54px !important;

  /* Design */
  border: none !important;
  border-radius: 12px !important;

  /* Texte */
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;

  /* Effets */
  cursor: pointer !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45), 0 2px 8px rgba(59, 130, 246, 0.3) !important;

  /* Layout */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  position: relative !important;
  z-index: 10 !important;
  overflow: hidden !important;
  visibility: visible !important;
  opacity: 1 !important;

  /* Animation */
  animation: blink-button-glow 2.5s ease-in-out infinite !important;
}

/* Emoji caméra */
.bpbm-group-call-in-progress-join button::before,
.bpbm-group-call-type-video button::before {
  content: "📹" !important;
  font-size: 1.4rem !important;
  margin-right: 6px !important;
  display: inline-block !important;
  animation: bounce-icon 2s ease-in-out infinite !important;
}

/* Effet brillance au survol */
.bpbm-group-call-in-progress-join button::after,
.bpbm-group-call-type-video button::after {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.3) !important;
  transform: translate(-50%, -50%) !important;
  transition: width 0.6s, height 0.6s !important;
}

.bpbm-group-call-in-progress-join button:hover::after,
.bpbm-group-call-type-video button:hover::after {
  width: 300px !important;
  height: 300px !important;
}

/* État hover */
.bpbm-group-call-in-progress-join button:hover,
.bpbm-group-call-type-video button:hover {
  background: #2563EB !important;
  background-image: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  transform: translateY(-4px) scale(1.05) !important;
  box-shadow: 0 16px 48px rgba(59, 130, 246, 0.6), 0 6px 20px rgba(59, 130, 246, 0.4) !important;
}

/* État actif */
.bpbm-group-call-in-progress-join button:active,
.bpbm-group-call-type-video button:active {
  transform: translateY(-1px) scale(1.02) !important;
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4) !important;
}

/* Focus accessibilité */
.bpbm-group-call-in-progress-join button:focus,
.bpbm-group-call-type-video button:focus {
  outline: 4px solid rgba(59, 130, 246, 0.4) !important;
  outline-offset: 3px !important;
}


/* ----- BOUTON VERSION MOBILE/WIDGET - TAILLE RÉDUITE 87% ----- */

@media (max-width: 992px) {

  .bpbm-group-call-in-progress-join button,
  .bm-before-message-list .bpbm-group-call-in-progress-join button {
    width: 87% !important;
    max-width: 278px !important;
    min-width: 174px !important;
    padding: 13px 28px !important;
    min-height: 47px !important;
    height: 47px !important;
    font-size: 0.87rem !important;
  }

  .bpbm-group-call-in-progress-join button::before,
  .bm-before-message-list .bpbm-group-call-in-progress-join button::before {
    font-size: 1.22rem !important;
    margin-right: 5px !important;
  }
}

/* Widget externe - Toujours 87% */
.chat-content .bpbm-group-call-in-progress-join button {
  width: 87% !important;
  max-width: 278px !important;
  min-width: 174px !important;
  padding: 13px 28px !important;
  min-height: 47px !important;
  height: 47px !important;
  font-size: 0.87rem !important;
}

.chat-content .bpbm-group-call-in-progress-join button::before {
  font-size: 1.22rem !important;
  margin-right: 5px !important;
}


/* ----- INDICATEUR "VIDEO CHAT ONLINE" (LISTE GAUCHE) ----- */

.bm-live-chat-online,
span[class*="live-chat-online"] {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%) !important;
  border: 1px solid #10B981 !important;
  border-left: 4px solid #10B981 !important;
  padding: 6px 10px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 6px 4px !important;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.1) !important;
  width: auto !important;
  max-width: 160px !important;
  font-size: 0.75rem !important;
}

/* Masquer l'icône */
.bm-live-chat-online-indicator,
span[class*="live-chat-online-indicator"] {
  display: none !important;
}

/* Texte */
.bm-live-chat-online span:not(.bm-live-chat-online-indicator) {
  font-weight: 600 !important;
  color: #065F46 !important;
  font-size: 0.75rem !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Emoji point rouge */
.bm-live-chat-online span:last-child::before {
  content: "🔴 " !important;
  font-size: 0.7rem !important;
  margin-right: 4px !important;
}


/* ----- RESPONSIVE ----- */

/* Tablette (1200px) */
@media (max-width: 1200px) and (min-width: 993px) {

  .bpbm-group-call-in-progress,
  .bm-before-message-list .bpbm-group-call-in-progress {
    width: 85% !important;
    padding: 16px 20px !important;
  }

  .bpbm-group-call-in-progress-join button,
  .bm-before-message-list .bpbm-group-call-in-progress-join button {
    min-width: 200px !important;
    padding: 13px 24px !important;
  }
}

/* Mobile (768px) */
@media (max-width: 768px) {
  .bm-live-chat-online {
    padding: 5px 8px !important;
    max-width: 140px !important;
    font-size: 0.7rem !important;
  }

  .bpbm-group-call-in-progress-join button,
  .bm-before-message-list .bpbm-group-call-in-progress-join button,
  .chat-content .bpbm-group-call-in-progress-join button {
    width: 90% !important;
    max-width: 100% !important;
    min-width: 157px !important;
    font-size: 0.78rem !important;
    padding: 11px 16px !important;
  }
}

/* Petit mobile (480px) */
@media (max-width: 480px) {

  .bpbm-group-call-in-progress-join button,
  .bm-before-message-list .bpbm-group-call-in-progress-join button,
  .chat-content .bpbm-group-call-in-progress-join button {
    padding: 10px 14px !important;
    min-height: 38px !important;
    font-size: 0.74rem !important;
  }

  .bpbm-group-call-in-progress-join button::before,
  .bm-before-message-list .bpbm-group-call-in-progress-join button::before,
  .chat-content .bpbm-group-call-in-progress-join button::before {
    font-size: 1.04rem !important;
  }
}


/* ----- ACCESSIBILITÉ ----- */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}





/* Version minimaliste - juste un petit lien */
#user_switching_switch_on {
  position: fixed !important;
  bottom: 10px !important;
  left: 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 11px !important;
  z-index: 99999 !important;
  background: none !important;
}

#user_switching_switch_on a {
  padding: 4px 8px !important;
  background: rgba(56, 88, 233, 0.1) !important;
  color: #3858e9 !important;
  text-decoration: none !important;
  border-radius: 3px !important;
  font-size: 11px !important;
}

#user_switching_switch_on a:hover {
  background: rgba(56, 88, 233, 0.2) !important;
}











/* ==========================================
   FORMULAIRE INSCRIPTION AGIR - CSS V11 (FINAL STABLE)
   ========================================== */

/* 0. MASQUAGE INITIAL (Anti-FOUC) */
/* Le formulaire est invisible au chargement, le JS le rendra visible */
#signup_form {
  opacity: 0 !important;
  transition: opacity 0.5s ease-in-out !important;
}

/* Classe ajoutée par JS quand tout est prêt */
#signup_form.agir-ready {
  opacity: 1 !important;
}

/* 1. FORCER LA LARGEUR DÈS LE DÉPART */
.um-form,
#signup_form,
#basic-details-section,
#profile-details-section,
#agir-custom-wrapper {
  max-width: 800px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

#agir-custom-wrapper {
  padding-left: 60px !important;
  padding-right: 20px !important;
}

/* 2. STYLE DES SECTIONS */
#basic-details-section,
.agir-section {
  background: #ffffff !important;
  border-radius: 12px !important;
  padding: 30px !important;
  margin-bottom: 30px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
  position: relative !important;
  width: 100% !important;
  overflow: visible !important;
  transform: none !important;
  z-index: 1 !important;
  float: none !important;
  left: auto !important;
  margin-left: 0 !important;
}

/* 3. TITRES */
.agir-section .entry-title,
#basic-details-section .entry-title {
  color: #48465b !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  margin-bottom: 25px !important;
  padding-bottom: 15px !important;
  border-bottom: 2px solid #4E64DD !important;
  display: block !important;
}

/* 4. TIMELINE : BULLES */
#basic-details-section::before,
.agir-section::before {
  content: attr(data-number) !important;
  position: absolute !important;
  left: -50px !important;
  top: 30px !important;
  width: 36px !important;
  height: 36px !important;
  background: linear-gradient(135deg, #4E64DD 0%, #2C56C6 100%) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px rgba(78, 100, 221, 0.3) !important;
  z-index: 10 !important;
}

/* 5. TIMELINE : LIGNES VERTICALES */
#basic-details-section::after,
.agir-section::after {
  content: '' !important;
  position: absolute !important;
  left: -33px !important;
  top: 66px !important;
  width: 2px !important;
  height: calc(100% + 30px) !important;
  background: linear-gradient(to bottom, #4E64DD 0%, #E9EFF3 100%) !important;
  z-index: 5 !important;
  display: block !important;
}

/* 6. CHAMPS ET LABELS */
.agir-section .editfield,
#basic-details-section .editfield {
  margin-bottom: 20px !important;
  width: 100% !important;
  clear: both !important;
}

.agir-section label,
#basic-details-section label {
  display: block !important;
  color: #48465b !important;
  font-weight: 600 !important;
  margin-bottom: 8px !important;
  font-size: 14px !important;
}

/* Inputs classiques */
.agir-section input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.agir-section select,
.agir-section textarea,
#basic-details-section input:not([type="radio"]):not([type="checkbox"]) {
  width: 100% !important;
  padding: 12px 15px !important;
  border: 1px solid #d1d9e0 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s !important;
  background: #fff !important;
  height: auto !important;
}

.agir-section input:focus,
.agir-section select:focus,
.agir-section textarea:focus {
  border-color: #4E64DD !important;
  outline: none !important;
}

/* Correction Radio/Checkbox */
.agir-section input[type="radio"],
.agir-section input[type="checkbox"] {
  width: auto !important;
  margin-right: 8px !important;
  display: inline-block !important;
}

/* 7. BOUTON */
.submit {
  margin-top: 20px !important;
  text-align: right !important;
  padding-right: 0 !important;
}

/* 8. RESPONSIVE */
@media (max-width: 768px) {

  .um-form,
  #basic-details-section,
  #agir-custom-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  #basic-details-section::before,
  .agir-section::before,
  #basic-details-section::after,
  .agir-section::after {
    display: none !important;
  }
}

/* ===========================================
   FIX BP BETTER MESSAGES - THREAD INFO PANEL (COULEURS DE FOND)
   Remplacer le fond bleu (#83c3fc) par #f2f2f3
   =========================================== */
.bpbm-chat-main .bm-thread-info-container,
.bpbm-chat-main .bm-thread-info-general,
.bpbm-chat-main .bm-thread-info-actions,
.bpbm-chat-main .bm-thread-info-action,
.bpbm-chat-main .bm-thread-info-tabs,
.bpbm-chat-main .bm-thread-info-tabs-content,
.bpbm-chat-main .participants-panel,
.bpbm-chat-main .bp-messages-user-list,
.bpbm-chat-main .user.threads-list-item,
.bpbm-chat-main .bm-user-search-wrap,
.bm-thread-info-container div[data-overlayscrollbars-contents] {
  background-color: #f2f2f3 !important;
  background: none !important;
  background-color: #f2f2f3 !important;
}

/* ===========================================
   FIX BP BETTER MESSAGES - THREAD INFO OPTION (BLEU -> GRIS)
   Remplacer le fond bleu vif des options de thread par #f2f2f3
   =========================================== */
.bm-thread-option,
.bm-thread-options,
.bm-thread-option label,
.bm-thread-option .bm-thread-option-description {
  background-color: #f2f2f3 !important;
  background: none !important;
  background-color: #f2f2f3 !important;
}

/* On s'assure que le fond global de la bulle / zone principale n'est pas bleu */
.bpbm-chat-main-primary,
.bm-messages-list,
.bm-list,
.bm-list-content {
  background-color: #ffffff !important;
}

/* Forcer l'affichage de la coche SVG pour .bm-thread-option */
.bm-thread-option input[type="checkbox"]:checked+label::before,
.bm-thread-option input[type="checkbox"]:checked+span::before {
  background-color: #0073aa !important;
  border-color: #0073aa !important;
}

.bm-thread-option input[type="checkbox"]:checked+label::after,
.bm-thread-option input[type="checkbox"]:checked+span::after,
.bpbm-checkbox:checked::after,
input[type="checkbox"].bpbm-checkbox:checked::after {
  content: "" !important;
  position: absolute !important;
  display: block !important;
  left: 50% !important;
  top: 50% !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #83c3fc !important;
  border-width: 0 2px 2px 0 !important;
  transform: translate(-50%, -55%) rotate(45deg) !important;
}


/* ===== FIX MENU CONTEXTUEL - SOLUTION ULTRA AGRESSIVE ===== */

/* État hover - forcer le bleu */
body>.bp-messages-wrap div[style*="position: absolute"] *:hover,
.bp-messages-wrap div[style*="position: fixed"] *:hover,
div[class*="bpbm"][style*="position"] *:hover,
div[role="menu"] *:hover,
div[role="dialog"]:not(.modal) *:hover {
  color: #0073aa !important;
  background-color: #f7fafc !important;
}

/* ===========================================
   FIX BP BETTER MESSAGES - TEXTE BOUTON MOBILE
   Raccourcir "Démarrer une nouvelle conversation" en "Nouvelle conversation"
   =========================================== */
@media (max-width: 768px) {
  #bm-new-thread-title {
    font-size: 0 !important;
  }

  #bm-new-thread-title::after {
    content: "Nouvelle conversation" !important;
    font-size: 15px !important;
    display: inline-block !important;
  }
}


/* ===========================================
   FIX BP BETTER MESSAGES - TOUTES LES CHECKBOXES & RADIOS
   Le plugin cache les inputs (display:none) et dessine les
   cases via label::before avec un SVG blanc natif.
   On remplace le SVG blanc par un SVG en #83c3fc.
   =========================================== */

/* Checkbox cochée → fond bleu + coche #83c3fc via SVG */
.bpbm-checkbox:checked+label::before,
.bm-thread-option .bpbm-checkbox:checked+label::before {
  border-color: #0073aa !important;
  background-color: #0073aa !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2383c3fc' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-size: 12px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Radio coché → fond bleu + point #83c3fc via SVG */
.bpbm-radio:checked+label::before {
  border-color: #0073aa !important;
  background-color: #0073aa !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='5' fill='%2383c3fc'/%3E%3C/svg%3E") !important;
  background-size: 14px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* ===========================================
   FIX BP BETTER MESSAGES - SELECT GROUPE
   Fond blanc + design moderne pour le dropdown
   =========================================== */
.groups select,
.groups select[name="group"] {
  background-color: #ffffff !important;
  color: #2d3748 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 6px 36px 6px 14px !important;
  height: 32px !important;
  margin-top: 8px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em !important;
  max-width: 420px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s ease !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230073aa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  background-size: 14px !important;
}

.groups select:hover {
  border-color: #cbd5e0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.groups select:focus {
  border-color: #0073aa !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

.groups select option {
  background-color: #ffffff !important;
  color: #2d3748 !important;
  padding: 10px 14px !important;
  font-weight: 400 !important;
}


/* ===== Fix: Long text overflow in BP Docs table ===== */

/* Force la table à respecter la largeur du conteneur */
table.doctable {
    table-layout: fixed;
    width: 100%;
}

/* Permet la coupure des mots longs dans les cellules clés */
table.doctable .title-cell,
table.doctable .tags-cell,
table.doctable .groups-cell {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Donne des proportions correctes aux colonnes */
table.doctable .attachment-clip-cell { width: 30px; }
table.doctable .title-cell            { width: 35%; }
table.doctable .author-cell            { width: 10%; }
table.doctable .created-date-cell      { width: 12%; }
table.doctable .edited-date-cell       { width: 12%; }
table.doctable .groups-cell            { width: 14%; }
table.doctable .tags-cell              { width: 17%; }

/* ===== Mobile responsive ===== */
@media (max-width: 768px) {
    table.doctable {
        table-layout: auto;
    }
    
    table.doctable .title-cell,
    table.doctable .tags-cell {
        word-break: break-all;   /* Force la coupure même au milieu des underscores */
        max-width: 0;            /* Permet le shrink en mode auto-layout */
    }
    
    /* Masquer les colonnes non essentielles en mobile */
    table.doctable .author-cell,
    table.doctable .created-date-cell,
    table.doctable .groups-cell,
    table.doctable .tags-cell,
    table.doctable th.author-cell,
    table.doctable th.created-date-cell,
    table.doctable th.groups-cell,
    table.doctable th.tags-cell {
        display: none;
    }
}

/* ===========================================
   FIX — INPUTS BP BETTER MESSAGES AU FOCUS
   Le thème Cera applique background-color et
   border-color sur tous les input:focus.
   On neutralise ici pour tous les inputs du module.
   =========================================== */
.bp-messages-wrap input:focus,
.bp-messages-wrap input[type="text"]:focus,
.bp-messages-wrap input[type="search"]:focus,
.bp-messages-wrap input:not([type]):focus {
  background-color: transparent !important;
  background: transparent !important;
  border-color: transparent !important;
  color: inherit !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ===========================================
   FIX — STATUT EN LIGNE MINI CHAT
   Vert plus clair et plus lisible
   =========================================== */
.bp-messages-wrap.bp-better-messages-mini .chats .chat .head .thread-info .thread-info-data .last-online.online-now,
.bp-messages-wrap.bp-better-messages-mini .chats .chat .head .thread-info .thread-info-data .group-online.online-now,
.bp-messages-wrap .chat-header .thread-info .thread-info-data .last-online.online-now,
.bp-messages-wrap .chat-header .thread-info .thread-info-data .group-online.online-now {
  color: #16a34a !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  display: block !important;
  overflow: visible !important;
  opacity: 1 !important;
}

/* AGIR — Pages d'événement : contenu en pleine largeur, bouton « Ajouter au calendrier » compact au-dessus, aligné à droite. */
.single-tribe_events .tribe-events-single .row > .tribe-events-single-content-wrapper{flex:0 0 100%;max-width:100%}
.single-tribe_events .tribe-events-single .row > .tribe-events-single-sidebar{order:-1;flex:0 0 100%;max-width:100%;display:flex;justify-content:flex-end;position:static;top:auto}
.single-tribe_events .tribe-events-single-sidebar .tribe-events-c-subscribe-dropdown__container .tribe-events-c-subscribe-dropdown{width:auto;margin:0 0 1rem 0}
.single-tribe_events .tribe-events-single-sidebar .tribe-events-c-subscribe-dropdown__container .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__button{width:auto}
.single-tribe_events .tribe-events-single-sidebar .tribe-events-c-subscribe-dropdown__container .tribe-events-c-subscribe-dropdown .tribe-events-c-subscribe-dropdown__content{top:calc(100% + 8px);bottom:auto;left:auto;right:0;min-width:220px}
/* fin AGIR — Pages d'événement */


/* AGIR — Forum bbPress : bouton Envoyer (annule la règle globale .submit) */
#bbpress-forums .bbp-submit-wrapper button.submit {
  padding: 10px 28px !important;
  margin-top: 0 !important;
  text-align: center !important;
  width: auto !important;
  min-width: 120px;
  white-space: nowrap;
}
#bbpress-forums .bbp-submit-wrapper {
  margin-top: 10px;
}


/* AGIR — Bouton J'aime (WP ULike) lisible */
/* Conteneur : plus d'aplat ni d'opacité (Grimlock for bbPress) */
.wpulike.wpulike-default .wp_ulike_general_class {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  padding: 0 !important;
  overflow: visible !important;
  opacity: 1 !important;
  box-shadow: none !important;
}
/* Bouton */
.wpulike.wpulike-default .wp_ulike_general_class button.wp_ulike_btn.wp_ulike_put_image {
  position: relative !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transform: none !important;
  width: auto !important;
  min-width: 44px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #c9cfdc !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: #48465b !important;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
/* Couches colorées de Grimlock (aplat bleu et zone de clic géante) */
.wpulike.wpulike-default .wp_ulike_general_class button.wp_ulike_btn.wp_ulike_put_image:before {
  content: none !important;
  display: none !important;
}
/* Icône pouce du thème */
.wpulike.wpulike-default .wp_ulike_general_class button.wp_ulike_btn.wp_ulike_put_image:after {
  position: static !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  font-size: 1.1rem !important;
  line-height: 1 !important;
  color: inherit !important;
}
/* Survol */
.wpulike.wpulike-default .wp_ulike_general_class button.wp_ulike_btn.wp_ulike_put_image:hover,
.wpulike.wpulike-default .wp_ulike_general_class button.wp_ulike_btn.wp_ulike_put_image:focus-visible {
  background: #eef0fd !important;
  border-color: #4e64dd !important;
  color: #4e64dd !important;
}
/* Déjà aimé */
.wpulike.wpulike-default .wp_ulike_general_class button.wp_ulike_btn.wp_ulike_put_image.wp_ulike_btn_is_active,
.wpulike.wpulike-default .wp_ulike_is_liked button.wp_ulike_btn.wp_ulike_put_image {
  background: #4e64dd !important;
  border-color: #4e64dd !important;
  color: #ffffff !important;
}
/* Compteur */
.wpulike.wpulike-default .wp_ulike_general_class .count-box {
  display: inline-block;
  margin: 0 !important;
  padding: 0 10px !important;
  height: 34px;
  line-height: 34px !important;
  background: #eef0f5 !important;
  color: #48465b !important;
  font-weight: 600;
  border-radius: 8px !important;
  box-shadow: none !important;
}
.wpulike.wpulike-default .wp_ulike_general_class .count-box:before {
  display: none !important;
}


/* AGIR — Actions groupées : dans le flux, au-dessus de la pagination (notifications, messages, invitations).
   Grimlock les place en position absolue en supposant la pagination dans le même bas de tableau ; elle est en dessous. */
#buddypress:not(.youzer) .table-footer .notifications-options-nav,
#buddypress:not(.youzer) .table-footer .messages-options-nav,
#buddypress:not(.youzer) .table-footer .invitations-options-nav {
  position: static;
  align-items: center;
  margin: 0 0 1.25rem;
}

/* AGIR — Messagerie : liens visibles dans les messages.
   Better Messages impose la couleur du texte à tout le contenu des bulles (règle « … .bm-message-content * { color … !important } »),
   si bien que les adresses insérées dans un message ne se distinguaient pas du texte.
   Seuls les liens simples du texte (.bm-message-content-text a sans classe) sont visés : la carte d'aperçu (.url-wrap),
   les mentions et les fichiers joints gardent leur style. Couleur du thème (#4E64DD) un peu foncée pour rester lisible
   sur le gris des bulles (contraste 5,3:1). */
.bp-messages-wrap .bm-message-content-text a[href]:not([class]),
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content .bm-messages-listing .bm-message .bm-message-content .bm-message-content-text a[href]:not([class]) {
  color: #3d52c9 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.bp-messages-wrap .bm-message-content-text a[href]:not([class]):hover,
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack .bm-content .bm-messages-listing .bm-message .bm-message-content .bm-message-content-text a[href]:not([class]):hover {
  color: #2c3ea8 !important;
  text-decoration-thickness: 2px !important;
}
/* Bulles bleues (texte blanc) : lien blanc souligné. */
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack.bm-right-side .bm-content .bm-messages-listing .bm-message .bm-message-content:not(.bm-hide-background) .bm-message-content-text a[href]:not([class]),
.bp-messages-wrap .bm-messages-list .bm-list .bm-messages-stack.bm-right-side .bm-content .bm-messages-listing .bm-message .bm-message-content:not(.bm-hide-background) .bm-message-content-text a[href]:not([class]):hover {
  color: rgba(var(--right-message-text-color), 1) !important;
}
/* fin AGIR — Messagerie : liens */

/* AGIR — Widget « Réponses récentes » : le thème met la ligne en font-size:0 et force les liens à hériter
   de son interligne (1.5em de 0 = 0) ; les titres sur deux lignes se superposaient. */
.widget ul.bbp-replies-widget li a.bbp-reply-topic-title.bbp-reply-topic-title:not(.button):not(.btn):not(.badge):not(.label):not(.agir-a):not(.agir-b):not(.agir-c) {
  display: block;
  line-height: 1.35 !important;
  margin: 2px 0;
}
.widget ul.bbp-replies-widget li a.bbp-author-link.bbp-author-link,
.widget ul.bbp-replies-widget li .bbp-author-name {
  line-height: 1.35 !important;
}
.widget ul.bbp-replies-widget li time {
  line-height: 1.4;
}

/* AGIR — Page « Inviter » : pastilles numérotées qui recouvraient le début du texte (étapes 1, 2 et 4). */
form#invite-anyone-by-email #invite-anyone-steps > li {
  position: relative;
  padding-left: 36px;
}
form#invite-anyone-by-email #invite-anyone-steps > li:before {
  left: 0;
  top: 0;
}
form#invite-anyone-by-email #invite-anyone-steps > li > label,
form#invite-anyone-by-email #invite-anyone-steps > li > p:not([class]),
form#invite-anyone-by-email #invite-anyone-steps > li .manual-email > p:not([class]) {
  padding-left: 0;
}
form#invite-anyone-by-email #invite-anyone-steps > li .manual-email > label,
form#invite-anyone-by-email #invite-anyone-steps > li > fieldset > legend {
  color: var(--grimlock-archive-post-title-color);
  font-weight: 600;
  font-size: inherit;
  line-height: 1.5;
  padding: 0 0 .5rem;
  margin: 0;
  border: 0;
}
form#invite-anyone-by-email #invite-anyone-steps > li > fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* AGIR — Notifications en direct de Better Messages (demandes d'adhésion, nouveaux messages) : carte blanche lisible
   au lieu du cadre noir, vignette limitée à 45 px (l'image du groupe s'étalait sous le texte blanc). */
.Toastify__toast.bm-toast-site-notification,
.Toastify__toast.bm-toast-site-message {
  background: #fff !important;
  color: #2b2f3a !important;
  border: 1px solid #e3e6ef;
  border-left: 4px solid #3f51e0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(20, 30, 70, .18);
  padding: 12px 10px 12px 12px;
  font-family: inherit;
  line-height: 1.4;
}
.bm-toast-site-notification .bm-toast-site-notification-container,
.bm-toast-site-message .bm-toast-site-message-container {
  align-items: center;
}
.bm-toast-site-notification .bm-toast-site-notification-image,
.bm-toast-site-message .bm-toast-site-message-avatar {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  margin-right: 12px;
  overflow: hidden;
  border-radius: 50%;
  background: #f0f2f7;
}
.bm-toast-site-notification .bm-toast-site-notification-image img,
.bm-toast-site-message .bm-toast-site-message-avatar img {
  display: block !important;
  width: 45px !important;
  height: 45px !important;
  max-width: 45px !important;
  object-fit: cover;
  border-radius: 50%;
  margin: 0;
}
.bm-toast-site-notification .bm-toast-site-notification-info,
.bm-toast-site-message .bm-toast-site-message-info {
  min-width: 0;
}
.bm-toast-site-notification .bm-toast-site-notification-title,
.bm-toast-site-message .bm-toast-site-message-title {
  color: #1f2a6b;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}
.bm-toast-site-notification .bm-toast-site-notification-content,
.bm-toast-site-message .bm-toast-site-message-content,
.bm-toast-site-message .bm-toast-site-message-subject {
  color: #4a5068;
  font-size: 13px;
}
.bm-toast-site-notification .Toastify__close-button,
.bm-toast-site-message .Toastify__close-button {
  color: #6b7080 !important;
  opacity: .8;
}

/* AGIR — Menu vertical : 20 entrées dépassent la hauteur de l'écran. Le thème rend la zone défilante mais avec une
   barre invisible (largeur 0) : on croyait le menu coupé. Barre visible + entrées un peu plus compactes.
   25/10/2026 : sur Mac, Chrome (121+) et Safari appliquaient scrollbar-width / scrollbar-color avec la barre
   « superposée » du système, cachée tant qu'on ne fait pas défiler. Barre dessinée (::-webkit-scrollbar), toujours
   visible ; les propriétés standard pour Firefox seulement. */
.vertical-navbar .navbar-wrapper {
  scrollbar-width: auto;
  scrollbar-color: auto;
  overscroll-behavior: contain;
}
@supports (-moz-appearance: none) {
  .vertical-navbar .navbar-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .45) transparent;
  }
}
.vertical-navbar .navbar-wrapper::-webkit-scrollbar {
  width: 7px;
}
.vertical-navbar .navbar-wrapper::-webkit-scrollbar-track {
  background-color: rgba(255, 255, 255, .06);
}
.vertical-navbar .navbar-wrapper::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, .42);
  border-radius: 7px;
}
.vertical-navbar .navbar-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, .65);
}
.vertical-navbar .navbar-nav:not(.navbar-nav--buddypress) > .menu-item > a {
  padding-top: .55rem;
  padding-bottom: .55rem;
}
.vertical-navbar .navbar-nav .menu-item.menu-item--title {
  min-height: 36px;
  margin-top: .5rem !important;
}
/* AGIR — Menu vertical : la marge basse de 60 px du thème faisait déborder le menu (barre de défilement inutile). */
.vertical-navbar .navbar-wrapper.navbar-wrapper {
  padding-bottom: 12px !important;
}

/* AGIR — Widget « Vidéo à la une » (lecteur Vimeo de GamiPress) : le cadre est vide (hauteur 0) jusqu’à la réponse de Vimeo ;
   Masonry du tableau de bord plaçait les widgets avant, d’où une vidéo tronquée/recouverte. Place réservée dès l’affichage (16/9). */
.gamipress_vimeo_widget .gamipress-vimeo-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
}
.gamipress_vimeo_widget .gamipress-vimeo-video iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* AGIR — Widget « Posts récents » : une entrée par ligne, séparée, titre sur 2 lignes maximum, date en dessous. */
.widget.widget_recent_entries:not(.widget_recent_bp_docs) ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.widget.widget_recent_entries:not(.widget_recent_bp_docs) ul li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 11px 0;
  border: 0;
  border-bottom: 1px solid rgba(37, 37, 55, .08);
}
.widget.widget_recent_entries:not(.widget_recent_bp_docs) ul li:first-child { padding-top: 2px; }
.widget.widget_recent_entries:not(.widget_recent_bp_docs) ul li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget.widget_recent_entries:not(.widget_recent_bp_docs) ul li a {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--grimlock-archive-post-title-color, #252537);
  text-decoration: none;
}
.widget.widget_recent_entries:not(.widget_recent_bp_docs) ul li a:hover { color: #4e64dd; }
.widget.widget_recent_entries:not(.widget_recent_bp_docs) ul li .post-date {
  font-size: .75rem;
  line-height: 1.3;
  color: #8a8fa6;
}

/* AGIR — Messagerie : pastille des non-lus (13/10/2026)
   Grimlock pour BuddyPress remplace --main-bm-color (triplet R,G,B attendu par Better Messages)
   par une couleur hexadécimale : rgba(var(--main-bm-color), 1) devient invalide et la pastille
   perd son fond (chiffre blanc sur fond transparent). */
.bp-messages-wrap .threads-list .thread .unread-count,
.bp-messages-wrap .threads-list .thread .unread-mention {
  background: #21759b !important;
  color: #fff !important;
}
/* fin AGIR — Messagerie : pastille des non-lus */

/* AGIR — Centre d’aide sur téléphone : l’article d’abord, puis la table des matières, puis la liste des sujets (ordre prévu
   par la base de connaissance, que le thème inversait avec order: -1). */
@media (max-width: 767px) {
  .eckb-kb-template #eckb-article-page-container-v2 #eckb-article-content { order: 1 !important; }
  .eckb-kb-template #eckb-article-page-container-v2 #eckb-article-right-sidebar { order: 2 !important; }
  .eckb-kb-template #eckb-article-page-container-v2 #eckb-article-left-sidebar { order: 3 !important; margin-top: 1.5rem !important; }
}
/* fin AGIR — Centre d’aide sur téléphone */

/* AGIR — Centre d’aide : icônes des catégories dans une pastille, à distance du bord ; encadrés arrondis */
#epkb-ml-basic-layout .epkb-category--left-cat-icon { align-items: center !important; gap: 16px; }
#epkb-ml-basic-layout .epkb-cat-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px;
  background: #eef1fd;
  line-height: 1 !important;
}
#epkb-ml-basic-layout .epkb-cat-name { margin: 0 !important; padding: 0 !important; line-height: 1.25 !important; }
#epkb-ml__module-articles-list #epkb-ml-article-list-basic-layout .epkb-ml-article-section {
  overflow: hidden;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 20px 24px 16px !important;
  box-shadow: 0 2px 14px rgba(37, 37, 55, .07) !important;
}
#epkb-ml__module-articles-list #epkb-ml-article-list-basic-layout .epkb-ml-article-section__head { padding-bottom: 12px !important; margin-bottom: 8px !important; border-bottom: 1px solid #edf0f7; }
.eckb-kb-block-search #epkb-ml__module-search { border-radius: 12px !important; overflow: hidden; }
#epkb-ml__module-search #epkb-ml-search-box { border-radius: 8px !important; overflow: hidden; }
/* fin AGIR — Centre d’aide : icônes des catégories */