/* =========================================================
   LIGHTBOX - SYSTÈME D'AGRANDISSEMENT D'IMAGES
   ========================================================= */

.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 9999;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

.lightbox-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  background: white;
  transform: scale(1.1);
}

.lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  max-width: 80%;
  text-align: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { 
    opacity: 0;
    transform: scale(0.9);
  }
  to { 
    opacity: 1;
    transform: scale(1);
  }
}

/* Images cliquables */
.article-content img {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.article-content img:hover {
  transform: scale(1.02);
}

/* =========================================================
   IMAGES MAGAZINE - DIFFÉRENTES POSITIONS
   ========================================================= */

/* Image pleine largeur */
.image-full {
  width: 100%;
  margin: 2.5rem 0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Image à gauche avec texte qui wrap */
.image-left {
  float: left;
  max-width: 45%;
  margin: 0 2rem 1.5rem 0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Image à droite avec texte qui wrap */
.image-right {
  float: right;
  max-width: 45%;
  margin: 0 0 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Image moyenne centrée */
.image-medium {
  display: block;
  max-width: 70%;
  margin: 2rem auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Citation magazine style */
.magazine-quote {
  background: #FFEB3B;
  color: #000;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  border-left: 6px solid #FFC107;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.6;
  font-style: italic;
  position: relative;
}

.magazine-quote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  top: -10px;
  left: 15px;
  color: #FFC107;
  font-family: Georgia, serif;
}

/* Responsive */
@media (max-width: 768px) {
  .image-left,
  .image-right {
    float: none;
    max-width: 100%;
    margin: 1.5rem 0;
  }
  
  .image-medium {
    max-width: 100%;
  }
  
  .magazine-quote {
    font-size: 1.2rem;
    padding: 1.5rem 2rem;
  }
  
  .lightbox-caption {
    font-size: 0.8rem;
    padding: 0.6rem 1rem;
  }
}
