.elementor-1807 .elementor-element.elementor-element-c492cf2{--display:flex;--min-height:370px;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--justify-content:center;}.elementor-1807 .elementor-element.elementor-element-c492cf2:not(.elementor-motion-effects-element-type-background), .elementor-1807 .elementor-element.elementor-element-c492cf2 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-image:url("https://www.e-verlag.com/wp-content/uploads/2025/02/hero-section-finish-.png");}.elementor-1807 .elementor-element.elementor-element-e6fe6d8{width:var( --container-widget-width, 95.571% );max-width:95.571%;--container-widget-width:95.571%;--container-widget-flex-grow:0;text-align:center;}.elementor-1807 .elementor-element.elementor-element-e6fe6d8.elementor-element{--flex-grow:0;--flex-shrink:0;}.elementor-1807 .elementor-element.elementor-element-e6fe6d8 .elementor-heading-title{font-size:123px;}.elementor-1807 .elementor-element.elementor-element-e6fe6d8 .elementor-heading-title a{transition-duration:1.2s;}.elementor-1807 .elementor-element.elementor-element-b7dcc7f{--display:flex;}.elementor-1807 .elementor-element.elementor-element-b7dcc7f.e-con{--flex-grow:0;--flex-shrink:0;}.elementor-1807 .elementor-element.elementor-element-b9fbf12{width:var( --container-widget-width, 15.064% );max-width:15.064%;--container-widget-width:15.064%;--container-widget-flex-grow:0;text-align:center;}.elementor-1807 .elementor-element.elementor-element-b9fbf12.elementor-element{--flex-grow:0;--flex-shrink:0;}.elementor-1807 .elementor-element.elementor-element-b9fbf12 img{max-width:1%;}:root{--page-title-display:none;}@media(min-width:768px){.elementor-1807 .elementor-element.elementor-element-b7dcc7f{--width:93.785%;}}/* Start custom CSS *//* CSS POUR LA PAGE SHOP */
/* À coller dans Apparence > Personnaliser > CSS additionnel (ou dans Elementor > Paramètres du site > Custom CSS) */

:root {
  --ev-green: #0f5132;
  --ev-green-600: #0c4027;
  --ev-mint: #cfeedd;
  --ev-border: #e6e6e6;
}

/* Grille de livres */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 28px 0 48px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 920px) {
  .book-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Carte livre simplifiée */
.book-card-simple {
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease;
  display: flex;
  flex-direction: column;
}

.book-card-simple:hover {
  transform: translateY(-5px);
}

/* Image de couverture - TAILLE PETITE DANS LA GRILLE */
.book-img-popup {
  width: 100%;
  height: auto;
  aspect-ratio: 3./4;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 180px !important;
  height: auto;
  margin: 0 auto;
  display: block;
  
}

.book-img-popup:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.book-card-simple h3 {
  margin: 12px 0 4px;
  font-size: 1.1rem;
  color: #2a2f2c;
  line-height: 1.3;
}

.book-card-simple p {
  color: #5c6b62;
  margin: 0 0 16px;
  font-weight: 500;
  font-size: 0.9rem;
}

/* POPUP */
.book-popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.book-popup-content {
  background-color: #fff;
  border-radius: 12px;
  max-width: 650px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

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

.book-popup-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
}

.book-popup-close:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.1);
}

/* SLIDER D'IMAGES DANS LE POPUP - IMAGE ENTIÈREMENT VISIBLE */
.book-popup-slider {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin: 0 auto 20px;
}

.book-popup-slider-container {
  position: relative;
  overflow: visible;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-popup-slider-wrapper {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.book-popup-slider-image {
  min-width: 100%;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 550px;
}

.book-popup-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.book-popup-slider-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.book-popup-slider-arrow.prev {
  left: 10px;
}

.book-popup-slider-arrow.next {
  right: 10px;
}

.book-popup-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.book-popup-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.book-popup-slider-dot.active {
  background: var(--ev-green);
  width: 24px;
  border-radius: 5px;
}

.book-popup-content h2 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  text-align: center;
  color: #2a2f2c;
}

.book-popup-content #popup-author {
  text-align: center;
  color: #5c6b62;
  margin: 0 0 20px;
  font-weight: 500;
}

.book-popup-content #popup-description {
  margin: 20px 0;
  line-height: 1.8;
  color: #2a2f2c;
  font-size: 1rem;
}

.book-button-popup {
  display: inline-block;
  background: var(--ev-green);
  color: #fff !important;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  width: 100%;
  margin-top: 20px;
  transition: background 0.18s ease, transform 0.06s ease;
  box-sizing: border-box;
}

.book-button-popup:hover {
  background: var(--ev-green-600);
  transform: scale(1.02);
}

.book-button-popup:active {
  transform: scale(0.98);
}

@media (max-width: 640px) {
  .book-popup-content {
    padding: 20px;
    max-height: 95vh;
  }
  
  .book-popup-slider {
    max-width: 100%;
  }
  
  .book-popup-slider-image {
    max-width: 100%;
    max-height: 450px;
  }
  
  .book-popup-slider-arrow {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .book-img-popup {
    max-width: 150px !important;
  }
}/* End custom CSS */