/* Styles pour le diaporama de screenshots avec navigation */

/* EmpÃªcher le scroll de la page quand le modal est ouvert */
body.mfp-prevent-scroll {
    overflow: hidden;
}

/* Styles pour le zoom des images */
.mfp-img img {
    cursor: grab;
    transition: transform 0.3s ease-out;
    max-width: none !important;
    max-height: none !important;
}

.mfp-img img.zoomed {
    cursor: grab;
}

.mfp-img img:active {
    cursor: grabbing;
}

/* Indicateur de zoom */
.mfp-wrap.zoomed-mode::before {
    content: "ðŸ” Utilisez la molette pour zoomer, glissez pour dÃ©placer, double-clic pour rÃ©initialiser";
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1047;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    10%, 90% { opacity: 1; }
}

/* Container principal du diaporama */
.mfp-with-zoom .mfp-container,
.mfp-with-zoom.mfp-bg {
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: all 0.3s ease-out; 
    -moz-transition: all 0.3s ease-out; 
    -o-transition: all 0.3s ease-out; 
    transition: all 0.3s ease-out;
}

.mfp-with-zoom.mfp-ready .mfp-container {
    opacity: 1;
}

.mfp-with-zoom.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-with-zoom.mfp-removing .mfp-container, 
.mfp-with-zoom.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Boutons de navigation gauche/droite */
.mfp-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    pointer-events: none;
    z-index: 1044;
}

.mfp-arrow-left,
.mfp-arrow-right {
    position: fixed !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 1046 !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: bold !important;
    display: block !important;
    pointer-events: auto !important;
}

.mfp-arrow-left {
    left: 30px !important;
}

.mfp-arrow-right {
    right: 30px !important;
}

.mfp-arrow-left:hover,
.mfp-arrow-right:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

/* IcÃ´nes des flÃ¨ches */
.mfp-arrow-left:before,
.mfp-arrow-right:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translate(-50%, -50%);
}

.mfp-arrow-left:before {
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid #fff;
    margin-left: -2px;
}

.mfp-arrow-right:before {
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    margin-left: 2px;
}

/* Ã‰tats dÃ©sactivÃ©s et protection contre clics multiples */
.mfp-arrow-left.disabled,
.mfp-arrow-right.disabled {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    background: rgba(0, 0, 0, 0.1) !important;
    color: #666 !important;
    transform: translateY(-50%) scale(1) !important;
}

.mfp-arrow-left.click-disabled,
.mfp-arrow-right.click-disabled {
    pointer-events: none !important;
    opacity: 0.6 !important;
    cursor: wait !important;
}

.mfp-arrow-left.disabled:hover,
.mfp-arrow-right.disabled:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-50%) scale(1) !important;
    cursor: not-allowed !important;
}

/* Bandeau d'informations en bas */
.mfp-bottom-bar {
    position: absolute;
    /* bottom: 0; */
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 15px 20px;
    box-sizing: border-box;
    min-height: auto;
    /* display: flex; */
    align-items: flex-end;
    justify-content: space-between;
}

.mfp-title {
    flex-grow: 1;
    /* margin-right: 15px; */
}

.screenshot-info {
    color: #fff;
    text-align: center;
    font-family: 'Arial', sans-serif;
    padding: 0;
    margin: 0;
}

.player-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 1.2;
    word-wrap: break-word;
}

/* Bouton "Voir le Blog de X" */
.blog-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
    outline: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-btn:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

.blog-btn:active {
    transform: translateY(0px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.screenshot-message {
    font-size: 14px;
    line-height: 1.3;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    white-space: normal;
}

.screenshot-date {
    font-size: 11px;
    line-height: 1.2;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-top: 8px;
    text-align: center;
    color: #e0e0e0;
}

.screenshot-date small {
    font-size: inherit;
}

.screenshot-date em {
    font-style: italic;
}

/* Compteur d'images */
.mfp-counter {
    /* position: static !important; */
    /* top: auto !important; */
    /* right: auto !important; */
    color: #fff !important;
    font-size: 14px !important;
    font-weight: bold;
    background: rgba(0,0,0,0.6) !important;
    padding: 8px 12px !important;
    border-radius: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    white-space: nowrap !important;
    flex-shrink: 0;
    display: block !important;
    margin-left: auto;
    line-height: normal !important;
    margin: 10px 10px 0px 0px;
}

/* ResponsivitÃ© mobile */
@media screen and (max-width: 768px) {
    .mfp-arrow-left,
    .mfp-arrow-right {
        width: 50px;
        height: 50px;
    }
    
    .mfp-arrow-left {
        left: 10px;
    }
    
    .mfp-arrow-right {
        right: 10px;
    }
    
    .mfp-arrow-left:before,
    .mfp-arrow-right:before {
        border-width: 8px;
    }
    
    .mfp-arrow-left:before {
        border-right-width: 12px;
    }
    
    .mfp-arrow-right:before {
        border-left-width: 12px;
    }
    
    .player-name {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .screenshot-message {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .screenshot-date {
        font-size: 10px;
        margin-top: 6px;
    }
    
    .mfp-counter {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .mfp-bottom-bar {
        padding: 12px 15px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .mfp-title {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
    }
    
    /* Adaptation du bouton blog en mobile */
    .blog-btn {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Animation d'entrÃ©e */
.mfp-with-anim .mfp-img {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-with-anim.mfp-ready .mfp-img {
    transform: scale(1);
    opacity: 1;
}

.mfp-close-btn-in .mfp-close:hover {
    /* background: rgba(0,0,0,0.8); */
    transform: scale(1.1);
}

/* Forcer le curseur normal sur le bouton de fermeture */
.mfp-close,
.mfp-close-btn-in .mfp-close,
.mfp-wrap .mfp-close,
.mfp-wrap button[title="Close"],
.mfp-wrap .mfp-button-close {
    cursor: pointer !important;
}

.mfp-close:hover,
.mfp-close-btn-in .mfp-close:hover,
.mfp-wrap .mfp-close:hover,
.mfp-wrap button[title="Close"]:hover,
.mfp-wrap .mfp-button-close:hover {
    cursor: pointer !important;
}

/* EmpÃªcher le curseur zoom sur tous les boutons de contrÃ´le */
.mfp-wrap button,
.mfp-wrap .mfp-arrow,
.mfp-wrap .mfp-arrow-left,
.mfp-wrap .mfp-arrow-right,
.mfp-wrap [class*="mfp-"] button {
    cursor: pointer !important;
}

/* S'assurer que seule l'image ait le curseur zoom/grab */
.mfp-wrap * {
    cursor: default !important;
}

.mfp-img,
.mfp-img img {
    cursor: grab !important;
}

.mfp-img img:active {
    cursor: grabbing !important;
}

/* ========================================== */
/* SYSTÈME SIMPLE - FAQ, TUTORIELS, ETC.     */
/* ========================================== */

/* Container principal du modal simple */
.mfp-simple .mfp-container,
.mfp-simple.mfp-bg {
    opacity: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transition: all 0.3s ease-out; 
    -moz-transition: all 0.3s ease-out; 
    -o-transition: all 0.3s ease-out; 
    transition: all 0.3s ease-out;
}

.mfp-simple.mfp-ready .mfp-container {
    opacity: 1;
}

.mfp-simple.mfp-ready.mfp-bg {
    opacity: 0.8;
}

.mfp-simple.mfp-removing .mfp-container, 
.mfp-simple.mfp-removing.mfp-bg {
    opacity: 0;
}

/* Bandeau d'informations en bas - VERSION SIMPLE */
.mfp-simple .mfp-bottom-bar {
    position: absolute;
    /* bottom: 0; */
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 15px 20px;
    /* box-sizing: border-box; */
    text-align: center;
}

.mfp-simple .simple-info {
    color: #fff;
    text-align: center;
    font-family: 'Arial', sans-serif;
    padding: 0;
    margin: 0;
}

.mfp-simple .simple-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    line-height: 1.2;
    word-wrap: break-word;
}

.mfp-simple .simple-message {
    font-size: 14px;
    line-height: 1.3;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    max-width: 600px;
    margin: 0 auto;
    word-wrap: break-word;
    white-space: normal;
}

/* Animation d'entrée simple */
.mfp-simple.mfp-with-anim .mfp-img {
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease-out;
}

.mfp-simple.mfp-with-anim.mfp-ready .mfp-img {
    transform: scale(1);
    opacity: 1;
}

/* Curseur normal sur le bouton de fermeture simple */
.mfp-simple .mfp-close,
.mfp-simple .mfp-close-btn-in .mfp-close,
.mfp-simple .mfp-wrap .mfp-close,
.mfp-simple .mfp-wrap button[title="Close"],
.mfp-simple .mfp-wrap .mfp-button-close {
    cursor: pointer !important;
}

.mfp-simple .mfp-close:hover,
.mfp-simple .mfp-close-btn-in .mfp-close:hover,
.mfp-simple .mfp-wrap .mfp-close:hover,
.mfp-simple .mfp-wrap button[title="Close"]:hover,
.mfp-simple .mfp-wrap .mfp-button-close:hover {
    cursor: pointer !important;
    transform: scale(1.1);
}

/* Masquer le compteur dans le système simple */
.mfp-simple .mfp-counter {
    display: none !important;
}

/* Responsivité mobile pour le système simple */
@media screen and (max-width: 768px) {
    .mfp-simple .simple-title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .mfp-simple .simple-message {
        font-size: 13px;
        line-height: 1.2;
    }
    
    .mfp-simple .mfp-bottom-bar {
        padding: 12px 15px;
    }
}

/* ========================================== */
/* BANDEAU DE PRÉVISUALISATION SIMPLE        */
/* ========================================== */

/* Container pour la prévisualisation avec bandeau */
.simple-gallery-item {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 8px;
}

.simple-gallery-item a {
    position: relative;
    display: block;
    text-decoration: none;
}

/* Bandeau d'informations en overlay sur la prévisualisation */
.simple-gallery-item::after {
    content: attr(data-title) "\A" attr(data-message);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    color: #fff;
    padding: 15px 10px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    white-space: pre-line;
    font-size: 12px;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    word-wrap: break-word;
    max-height: 50%;
    overflow: hidden;
}

/* Effet au survol (optionnel) */
.simple-gallery-item:hover::after {
    opacity: 1;
}

/* Style du titre dans le bandeau de prévisualisation */
.simple-gallery-item[data-title]::after {
    font-weight: bold;
}

/* Responsive pour mobile */
@media screen and (max-width: 768px) {
    .simple-gallery-item::after {
        font-size: 11px;
        padding: 12px 8px;
        line-height: 1.2;
    }
}
