.titreLivre {
  font-weight: 800;
  line-height: 1.1;
  font-size: calc(1.475rem + 2vw);
}

.libreAchat {
  font-weight: 800;
  font-size: calc(1.5rem);
  color: var(--app-blue-prestige);
}

:root {
  --app-orange: #fd7e14;
  --app-blue-dark: #004085;
  --app-blue-prestige: #002d5a;
}

.bg-prestige-dark {
  background-color: var(--app-blue-prestige) !important;
}

/* Custom grid for 5 cards per row */
@media (min-width: 1200px) {
  .col-card-custom {
    flex: 0 0 20%;
    max-width: 20%;
    padding: 0 10px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .col-card-custom {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;
  }
}

@media (max-width: 991px) {
  .col-card-custom {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
  }
}

.btn-orange {
  background-color: var(--app-orange);
  border: 2px solid white;
  /* The "frame" */
  color: white;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 2px var(--app-orange);
  /* Outer ring for depth */
}

.btn-orange:hover {
  background-color: #e66a00;
  border-color: white;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 0 2px #e66a00;
}

.book-card-prestige {
  border: none;
  background: white;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  padding: 15px;
  /* Reduced from 20px */
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  /* height: 100%; Removed to fit content */
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  position: relative;
  /* Enabled for absolute positioning of badges */
}

.book-card-prestige:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.book-card-prestige .card-img-container {
  overflow: hidden;
  border-radius: 4px;
  background-color: transparent;
  /* Changed from #f8f9fa to blend in */
  margin-bottom: 0.75rem;
  padding: 0 15px;
  /* Add lateral padding to shrink image width */
}

.book-card-prestige img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: contain;
  /* Changed from cover to show full book cover without cropping */
  display: block;
}

.book-title-prestige {
  color: var(--app-blue-prestige);
  font-weight: 700;
  font-size: 1.0rem;
  margin-bottom: 0.5rem;
  text-align: left;
  line-height: 1.2;
}

.section-books {
  background-color: #fcfcfc;
}

.hero-prestige {
  position: relative;
  background-color: #004991;
  overflow: hidden;
  color: white;
  padding: 40px 0;
  /* Reduced from 60px */
  font-family: 'Inter', sans-serif;
}

.hero-prestige img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 50%;
  object-fit: cover;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.6;
}

.hero-title-serif {
  font-family: 'Roboto Serif', serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.breadcrumb-prestige {
  background: transparent;
  padding: 0;
  margin-bottom: 2rem;
}

.breadcrumb-prestige .breadcrumb-item a {
  color: #888;
  text-decoration: none;
  font-size: 0.9rem;
}

.breadcrumb-prestige .breadcrumb-item.active {
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
}

.book-cover-detail {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.book-cover-detail:hover {
  transform: scale(1.02);
}

.book-content-prestige {
  font-family: 'Roboto Serif', serif;
  font-size: 1.0em;
  /* line-height: 0.4rem; */
  color: #2c2c2c;
  /* Refined dark grey for better readability */
}

.book-summary-prestige {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.podcast-section-inline {
  border-top: 1px solid #eee;
  padding-top: 2rem;
  margin-top: 3rem;
}

.podcast-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 10px 20px;
  border-radius: 50px;
  color: var(--app-blue-dark);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.podcast-badge:hover {
  background: var(--app-blue-dark);
  color: white;
}

.carousel {
  height: 450px;
}

.taille {
  width: 1920px;
  height: 800px;
}

.imgCover {
  object-fit: cover;
}

.liste-lien {
  text-decoration: none;
  font-weight: 700;
}

.liste-lien:hover {
  font-weight: 800;
}

.nav {
  text-align: center;
}

.text1 {

  font-size: 1.5em;

}

#lecteur-mp3 {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #f0f0f0;
  padding: 10px;
  display: none;
  /* Cache le lecteur initialement */
}


.footer {
  /* position: absolute;
  bottom: 0;
  width: 100%;
  margin-top: 400px; */

  margin-bottom: 0;
  height: 100px;
  /* Set the fixed height of the footer here */
  line-height: 60px;
  /* Vertically center the text there */
  background-color: #4b4a4a;
  color: white;
}


.lien-mp3 {
  margin-left: 1em;
  font-size: 1.2em;
  text-decoration: none;
}

.miedepain {

  font-size: 1.1em;
  /* text-decoration: none; */
  font-weight: bold;
}

.breadcrumb-item+.breadcrumb-item::before {
  float: left;
  padding-right: var(--bs-breadcrumb-item-padding-x);
  color: #f8f9fa !important;
  content: var(--bs-breadcrumb-divider, "/")
    /* rtl: var(--bs-breadcrumb-divider, "/") */
  ;
}

.footer-custom {
  background-color: #002d5a !important;
  /* Force blue background */
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.footer-custom a {
  color: rgba(255, 255, 255, 0.5) !important;
  transition: all 0.3s ease;
}

.footer-custom a:hover {
  opacity: 1 !important;
  color: #fff !important;
}

.badge-new {
  position: absolute;
  top: 0;
  left: 0;
  /* background color set by utility class */
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 12px;
  border-top-left-radius: 8px;
  /* Match card radius */
  border-bottom-right-radius: 8px;
  z-index: 10;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.bg-orange {
  background-color: var(--app-orange) !important;
  color: white;
}

/* Custom Teal Background */
.bg-teal {
  background-color: lab(19.95% -17.66 -1.54) !important;
  color: white;
}

/* Bottom Right Sticker (Add to Cart style) */
.card-sticker-bottom-right {
  position: absolute;
  bottom: 0;
  right: 0;
  /* Background set by utility class */
  color: white;
  padding: 5px 10px;
  border-top-left-radius: 12px;
  border-bottom-right-radius: 8px;
  /* Matches .book-card-prestige radius */
  font-weight: 700;
  font-size: 0.65rem;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  z-index: 10;
  transition: all 0.3s ease;
  white-space: pre-line;
  /* Allows newlines in text */
}

.card-sticker-bottom-right:hover {
  filter: brightness(0.9);
  /* Generic hover effect for any color */
  color: white;
}
/* Global Audio Player */
.audio-player-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    z-index: 9999;
    padding: 10px 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    gap: 20px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
}

.player-cover-img {
    width: 45px;
    height: 45px;
    border-radius: 4px;
    object-fit: cover;
}

.player-text {
    overflow: hidden;
}

.player-title-text {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-subtitle-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.player-btn:hover {
    transform: scale(1.1);
}

.play-main {
    width: 40px;
    height: 40px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-progress-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    min-width: 35px;
}

.progress-bar-wrapper {
    flex-grow: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: #1DB954; /* Spotify-like green */
    width: 0%;
    border-radius: 2px;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
}

#player-volume-slider {
    width: 80px;
    height: 4px;
}

.player-close-btn {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
}

.player-close-btn:hover {
    color: white;
}

@media (max-width: 768px) {
    .player-volume, .player-progress-container {
        display: none;
    }
}
