/* ==========================================================================
   OSMANE GROUP - GALERIE & CARROUSEL PLEIN ECRAN ERP EASY-COMPTA PRO
   CONVERTISSEUR B2B HAUT DE GAMME (EXPÉRIENCE CINÉMA FULLSCREEN)
   ========================================================================== */

.og-cgallery-section {
    padding: 85px 24px;
    background: linear-gradient(180deg, #0B1120 0%, #0F172A 50%, #0B1120 100%) !important;
    color: #F8FAFC !important;
    position: relative;
    overflow: hidden;
}

.og-cgallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
}

.og-cgallery-inner {
    max-width: 1260px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* EN-TETE */
.og-cgallery-header {
    text-align: center;
    margin-bottom: 45px;
}

.og-cgallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(37, 99, 235, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #93C5FD;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 9999px;
    margin-bottom: 16px;
}

.og-cgallery-title {
    font-size: clamp(1.8rem, 3.8vw, 2.7rem) !important;
    font-weight: 900 !important;
    line-height: 1.25 !important;
    color: #FFFFFF !important;
    margin: 0 0 10px !important;
    letter-spacing: -0.5px !important;
}

.og-cgallery-arabic-sub {
    font-family: 'Cairo', 'Tajawal', system-ui, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #FCD34D !important;
    direction: rtl !important;
    margin-bottom: 14px !important;
}

.og-cgallery-desc {
    max-width: 780px !important;
    margin: 0 auto 28px !important;
    font-size: 1.02rem !important;
    line-height: 1.7 !important;
    color: #CBD5E1 !important;
}

.og-cgallery-desc strong {
    color: #60A5FA !important;
}

/* FILTRES PAR CATEGORIE */
.og-cgallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.og-cgallery-filter-btn {
    background: rgba(30, 41, 59, 0.7);
    color: #CBD5E1;
    border: 1px solid rgba(71, 85, 105, 0.5);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.og-cgallery-filter-btn:hover {
    background: rgba(51, 65, 85, 0.9);
    color: #FFFFFF;
    border-color: #60A5FA;
}

.og-cgallery-filter-btn.active {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
    color: #FFFFFF !important;
    border-color: #3B82F6 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4) !important;
}

/* CADRE DE FENETRE DESKTOP */
.og-cgallery-window-frame {
    background: #0F172A;
    border: 1px solid rgba(71, 85, 105, 0.5);
    border-radius: 18px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.og-cgallery-window-bar {
    background: #1E293B;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(71, 85, 105, 0.4);
}

.og-cgallery-window-dots {
    display: flex;
    gap: 7px;
}

.og-cgallery-window-dots .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.og-cgallery-window-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.3px;
}

.og-cgallery-btn-fs {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93C5FD;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.og-cgallery-btn-fs svg {
    width: 14px;
    height: 14px;
}

.og-cgallery-btn-fs:hover {
    background: #2563EB;
    color: #FFFFFF;
}

/* VIEWPORT PRINCIPAL */
.og-cgallery-viewport {
    position: relative;
    background: #020617;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.og-cgallery-badge-counter {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    z-index: 5;
}

.og-cgallery-stage-image-wrap {
    width: 100%;
    max-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.og-cgallery-stage-image-wrap img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.og-cgallery-stage-image-wrap:hover img {
    transform: scale(1.015);
}

.og-cgallery-click-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.og-cgallery-stage-image-wrap:hover .og-cgallery-click-hint {
    opacity: 1;
}

/* BOUTONS NAVIGATION PREV/NEXT */
.og-cgallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    transition: all 0.2s ease;
}

.og-cgallery-nav-btn svg {
    width: 24px;
    height: 24px;
}

.og-cgallery-nav-btn:hover {
    background: #2563EB;
    border-color: #3B82F6;
    transform: translateY(-50%) scale(1.1);
}

.og-cgallery-nav-btn.prev { left: 16px; }
.og-cgallery-nav-btn.next { right: 16px; }

/* BARRE D'INFORMATION & CTA */
.og-cgallery-info-bar {
    background: #0F172A;
    padding: 24px 28px;
    border-top: 1px solid rgba(71, 85, 105, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.og-cgallery-info-text {
    flex: 1;
    min-width: 280px;
}

.og-cgallery-info-tag {
    display: inline-block;
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.og-cgallery-info-title {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin: 0 0 6px !important;
    letter-spacing: -0.2px !important;
}

.og-cgallery-info-arabic {
    font-family: 'Cairo', 'Tajawal', system-ui, sans-serif !important;
    font-size: 1.05rem !important;
    color: #FCD34D !important;
    margin-bottom: 8px !important;
    direction: rtl !important;
    text-align: left !important;
}

.og-cgallery-info-desc {
    font-size: 0.94rem !important;
    color: #CBD5E1 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 680px !important;
}

.og-cgallery-info-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.og-cgallery-btn-cta-whatsapp {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.og-cgallery-btn-cta-whatsapp:hover {
    background: #059669 !important;
    transform: translateY(-2px) !important;
    color: #FFFFFF !important;
}

.og-cgallery-btn-cta-devis {
    background: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(71, 85, 105, 0.6) !important;
    color: #F1F5F9 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    padding: 11px 18px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.og-cgallery-btn-cta-devis:hover {
    background: #2563EB !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
}

/* RUBAN DES VIGNETTES */
.og-cgallery-thumbs-wrapper {
    background: #0B1120;
    padding: 16px 20px;
    border-top: 1px solid rgba(71, 85, 105, 0.3);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #334155 #0B1120;
}

.og-cgallery-thumbs-track {
    display: flex;
    gap: 12px;
    align-items: center;
}

.og-cgallery-thumb-item {
    flex: 0 0 160px;
    height: 95px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: all 0.25s ease;
    background: #020617;
}

.og-cgallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.og-cgallery-thumb-tag {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(15, 23, 42, 0.88);
    color: #93C5FD;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.og-cgallery-thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.6);
}

.og-cgallery-thumb-item.active {
    opacity: 1;
    border-color: #3B82F6;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.6);
    transform: scale(1.04);
}

.og-cgallery-thumb-item.hidden {
    display: none !important;
}

/* ==========================================================================
   LIGHTBOX FULLSCREEN OVERLAY
   ========================================================================== */

.og-clightbox-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(3, 7, 18, 0.97) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    z-index: 9999999 !important;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.og-clightbox-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.og-clightbox-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.og-clightbox-topbar {
    padding: 16px 28px;
    background: rgba(15, 23, 42, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.og-clightbox-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.og-clightbox-pill {
    background: #2563EB !important;
    color: #FFFFFF !important;
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
}

.og-clightbox-title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.2px !important;
}

.og-clightbox-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.og-clightbox-btn-icon {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #FFFFFF;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.og-clightbox-btn-icon svg {
    width: 20px;
    height: 20px;
}

.og-clightbox-btn-icon:hover {
    background: rgba(255, 255, 255, 0.3);
}

.og-clightbox-btn-close {
    background: rgba(239, 68, 68, 0.25) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #FFFFFF !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
    font-size: 1.8rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

.og-clightbox-btn-close:hover {
    background: #EF4444 !important;
    color: #FFFFFF !important;
}

/* CANVAS LIGHTBOX */
.og-clightbox-canvas {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.og-clightbox-img-box {
    max-width: 94vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.og-clightbox-img-box img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.og-clightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.2s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.og-clightbox-nav svg {
    width: 28px;
    height: 28px;
}

.og-clightbox-nav:hover {
    background: #2563EB !important;
    border-color: #3B82F6 !important;
    transform: translateY(-50%) scale(1.12);
}

.og-clightbox-nav.prev { left: 24px; }
.og-clightbox-nav.next { right: 24px; }

/* BARRE INFERIEURE LIGHTBOX */
.og-clightbox-bottombar {
    padding: 18px 28px;
    background: rgba(15, 23, 42, 0.95) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.og-clightbox-bottom-info {
    flex: 1;
    min-width: 280px;
}

.og-clightbox-arabic {
    font-family: 'Cairo', 'Tajawal', system-ui, sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: #FCD34D !important;
    margin-bottom: 4px !important;
    direction: rtl !important;
    text-align: left !important;
}

.og-clightbox-desc {
    font-size: 0.98rem !important;
    color: #E2E8F0 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

.og-clightbox-bottom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.og-clightbox-btn-wa {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    padding: 12px 22px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.og-clightbox-btn-wa:hover {
    background: #059669 !important;
    color: #FFFFFF !important;
}

.og-clightbox-btn-phone {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #FFFFFF !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    padding: 12px 18px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.og-clightbox-btn-phone:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: #FFFFFF !important;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .og-cgallery-section {
        padding: 50px 16px;
    }
    .og-cgallery-viewport {
        min-height: 280px;
    }
    .og-cgallery-nav-btn {
        width: 38px;
        height: 38px;
    }
    .og-cgallery-nav-btn.prev { left: 8px; }
    .og-cgallery-nav-btn.next { right: 8px; }
    .og-cgallery-info-bar {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
    .og-cgallery-info-actions {
        width: 100%;
    }
    .og-cgallery-btn-cta-whatsapp,
    .og-cgallery-btn-cta-devis {
        width: 100%;
        justify-content: center;
    }
    .og-clightbox-topbar {
        padding: 12px 16px;
    }
    .og-clightbox-bottombar {
        padding: 14px 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .og-clightbox-bottom-actions {
        flex-direction: column;
        width: 100%;
    }
    .og-clightbox-btn-wa,
    .og-clightbox-btn-phone {
        width: 100%;
        justify-content: center;
    }
    .og-clightbox-nav {
        width: 44px;
        height: 44px;
    }
    .og-clightbox-nav.prev { left: 10px; }
    .og-clightbox-nav.next { right: 10px; }
}
