/* Styles manuels d'utilisation Antiks */
:root {
  --antiks-primary: #195528;
  --antiks-secondary: #6c757d;
}

.manual-img {
  max-width: 350px;
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 8px;
  object-fit: contain;
}
.manual-row-img {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .manual-row-img {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .manual-row-img .manual-img {
    max-height: 400px;
    height: 400px;
    width: auto;
    min-width: 0;
    margin: auto;
    object-fit: contain;
    aspect-ratio: auto;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  }
  .manual-row-img .manual-text {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    gap: 1.2rem;
    padding-top: 0;
  }
  .manual-row-img .manual-text > *:first-child {
    margin-top: 0;
  }
}

/* Titres manuels */
.manual-title {
  color: var(--antiks-primary) !important;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.manual-section-title {
  color: var(--antiks-primary) !important;
  font-weight: 600;
}
.manual-section-subtitle {
  color: var(--antiks-primary) !important;
  font-weight: 500;
}

/* Switcher PC/Mobile */
.manual-img-switcher {
  width: 100%;
  max-width: 350px;
  margin: 0 auto 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.manual-img-switcher .btn-group {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.manual-img-switcher .btn {
  flex: 1 1 0;
  border-radius: 0;
  font-weight: 500;
  color: #fff;
  background: var(--antiks-secondary);
  border: 1px solid var(--antiks-secondary);
  transition: background 0.2s, color 0.2s;
}
.manual-img-switcher .btn.switch-pc.active,
.manual-img-switcher .btn.switch-pc:focus {
  background: var(--antiks-primary);
  border-color: var(--antiks-primary);
  color: #fff;
  z-index: 2;
}
.manual-img-switcher .btn.switch-mobile.active,
.manual-img-switcher .btn.switch-mobile:focus {
  background: var(--antiks-primary);
  border-color: var(--antiks-primary);
  color: #fff;
  z-index: 2;
}
.manual-img-switcher .btn:not(.active):hover {
  filter: brightness(1.1);
}
.manual-img-switcher .btn:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}
.manual-img-switcher .btn:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

/* Responsive titres */
@media (max-width: 600px) {
  .manual-title { font-size: 1.3rem; }
  .manual-section-title { font-size: 1.1rem; }
}

/* ============================================
   LIGHTBOX POUR IMAGES EN PLEIN ÉCRAN
   ============================================ */

.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  z-index: 10000;
  max-width: 95%;
  max-height: 95%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.lightbox-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  max-width: 600px;
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .lightbox-image {
    max-height: 85vh;
  }
}

/* Indicateur visuel que l'image est cliquable */
.manual-img {
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.manual-img:hover {
  box-shadow: 0 6px 20px rgba(25, 85, 40, 0.3) !important;
}

.manual-img::after {
  content: '\f00e'; /* Icône loupe Font Awesome */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(25, 85, 40, 0.9);
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.manual-img:hover::after {
  opacity: 1;
}
