/* Wojo Gallery Slider Widget - Base Styles */

.wgs-card-slide{
  height: auto !important;
}
.wgs-slider {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wgs-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.swiper-wrapper {
  display: flex;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-sizing: content-box;
}

.swiper-slide {
  height: auto;
  flex-shrink: 0;
}

/* ===== GALLERY MODE ===== */

.wgs-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  height: 360px;
}

.wgs-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  animation: fadeIn 0.4s ease;
  aspect-ratio: 4 / 5.5;
}

/* ===== CARDS MODE ===== */

.wgs-card-slide {
  display: flex;
  height: auto;
  padding: 0;
}

.wgs-card {
  background: white;
  border: 1px solid #f0ece4;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fadeIn 0.4s ease;
}

.wgs-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.wgs-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f2ec;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wgs-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wgs-card-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f2ec 0%, #ebe8e0 100%);
}

.wgs-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: space-between;
}

.wgs-card-title {
  margin: 0 0 45px 0;
  padding: 0;
  font-family: 'Cera Pro' !important;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #030303;
  word-break: break-word;
}

.wgs-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e3effa;
  color: #0175dc;
  text-decoration: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 500;
  height: 40px;
  line-height: 1;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  width: fit-content;
}

.wgs-card-button:hover {
  background: #F5FAFF;
  color: #0175dc;
  text-decoration: none;
}

.wgs-card-button:active {
  opacity: 0.85;
}

/* ===== NAVIGATION ARROWS ===== */

.wgs-slider {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wgs-nav-container {
  display: none;
  justify-content: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-right: 13%;
}

/* Afficher le conteneur à partir de tablette (768px) */
@media (min-width: 768px) {
  .wgs-nav-container {
    display: flex;
  }
}

.wgs-nav {
  background: white;
  border: 1px solid #f0ece4;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  appearance: none;
  -webkit-appearance: none;
  position: static;
  transform: none;
  border: none;
}

.wgs-nav:hover:not(:disabled) {
  background: #f9f9f8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wgs-nav:active:not(:disabled) {
  transform: scale(0.95);
}

.wgs-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.wgs-nav svg {
  width: 19px;
  height: 14px;
  display: block;
  pointer-events: none;
}

.wgs-nav.prev {
  /* Flèche previous */
}

.wgs-nav.next {
  /* Flèche next */
}

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

@media (max-width: 767px) {
  /* Cache les flèches sur mobile */
  .wgs-nav {
    display: none !important;
  }

  .wgs-card {
    padding: 12px;
    gap: 12px;
  }

  .wgs-card-image {
    aspect-ratio: 16 / 9;
  }

  .wgs-card-title {
    font-size: 16px;
  }

  .wgs-card-button {
    font-size: 14px;
    padding: 8px 12px;
    height: 36px;
  }

  .wgs-slide {
    height: 240px;
  }

  .wgs-slide img {
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  /* Tablette */
  .wgs-nav {
    width: 36px;
    height: 36px;
    padding: 6px;
  }

  .wgs-nav svg {
    width: 16px;
    height: 12px;
  }

  .wgs-slide {
    height: 300px;
  }
}

@media (min-width: 1024px) {
  /* Desktop - styles par défaut */
}

/* ===== ACCESSIBILITY ===== */

.wgs-nav:focus-visible {
  outline: 2px solid #0175dc;
  outline-offset: 2px;
}

.wgs-card-button:focus-visible {
  outline: 2px solid #0175dc;
  outline-offset: 2px;
}

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

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

/* Support pour les lecteurs d'écran */
@media (prefers-reduced-motion: reduce) {
  .wgs-slide img,
  .wgs-card,
  .wgs-nav:hover:not(:disabled) {
    animation: none;
    transition: none;
  }
}

/* ===== PRINT ===== */

@media print {
  .wgs-nav {
    display: none;
  }
}
