/* ==========================================================================
   NOCHALLA - LIVRES POUR ENFANTS, ACCESSOIRES & PATRIMOINE
   Design System, Commandes WhatsApp & Espace Gestionnaire (Admin)
   Slogan : « Мотт бацахь — халкъ дац »
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0a1f18; /* Deep Forest Emerald Night */
  --bg-secondary: #0f2c22;
  --bg-card: #15392d;
  --bg-card-hover: #1b4738;
  --bg-parchment: #fdfbf7;
  --bg-parchment-soft: #f6f0e2;

  /* Gold & Warm Accents */
  --gold-primary: #d4af37;
  --gold-light: #f7e7a9;
  --gold-dark: #aa8214;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #fae69e 50%, #b8860b 100%);
  --gold-glow: rgba(212, 175, 55, 0.45);

  /* WhatsApp Official */
  --whatsapp-color: #25d366;
  --whatsapp-hover: #1eb956;
  --whatsapp-glow: rgba(37, 211, 102, 0.35);

  /* Carmine Accents */
  --carmine-primary: #781c25;
  --carmine-deep: #541118;

  /* Text Colors */
  --text-light: #f5f4ef;
  --text-muted: #b8c7c0;
  --text-dark: #202422;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
  --glass-border: rgba(212, 175, 55, 0.25);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-title: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea {
  font-family: inherit;
  border: none;
  outline: none;
}

/* ==========================================================================
   PAGE D'ACCUEIL D'ENTRÉE (AFFICHAGE DIRECT DU LOGO ET DU POÈME)
   ========================================================================== */
.splash-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background: radial-gradient(circle at 50% 40%, #1a4d3b 0%, #0d281f 45%, #05130e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px 20px;
  overflow-y: auto;
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.splash-screen.splash-exit {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.splash-particles {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(212, 175, 55, 0.25) 1.5px, transparent 1.5px),
    radial-gradient(rgba(247, 231, 169, 0.15) 1px, transparent 1px);
  background-size: 60px 60px, 90px 90px;
  background-position: 0 0, 30px 30px;
  opacity: 0.5;
  pointer-events: none;
}

.splash-radial-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
}

.splash-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  width: 100%;
  text-align: center;
  margin: auto;
}

/* Tagline */
.splash-tagline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-light);
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tagline-star {
  color: var(--gold-primary);
  font-size: 0.9rem;
}

.splash-emblem-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 680 / 740;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  perspective: 1200px;
}

.splash-emblem-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105%;
  height: 105%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(212, 175, 55, 0.08) 60%, transparent 80%);
  filter: blur(25px);
  z-index: 1;
}

.splash-frame-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 25px rgba(212, 175, 55, 0.35));
}

.splash-text-overlay {
  position: absolute;
  top: 49%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68%;
  height: 60%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.poem-animated-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 8px;
}

.verse-line {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.7vw, 1.62rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--carmine-primary);
  text-shadow: 
    0 1px 1px rgba(255, 255, 255, 0.8),
    0 2px 4px rgba(184, 134, 11, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.splash-translation-card {
  max-width: 580px;
  margin-bottom: 24px;
}

.splash-translation-text {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.5;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.splash-actions-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.splash-enter-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gold-gradient);
  color: #10261c;
  padding: 16px 42px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 8px 30px var(--gold-glow), 0 0 20px rgba(212, 175, 55, 0.35);
  border: 2px solid #fff3c4;
  transition: var(--transition);
}

.splash-enter-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.6), 0 0 35px rgba(212, 175, 55, 0.5);
  filter: brightness(1.07);
}

.btn-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-25deg);
  animation: shimmerSweep 3.5s infinite;
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  35% { left: 140%; }
  100% { left: 140%; }
}

.btn-text {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.btn-subtext {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 2px;
  font-weight: 700;
  opacity: 0.85;
  margin-top: 3px;
}

.splash-footer-note {
  position: absolute;
  bottom: 14px;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 1px;
}

/* ==========================================================================
   MAIN SITE WRAPPER (nohchallah)
   ========================================================================== */
.main-site-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* Replay intro button */
.replay-intro-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.replay-intro-btn:hover {
  background: var(--gold-primary);
  color: #12281e;
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, #091a14, #14352b, #091a14);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 8px 0;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-tag {
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.delivery-info {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Header & Navigation */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 24, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-emblem-mini {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px var(--gold-glow));
  transition: transform 0.4s ease;
}

.brand-logo:hover .nav-emblem-mini {
  transform: rotate(5deg) scale(1.08);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 2px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--gold-light);
  font-style: italic;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-light);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-full);
  padding: 9px 18px 9px 38px;
  color: var(--text-light);
  font-size: 0.85rem;
  width: 220px;
  transition: var(--transition);
}

.search-box input:focus {
  width: 270px;
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--gold-primary);
  font-size: 0.85rem;
  pointer-events: none;
}

.cart-trigger, .mobile-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  font-size: 1.05rem;
}

.cart-trigger:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--gold-glow);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--whatsapp-color);
  color: #10261c;
  font-size: 0.72rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
}

.mobile-toggle {
  display: none;
}

/* ==========================================================================
   Store Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 65px 0 80px;
  background: radial-gradient(circle at 50% 25%, #184b39 0%, #0d281f 45%, #071510 100%);
  text-align: center;
}

.hero-particles {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 7px 22px;
  border-radius: var(--radius-full);
  color: var(--gold-light);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.hero-main-title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6vw, 4.4rem);
  font-weight: 900;
  letter-spacing: 3px;
  line-height: 1.1;
  margin-bottom: 20px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.35));
}

.domain-ext {
  color: #fff;
  opacity: 0.85;
  -webkit-text-fill-color: initial;
}

.hero-slogan-banner {
  max-width: 820px;
  width: 100%;
  background: rgba(18, 51, 39, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 36px;
  margin-bottom: 26px;
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.15);
}

.slogan-icon-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.slogan-icon-ornament span {
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.slogan-icon-ornament i {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

.hero-slogan {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.25;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-slogan-sub {
  font-size: 0.98rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 12px;
}

.hero-description {
  max-width: 740px;
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
}

.hero-description strong {
  color: var(--gold-light);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gold-gradient);
  color: #142a20;
  box-shadow: 0 6px 20px var(--gold-glow);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(212, 175, 55, 0.45);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Bouton WhatsApp Vert */
.btn-whatsapp {
  background: var(--whatsapp-color);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 20px var(--whatsapp-glow);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.hero-features-strip {
  display: grid;
  gap: 20px;
  width: 100%;
  max-width: 1000px;
}

.hero-features-strip.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.feat-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(18, 51, 39, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  text-align: left;
  backdrop-filter: blur(6px);
  transition: var(--transition);
}

.feat-pill:hover {
  border-color: var(--gold-primary);
  background: rgba(24, 66, 50, 0.8);
  transform: translateY(-3px);
}

.feat-pill i {
  font-size: 1.5rem;
  color: var(--gold-primary);
  flex-shrink: 0;
}

.feat-pill strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-light);
}

.feat-pill small {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Books Catalog Section (3 LIVRES AUTHENTIQUES + DYNAMIQUES)
   ========================================================================== */
.books-section {
  padding: 85px 0;
  background: #091c16;
}

.section-header {
  margin-bottom: 44px;
}

.section-subtitle {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.3rem;
  color: var(--text-light);
  line-height: 1.25;
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}

.ornament-divider span {
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.ornament-divider i {
  color: var(--gold-primary);
  font-size: 1rem;
}

.section-desc {
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   1. Marquee Showcase Animé Horizontalement en Continu
   ========================================================================== */
.marquee-showcase-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(20, 56, 44, 0.6) 0%, rgba(10, 31, 24, 0.8) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-lg);
  padding: 22px 0 26px;
  margin-bottom: 50px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.marquee-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  margin-bottom: 18px;
}

.marquee-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--whatsapp-color);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.marquee-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeContinuous 32s linear infinite;
  padding: 8px 12px;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeContinuous {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-card {
  flex: 0 0 240px;
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.marquee-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--gold-primary);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.25);
  background: var(--bg-card-hover);
}

.marquee-card-img-box {
  width: 100%;
  height: 140px;
  border-radius: 10px;
  overflow: hidden;
  background: #06160f;
  margin-bottom: 10px;
  position: relative;
}

.marquee-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.marquee-card:hover .marquee-card-img-box img {
  transform: scale(1.08);
}

.marquee-card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(10, 31, 24, 0.85);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  backdrop-filter: blur(4px);
}

.marquee-card-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.25;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marquee-card-author {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.marquee-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.marquee-card-price {
  font-weight: 800;
  color: #fff;
  font-size: 0.95rem;
}

.marquee-quick-btn {
  background: var(--gold-gradient);
  color: #10261c;
  border: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.marquee-quick-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 10px var(--gold-glow);
}

/* ==========================================================================
   2. Grille Complète de la Boutique (Affichage Normal de Haut en Bas)
   ========================================================================== */
.catalog-full-display {
  width: 100%;
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

/* Filtres par catégorie */
.catalog-filter-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(18, 51, 39, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.filter-tab:hover {
  border-color: var(--gold-primary);
  color: var(--gold-light);
  background: rgba(24, 66, 50, 0.9);
  transform: translateY(-2px);
}

.filter-tab.active {
  background: var(--gold-gradient);
  color: #12281e;
  border-color: transparent;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--gold-glow);
}

.catalog-count-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* Grille Complète Responsive */
.books-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  width: 100%;
}

.book-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3);
  width: 100%;
}

.book-card:hover {
  transform: translateY(-10px) scale(1.01);
  border-color: var(--gold-primary);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 30px rgba(212,175,55,0.2);
}

.book-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: #081a13;
  border-radius: 16px 16px 0 0;
}

.book-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 16px 16px 0 0;
}

.book-card:hover .book-img {
  transform: scale(1.05);
}

.book-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.book-badge.best-seller {
  background: var(--carmine-primary);
  color: #fff;
}

.book-badge.badge-eveil {
  background: linear-gradient(135deg, #1a4971, #2b6cb0);
  color: #ebf8ff;
  border: 1px solid rgba(66, 153, 225, 0.4);
}

.book-badge.badge-valeurs {
  background: var(--gold-gradient);
  color: #12281e;
  font-weight: 800;
  border: 1px solid #fff3c4;
}

.book-badge.badge-contes {
  background: linear-gradient(135deg, #553c9a, #805ad5);
  color: #faf5ff;
  border: 1px solid rgba(183, 148, 244, 0.4);
}

.book-badge.badge-histoire {
  background: linear-gradient(135deg, #781c25, #9b2c2c);
  color: #fff5f5;
  border: 1px solid rgba(245, 101, 101, 0.4);
}

.book-badge.badge-accessoire {
  background: linear-gradient(135deg, #10663f, #1ca566);
  color: #fff;
  border: 1px solid rgba(37, 211, 102, 0.4);
}

.book-badge.award {
  background: var(--gold-gradient);
  color: #12281e;
}

.book-badge.soft {
  background: #1d4d6f;
  color: #fff;
}

.book-badge.badge-accessoire {
  background: linear-gradient(135deg, #1b5341 0%, #0d3527 100%);
  color: #f7e7a9;
  border: 1px solid rgba(212, 175, 55, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.book-overlay-actions {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 24, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 3;
  padding: 20px;
}

.book-card:hover .book-overlay-actions {
  opacity: 1;
}

.quick-view-btn {
  width: 80%;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  color: #12281e;
  transition: var(--transition);
}

.quick-view-btn:hover {
  background: var(--gold-light);
  transform: scale(1.03);
}

.book-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.author-tag {
  color: var(--gold-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.age-tag {
  color: var(--text-muted);
}

/* Star ratings on cards */
.card-stars {
  font-size: 0.82rem;
  color: #f59e0b;
  letter-spacing: 1px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-stars-count {
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1.25;
  margin-bottom: 2px;
}

.book-subtitle-fr {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 12px;
  font-style: italic;
}

.book-summary {
  font-size: 0.84rem;
  color: #a2b3ab;
  line-height: 1.55;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
}

.book-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  gap: 10px;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.book-actions-pair {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-to-cart-btn {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--gold-gradient);
  color: #12281e;
  border-color: transparent;
}

.direct-whatsapp-card-btn {
  background: var(--whatsapp-color);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.direct-whatsapp-card-btn:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--whatsapp-glow);
}

/* ==========================================================================
   Interactive 3D Book Reader Section
   ========================================================================== */
.reader-section {
  padding: 90px 0;
  background: radial-gradient(circle at 50% 50%, #153c2e 0%, #0a1f18 80%);
}

.light-header .section-title {
  color: #fff;
}

.interactive-book-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.book-3d {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-parchment);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.2);
  border: 4px solid #b8860b;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}

.book-3d::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 18px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0,0,0,0.18), rgba(0,0,0,0.02) 40%, rgba(0,0,0,0.02) 60%, rgba(0,0,0,0.18));
  pointer-events: none;
}

.book-page {
  padding: 40px 45px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #fdfbf7 0%, #f6f0e2 100%);
}

.left-page {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.page-corner-ornament {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid #b8860b;
  opacity: 0.35;
}

.corner-tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.corner-bl { bottom: 14px; left: 14px; border-right: none; border-top: none; }
.corner-tr { top: 14px; right: 14px; border-left: none; border-bottom: none; }
.corner-br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.page-header-stamp {
  font-family: var(--font-title);
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #7a6332;
  text-align: center;
  border-bottom: 1px solid rgba(184, 134, 11, 0.2);
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.page-illustration-box {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid #d4c5a9;
  background: #fbf9f4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.page-inline-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-caption {
  font-size: 0.78rem;
  font-style: italic;
  color: #5e6662;
  text-align: center;
}

.page-chapter-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  color: var(--carmine-primary);
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  font-weight: 700;
}

.page-story-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: #3b1115;
  margin-bottom: 14px;
  line-height: 1.2;
}

.story-text-body {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: #2b2b2b;
  flex-grow: 1;
}

.story-para.first-letter-cap::first-letter {
  font-size: 2.8rem;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  color: var(--carmine-primary);
  font-family: var(--font-title);
}

.story-translation-box {
  background: rgba(184, 134, 11, 0.08);
  border-left: 3px solid #b8860b;
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #4a4843;
  margin-top: 14px;
}

.page-number {
  position: absolute;
  bottom: 14px;
  font-size: 0.74rem;
  color: #8c8272;
}

.left-page .page-number { left: 45px; }
.right-page .page-number { right: 45px; }

.reader-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 26px;
  padding: 0 10px;
}

.reader-nav-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-light);
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.reader-nav-btn:hover:not(:disabled) {
  background: var(--gold-gradient);
  color: #12281e;
}

.reader-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.reader-dots {
  display: flex;
  gap: 8px;
}

.reader-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition);
}

.reader-dots .dot.active {
  background: var(--gold-primary);
  width: 26px;
  border-radius: 8px;
}

/* ==========================================================================
   Heritage & Language Deep Dive
   ========================================================================== */
.heritage-section {
  padding: 100px 0;
  background: #091b15;
}

.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 60px;
  align-items: center;
}

.heritage-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ornament-card-glow {
  padding: 15px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

.heritage-emblem {
  width: 100%;
  max-width: 440px;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
  border-radius: 12px;
}

.heritage-quote-badge {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 30, 43, 0.2);
  border: 1px solid var(--carmine-primary);
  color: #f7aab2;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
}

.heritage-heading {
  font-family: var(--font-title);
  font-size: 2.2rem;
  line-height: 1.25;
  color: var(--text-light);
  margin-bottom: 20px;
}

.heritage-verse-callout {
  background: rgba(18, 51, 39, 0.7);
  border-left: 4px solid var(--gold-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 24px;
  margin-bottom: 22px;
}

.chechen-block {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--gold-light);
  line-height: 1.45;
  font-weight: 600;
}

.heritage-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.heritage-points {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 34px;
}

.point-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.point-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.point-item h4 {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.point-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials-section {
  padding: 85px 0;
  background: #0d251d;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.testimonial-card.featured-testimonial {
  background: linear-gradient(145deg, #184232 0%, #113527 100%);
  border-color: var(--gold-primary);
}

.stars {
  color: #f7ba2a;
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 1.1rem;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.author-avatar.gold {
  background: var(--gold-primary);
  color: #12281e;
}

.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-light);
}

.testimonial-author span {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
  background: #06130e;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding: 70px 0 25px;
  font-size: 0.88rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-emblem-mini {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-motto {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--gold-light);
  line-height: 1.45;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.02rem;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--gold-primary);
}

.admin-trigger-link {
  color: var(--gold-light) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-trigger-link:hover {
  color: #fff !important;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Cart Drawer & Modals
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -440px;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #0f2c22;
  border-left: 1px solid var(--gold-primary);
  z-index: 210;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 22px 24px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--gold-light);
}

.cart-items-count {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: var(--text-muted);
}

.cart-close-btn {
  background: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.cart-drawer-body {
  padding: 24px;
  flex-grow: 1;
  overflow-y: auto;
}

.cart-empty-state {
  text-align: center;
  padding: 60px 10px;
}

.cart-empty-state .empty-icon {
  font-size: 3rem;
  color: rgba(212, 175, 55, 0.3);
  margin-bottom: 16px;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item-row {
  display: flex;
  gap: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px;
  position: relative;
}

.cart-item-thumb {
  width: 60px;
  height: 80px;
  object-fit: contain;
  background: #081a13;
  border-radius: 4px;
  flex-shrink: 0;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin: 4px 0 8px;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  color: #a87f84;
  cursor: pointer;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
  background: #091c16;
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.cart-subtotal-row strong {
  font-size: 1.35rem;
  color: var(--gold-light);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0f2c22;
  border: 1px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--gold-glow);
  padding: 36px;
  transform: scale(0.94);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.modal-content-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  align-items: center;
}

.modal-book-img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 440px;
  object-fit: contain;
  margin: 0 auto;
}

/* ==========================================================================
   ESPACE GESTIONNAIRE / ADMINISTRATION DU CLIENT
   ========================================================================== */
.admin-modal-card {
  max-width: 860px;
  background: #0d281f;
}

.admin-login-step {
  max-width: 440px;
  margin: 20px auto;
  text-align: center;
}

.admin-lock-icon {
  font-size: 3rem;
  color: var(--gold-primary);
  margin-bottom: 14px;
}

.admin-login-step h3 {
  font-family: var(--font-title);
  color: var(--gold-light);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.admin-login-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.admin-hint {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.admin-hint code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--gold-light);
}

.input-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light);
}

.input-field-group input, 
.input-field-group textarea,
.input-field-group select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  transition: var(--transition);
}

.input-field-group select {
  cursor: pointer;
}

.input-field-group select option {
  background: #0f2c22;
  color: #fff;
}

.input-field-group input:focus, 
.input-field-group textarea:focus,
.input-field-group select:focus {
  border-color: var(--gold-primary);
  background: rgba(255, 255, 255, 0.12);
}

.admin-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  padding-bottom: 18px;
  margin-bottom: 24px;
}

.admin-dash-header h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  color: var(--gold-light);
}

.admin-subtext {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.admin-section-box {
  background: rgba(18, 51, 39, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.admin-section-box h4 {
  font-size: 1rem;
  color: var(--gold-light);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-field-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.whatsapp-config-row {
  display: flex;
  gap: 12px;
}

.whatsapp-config-row input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
}

.add-book-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 14px;
}

.image-upload-wrapper input[type="file"] {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--gold-primary);
  padding: 12px;
  width: 100%;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.upload-hint {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.image-preview-container {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px;
  margin-top: 10px;
}

.image-preview-container img {
  width: 70px;
  height: 95px;
  object-fit: contain;
  background: #000;
  border-radius: 4px;
}

.preview-label {
  font-size: 0.82rem;
  color: var(--gold-light);
  font-weight: 600;
}

/* Liste des livres dans l'admin */
.admin-list-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-books-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-book-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  gap: 14px;
}

.admin-book-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-book-thumb {
  width: 50px;
  height: 68px;
  object-fit: contain;
  background: #05130e;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.admin-book-details strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-light);
}

.admin-book-details small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.admin-book-details .price-tag {
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  margin-top: 2px;
}

.admin-book-delete-btn {
  background: rgba(120, 28, 37, 0.2);
  border: 1px solid var(--carmine-primary);
  color: #ff8a94;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.admin-book-delete-btn:hover {
  background: var(--carmine-primary);
  color: #fff;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #14382c;
  border: 1px solid var(--gold-primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

/* Responsive */
@media (max-width: 1080px) {
  .books-grid.three-books-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-features-strip.three-cols { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .top-bar-content {
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
  .top-actions {
    display: none;
  }
  .header-content { height: 70px; }
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #0b221a;
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 2px solid var(--gold-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  }
  .mobile-toggle { display: flex; }
  .search-box { display: none; }
  .book-3d { grid-template-columns: 1fr; }
  .book-3d::after { display: none; }
  .left-page { border-right: none; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .heritage-grid { grid-template-columns: 1fr; }
  .modal-content-grid { grid-template-columns: 1fr; }
  .splash-emblem-container { max-width: 330px; }
  .verse-line { font-size: 1.15rem; }
  .hero-main-title { font-size: 2.5rem; }
  .books-grid.three-books-grid { grid-template-columns: 1fr; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .whatsapp-config-row { flex-direction: column; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .splash-enter-btn { padding: 14px 28px; width: 100%; }
  .book-footer { flex-direction: column; align-items: flex-start; }
  .book-actions-pair { width: 100%; justify-content: space-between; }
}


