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

/* A39 (7 mai 2026) : @import Google Fonts retiré ici — déjà chargé dans <head> via server-local.js:1058. Le @import dans CSS bloque le rendu (waterfall HTML → CSS → @import). Suppression doublon = +4-6 pts Lighthouse. */

: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: #c4a052; /* 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: #1e5799; /* 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: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', 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 {
  /* Default = sur fond MARINE/sombre (gradient cream/gold doux + animé) */
  background: linear-gradient(to right, #c4a052 20%, #e8d5a3 40%, #c4a052 60%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shineText 3s linear infinite;
  font-weight: 700;
}
/* Sur fond CLAIR (cream/blanc) : gradient OR FONCÉ pour lisibilité WCAG AA */
.text-gold-animated--dark,
section[style*="cream"] .text-gold-animated,
section[style*="FFFEF7"] .text-gold-animated,
section[style*="F5F0E6"] .text-gold-animated,
section[style*="ffffff"] .text-gold-animated,
.container .text-gold-animated:not(.hero-title),
[class*="bg-cream"] .text-gold-animated,
.section-title.text-gold-animated {
  background: linear-gradient(to right, #6b4d18 20%, #8B6914 40%, #6b4d18 60%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  font-weight: 800 !important;
}

@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: 10003; /* FIX-BURGER: doit être AU-DESSUS du menu panel (10000) et overlay (9999) pour que le bouton hamburger reste cliquable */
  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, #1e5799 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: #c4a052 !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: 'Montserrat', sans-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, #c4a052, #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: " · ";
}

/* ═══════════════════════════════════════════════════════════════
   PHASE E.1+E.2+E.3 — OVERRIDES PREMIUM (loaded LAST)
   Esther verbatim : pas de text-shadow sur H1/H2/CTA, pas de blur
   ═══════════════════════════════════════════════════════════════ */

/* Esther verbatim : ZÉRO text-shadow / drop-shadow sur titres et CTA (ça flou) */
h1,
h2,
.hero-title,
.hero__title,
.section-title,
.btn,
.btn-primary,
.btn-outline,
.btn-secondary,
.cta,
.btn-add-to-cart {
  text-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* Override h1 du premium qui avait text-shadow + uppercase aggressif */
h1 {
  text-shadow: none !important;
  text-transform: none;
  font-size: 3rem;
  line-height: 1.2;
}

@media (min-width: 769px) {
  h1 {
    font-size: 3.5rem;
  }
}

h2 {
  font-size: 2.2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.6rem;
  line-height: 1.4;
}

/* Hero title sans text-shadow (Esther : c'est le flou) */
.hero-title {
  font-size: clamp(2.5rem, 7vw, 4.5rem) !important;
  text-shadow: none !important;
  letter-spacing: 0.02em !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
}

/* Headings sur fond clair : marine fonce + lisible (et NON or pâle) */
h2, h3, h4, h5, h6 {
  color: #1E3A8A;
}

/* Body text — taille confort 18px / 1.8 line-height */
body {
  font-size: 18px;
  line-height: 1.8;
}

p {
  margin-bottom: 1.2rem;
  line-height: 1.8;
  color: #1F2937;
}

/* Liens text-shadow OFF (le premium ajoute glow au hover) */
a:hover {
  text-shadow: none !important;
}

/* Footer marine : texte presque blanc opaque (pas 0.3) */
.footer,
.footer p,
.footer li,
.footer span,
.footer__link,
.footer__section-title {
  color: rgba(255, 255, 255, 0.95) !important;
}

.footer__link:hover {
  color: #FCD34D !important;
  padding-left: 5px;
  text-decoration: underline;
}

.footer__bottom {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* PHASE E.3 - BUTTONS PREMIUM : marine fonce + texte BLANC weight 700 */
.btn {
  padding: 1.1rem 2.5rem !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  transition: all 0.25s ease !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
}

.btn:focus-visible {
  outline: 3px solid #D4AF37 !important;
  outline-offset: 2px !important;
}

.btn-primary {
  background: #1E3A8A !important;
  color: #FFFFFF !important;
  border: none !important;
  font-weight: 700 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2) !important;
}

.btn-primary:hover {
  background: #D4AF37 !important;
  color: #1E3A8A !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25) !important;
}

.btn-outline,
.btn-secondary {
  background: transparent !important;
  color: #1E3A8A !important;
  border: 2px solid #1E3A8A !important;
  font-weight: 700 !important;
}

.btn-outline:hover,
.btn-secondary:hover {
  background: #1E3A8A !important;
  color: #FFFFFF !important;
  border-color: #1E3A8A !important;
}

/* "Ajouter au panier" — Esther verbatim : blanc/marine weight 700 */
.btn-add-to-cart,
.add-to-cart,
button[class*="ajouter"],
button[class*="panier"],
.book-card .btn-add-to-cart {
  background: #1E3A8A !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border: none !important;
  text-shadow: none !important;
  padding: 1.1rem 2.5rem !important;
  border-radius: 12px !important;
  transition: all 0.25s ease !important;
}

.btn-add-to-cart:hover,
.add-to-cart:hover,
button[class*="ajouter"]:hover,
button[class*="panier"]:hover,
.book-card .btn-add-to-cart:hover {
  background: #D4AF37 !important;
  color: #1E3A8A !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.25) !important;
}

/* Footer social icons taille 2rem */
.footer__social .fab,
.footer__social i,
footer .footer__social i,
footer i.fab,
footer i.fa-brands,
.social-links i {
  font-size: 2rem !important;
  line-height: 1 !important;
}

.footer__social a,
.social-links a {
  color: rgba(255, 255, 255, 0.95) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 0.5rem;
  transition: all 0.25s ease;
}

.footer__social a:hover,
.social-links a:hover {
  color: #FCD34D !important;
  transform: translateY(-2px);
}

/* Cards "Bientôt disponible" / "Indisponible" — GRIS DISCRET (Esther) */
.book-card.unavailable,
.product-card.unavailable,
.book-card[data-status="unavailable"],
.book-card.coming-soon,
.product-card.coming-soon {
  opacity: 0.65;
  filter: grayscale(0.4);
}

.indisponible-badge,
.badge-bientot,
.badge-bientot-disponible,
.badge-indisponible,
.badge-coming-soon,
.badge-unavailable,
[class*="bientot"][class*="badge"],
[class*="indisponible"][class*="badge"] {
  background: #9CA3AF !important;
  background-color: #9CA3AF !important;
  color: #FFFFFF !important;
  padding: 0.4rem 1rem !important;
  border-radius: 16px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none !important;
}

/* No-justify (Esther : laid sur mobile) */
.justified,
.text-justify,
.container p,
article p,
.book-description,
.product-description {
  text-align: left !important;
}

/* Footer phone overflow */
.footer__phone,
.footer a[href^="tel:"],
.footer a[href^="mailto:"] {
  white-space: nowrap;
  overflow-wrap: anywhere;
  word-break: keep-all;
  display: inline-block;
}

/* Section "Bibliothèque Audio" titre lisible */
.audio-library h2,
.audio-library__title,
.section--dark h2,
.section--marine h2,
[class*="bibliotheque"] h2,
[class*="audio-section"] h2 {
  font-size: 2.5rem !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.2 !important;
  text-shadow: none !important;
}

/* Cours du jour — texte blanc opaque sur marine */
.cours-du-jour-preview,
.cours-du-jour-preview p,
.cours-du-jour-preview h2,
.cours-du-jour-preview h3 {
  color: #FFFFFF !important;
}

/* Inputs focus-visible ring or */
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.form-input:focus-visible {
  outline: 3px solid #D4AF37 !important;
  outline-offset: 2px !important;
  border-color: #1E3A8A !important;
}

/* ═══════════════════════════════════════════════════════════════
   A23 — H4 Vision + H1 UX fixes (Mai 2026)
   FIX #1 : WCAG body contrast (#1F2937 sur fond clair)
   FIX #2 : Cormorant Garamond body partout
   FIX #3 : WhatsApp floating CTA position bottom-right (mobile)
   ═══════════════════════════════════════════════════════════════ */

body,
p,
li,
td,
.description,
.text,
.text-body {
  font-family: 'Cormorant Garamond', 'Lora', 'Garamond', Georgia, serif !important;
  color: #1F2937 !important;
}

body {
  font-size: 18px !important;
  line-height: 1.8 !important;
}

p, li, td, .description, .text, .text-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Préserver les couleurs blanches sur fond marine/sombre (override A23 ciblé) */
.section--dark, .section--dark p, .section--dark li, .section--dark td,
.section--marine, .section--marine p, .section--marine li, .section--marine td,
[class*="bg-marine"], [class*="bg-marine"] p, [class*="bg-marine"] li, [class*="bg-marine"] td,
[class*="bg-dark"], [class*="bg-dark"] p, [class*="bg-dark"] li, [class*="bg-dark"] td,
footer, footer p, footer li, footer td,
.hero-content, .hero-content p, .hero-content li {
  color: rgba(255, 255, 255, 0.95) !important;
}

/* A27 — Dark navy hero gradients (inline style) preserve white/gold text legibility */
[style*="linear-gradient(135deg, var(--navy"],
[style*="linear-gradient(135deg, #1E3A8A"],
[style*="linear-gradient(135deg,#1E3A8A"] {
  color: #ffffff;
}
[style*="linear-gradient(135deg, var(--navy"] p,
[style*="linear-gradient(135deg, #1E3A8A"] p,
[style*="linear-gradient(135deg,#1E3A8A"] p,
[style*="linear-gradient(135deg, var(--navy"] li,
[style*="linear-gradient(135deg, #1E3A8A"] li {
  color: #ffffff !important;
}
[style*="linear-gradient(135deg, var(--navy"] p[style*="color:#F5E6A3"],
[style*="linear-gradient(135deg, var(--navy"] p[style*="color: #F5E6A3"],
[style*="linear-gradient(135deg, #1E3A8A"] p[style*="color:#F5E6A3"],
[style*="linear-gradient(135deg, #1E3A8A"] p[style*="color: #F5E6A3"] {
  color: #F5E6A3 !important;
}

/* Préserver Cinzel/Outfit pour titres et badges */
h1, h2, h3, h4, h5, h6,
.text-gold-animated,
.btn,
.badge,
.navbar__brand,
.header-brand,
.logo-text {
  font-family: 'Cinzel', 'Outfit', Georgia, serif !important;
}

/* FIX #3 — WhatsApp floating CTA position bottom-right */
.wa-floating-cta,
.whatsapp-float,
[class*="whatsapp-float"],
[class*="wa-float"] {
  position: fixed !important;
  bottom: 1.5rem !important;
  right: 1.5rem !important;
  top: auto !important;
  left: auto !important;
  z-index: 9990 !important;
}

@media (min-width: 768px) {
  .wa-floating-cta,
  .whatsapp-float,
  [class*="whatsapp-float"],
  [class*="wa-float"] {
    bottom: 2rem !important;
    right: 2rem !important;
  }
}

/* Décaler quand le lecteur audio sticky est visible */
body.audio-player-active .wa-floating-cta,
body.audio-player-active .whatsapp-float,
body.audio-player-active [class*="whatsapp-float"],
body.audio-player-active [class*="wa-float"] {
  bottom: 6.5rem !important;
}
@media (max-width: 600px) {
  body.audio-player-active .wa-floating-cta,
  body.audio-player-active .whatsapp-float,
  body.audio-player-active [class*="whatsapp-float"],
  body.audio-player-active [class*="wa-float"] {
    bottom: 5.5rem !important;
  }
}

/* =====================================================
   A25 FIX — Burger Mobile (force visibilité menu)
   ===================================================== */
@media (max-width: 768px) {
  /* Force burger visible above EVERYTHING */
  .mobile-menu-toggle {
    display: block !important;
    z-index: 10002 !important;
    cursor: pointer;
  }
  /* Force navbar__nav default hidden but ready to slide in */
  .navbar__nav {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 80% !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    padding: 5rem 1.5rem 2rem !important;
    gap: 0 !important;
    z-index: 10000 !important;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.18) !important;
    transition: left 0.32s ease !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  .navbar__nav.active {
    left: 0 !important;
  }
  .navbar__nav li {
    list-style: none !important;
    width: 100% !important;
    padding: 0 !important;
  }
  .navbar__nav-link {
    display: block !important;
    padding: 1rem 0 !important;
    font-size: 1rem !important;
    color: #1E3A8A !important;
    border-bottom: 1px solid rgba(196, 160, 82, 0.25) !important;
    width: 100% !important;
    text-decoration: none !important;
  }
  .menu-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
    display: none !important;
  }
  .menu-overlay.active {
    display: block !important;
  }
}

/* A27 — Mobile burger menu : nav links lisibles (override absolu, hors media query pour gagner specificite) */
.navbar__nav.active .navbar__nav-link,
ul.navbar__nav.active li a,
ul.navbar__nav.active li a.navbar__nav-link {
  color: #1E3A8A !important;
  font-weight: 600 !important;
  background: #ffffff !important;
}
.navbar__nav.active .navbar__nav-link[style*="--gold"],
.navbar__nav.active .navbar__nav-link[style*="color-gold"],
.navbar__nav.active a[href="/collections/all"],
.navbar__nav.active a[href="/audio"] {
  color: #C9A961 !important;
}

/* ═════════════════════════════════════════════════════════════
   A31 — Polish desktop + responsive (audit Gemini Vision 5 mai)
   Fix : textes coupés, alignement boutons, navbar spacing, badge prix
   ═════════════════════════════════════════════════════════════ */

/* Fix #1 : descriptions longues — empêche les troncatures latérales */
main p, main .description, main .product-description, main .description-text,
.section-subtitle, .product-info p, .audio-category-card p, .container > p {
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto;
}

/* Fix #2 : navbar spacing — éviter chevauchement logo / nav links sur desktop */
@media (min-width: 769px) {
  .navbar__container {
    gap: 1.5rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .navbar__logo {
    margin-right: 1.5rem !important;
  }
  .navbar__nav {
    gap: 0.6rem !important;
  }
  .navbar__nav-link {
    padding: 0.4rem 0.6rem !important;
  }
}

/* Fix #3 : section catalogue — éviter texte coupé */
.section-subtitle,
.section-header p,
section[id*="biblio"] p,
section[id*="catalog"] p {
  max-width: 90% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 1rem !important;
  padding-right: 1rem !important;
  text-align: center !important;
}

/* Fix #4 : boutons "AJOUTER AU PANIER" mobile — éviter texte coupé */
@media (max-width: 600px) {
  .book-card .btn,
  .product-card .btn,
  .add-to-cart-btn,
  button[class*="add-to-cart"],
  a[class*="add-to-cart"] {
    font-size: 0.72rem !important;
    padding: 0.7rem 0.5rem !important;
    letter-spacing: 0.04em !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    min-height: 44px !important;
  }
}

/* Fix #5 : badge prix produit (#13 Tikoun) — repositionnement clean */
.book-card .price-badge,
.product-card .price-badge,
[class*="badge-price"],
.book-cover-container .price-tag {
  position: absolute !important;
  bottom: 0.7rem !important;
  right: 0.7rem !important;
  background: rgba(15, 23, 42, 0.92) !important;
  color: #D4AF37 !important;
  padding: 0.4rem 0.75rem !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  z-index: 2 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

/* Fix #6 : WhatsApp CTA — empêche chevauchement bord écran sur pages avec overflow */
.wa-floating-cta {
  right: max(1rem, env(safe-area-inset-right, 1rem)) !important;
  bottom: max(1rem, env(safe-area-inset-bottom, 1rem)) !important;
}
@media (max-width: 600px) {
  .wa-floating-cta {
    right: 0.85rem !important;
    bottom: 0.85rem !important;
  }
}

/* Fix #7 : "MON PANIER" titre + alignement uniforme */
.cart-page h1, .cart-page .empty-state,
main h1.text-center, main h2.text-center {
  text-align: center !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Fix #8 : "Retour à la bibliothèque" — alignement icône+texte */
a[href*="collections/all"] i,
a[href*="collections/all"] svg,
.btn i, .btn svg {
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Fix #9 : descriptions paragraphes produits — line-height + max-width pour lisibilité */
.product-detail p, .product-info p, .description-long p,
[class*="description"] p {
  max-width: 70ch !important;
  text-align: left !important;
}

/* Fix #10 : couleurs prix cohérentes (avant: "26 €" + "9 €" couleurs différentes) */
.price-main, .price-physical, .price-display,
[class*="price-physical"] {
  color: #1E3A8A !important;
  font-weight: 700 !important;
}
.price-secondary, .price-digital, .price-pdf,
[class*="price-digital"] {
  color: #6B7280 !important;
  font-weight: 500 !important;
  font-size: 0.85em !important;
}

/* ═════════════════════════════════════════════════════════════
   A32 — Push to 9/10 (audit Gemini Vision 5 mai post-A31)
   Cible : desktop 9/10 + mobile 9/10
   ═════════════════════════════════════════════════════════════ */

/* A32 — fix catalogue + product pages : couvertures avec texte/prix incrustés.
   theme-elegance.css force object-fit:cover qui CROP la bas du livre.
   Specificite triple-class + !important pour gagner contre theme-elegance.css. */
.book-card .book-cover-container .book-cover,
.book-card .book-cover-container img.book-cover,
.book-card .book-cover-container img,
.related-book-card img {
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0.5rem !important;
  background: linear-gradient(180deg, #f8f7f4 0%, #f0efe8 100%) !important;
}

/* A32 — fix product1, product14 : image livre dans page detail aussi en contain */
.product-image-section img,
.product-page .product-image-section img {
  object-fit: contain !important;
  background: linear-gradient(180deg, #fdfcf9 0%, #f5f0e6 100%) !important;
  max-height: 580px !important;
}

/* A32 — fix product card aspect-ratio sur mobile :
   garde 2/3 mais permet aux covers de respirer (image entiere visible) */
@media (max-width: 600px) {
  .book-card .book-cover-container {
    aspect-ratio: 3 / 4 !important;
    background: #ffffff !important;
  }
  .book-card .book-cover-container .book-cover {
    object-fit: contain !important;
    padding: 0.4rem !important;
  }
}

/* A32 — fix audio_lm desktop : description tronquee
   Inline style "white-space: nowrap; overflow: hidden; text-overflow: ellipsis"
   Override avec specificite et !important */
.audio-track-item p,
.audio-track-item div p,
div.audio-track-item .audio-track-item-meta,
.audio-tracks-list .audio-track-item p {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.45 !important;
  margin-top: 0.15rem !important;
}

/* A32 — fix audio_lm desktop : alignement bouton "Ecouter" + duration */
.audio-track-item {
  align-items: flex-start !important;
}
.audio-track-item > div:last-child {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0.4rem !important;
  min-width: 110px !important;
}
.audio-track-item .play-audio-btn {
  margin-top: 0 !important;
  white-space: nowrap !important;
}

/* A32 — fix cart desktop : centrage parfait "MON PANIER" + cart badge */
main h1, .container > h1, .page-cart h1, .cart-page h1 {
  text-align: center !important;
}
.navbar__actions .cart-badge,
a[href="/cart"] .cart-badge,
.btn-outline .cart-badge {
  top: -2px !important;
  right: -2px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  font-size: 0.7rem !important;
  border: 2px solid #0f172a !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35) !important;
}

/* A32 — fix cart vide : etat premium centre */
.empty-cart, .cart-empty, [class*="cart"][class*="empty"] {
  text-align: center !important;
  padding: 2rem 1rem !important;
}

/* A32 — fix product detail desktop : alignement "26 €" + "ou 9 € en numerique" */
.product-info-section > div[style*="display: flex"][style*="align-items: baseline"] {
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 0.75rem 1rem !important;
}
.product-price {
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

/* A32 — fix mobile product cards : prix lisible + description complete */
@media (max-width: 600px) {
  .book-card .book-info {
    padding: 1rem 0.75rem !important;
  }
  .book-card .book-title {
    font-size: 0.9rem !important;
    line-height: 1.3 !important;
    min-height: 2.4rem !important;
  }
  .book-card .book-author {
    font-size: 0.75rem !important;
    color: #6b7280 !important;
  }
  .book-card .book-price {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #1E3A8A !important;
  }
}

/* A32 — fix navbar mobile : whatsapp icon + cart icon spacing */
@media (max-width: 600px) {
  .wa-floating-cta {
    width: 52px !important;
    height: 52px !important;
    font-size: 0.7rem !important;
    right: 0.75rem !important;
    bottom: 5.5rem !important;
  }
}

/* A32 — accessibility : focus rings WCAG AA partout */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #D4AF37 !important;
  outline-offset: 2px !important;
  border-radius: 4px !important;
}

/* A32 — typography hierarchy : ensure no text overflow on any page */
main * {
  min-width: 0;
}
main p, main h1, main h2, main h3, main h4, main h5, main li, main span, main div {
  overflow-wrap: break-word !important;
}

/* A32 — cohesion bouton "Retour a la bibliotheque" */
a[href*="/collections/all"] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  font-weight: 600 !important;
}
a[href*="/collections/all"] i, a[href*="/collections/all"] svg {
  font-size: 0.9em !important;
  line-height: 1 !important;
}

/* A32 — empty cart state premium look */
.cart-page main, .container.cart-content {
  padding-top: 2rem !important;
}
[class*="empty"] [class*="cart"], div[style*="panier est vide"], main:has(h1:contains("MON PANIER")) {
  background: linear-gradient(180deg, rgba(248,247,244,0.5) 0%, transparent 100%);
  border-radius: 12px;
}

/* A32 — book cover hover refinement (sobriete classique) */
.book-card:hover .book-cover {
  transform: scale(1.025) !important;
  filter: brightness(1.02) !important;
  transition: transform 0.5s ease, filter 0.5s ease !important;
}

/* A32 — A32 marker for deploy verification */
.a32-marker { content: "A32-deployed"; }

/* ═════════════════════════════════════════════════════════════
   A33 — Push to 9/10 part 2 (audit Gemini Vision A32)
   Cible : cart badge sobre, WhatsApp non-overlap, mobile cards refinements
   ═════════════════════════════════════════════════════════════ */

/* A33 — fix cart badge : couleur or sur navy (sobre, WCAG AA),
   plus de rouge agressif. Override inline style avec specificite. */
a[href="/cart"] .cart-badge,
.btn-outline .cart-badge,
.navbar__actions .cart-badge,
span.cart-badge[style] {
  background: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%) !important;
  color: #D4AF37 !important;
  border: 1.5px solid #D4AF37 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

/* A33 — fix WhatsApp floating CTA : ne pas overlap les cards produit mobile.
   Position plus basse + plus petit sur mobile pour eviter overlap. */
@media (max-width: 600px) {
  .wa-floating-cta {
    bottom: 1rem !important;
    right: 1rem !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 0 !important;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(34,197,94,0.35) !important;
  }
  .wa-floating-cta i,
  .wa-floating-cta svg {
    font-size: 1.4rem !important;
  }
  /* Sur les pages produit, masquer le label texte du WA CTA */
  body.product-detail .wa-floating-cta span,
  .product-page ~ .wa-floating-cta span {
    display: none !important;
  }
}

/* A33 — fix product detail mobile : empêche overflow horizontal */
@media (max-width: 600px) {
  .product-page {
    padding: 0.75rem !important;
    overflow-x: hidden !important;
  }
  .product-info-section {
    padding: 0 0.5rem !important;
    max-width: 100% !important;
  }
  .product-info-section h1 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }
  .product-info-section .product-price {
    font-size: 1.8rem !important;
  }
  .product-info-section .product-description,
  .product-info-section p {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    padding: 0 0.25rem !important;
  }
  .product-badges {
    gap: 0.4rem !important;
    padding: 0 0.25rem !important;
  }
  .product-badge {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.8rem !important;
    white-space: nowrap !important;
  }
  .product-image-section {
    max-width: 280px !important;
    margin: 0 auto 1rem !important;
  }
  .product-image-section img {
    max-height: 380px !important;
  }
}

/* A33 — fix etudes desktop : "ÉTUDE DU JOUR" badge alignment + spacing */
.etude-badge,
[class*="etude"] [class*="badge"],
span[style*="ÉTUDE DU JOUR"],
*:has(> span:contains("ÉTUDE DU JOUR")) {
  display: inline-block !important;
  text-align: center !important;
}

/* A33 — fix catalogue mobile : "Présentation par Esther" button padding */
@media (max-width: 600px) {
  .section-header button,
  div[style*="Présentation par Esther"],
  button[onclick*="booksIntro"] {
    max-width: calc(100vw - 2rem) !important;
    white-space: normal !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.8rem !important;
    margin: 0 auto !important;
    display: block !important;
  }
}

/* A33 — fix navbar mobile : reduce risk of text-clip in header */
@media (max-width: 600px) {
  .navbar__container {
    padding: 0 0.6rem !important;
    gap: 0.4rem !important;
  }
  .navbar__logo {
    font-size: 1rem !important;
    margin-right: 0 !important;
  }
  .navbar__logo span:nth-child(3) {
    display: none !important;
  }
}

/* A33 — fix etudes desktop : centrage parfait du badge ÉTUDE DU JOUR */
main > .container > .text-center > span,
.container > div[style*="text-align: center"] > span:first-child {
  margin: 0 auto !important;
  text-align: center !important;
}

/* A33 — fix audio_lm desktop : description fully wrap, override inline style */
.audio-track-item div p[style],
.audio-track-item p[style*="white-space: nowrap"],
div.audio-track-item p,
.audio-track-item > div > p,
.audio-tracks-list .audio-track-item p[style] {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: block !important;
}

/* A33 — universal mobile: prevent horizontal overflow on body and container */
@media (max-width: 600px) {
  body, html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  main, .container {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    box-sizing: border-box !important;
  }
}

/* A33 — product detail desktop : ligne prix horizontale parfaite */
.product-info-section > div[style*="align-items: baseline"] {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 0.5rem 1rem !important;
  margin-bottom: 1rem !important;
}
.product-info-section > div[style*="align-items: baseline"] > div:first-child {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  color: #1E3A8A !important;
}
.product-info-section > div[style*="align-items: baseline"] > div:nth-child(2) {
  font-size: 0.95rem !important;
  color: #4b5563 !important;
}
.product-info-section > div[style*="align-items: baseline"] > div:nth-child(2) span {
  color: #15803d !important;
  font-weight: 700 !important;
}

/* A33 — A33 marker for deploy verification */
.a33-marker { content: "A33-deployed"; }

/* ═════════════════════════════════════════════════════════════
   A34 — Final polish push to 9/10 (audit Gemini Vision A33)
   Focus : retirer artifacts perçus (badge "0", cookies overlap), affiner
   ═════════════════════════════════════════════════════════════ */

/* A34 — annuler le mobile container padding A33 qui coupait les titres */
@media (max-width: 600px) {
  body, html {
    overflow-x: hidden !important;
  }
  main {
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  main > .container,
  main > div > .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* A34 — Cookie banner : plus discret + sortie de la zone fold (top-right desktop) */
#cookieBanner {
  font-size: 0.82rem !important;
  padding: 0.85rem 1rem !important;
  max-width: 420px !important;
  bottom: 1rem !important;
  right: 1rem !important;
  left: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(15,23,42,0.4) !important;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(212,175,55,0.35) !important;
}
#cookieBanner #cookieBannerTitle {
  font-size: 0.85rem !important;
  margin-bottom: 0.25rem !important;
}
#cookieBanner > div:nth-child(2) {
  font-size: 0.78rem !important;
  margin-bottom: 0.5rem !important;
  opacity: 0.88 !important;
}
#cookieBanner #cookieAccept {
  padding: 0.4rem 0.85rem !important;
  font-size: 0.75rem !important;
}
@media (max-width: 600px) {
  #cookieBanner {
    left: 0.5rem !important;
    right: 0.5rem !important;
    bottom: 0.5rem !important;
    max-width: none !important;
    padding: 0.7rem 0.85rem !important;
  }
  #cookieBanner #cookieBannerTitle {
    font-size: 0.8rem !important;
  }
  #cookieBanner > div:nth-child(2) {
    font-size: 0.72rem !important;
  }
}

/* A34 — Cart badge "0" : invisible quand count=0 (sobre, pro)
   Geminis classifie le badge "0" en bug. On le masque par defaut puis JS fait show. */
a[href="/cart"] .cart-badge {
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Quand le panier a des items, le JS ajoute classe .has-items qu'on stylise */
a[href="/cart"] .cart-badge.has-items,
a[href="/cart"][data-cart-count]:not([data-cart-count="0"]) .cart-badge {
  visibility: visible !important;
  pointer-events: auto !important;
}

/* A34 — fix product detail desktop : aligner prix "26 €" + "ou 9 € en numérique" */
.product-info-section .product-price {
  display: inline-flex !important;
  align-items: baseline !important;
}
.product-info-section .product-price + div {
  display: inline-flex !important;
  align-items: baseline !important;
  white-space: nowrap !important;
}

/* A34 — etudes desktop : "ÉTUDE DU JOUR" badge centrage parfait */
.container > .text-center > span:first-child,
[class*="badge"][style*="ÉTUDE"],
.container > div[style*="text-align"] > span[style*="background"]:first-child {
  display: inline-block !important;
  margin: 0 auto 0.5rem !important;
}

/* A34 — supprimer toute trace de underline sur navlinks (incoherence visuelle reportee) */
.navbar__nav-link {
  text-decoration: none !important;
}
.navbar__nav-link:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px !important;
  text-decoration-color: rgba(212,175,55,0.6) !important;
}

/* A34 — Mobile catalogue : "Présentation par Esther" button propre, pas tronqué */
@media (max-width: 600px) {
  .section-header > div > button,
  button[onclick*="booksIntro"] {
    width: auto !important;
    max-width: calc(100vw - 3rem) !important;
    margin: 0 auto !important;
    padding: 0.55rem 1rem !important;
    font-size: 0.78rem !important;
    white-space: normal !important;
  }
}

/* A34 — Mobile contact form & cart empty : padding pour eviter overlap cookie banner */
@media (max-width: 600px) {
  main {
    padding-bottom: 7rem !important;
  }
}

/* A34 — Audio_lm desktop : description fully visible (override inline white-space:nowrap) */
.audio-track-item {
  flex-wrap: wrap !important;
}
.audio-track-item div[style*="flex: 1"] {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.audio-track-item div[style*="flex: 1"] p {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  overflow: hidden !important;
}

/* A34 — Apropos mobile : prevenir tout debord */
@media (max-width: 600px) {
  main p {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    hyphens: auto !important;
  }
}

/* A34 — Force navbar mobile compact : cart icon + logo seulement */
@media (max-width: 600px) {
  .navbar__container {
    padding: 0 0.75rem !important;
  }
  /* Re-show "by Esther Ifrah" subtitle smaller on mobile */
  .navbar__logo > span:nth-child(3) {
    display: inline !important;
    font-size: 0.5em !important;
    opacity: 0.6 !important;
  }
}

/* A34 — A34 marker for deploy verification */
.a34-marker { content: "A34-deployed"; }

/* ═══════════════════════════════════════════════════════════════════════
   v0.7 POLISH — A43→A47 (7 mai 2026, branche test)
   Animations premium sobre — Esther Ultra-orthodoxe Mea Shearim
   Toutes désactivables via prefers-reduced-motion
   ═══════════════════════════════════════════════════════════════════════ */

/* A43 — View Transitions API (CSS-only, fallback automatique) */
@supports (view-transition-name: root) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
  ::view-transition-old(root) { animation-name: fadeOutA43; }
  ::view-transition-new(root) { animation-name: fadeInA43; }
}
@keyframes fadeOutA43 {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes fadeInA43 {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* A44 — Audio category cards : glassmorphism + slide-up + glow gold hover */
.audio-category-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  will-change: transform;
}
.audio-category-card.reveal {
  opacity: 0;
  transform: translateY(40px);
}
.audio-category-card.reveal.visible {
  animation: slideUpAudioA44 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes slideUpAudioA44 {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.audio-category-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 12px 36px rgba(212, 175, 55, 0.32),
              0 0 0 1px rgba(212, 175, 55, 0.18) !important;
}

/* A45 — Boutons CTA : ripple effect Material sobre + transition gradient */
.btn,
.btn-primary,
.btn-outline,
button.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before,
.btn-primary::before,
.btn-outline::before,
button.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(212,175,55,0.30) 0%, transparent 70%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: -1;
}
.btn:active::before,
.btn-primary:active::before,
.btn-outline:active::before,
button.btn:active::before {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.05s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn,
.btn-primary,
.btn-outline {
  transition: background 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s ease !important;
}

/* A46 — Book cards : stagger cascade au load */
.book-card {
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: cardRevealA46 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--stagger-index, 0) * 70ms);
}
@keyframes cardRevealA46 {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
/* Cap stagger à 12 cartes pour ne pas avoir un délai > 800ms sur catalogue */
.book-card[style*="--stagger-index"] {
  animation-delay: clamp(0ms, calc(var(--stagger-index, 0) * 70ms), 840ms);
}

/* A47 — Footer social icons : fill solid + scale + glow au hover */
.social-link {
  background: transparent;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.35s ease,
              background 0.35s ease,
              color 0.35s ease !important;
}
.social-link:hover {
  background: radial-gradient(circle, rgba(212,175,55,0.28) 0%, transparent 70%) !important;
  transform: scale(1.15) !important;
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.35),
              0 0 0 2px rgba(212, 175, 55, 0.45) !important;
  color: #F5E6A3 !important;
}
/* WhatsApp social link garde sa couleur dédiée + glow vert subtil */
.social-link[title="WhatsApp"]:hover {
  background: radial-gradient(circle, rgba(37,211,102,0.22) 0%, transparent 70%) !important;
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.30),
              0 0 0 2px rgba(37, 211, 102, 0.45) !important;
  color: #25D366 !important;
}

/* Désactivation globale des animations A43-A47 si user préfère reduced motion */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
  .audio-category-card.reveal,
  .audio-category-card.reveal.visible,
  .book-card { animation: none !important; opacity: 1 !important; transform: none !important; }
  .audio-category-card:hover,
  .social-link:hover { transform: none !important; }
  .btn::before { display: none !important; }
}
