/* ==========================================================================
   OSMANE GROUP - GALERIE & CARROUSEL PLEIN ECRAN ERP EASY-HOTEL PRO
   CONVERTISSEUR B2B HÔTELLERIE HAUT DE GAMME (EXPÉRIENCE CINÉMA FULLSCREEN)
   ========================================================================== */

.og-hgallery-section {
    padding: 85px 24px;
    background: linear-gradient(180deg, #06111C 0%, #0B192C 50%, #06111C 100%) !important;
    color: #F8FAFC !important;
    position: relative;
    overflow: hidden;
}

.og-hgallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 850px;
    height: 420px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(16, 185, 129, 0.08) 50%, rgba(14, 165, 233, 0) 75%);
    pointer-events: none;
}

.og-hgallery-inner {
    max-width: 1260px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* EN-TETE */
.og-hgallery-header {
    text-align: center;
    margin-bottom: 45px;
}

.og-hgallery-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(14, 165, 233, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7DD3FC;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 9999px;
    margin-bottom: 16px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
}

.og-hgallery-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-hgallery-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-hgallery-desc {
    max-width: 820px !important;
    margin: 0 auto 28px !important;
    font-size: 1.02rem !important;
    line-height: 1.7 !important;
    color: #CBD5E1 !important;
}

.og-hgallery-desc strong {
    color: #38BDF8 !important;
}

/* FILTRES PAR CATEGORIE */
.og-hgallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
}

.og-hgallery-filter-btn {
    background: rgba(15, 23, 42, 0.8);
    color: #CBD5E1;
    border: 1px solid rgba(51, 65, 85, 0.7);
    padding: 8px 18px;
    border-radius: 9999px;
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.og-hgallery-filter-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    color: #FFFFFF;
    border-color: #38BDF8;
}

.og-hgallery-filter-btn.active {
    background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%) !important;
    color: #FFFFFF !important;
    border-color: #38BDF8 !important;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.45) !important;
}

/* CADRE DE FENETRE DESKTOP */
.og-hgallery-window-frame {
    background: #0B192C;
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 18px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    position: relative;
}

.og-hgallery-window-bar {
    background: #0F223A;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(56, 189, 248, 0.18);
}

.og-hgallery-window-dots {
    display: flex;
    gap: 7px;
}

.og-hgallery-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-hgallery-window-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #94A3B8;
    letter-spacing: 0.3px;
}

.og-hgallery-btn-fs {
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7DD3FC;
    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-hgallery-btn-fs svg {
    width: 14px;
    height: 14px;
}

.og-hgallery-btn-fs:hover {
    background: #0284C7;
    color: #FFFFFF;
}

/* VIEWPORT PRINCIPAL */
.og-hgallery-viewport {
    position: relative;
    background: #030A14;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.og-hgallery-badge-counter {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(11, 25, 44, 0.88);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 9999px;
    z-index: 5;
}

.og-hgallery-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-hgallery-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.6);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.og-hgallery-stage-image-wrap:hover img {
    transform: scale(1.015);
}

.og-hgallery-click-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(11, 25, 44, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #FFFFFF;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.og-hgallery-stage-image-wrap:hover .og-hgallery-click-hint {
    opacity: 1;
}

/* BOUTONS NAVIGATION PREV/NEXT */
.og-hgallery-nav-btn, .og-hgallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(11, 25, 44, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25 !important;
    pointer-events: auto !important;
    transition: all 0.2s ease;
}

.og-hgallery-nav-btn svg, .og-hgallery-nav svg {
    width: 24px;
    height: 24px;
    pointer-events: none !important;
}

.og-hgallery-nav-btn:hover, .og-hgallery-nav:hover {
    background: #0284C7;
    border-color: #38BDF8;
    transform: translateY(-50%) scale(1.1);
}

.og-hgallery-nav-btn.prev, .og-hgallery-nav.prev { left: 16px; }
.og-hgallery-nav-btn.next, .og-hgallery-nav.next { right: 16px; }

/* BARRE D'INFORMATION & CTA */
.og-hgallery-info-bar {
    background: #0B192C;
    padding: 24px 28px;
    border-top: 1px solid rgba(56, 189, 248, 0.18);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.og-hgallery-info-text {
    flex: 1;
    min-width: 280px;
}

.og-hgallery-info-tag {
    display: inline-block;
    background: rgba(14, 165, 233, 0.22);
    color: #38BDF8;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.og-hgallery-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-hgallery-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-hgallery-info-desc {
    font-size: 0.94rem !important;
    color: #CBD5E1 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    max-width: 680px !important;
}

.og-hgallery-info-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.og-hgallery-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-hgallery-btn-cta-whatsapp:hover {
    background: #059669 !important;
    transform: translateY(-2px) !important;
    color: #FFFFFF !important;
}

.og-hgallery-btn-cta-devis {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !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-hgallery-btn-cta-devis:hover {
    background: #0284C7 !important;
    border-color: #38BDF8 !important;
    color: #FFFFFF !important;
}

/* RUBAN DES VIGNETTES */
.og-hgallery-thumbs-wrapper {
    background: #06111C;
    padding: 16px 20px;
    border-top: 1px solid rgba(56, 189, 248, 0.18);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #0284C7 #06111C;
}

.og-hgallery-thumbs-track {
    display: flex;
    gap: 12px;
    align-items: center;
}

.og-hgallery-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: #030A14;
}

.og-hgallery-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.og-hgallery-thumb-tag {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(11, 25, 44, 0.92);
    color: #7DD3FC;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.og-hgallery-thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.6);
}

.og-hgallery-thumb-item.active {
    opacity: 1;
    border-color: #38BDF8;
    box-shadow: 0 0 16px rgba(14, 165, 233, 0.65);
    transform: scale(1.04);
}

.og-hgallery-thumb-item.hidden {
    display: none !important;
}

/* ==========================================================================
   LIGHTBOX FULLSCREEN OVERLAY
   ========================================================================== */

.og-hlightbox-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(2, 6, 14, 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-hlightbox-overlay.active {
    display: flex !important;
    opacity: 1 !important;
}

.og-hlightbox-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
}

.og-hlightbox-topbar {
    padding: 16px 28px;
    background: rgba(11, 25, 44, 0.96) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.og-hlightbox-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.og-hlightbox-pill {
    background: #0284C7 !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-hlightbox-title {
    margin: 0 !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    letter-spacing: -0.2px !important;
}

.og-hlightbox-top-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.og-hlightbox-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-hlightbox-btn-icon svg {
    width: 20px;
    height: 20px;
}

.og-hlightbox-btn-icon:hover {
    background: rgba(255, 255, 255, 0.25);
}

.og-hlightbox-btn-close {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #F87171;
    font-size: 1.8rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.og-hlightbox-btn-close:hover {
    background: #EF4444;
    color: #FFFFFF;
}

/* CANVAS LIGHTBOX */
.og-hlightbox-canvas {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 80px;
    overflow: hidden;
}

.og-hlightbox-img-box {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.og-hlightbox-img-box img {
    max-width: 100%;
    max-height: calc(100vh - 200px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    transition: opacity 0.15s ease;
}

.og-hlightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(11, 25, 44, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.og-hlightbox-nav svg {
    width: 28px;
    height: 28px;
}

.og-hlightbox-nav:hover {
    background: #0284C7;
    border-color: #38BDF8;
    transform: translateY(-50%) scale(1.1);
}

.og-hlightbox-nav.prev { left: 24px; }
.og-hlightbox-nav.next { right: 24px; }

/* BARRE INFERIEURE LIGHTBOX */
.og-hlightbox-bottombar {
    padding: 18px 28px;
    background: rgba(11, 25, 44, 0.96) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.og-hlightbox-bottom-info {
    flex: 1;
    min-width: 280px;
}

.og-hlightbox-arabic {
    font-family: 'Cairo', 'Tajawal', system-ui, sans-serif !important;
    font-size: 1.1rem !important;
    color: #FCD34D !important;
    margin-bottom: 4px !important;
    direction: rtl !important;
    text-align: left !important;
}

.og-hlightbox-desc {
    font-size: 0.95rem !important;
    color: #CBD5E1 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

.og-hlightbox-bottom-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.og-hlightbox-btn-wa {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    padding: 11px 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;
    white-space: nowrap !important;
}

.og-hlightbox-btn-phone {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
    font-size: 0.92rem !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: 8px !important;
    white-space: nowrap !important;
}

.og-hlightbox-btn-phone:hover {
    background: rgba(255, 255, 255, 0.22) !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .og-hgallery-section { padding: 60px 16px; }
    .og-hgallery-viewport { min-height: 380px; }
    .og-hlightbox-canvas { padding: 10px 50px; }
    .og-hlightbox-nav { width: 44px; height: 44px; }
    .og-hlightbox-nav.prev { left: 10px; }
    .og-hlightbox-nav.next { right: 10px; }
}

@media (max-width: 640px) {
    .og-hgallery-section { padding: 45px 12px; }
    .og-hgallery-viewport { min-height: 260px; }
    .og-hgallery-nav-btn { width: 38px; height: 38px; }
    .og-hgallery-nav-btn.prev { left: 8px; }
    .og-hgallery-nav-btn.next { right: 8px; }
    .og-hgallery-info-bar { padding: 18px; }
    .og-hgallery-info-actions { width: 100%; justify-content: stretch; }
    .og-hgallery-btn-cta-whatsapp, .og-hgallery-btn-cta-devis { width: 100%; justify-content: center; }
    .og-hgallery-thumb-item { flex: 0 0 125px; height: 75px; }
    .og-hlightbox-canvas { padding: 10px 12px; }
    .og-hlightbox-topbar { padding: 12px 16px; }
    .og-hlightbox-bottombar { padding: 14px 16px; }
    .og-hlightbox-bottom-actions { width: 100%; }
    .og-hlightbox-btn-wa, .og-hlightbox-btn-phone { flex: 1; justify-content: center; }
}
