/* Styles pour l'aide */

/* Lien d'aide discret - style simple sans bordure */
.help-link {
    position: absolute;
    top: -4px;
    right: 0;
    font-size: 1.4rem;
    padding: 0;
    opacity: 0.7;
    transition: all 0.2s;
    text-decoration: none;
  }
  
  .help-link:hover {
    opacity: 1;
    color: var(--primary) !important;
    transform: scale(1.1);
  }
  
  .help-link:active {
    transform: scale(0.95);
  }
  
  /* Offcanvas aide - Fond sombre */
  .offcanvas-help {
    background: linear-gradient(180deg, #1F304B 0%, #2d1b3d 100%);
    color: var(--text-white);
    width: 400px !important;
    max-width: 90vw;
  }
  
  .offcanvas-help .offcanvas-header {
    background: rgba(0, 0, 0, 0.2);
  }
  
  /* Input de recherche style sombre */
  .form-control-dark {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
  }
  
  .form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.4);
  }
  
  .form-control-dark:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    color: var(--text-white);
    box-shadow: 0 0 0 0.25rem rgba(255, 0, 110, 0.25);
  }
  
  /* Accordion style sombre */
  #helpAccordion .accordion-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  #helpAccordion .accordion-item:last-child {
    border-bottom: none;
  }
  
  #helpAccordion .accordion-button {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: none;
    font-weight: 600;
    padding: 14px 16px;
    transition: all 0.2s;
  }
  
  #helpAccordion .accordion-button:not(.collapsed) {
    background: rgba(255, 0, 110, 0.2);
    color: var(--primary);
    box-shadow: none;
  }
  
  #helpAccordion .accordion-button:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  #helpAccordion .accordion-button::after {
    filter: brightness(0) invert(1);
  }
  
  #helpAccordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) saturate(100%) invert(27%) sepia(89%) saturate(6547%) hue-rotate(322deg) brightness(102%) contrast(106%);
  }
  
  #helpAccordion .accordion-body {
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 16px;
    line-height: 1.6;
  }
  
  /* Sous-accordéons (niveau 2) */
  #helpAccordion .accordion .accordion-button {
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 12px 16px;
    padding-left: 32px;
  }
  
  #helpAccordion .accordion .accordion-button:not(.collapsed) {
    background: rgba(255, 0, 110, 0.15);
    color: #EE8DE0;
  }
  
  #helpAccordion .accordion .accordion-body {
    background: rgba(0, 0, 0, 0.15);
    padding-left: 32px;
    font-size: 0.9rem;
  }
  
  /* Titres dans le contenu */
  #helpAccordion h6 {
    color: var(--primary);
    font-weight: 600;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  /* Listes */
  #helpAccordion ul,
  #helpAccordion ol {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
  }
  
  #helpAccordion li {
    margin-bottom: 0.3rem;
    color: rgba(255, 255, 255, 0.85);
  }
  
  /* Paragraphes */
  #helpAccordion p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
  }
  
  #helpAccordion p strong {
    color: #EE8DE0;
    font-weight: 600;
  }
  
  /* Mise en valeur */
  #helpAccordion .mb-3 {
    border-left: 3px solid rgba(255, 0, 110, 0.3);
    padding-left: 12px;
    margin-left: 0;
  }
  
  /* Résultats de recherche */
  #helpSearchResults {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
  }
  
  #helpSearchResults.text-success {
    color: #10b981 !important;
  }
  
  /* Highlight des mots recherchés */
  .help-highlight {
    background: var(--primary);
    color: white;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
  }
  
  /* Responsive mobile */
  @media (max-width: 576px) {
    .offcanvas-help {
      width: 100% !important;
    }
  }