/* Styles CSS pour les fiches prescripteur
   Version refactorisée pour éviter les conflits */

@charset "UTF-8";
/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
/* Image à la une avec ratio 16:9 fixe */
.featured-image-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* Ratio 16:9 (9/16 = 0.5625 = 56.25%) */
  overflow: hidden;
  border-radius: 8px;
}

.featured-image-16x9 .featured-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

/* Effet hover optionnel */
.featured-image-16x9:hover .featured-img {
  transform: scale(1.03);
}

/* Typographie pour les fiches prescripteur */
.type-fiche_prescripteur h1 {
  font-size: 3rem;
}
.type-fiche_prescripteur h2 {
  font-size: 2.4rem;
  color: #133b6e;
}
.type-fiche_prescripteur h3 {
  font-size: 1.8rem;
}

/* ===== FILTRES ET RECHERCHE ===== */
.fpre-filter {
  margin-bottom: 0rem;
}
.fpre-filter .card {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background-color: #f0ebed;
}
.fpre-filter .card-body {
  padding: 1.5rem;
}

.btn-pressed {
  transform: scale(0.95) !important;
}

/* Champ de recherche moderne avec icônes intégrées */
.search-container {
  position: relative;
}
.search-container .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 4;
}
.search-container .search-icon i {
  font-size: 1rem;
}
.search-container #fpre-search-input {
  border-radius: 5px;
  font-size: 1rem;
  height: 42px;
  padding: 0.75rem 1rem 0.75rem 38px;
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
  width: 100%;
}
.search-container #fpre-search-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
  border-color: #86b7fe;
  outline: 0;
  padding-right: 40px;
}
.search-container #fpre-search-input:focus + .search-icon {
  color: #0037cd;
}
.search-container .btn-clear-search {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 50%;
  opacity: 0.7;
  z-index: 5;
  transition: all 0.3s ease;
}
.search-container .btn-clear-search:hover {
  opacity: 1;
  background-color: #e9ecef;
}

/* Indicateur PDF */
.pdf-tag {
  display: inline-block;
  font-size: .9rem;
  font-weight: 600;
  color: #017bbe;
  padding: 6px 12px;
  background-color: rgba(1, 123, 190, 0.08);
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.pdf-tag:hover {
  background-color: rgba(1, 123, 190, 0.15);
  transform: translateY(-2px);
}

.pdf-tag a {
  color: #017bbe;
  text-decoration: none;
}

.pdf-tag i {
  margin-right: 0.25rem;
  font-size: .9rem;
}
/* ===== CARTES DE FICHES PRESCRIPTEUR ===== */
#fpre-fiches-grid article {
  display: flex;
  height: auto;
  margin-top: .5rem;
}
#fpre-fiches-grid article .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  border: 1px solid white;
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: white;
  animation: fadeIn 0.5s ease-out forwards;
  margin: 0 1.5rem;
  padding: 1rem;
}
#fpre-fiches-grid article .card:hover {
  transform: translateY(-5px);
  border: 1px solid #fff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
#fpre-fiches-grid article .card:hover .card-img-top {
  transform: scale(1.05);
}
#fpre-fiches-grid article .card .card-img-top {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s ease;
  border-radius: 12px;
}
#fpre-fiches-grid article .card .card-body {
  padding: 1.5rem 0rem 0rem 0rem;
}
#fpre-fiches-grid article .card .card-title {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.4rem;
  line-height: 1.5;
  font-weight: 600;
}
#fpre-fiches-grid article .card .card-title a {
  color: #133b6e;
  text-decoration: none;
  transition: all 0.3s ease;
}
#fpre-fiches-grid article .card .card-title a:hover {
  color: #017bbe;
}
#fpre-fiches-grid article .card .card-text {
  color: #333;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: .9rem;
}
#fpre-fiches-grid article .meta-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: #6c757d;
  margin-bottom: 1rem;
  display:none!important;
}
#fpre-fiches-grid article .meta-info span {
  display: flex;
  align-items: center;
}
#fpre-fiches-grid article .meta-info i {
  width: 16px;
  height: 16px;
  text-align: center;
  margin-right: 0.5rem;
  color: #adb5bd;
}

/* ===== PAGINATION ===== */
#fpre-pagination {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
#fpre-pagination .pagination {
  display: flex;
  justify-content: center;
  padding-left: 0;
  list-style: none;
  margin: 0;
}
#fpre-pagination .pagination li {
  margin: 0 0.25rem;
}
#fpre-pagination .pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.5rem;
  border-radius: 20px;
  background-color: white;
  border: 1px solid #dee2e6;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}
#fpre-pagination .pagination .page-numbers:hover {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #0037cd;
  z-index: 2;
}
#fpre-pagination .pagination .page-numbers.current {
  background-color: #0037cd;
  border-color: #0037cd;
  color: white;
  box-shadow: 0 4px 10px rgba(13, 110, 253, 0.2);
}

/* ===== ÉTAT DE CHARGEMENT ===== */
#fpre-loading {
  position: relative;
  padding: 3rem 0;
  text-align: center;
}
#fpre-loading .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.25em;
  color: #0037cd;
  animation: spinner-border 1s linear infinite, pulse 2s ease infinite;
}
#fpre-loading p {
  margin-top: 1rem;
  color: #6c757d;
  font-size: 0.95rem;
}

/* ===== MESSAGES ===== */
#fpre-no-results,
.alert-info {
  background-color: rgba(13, 110, 253, 0.08);
  color: #0a4fb1;
  border: 1px solid rgba(13, 110, 253, 0.1);
  padding: 1.25rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
}

#result-count {
  padding: 0.75rem 0;
  font-style: italic;
  color: #6c757d;
  margin-bottom: 1rem;
}

/* ===== HERO DES FICHES PRESCRIPTEUR ===== */
.hero-fiche-prescripteur {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 8rem 0 4rem 0;
  color: white;
  background-color: #133b6e;
}
.hero-fiche-prescripteur .overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(19, 59, 110, .8);
}
.hero-fiche-prescripteur .container {
  position: relative;
  z-index: 2;
}
.hero-fiche-prescripteur .hero-content {
  margin: 0 auto;
}
.hero-fiche-prescripteur .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: -0.5px;
  color: white;
}
.hero-fiche-prescripteur .hero-description {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-fiche-prescripteur #breadcrumbs {
  font-size: 1rem;
  margin-top: 2rem;
}
.hero-fiche-prescripteur #breadcrumbs a {
  color: #fff;
  text-decoration: none;
}
.hero-fiche-prescripteur #breadcrumbs a:hover {
  text-decoration: underline;
}
.hero-fiche-prescripteur.hero-single {
  padding: 9rem 0 2rem;
}

/* Styles pour la section de téléchargements avec thumbnail */

.downloads-title {
  font-size: 2.8rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 2.5rem;
  position: relative;
  padding-left: 2rem;
}
.download-title-line {
  display: inline-block;
  width: 5px;
  height: 30px;
  background-color: #0037cd;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}
.download-files {
  padding: 1rem 0;
}
.download-file-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  background-color: #fff;
}
.download-file-card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}
.download-file-content {
  display: flex;
  align-items: center;
  padding: 1.5rem;
}
.download-thumbnail {
  flex-shrink: 0;
  margin-right: 1.5rem;
  width: 80px;
  height: 80px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #f5f5f5;
}
.download-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-info {
  flex-grow: 1;
  min-width: 0;
}
.download-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #017bbe;
  margin: 0 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.download-size {
  font-size: .9rem;
  color: #666;
}
.download-action {
  margin-left: 2rem;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #2a85c4;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 0.8rem 2rem;
  font-size: 1.4rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 55, 205, 0.2);
}

.btn-download:hover {
  background-color: #002ca6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 55, 205, 0.25);
}

.btn-download i {
  font-size: 1.2rem;
}

/* Animation pour attirer l'attention sur la section téléchargement */
.downloads-section {
  margin-top: 3rem;
  padding-top: 1rem;
  scroll-margin-top: 80px; /* Permet un meilleur scroll avec ancre */
}

/* ===== ADAPTATIONS RESPONSIVES ===== */
@media (max-width: 991.98px) {
  #fpre-fiches-grid article .card .card-img-top {
    height: 220px;
  }
}

@media (max-width: 767.98px) {
  .fpre-filter .card-body {
    padding: 1rem;
  }
  #fpre-search-input {
    font-size: 0.9rem;
    height: 42px;
    padding: 0.6rem 0.8rem 0.6rem 32px;
  }
  #fpre-fiches-grid article .meta-info {
    gap: 0.5rem;
  }
  #fpre-fiches-grid article .card {
    margin: 0 0.5rem;
  }
  #fpre-fiches-grid article .card .card-img-top {
    height: 220px;
  }

  .download-file-content {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.2rem;
  }
  .download-thumbnail {
    margin-bottom: 1.2rem;
    margin-right: 0;
    width: 60px;
    height: 60px;
  }
  .download-info {
    margin-bottom: 1rem;
    width: 100%;
  }
  .download-action {
    margin-left: 0;
    width: 100%;
  }
  .btn-download {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  #fpre-fiches-grid article .card {
    margin: 0;
    margin-bottom: 1.5rem;
  }
  #fpre-fiches-grid article .card .card-title {
    font-size: 1.2rem;
  }
  #fpre-fiches-grid article .meta-info {
    font-size: 0.8rem;
  }
  #fpre-search-input {
    height: 38px;
    padding: 0.6rem 0.6rem 0.6rem 28px;
  }
  .btn-clear-search {
    padding: 0.2rem 0.3rem;
  }
}
