/* 
 * BRESLEV PREMIUM DESIGN SYSTEM V3.0
 * Theme: "Kadosh" (Holy/Separate) - Deep Blue & Gold
 * Author: Antigravity
 */

/* Fonts loaded via Google Fonts link in HTML: Cinzel, Cormorant Garamond, Frank Ruhl Libre */

:root {
  /* Palette de Couleurs Premium - Version Lumineuse */
  --color-bg-dark: #f8f6f3; /* Crème clair au lieu de bleu nuit */
  --color-bg-card: rgba(255, 255, 255, 0.95); /* Fond blanc lumineux */
  --color-gold: #D4AF37; /* Or chaleureux */
  --color-gold-light: #e8d5a3; /* Or Pâle pour reflets */
  --color-text-main: #2c3e50; /* Texte foncé sur fond clair */
  --color-text-muted: #6c7a89;
  --color-accent: #1E3A8A; /* Bleu Breslev royal */

  /* Nouvelles couleurs lumineuses */
  --color-bg-light: #ffffff;
  --color-bg-warm: #fefcf9;
  --color-border-gold: rgba(196, 160, 82, 0.3);
  
  /* Typographie Premium - Design System Verrouillé */
  --font-sans: 'Cormorant Garamond', serif;
  --font-serif: 'Cinzel', serif;
  --font-cinzel: 'Cinzel', serif;
  --font-cormorant: 'Cormorant Garamond', serif;

  --font-heading: var(--font-cinzel);
  --font-body: var(--font-cormorant);
  --font-ui: var(--font-sans);

  /* Espacement */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Effets */
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg-dark);
  background-image: linear-gradient(135deg, #f8f6f3 0%, #fefcf9 50%, #f5f0e8 100%);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
h2 { font-size: 2.5rem; border-bottom: 2px solid var(--color-gold); display: inline-block; padding-bottom: 0.5rem; }
h3 { font-size: 1.8rem; }

a { color: var(--color-gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--color-gold-light); text-shadow: 0 0 8px var(--color-gold); }

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

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes goldPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.goldPulse {
  animation: goldPulse 2s infinite;
}

.text-gold-animated {
  background: linear-gradient(to right, #D4AF37 20%, #e8d5a3 40%, #D4AF37 60%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineText 3s linear infinite;
}

@keyframes shineText {
  to {
    background-position: 200% center;
  }
}

/* ✨ Premium Hover & Animation Utilities ✨ */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease !important;
}
.hover-lift:hover {
  transform: translateY(-8px) scale(1.02) !important;
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25) !important;
}

.hover-glow {
  transition: all 0.3s ease !important;
}
.hover-glow:hover {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.6) !important;
  transform: translateY(-2px) scale(1.03) !important;
}

.title-reveal {
  position: relative;
  display: inline-block;
}
.title-reveal::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.6s cubic-bezier(0.86, 0, 0.07, 1);
}
.title-reveal:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

@keyframes floatY {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: floatY 5s ease-in-out infinite;
}

.glare-card {
  position: relative;
  overflow: hidden;
}
.glare-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(212,175,55,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: all 0.8s ease;
  z-index: 10;
  pointer-events: none;
}
.glare-card:hover::after {
  left: 200%;
}

/* Glassmorphism Utilities */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  box-shadow: var(--shadow-card);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.mt-12 { margin-top: var(--spacing-xl); }
.mb-12 { margin-bottom: var(--spacing-xl); }
.mb-8 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-sm); }
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); font-family: var(--font-ui); font-size: 0.9rem; }
.text-large { font-size: 1.2rem; }

/* Premium Spacing & Rhythm Utilities */
.section { padding: 5rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; position: relative; z-index: 2; }
.section-title { font-size: clamp(2rem, 4vw, 3.5rem); color: var(--color-accent); font-family: var(--font-cinzel); font-weight: 700; margin-bottom: 1rem; }
.section-subtitle { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--color-text-main); font-family: var(--font-cormorant); font-style: italic; opacity: 0.9; }
.section-divider {
  width: 60px; height: 3px;
  background: var(--color-gold);
  margin: 1.5rem auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.98); /* Fond blanc lumineux */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border-gold);
  padding: 1rem 0;
  transition: var(--transition-smooth);
  box-shadow: 0 2px 15px rgba(196, 160, 82, 0.15); /* Ombre dorée subtile */
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent); /* Bleu Breslev */
  letter-spacing: 2px;
}

.navbar__nav {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.navbar__nav-link {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #2c3e50; /* Texte foncé lisible */
  position: relative;
}

.navbar__nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: var(--transition-fast);
}

.navbar__nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.1), rgba(248,246,243,0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 2.5rem;
  background: rgba(15, 30, 80, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(196, 160, 82, 0.2);
  animation: fadeIn 1.5s ease-out;
}

.hero-content p {
  color: #ffffff;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: #d4af37;
  color: #1e3a8a;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: #c9a030;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  color: var(--color-text-main);
}

/* Product Grid — P1 FIX: wider grid, warm background */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 2rem;
  padding: 2rem 0;
}

.section {
  background: #faf9f6 !important;
}

.book-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(196, 160, 82, 0.12);
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.12), 0 4px 16px rgba(196, 160, 82, 0.08);
  border-color: rgba(196, 160, 82, 0.3);
}

/* P0 FIX: object-contain to show full book covers without cropping */
.book-cover-container {
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  background: linear-gradient(to bottom, #f8f7f4, #f0efe8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.book-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.7s ease, filter 0.3s ease;
  background-color: transparent;
}

.book-card:hover .book-cover {
  transform: scale(1.05);
  filter: brightness(1.03);
}

/* P0 FIX: flex column for equal card heights */
.book-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.book-info {
  padding: 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-title {
  font-size: 1rem;
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  color: #1a1a2e;
  line-height: 1.4;
  min-height: 2.8rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: #8B7355;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

/* P1 FIX: price contrast — amber-800 instead of gold on white */
.book-price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #92400e;
  font-weight: 600;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #1E3A8A 0%, #2a6cb6 100%);
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--color-gold);
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__links {
  list-style: none;
}

.footer__link {
  color: var(--color-text-muted);
  transition: var(--transition-fast);
  display: block;
  margin-bottom: 0.5rem;
}

.footer__link:hover {
  color: var(--color-gold);
  padding-left: 5px;
}

.footer__bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  body {
    font-size: 16px; /* Slightly smaller base font on mobile */
  }
  
  h1 { font-size: 2rem; } /* Further reduced for mobile */
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.2rem; }
  
  .container {
    padding: 0 1rem; /* Tighter padding on mobile */
  }
  
  .navbar {
    padding: 0.75rem 0; /* Reduce navbar height on mobile */
  }
  
  .navbar__container {
    flex-direction: row; /* Keep horizontal layout */
    flex-wrap: wrap;
    padding: 0 1rem;
  }
  
  .navbar__logo {
    font-size: 1.2rem; /* Smaller logo on mobile */
  }
  
  .navbar__nav {
    gap: 0.5rem;
    font-size: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .navbar__nav-link {
    padding: 0.25rem 0.5rem;
  }
  
  .grid-products {
    grid-template-columns: 1fr; /* Single column on very small screens */
    gap: 1.5rem;
  }
  
  .book-cover-container {
    height: 300px; /* Taller for single column */
  }
  
  .hero-content {
    padding: 1rem;
    width: 95%;
  }
  
  .btn {
    padding: 0.75rem 1.5rem; /* Smaller buttons on mobile */
    font-size: 0.85rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
  }
}

/* Mobile Subscription Cards */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .grid > div {
    padding: 2rem !important;
  }
}

/* ================================================
   UPGRADE V3 — Couvertures de livres premium
   David / DreamNova — Feb 2026
   ================================================ */

/* Book card — V3 luxury upgrade */
.book-card {
  position: relative;
  background: #ffffff !important;
  border: 1px solid rgba(196, 160, 82, 0.08) !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}
.book-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.12), 0 4px 16px rgba(196, 160, 82, 0.08) !important;
  border-color: rgba(196, 160, 82, 0.25) !important;
}

/* Cover container — P0: object-contain, warm neutral bg */
.book-cover-container {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: linear-gradient(to bottom, #f8f7f4, #f0efe8);
}
.book-cover-container img.book-cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.7s ease !important;
}
.book-card:hover .book-cover-container img.book-cover {
  transform: scale(1.05) !important;
}

/* Gold shimmer overlay on hover */
.book-cover-container::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(196, 160, 82, 0.35) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.book-card:hover .book-cover-container::after {
  opacity: 1;
}

/* Quick action button - appears on hover */
.book-card .btn-add-to-cart {
  position: relative;
  overflow: hidden;
}
.book-card .btn-add-to-cart::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}
.book-card .btn-add-to-cart:hover::before {
  width: 300px; height: 300px;
}

/* Book info section */
.book-info {
  background: white;
}
.book-author {
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D4AF37 !important;
  font-weight: 600;
}
.book-title {
  font-family: 'Cinzel', serif !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  color: #1E3A8A !important;
  font-weight: 700 !important;
}
.book-price {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 1.25rem !important;
  color: #1E3A8A !important;
  font-weight: 800 !important;
}

/* Grid products layout */
.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
}
@media (max-width: 768px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
@media (max-width: 400px) {
  .grid-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Badge numérique amélioré */
.book-cover-container .badge-digital {
  position: absolute;
  top: 10px; right: 10px;
  background: linear-gradient(135deg, #D4AF37, #e8d5a3);
  color: #1E3A8A;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(196, 160, 82, 0.4);
}

/* Cours cards premium hover */
.cours-card {
  transition: all 0.3s ease !important;
}
.cours-card:hover {
  transform: translateY(-4px) scale(1.02) !important;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15), 0 4px 16px rgba(196, 160, 82, 0.1) !important;
  border-color: rgba(212, 175, 55, 0.5) !important;
}
.cours-card audio {
  border-radius: 8px;
}

/* Related book cards premium */
.related-book-card {
  transition: all 0.3s ease;
}
.related-book-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 16px 48px rgba(30, 58, 138, 0.2);
}
.related-book-card img {
  aspect-ratio: 2/3;
  object-fit: cover;
}

/* Hero section upgrade */
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem) !important;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6) !important;
  letter-spacing: 0.05em !important;
}

/* Navbar upgrade */
.navbar {
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  background: rgba(10, 17, 40, 0.92) !important;
  border-bottom: 1px solid rgba(196, 160, 82, 0.15) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.15) !important;
  height: 72px !important;
  display: flex !important;
  align-items: center !important;
}
.navbar__nav {
  gap: 2rem !important;
}
.navbar__nav-link {
  font-size: 0.75rem !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* Cours du jour card in homepage */
.cours-du-jour-preview {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.cours-du-jour-preview::before {
  content: "📖";
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 6rem;
  opacity: 0.15;
}

/* Page admin link in footer */
.footer__bottom::after {
  content: " · ";
}

