/**
 * HESPERANS - Livre Blanc Pages Styles
 * =====================================
 * Styles pour les pages de livres blancs avec lecteur PDF intégré
 */

/* ========================================
   SECTION 1 — HERO LIVRE BLANC
   ======================================== */

.lb-hero {
  display: flex;
  flex-direction: column;
  position: relative;
  background: linear-gradient(180deg, #fbfbfb 0%, #fff 100%);
}

.lb-hero > .circles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.lb-hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 100px;
  position: relative;
  z-index: 2;
}

.lb-hero-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #000;
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  width: fit-content;
}

.lb-hero-badge svg {
  width: 16px;
  height: 16px;
}

.lb-hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  color: #000;
  margin: 0;
}

.lb-hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: #333;
  margin: 0;
}

.lb-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.lb-hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Hero Right - Visual */
.lb-hero-right {
  position: relative;
}

.lb-hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.lb-hero-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.lb-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.lb-hero-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.lb-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}

.lb-hero-meta-item svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

/* ========================================
   SECTION 2 — CE QUE VOUS ALLEZ DÉCOUVRIR
   ======================================== */

.lb-discover {
  padding: 80px 0;
  background-color: #fff;
}

.lb-discover-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.lb-discover-card {
  padding: 28px 24px;
  background: #fbfbfb;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
}

.lb-discover-card:hover {
  border-color: #000;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.lb-discover-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  margin: 0 auto 16px;
  color: #000;
}

.lb-discover-title {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #000;
  margin: 0 0 8px;
  line-height: 1.3;
}

.lb-discover-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* ========================================
   SECTION 3 — LECTEUR PDF
   ======================================== */

.lb-reader {
  padding: 80px 0 100px;
  background-color: #f5f5f5;
}

.lb-reader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.lb-reader-title {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #000;
  margin: 0;
}

.lb-reader-actions {
  display: flex;
  gap: 12px;
}

.lb-reader-container {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.lb-pdf-viewer {
  width: 100%;
  height: 85vh;
  min-height: 600px;
  border: none;
  display: block;
}

.lb-pdf-fallback {
  padding: 60px 40px;
  text-align: center;
  background: #fbfbfb;
}

.lb-pdf-fallback p {
  font-size: 16px;
  color: #666;
  margin: 0 0 24px;
}

/* ========================================
   SECTION 4 — AUTEUR
   ======================================== */

.lb-author {
  padding: 80px 0;
  background-color: #fff;
}

.lb-author-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background: #fbfbfb;
  border-radius: 16px;
}

.lb-author-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.lb-author-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-author-name {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #000;
  margin: 0;
}

.lb-author-role {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.lb-author-bio {
  font-size: 15px;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

.lb-author-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.lb-author-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: all 0.25s ease;
}

.lb-author-link:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.lb-author-link svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   SECTION 5 — CTA CONTACT
   ======================================== */

.lb-cta {
  padding: 100px 0;
  background-color: #000;
  position: relative;
  overflow: hidden;
}

.lb-cta .circles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.lb-cta-wrap {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.lb-cta-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: #fff;
  margin: 0 0 20px;
}

.lb-cta-text {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0 0 40px;
}

.lb-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ========================================
   SECTION 6 — AUTRES RESSOURCES
   ======================================== */

.lb-resources {
  padding: 100px 0;
  background-color: #fbfbfb;
}

.lb-resources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.lb-resource-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.lb-resource-card:hover {
  border-color: #000;
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.lb-resource-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}

.lb-resource-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.lb-resource-type {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
}

.lb-resource-title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  margin: 0;
  line-height: 1.3;
}

.lb-resource-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.lb-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.lb-resource-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.lb-resource-card:hover .lb-resource-link svg {
  transform: translateX(4px);
}

/* ========================================
   UTILITAIRES
   ======================================== */

/* Download button style */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-download:hover {
  border-color: #000;
  background: #000;
  color: #fff;
}

.btn-download svg {
  width: 18px;
  height: 18px;
}

/* White variant buttons for dark backgrounds */
.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-white:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.btn-white-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-white-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Section title centered */
.lb-section-title {
  text-align: center;
  margin-bottom: 16px;
}

.lb-section-title .sub-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  margin-bottom: 12px;
}

.lb-section-title .title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  color: #000;
  margin: 0;
  line-height: 1.2;
}

/* Cercles animés */
.circles .circle-1,
.circles .circle-2,
.circles .circle-3,
.circles .circle-4 {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  animation: pulse 10s ease-in-out infinite;
}

.lb-hero .circles .circle-1,
.lb-hero .circles .circle-2,
.lb-hero .circles .circle-3,
.lb-hero .circles .circle-4 {
  background: rgba(0, 0, 0, 0.02);
}

.circles .circle-1 {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
}

.circles .circle-2 {
  width: 300px;
  height: 300px;
  bottom: -50px;
  left: -50px;
  animation-delay: -2s;
}

.circles .circle-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  left: 20%;
  animation-delay: -4s;
}

.circles .circle-4 {
  width: 250px;
  height: 250px;
  bottom: 20%;
  right: 15%;
  animation-delay: -6s;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
  .lb-hero {
    min-height: auto;
  }

  .lb-hero-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 60px 0 80px;
  }

  .lb-hero-title {
    font-size: 32px;
  }

  .lb-hero-right {
    order: -1;
  }

  .lb-discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .lb-resources-grid {
    grid-template-columns: 1fr;
  }

  .lb-resource-card {
    grid-template-columns: 160px 1fr;
  }

  .lb-author-card {
    padding: 32px;
  }
}

@media (max-width: 767px) {
  .lb-hero-wrap {
    padding: 40px 0 60px;
  }

  .lb-hero-title {
    font-size: 28px;
  }

  .lb-hero-subtitle {
    font-size: 17px;
  }

  .lb-hero-ctas {
    flex-direction: column;
  }

  .lb-hero-ctas .primary-btn,
  .lb-hero-ctas .secondary-btn {
    width: 100%;
    justify-content: center;
  }

  .lb-discover,
  .lb-reader,
  .lb-author,
  .lb-cta,
  .lb-resources {
    padding: 60px 0;
  }

  .lb-discover-grid {
    grid-template-columns: 1fr;
  }

  .lb-pdf-viewer {
    height: 70vh;
    min-height: 400px;
  }

  .lb-reader-header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .lb-reader-actions {
    justify-content: center;
  }

  .lb-author-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
  }

  .lb-author-image {
    margin: 0 auto;
  }

  .lb-author-links {
    justify-content: center;
  }

  .lb-resource-card {
    grid-template-columns: 1fr;
  }

  .lb-resource-image {
    aspect-ratio: 16/9;
  }

  .lb-cta-actions {
    flex-direction: column;
  }

  .lb-cta-actions .btn-white,
  .lb-cta-actions .btn-white-outline {
    width: 100%;
  }
}

@media (max-width: 479px) {
  .lb-pdf-viewer {
    height: 60vh;
    min-height: 350px;
  }

  .lb-hero-meta {
    flex-direction: column;
    gap: 8px;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */

.lb-hero-left,
.lb-hero-right {
  animation: fadeInUp 0.8s ease-out;
}

.lb-hero-right {
  animation-delay: 0.2s;
}

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

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