/**
 * ========================================================
 * Styles spécifiques pour la page DetailsRealisations.php
 * ========================================================
 */

/* ======================================================== */
/* GALERIE D'IMAGES */
/* ======================================================== */

.gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-slide {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 10;
}

.gallery-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.gallery-slide:hover img {
    transform: scale(1.02);
}

/* Boutons de navigation de la galerie */
.gallery-prev,
.gallery-next {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-prev:hover,
.gallery-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.1);
}

/* Indicateurs (dots) */
.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

@media (max-width: 500px) {
    .gallery-dot {
        width: 4px;
        height: 4px;
    }
    
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: #3B82F6;
    border-color: white;
    transform: scale(1.3);
}

/* Variantes de couleurs pour les dots selon le projet */
#dots-infoblog .gallery-dot.active {
    background: #8B5CF6;
}

#dots-tmarket .gallery-dot.active {
    background: #F59E0B;
}

#dots-kimia .gallery-dot.active {
    background: #14B8A6;
}

/* ======================================================== */
/* ANIMATIONS SPÉCIALES */
/* ======================================================== */

@keyframes pulse-border {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.5);
    }
    50% {
        border-color: rgba(59, 130, 246, 1);
    }
}

.animate-pulse-border {
    animation: pulse-border 2s infinite;
}

/* Animation pour le badge "En cours" */
@keyframes construction-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.construction-badge {
    animation: construction-bounce 2s infinite;
}

/* ======================================================== */
/* CARTES DE PROJETS - EFFETS HOVER */
/* ======================================================== */

.projet-carte {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.projet-carte:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ======================================================== */
/* ZONE NOTES - STYLES SPÉCIAUX */
/* ======================================================== */

.zone-notes {
    position: relative;
}

.zone-notes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F59E0B, #FBBF24, #F59E0B);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ======================================================== */
/* RESPONSIVE ADJUSTMENTS */
/* ======================================================== */

@media (max-width: 768px) {
    .gallery-container {
        height: 350px !important;
    }
    
    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
    }
    
    .gallery-prev i,
    .gallery-next i {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 640px) {
    .gallery-container {
        height: 280px !important;
    }
}

/* ======================================================== */
/* SCROLLBAR PERSONNALISÉE POUR LES ZONES DE TEXTE */
/* ======================================================== */

.zone-notes-content::-webkit-scrollbar {
    width: 8px;
}

.zone-notes-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.zone-notes-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.zone-notes-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ======================================================== */
/* EFFETS DE TRANSITION ENTRE SECTIONS */
/* ======================================================== */

section[id] {
    scroll-margin-top: 80px;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* ======================================================== */
/* TYPOGRAPHIE SPÉCIALE POUR LES TITRES DE PROJETS */
/* ======================================================== */

.titre-projet {
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* ======================================================== */
/* GRILLE DES FONCTIONNALITÉS */
/* ======================================================== */

.fonctionnalites-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .fonctionnalites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ======================================================== */
/* BADGES DE STATUT */
/* ======================================================== */

.badge-statut {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-statut.en-cours {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
    border: 2px solid #F59E0B;
}

.badge-statut.termine {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    border: 2px solid #10B981;
}

.badge-statut.test {
    background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
    color: #1E40AF;
    border: 2px solid #3B82F6;
}