/* =============================================
   Coodonateur PDDRCS — Styles personnalisés
   Page : index (home)
   ============================================= */

/* --------------------------------------------------
   Lightbox diaporama
   -------------------------------------------------- */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5, 10, 25, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#lightbox.open {
    opacity: 1;
    pointer-events: all;
}
#lightbox img {
    max-width: min(90vw, 1100px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    transition: opacity 0.25s ease, transform 0.25s ease;
    user-select: none;
}
#lightbox img.fade-out {
    opacity: 0;
    transform: scale(0.97);
}
#lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
#lightbox-close:hover { background: rgba(255,255,255,0.2); }

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}
#lightbox-prev { left: 20px; }
#lightbox-next { right: 20px; }
#lightbox-prev:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.05); }
#lightbox-next:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.05); }

#lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-family: "Cooper Hewitt", sans-serif;
    letter-spacing: 0.1em;
}
#lightbox-caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    font-family: "Cooper Hewitt", sans-serif;
    font-weight: 600;
    text-align: center;
    max-width: 600px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#lightbox-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    align-items: center;
}
#lightbox-dots span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transition: background 0.2s, width 0.2s;
    cursor: pointer;
}
#lightbox-dots span.active {
    background: white;
    width: 20px;
    border-radius: 3px;
}

/* Curseur pointer sur photos galerie */
.gallery-item { cursor: zoom-in; }

/* Responsive global */
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; height: auto; }

/* Header nav — éviter le débordement sur petits écrans */
header nav {
    min-width: 0;
}
header nav > a img {
    max-width: 140px;
}
@media (min-width: 640px) {
    header nav > a img { max-width: 200px; }
}

body {
    background-color: #F8FAFC;
    color: #334155;
    overflow-x: hidden;
}

/* --------------------------------------------------
   Animated Background Blobs (Light Theme)
   -------------------------------------------------- */
.bg-blob {
    position: absolute;
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite ease-in-out alternate;
    opacity: 0.15;
    border-radius: 50%;
}
.blob-1 { top: -5%;  left: -5%;  width: 40vw; height: 40vw; background: #5B9BD5; }
.blob-2 { top: 40%;  right: -10%; width: 35vw; height: 35vw; background: #F2C300; animation-delay: -5s; }
.blob-3 { bottom: -10%; left: 20%; width: 30vw; height: 30vw; background: #E6222B; animation-delay: -10s; opacity: 0.1; }

@keyframes float {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(3%, 5%) scale(1.05); }
    100% { transform: translate(-3%, -3%) scale(0.95); }
}

/* --------------------------------------------------
   Light Glassmorphism Utilities
   -------------------------------------------------- */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(10, 28, 58, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(10, 28, 58, 0.08);
    border-color: rgba(91, 155, 213, 0.3);
}

/* --------------------------------------------------
   Text Gradients
   -------------------------------------------------- */
.text-gradient-navy {
    background: linear-gradient(to right, #0A1C3A, #1E3A8A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
    background: linear-gradient(to right, #1e4d8c, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------
   Scroll Animations
   -------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------
   Timeline
   -------------------------------------------------- */
.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #E2E8F0; /* slate-200 */
    transform: translateX(-50%);
}
@media (max-width: 768px) {
    .timeline-line::before { left: 24px; transform: none; }
}

/* --------------------------------------------------
   Banner Stripes (drapeau P-DDRCS / RDC)
   -------------------------------------------------- */
.banner-stripes {
    background: linear-gradient(to bottom, #5B9BD5 33%, #F2C300 33%, #F2C300 66%, #E6222B 66%);
}
