/* ============================================
   Block Présentations — Styles
   ============================================ */

/* Accordéon : état ouvert */
.pres-accordion-item.open {
  border-color: rgba(42, 170, 226, 0.35) !important;
  background: rgba(42, 170, 226, 0.03) !important;
}

.pres-accordion-item.open .pres-accordion-content {
  max-height: 3000px !important;
  opacity: 1 !important;
}

.pres-accordion-item.open .pres-accordion-chevron {
  transform: rotate(180deg);
}

/* Boutons téléchargement — PDF (bleu) */
.pres-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.pres-dl-pdf {
  border: 1px solid rgba(42, 170, 226, 0.3);
  color: #2aaae2;
  background: rgba(42, 170, 226, 0.08);
}

.pres-dl-pdf:hover {
  background: #2aaae2;
  color: #fff;
  border-color: #2aaae2;
  box-shadow: 0 4px 16px -2px rgba(42, 170, 226, 0.35);
}

/* Boutons téléchargement — PPTX (bleu, même style que PDF) */
.pres-dl-pptx {
  border: 1px solid rgba(42, 170, 226, 0.3);
  color: #2aaae2;
  background: rgba(42, 170, 226, 0.08);
}

.pres-dl-pptx:hover {
  background: #2aaae2;
  color: #fff;
  border-color: #2aaae2;
  box-shadow: 0 4px 16px -2px rgba(42, 170, 226, 0.35);
}

/* Badge de session (Jour 1/Jour 2) */
.pres-accordion-item .session-badge {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
}

/* Ligne intervention : masquer le texte si vide */
.pres-intervention-row p:empty {
  display: none;
}

/* Filtres : scrollbar invisible sur mobile */
#pres-category-filters::-webkit-scrollbar {
  display: none;
}

#pres-category-filters .pres-cat-filter {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Filtre : état par défaut */
.pres-cat-filter {
  border-color: rgba(4, 0, 31, 0.12);
  background: transparent;
  color: rgba(4, 0, 31, 0.45);
}

/* Filtre : hover */
.pres-cat-filter:hover {
  border-color: #04001f;
  background: #04001f;
  color: #fff;
}

/* Filtre : actif */
.pres-cat-filter.active {
  border-color: #2aaae2;
  background: #2aaae2;
  color: #fff;
}

/* Filtre actif : hover identique */
.pres-cat-filter.active:hover {
  border-color: #2aaae2;
  background: #2aaae2;
  color: #fff;
}

/* Ligne intervention */
.pres-intervention-row {
  border-bottom: 1px solid rgba(4, 0, 31, 0.06);
}

.pres-intervention-row:last-child {
  border-bottom: none;
}

.pres-intervention-row:hover {
  background: rgba(42, 170, 226, 0.06);
}

/* Animation d'apparition des items */
.pres-accordion-item {
  animation: pressFadeUp 0.4s ease-out forwards;
  opacity: 0;
}

@keyframes pressFadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pres-accordion-item:nth-child(1) { animation-delay: 0.05s; }
.pres-accordion-item:nth-child(2) { animation-delay: 0.1s; }
.pres-accordion-item:nth-child(3) { animation-delay: 0.15s; }
.pres-accordion-item:nth-child(4) { animation-delay: 0.2s; }
.pres-accordion-item:nth-child(5) { animation-delay: 0.25s; }
.pres-accordion-item:nth-child(6) { animation-delay: 0.3s; }
.pres-accordion-item:nth-child(7) { animation-delay: 0.35s; }
.pres-accordion-item:nth-child(8) { animation-delay: 0.4s; }
.pres-accordion-item:nth-child(9) { animation-delay: 0.45s; }
.pres-accordion-item:nth-child(10) { animation-delay: 0.5s; }
.pres-accordion-item:nth-child(11) { animation-delay: 0.55s; }
.pres-accordion-item:nth-child(12) { animation-delay: 0.6s; }

/* Responsive mobile */
@media (max-width: 640px) {
  .pres-dl-btn {
    padding: 5px 8px;
    font-size: 0;
  }

  .pres-dl-btn svg {
    width: 16px;
    height: 16px;
  }

  .pres-accordion-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
