/* DPOManager - Carrousel CSS  */

.dpocarousel { width: 75%; max-width: 720px; margin: 0 auto; position: relative; float: left; }
.dpocarousel input[type="radio"] { display: none; }

/* Zone principale */
.dpocar-main { position: relative; width: 100%; aspect-ratio: 16/9; background: #fff; border: 1px solid #E5E7EB; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); overflow: hidden; }
.dpocar-main .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(0.98); transition: opacity .35s ease, transform .35s ease; cursor: pointer; }

/* Affichage du slide actif */
#dpocar-1:checked ~ .dpocar-main .slide:nth-child(1),
#dpocar-2:checked ~ .dpocar-main .slide:nth-child(2),
#dpocar-3:checked ~ .dpocar-main .slide:nth-child(3),
#dpocar-4:checked ~ .dpocar-main .slide:nth-child(4),
#dpocar-5:checked ~ .dpocar-main .slide:nth-child(5) { opacity: 1; transform: scale(1); }

/* Flèches */
.dpocar-arrows { position: absolute; left: 0; right: 0; bottom: 64px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.dpocar-arrows label { position: static; width: 34px; height: 34px; border: 2px solid #1E63F0; border-radius: 999px; background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;  pointer-events: auto; }
.dpocar-arrows label::before { content: '\2190'; color: #1E63F0; font-size: 16px; line-height: 1; }
.dpocar-arrows .next::before { content: '\2192'; }
.dpocar-thumbs { position: relative; padding: 0 48px; }

/* Ensabler/afficher la bonne paire de flèches selon le slide */
.dpocar-arrows label { display: none; }
#dpocar-1:checked ~ .dpocar-arrows .prev-1,
#dpocar-1:checked ~ .dpocar-arrows .next-1,
#dpocar-2:checked ~ .dpocar-arrows .prev-2,
#dpocar-2:checked ~ .dpocar-arrows .next-2,
#dpocar-3:checked ~ .dpocar-arrows .prev-3,
#dpocar-3:checked ~ .dpocar-arrows .next-3,
#dpocar-4:checked ~ .dpocar-arrows .prev-4,
#dpocar-4:checked ~ .dpocar-arrows .next-4,
#dpocar-5:checked ~ .dpocar-arrows .prev-5,
#dpocar-5:checked ~ .dpocar-arrows .next-5 { display: inline-flex; z-index: 1000 !important; }

/* Vignettes */
 .dpocar-thumbs { margin-top: 16px; display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; align-items: start; }
.dpocar-thumbs .thumb { display: grid; grid-template-rows: auto auto; gap: 8px; text-align: center; cursor: pointer; }
.dpocar-thumbs img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border: 2px solid transparent; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.dpocar-thumbs span { font-size: 12px; color: #6b7280; display: block; min-height: 30px; }

/* Vignette active */
#dpocar-1:checked ~ .dpocar-thumbs .thumb:nth-child(1) img,
#dpocar-2:checked ~ .dpocar-thumbs .thumb:nth-child(2) img,
#dpocar-3:checked ~ .dpocar-thumbs .thumb:nth-child(3) img,
#dpocar-4:checked ~ .dpocar-thumbs .thumb:nth-child(4) img,
#dpocar-5:checked ~ .dpocar-thumbs .thumb:nth-child(5) img { border-color: #1E63F0;  }

/* Responsive */
@media (max-width: 992px) {
  .dpocarousel { max-width: 100%; }
  /* .dpocar-thumbs { grid-template-columns: repeat(2,1fr); gap: 12px; padding: 0 32px; }
  .dpocar-thumbs img { border-width: 1.5px; }
  .dpocar-thumbs span { font-size: 11.5px; }
  .dpocar-arrows { bottom: 72px; } */
}
@media (max-width: 768px) {
  /* .dpocar-main { border-radius: 4px; }
  .dpocar-thumbs { grid-template-columns: 1fr; gap: 12px; }
  .dpocar-thumbs { padding: 0 24px; }
  .dpocar-thumbs .thumb { max-width: 260px; margin: 0 auto; }
  .dpocar-thumbs img { width: 100%; aspect-ratio: 16/11; }
  .dpocar-thumbs span { font-size: 11px; }
  .dpocar-arrows { bottom: 96px; } */
  .dpocarousel {
    display: none;
  }
}

/* Très petits écrans */
@media (max-width: 380px) {
  
}

/* Modal pour afficher les images en plein écran */
.image-modal {
    display: none;
    position: fixed !important;
    z-index: 99999 !important;
    left: 0 !important;
    top: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 !important;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

.image-modal-caption {
    margin-top: 20px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    max-width: 90%;
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 100000 !important;
}

.image-modal-close:hover {
    color: #1E63F0;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive pour le modal */
@media (max-width: 768px) {
    .image-modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
    
    .image-modal-content {
        max-width: 95%;
        max-height: 85%;
    }
    
    .image-modal-caption {
        font-size: 16px;
        margin-top: 15px;
    }
}


