/* ============================================
   Galerie Le Délice – Design modernisé
   Univers noir / bordeaux / or
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Outfit:wght@200;300;400&display=swap');

/* ── CONTENEUR PRINCIPAL ── */
.dg-all-galleries-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* ── GRILLE DES GALERIES ── */
.dg-galleries-grid-frontend {
    display: grid;
    gap: 1px;
    margin-bottom: 48px;
    background: rgba(200, 160, 80, 0.12);
}

/* ── CARD GALERIE ── */
.dg-gallery-card-frontend {
    background: #000;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.35s ease;
    animation: dg-fondu 0.6s ease both;
}
.dg-gallery-card-frontend:hover {
    background: rgba(200, 160, 80, 0.025);
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* ── ZONE IMAGE ── */
.dg-gallery-card-image-frontend {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: rgba(200, 160, 80, 0.04);
    position: relative;
}
.dg-gallery-card-image-frontend img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.75) saturate(0.85);
    transition: filter 0.5s ease, transform 0.6s ease;
}
.dg-gallery-card-frontend:hover .dg-gallery-card-image-frontend img {
    filter: brightness(0.95) saturate(1.05);
    transform: scale(1.05);
}

/* Dégradé bas */
.dg-gallery-card-image-frontend::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 55%;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Ligne dorée hover haut */
.dg-gallery-card-image-frontend::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,160,80,0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}
.dg-gallery-card-frontend:hover .dg-gallery-card-image-frontend::before {
    opacity: 1;
}

/* ── OVERLAY AU HOVER ── */
.dg-gallery-card-overlay-frontend {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 3;
}
.dg-gallery-card-frontend:hover .dg-gallery-card-overlay-frontend {
    opacity: 1;
}

.dg-gallery-card-icon {
    font-size: 0;
    line-height: 0;
}
.dg-gallery-card-icon::before {
    content: '✦';
    font-size: 1.4rem;
    color: rgba(200, 160, 80, 0.85);
    text-shadow: 0 0 20px rgba(200,80,112,0.5);
    display: block;
    line-height: 1;
}

.dg-gallery-card-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(240, 220, 210, 0.8);
    background: rgba(0,0,0,0.45);
    padding: 8px 18px;
    border: 1px solid rgba(200,160,80,0.2);
    backdrop-filter: blur(4px);
    text-shadow: none;
    box-shadow: none;
    border-radius: 0;
}

/* Placeholder */
.dg-gallery-card-placeholder-frontend {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 160, 80, 0.03);
}
.dg-placeholder-icon-frontend { font-size: 0; }
.dg-placeholder-icon-frontend::before {
    content: '◆';
    font-size: 2.5rem;
    color: rgba(200, 160, 80, 0.12);
    display: block;
}

/* ── PIED DE CARD ── */
.dg-gallery-card-content-frontend {
    padding: 20px 24px 24px;
    background: #000;
    border-top: 1px solid rgba(200, 160, 80, 0.08);
    transition: border-color 0.3s ease;
    flex: 1;
}
.dg-gallery-card-frontend:hover .dg-gallery-card-content-frontend {
    border-color: rgba(200, 160, 80, 0.2);
}

.dg-gallery-card-content-frontend h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #f0dcd2;
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}
.dg-gallery-card-frontend:hover .dg-gallery-card-content-frontend h3 {
    color: #e8c878;
}

.dg-gallery-card-meta-frontend {
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    color: rgba(240, 220, 210, 0.3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dg-gallery-card-meta-frontend::before {
    content: '';
    width: 16px;
    height: 1px;
    background: rgba(200, 160, 80, 0.3);
    display: inline-block;
}
.dg-gallery-card-meta-frontend strong {
    color: rgba(200, 160, 80, 0.6);
    font-weight: 400;
}

/* ── BOUTON CHARGER PLUS ── */
.dg-load-more-container {
    text-align: center;
    margin-top: 48px;
}
.dg-load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: rgba(200, 160, 80, 0.05);
    border: 1px solid rgba(200, 160, 80, 0.35);
    color: rgba(200, 160, 80, 0.8);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.dg-load-more-button::after { content: '→'; transition: transform 0.3s; }
.dg-load-more-button:hover:not(:disabled) {
    background: rgba(200, 160, 80, 0.12);
    border-color: rgba(200, 160, 80, 0.6);
    color: #e8c878;
    transform: none;
    box-shadow: none;
}
.dg-load-more-button:hover:not(:disabled)::after { transform: translateX(4px); }
.dg-load-more-button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ══════════════════════════════════════
   GALERIE INDIVIDUELLE
   ══════════════════════════════════════ */
.dg-gallery-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.dg-main-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    cursor: pointer;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: 1px solid rgba(200, 160, 80, 0.15);
    transition: border-color 0.3s;
}
.dg-main-image-wrapper:hover { transform: none; box-shadow: none; border-color: rgba(200,160,80,0.35); }
.dg-main-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(160,0,55,0.2) 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 5;
}
.dg-main-image-wrapper:hover::after { opacity: 1; }

.dg-main-image {
    width: 100%; height: auto;
    display: block; border-radius: 0;
    filter: brightness(0.8) saturate(0.85);
    transition: filter 0.5s ease, transform 0.5s ease;
}
.dg-main-image-wrapper:hover .dg-main-image {
    filter: brightness(0.95) saturate(1);
    transform: scale(1.02);
}

.dg-main-image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100;
    opacity: 1;
    transition: opacity 0.3s ease, background 0.3s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.2);
}
.dg-main-image-wrapper:hover .dg-main-image-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
}

.dg-overlay-icon { font-size: 0; display: block; animation: none; margin: 0; line-height: 1; }
.dg-overlay-icon::before {
    content: '✦';
    font-size: 2.2rem;
    color: rgba(200, 160, 80, 0.85);
    text-shadow: 0 0 30px rgba(200,80,112,0.5);
    display: block;
    animation: dg-pulse 2.5s ease-in-out infinite;
}
@keyframes dg-pulse {
    0%, 100% { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

.dg-overlay-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(240, 220, 210, 0.85);
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 22px;
    border: 1px solid rgba(200, 160, 80, 0.22);
    backdrop-filter: blur(6px);
    text-shadow: none;
    box-shadow: none;
    border-radius: 0;
    margin-top: 0;
}

.dg-images-grid { display: none !important; }

.dg-image-item {
    position: relative; border-radius: 0; overflow: hidden;
    cursor: pointer; aspect-ratio: 1;
    border: 1px solid rgba(200, 160, 80, 0.08);
    box-shadow: none;
    transition: border-color 0.3s;
}
.dg-image-item:hover { transform: none; box-shadow: none; border-color: rgba(200,160,80,0.25); }
.dg-image-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: brightness(0.75) saturate(0.8);
    transition: filter 0.4s, transform 0.5s;
}
.dg-image-item:hover img { filter: brightness(0.95) saturate(1); transform: scale(1.05); }

.dg-image-item-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    padding: 14px; color: #f0dcd2; opacity: 0; transition: opacity 0.3s ease;
}
.dg-image-item:hover .dg-image-item-overlay { opacity: 1; }
.dg-image-item-title { font-family: 'Cormorant Garamond', serif; font-size: 0.9rem; font-weight: 400; margin-bottom: 4px; color: #e8c878; }
.dg-image-item-description { font-family: 'Outfit', sans-serif; font-size: 0.7rem; font-weight: 300; opacity: 0.55; line-height: 1.5; }

/* ══════════════════════════════════════
   LIGHTBOX
   ══════════════════════════════════════ */
.dg-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.97);
    z-index: 9999;
    overflow: hidden;
    animation: dg-fadeIn 0.3s ease;
    margin: 0; padding: 0;
}
.dg-lightbox.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
@keyframes dg-fadeIn { from { opacity: 0; } to { opacity: 1; } }

.dg-lightbox-content {
    position: relative; width: 90%; max-width: 1200px; height: 90vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    margin: 0 auto; padding: 20px; box-sizing: border-box;
}

.dg-lightbox-main-image {
    max-width: 100%; max-height: 75vh; width: auto; height: auto;
    object-fit: contain; border-radius: 0;
    box-shadow: 0 0 60px rgba(200, 80, 112, 0.12);
    border: 1px solid rgba(200, 160, 80, 0.1);
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: dg-fadeInImage 0.4s ease;
    margin: 0 auto; display: block;
}
@keyframes dg-fadeInImage {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.dg-lightbox-description {
    color: rgba(240, 220, 210, 0.4);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    text-align: center;
    margin: 14px auto 0;
    font-size: 0.9rem;
    max-width: 800px;
    padding: 0 20px;
    line-height: 1.7;
}

.dg-lightbox-counter {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.55);
    color: rgba(200, 160, 80, 0.65);
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(200, 160, 80, 0.18);
    font-family: 'Outfit', sans-serif;
    font-size: 0.68rem; font-weight: 300; letter-spacing: 2px;
    z-index: 10001; backdrop-filter: blur(6px);
}

.dg-lightbox-close {
    position: absolute; top: 20px; right: 20px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(200,160,80,0.22);
    color: rgba(200,160,80,0.65);
    width: 42px; height: 42px; border-radius: 0;
    font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; z-index: 10000; backdrop-filter: blur(6px);
}
.dg-lightbox-close:hover {
    background: rgba(200,160,80,0.08);
    border-color: rgba(200,160,80,0.45);
    color: #e8c878; transform: rotate(90deg);
}

.dg-lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(200,160,80,0.18);
    color: rgba(200,160,80,0.65);
    width: 50px; height: 50px; border-radius: 0;
    font-size: 26px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; z-index: 10000; backdrop-filter: blur(6px);
}
.dg-lightbox-nav:hover {
    background: rgba(200,160,80,0.08);
    border-color: rgba(200,160,80,0.4);
    color: #e8c878;
    transform: translateY(-50%) scale(1.05);
}
.dg-lightbox-prev { left: 20px; }
.dg-lightbox-next { right: 20px; }

.dg-lightbox-thumbnails {
    display: flex; gap: 5px; margin-top: 20px;
    padding: 0 20px; overflow-x: auto; max-width: 100%;
    scrollbar-width: thin; scrollbar-color: rgba(200,160,80,0.2) transparent;
    justify-content: center; align-items: center;
}
.dg-lightbox-thumbnails::-webkit-scrollbar { height: 3px; }
.dg-lightbox-thumbnails::-webkit-scrollbar-thumb { background: rgba(200,160,80,0.2); border-radius: 2px; }

.dg-lightbox-thumbnail {
    width: 68px; height: 68px; object-fit: cover; border-radius: 0;
    cursor: pointer; opacity: 0.35;
    transition: all 0.3s ease; border: 1px solid transparent;
    filter: saturate(0.5);
}
.dg-lightbox-thumbnail:hover { opacity: 0.75; filter: saturate(1); transform: none; }
.dg-lightbox-thumbnail.active { opacity: 1; border-color: rgba(200,160,80,0.55); filter: saturate(1); }

/* ── ANIMATIONS ENTRÉE ── */
@keyframes dg-fondu {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.dg-gallery-card-frontend:nth-child(1) { animation-delay: 0.05s; }
.dg-gallery-card-frontend:nth-child(2) { animation-delay: 0.12s; }
.dg-gallery-card-frontend:nth-child(3) { animation-delay: 0.19s; }
.dg-gallery-card-frontend:nth-child(4) { animation-delay: 0.26s; }
.dg-gallery-card-frontend:nth-child(5) { animation-delay: 0.33s; }
.dg-gallery-card-frontend:nth-child(6) { animation-delay: 0.40s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .dg-gallery-container,
    .dg-all-galleries-container { padding: 10px; }
    .dg-lightbox-content { width: 95%; height: 95vh; }
    .dg-lightbox-nav { width: 40px; height: 40px; font-size: 20px; }
    .dg-lightbox-prev { left: 6px; }
    .dg-lightbox-next { right: 6px; }
    .dg-lightbox-close { top: 8px; right: 8px; width: 36px; height: 36px; font-size: 16px; }
    .dg-images-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 1px; }
    .dg-lightbox-thumbnail { width: 54px; height: 54px; }
    .dg-galleries-grid-frontend { grid-template-columns: 1fr !important; }
    .dg-gallery-card-image-frontend { height: 200px; }
}
