/* ═══════════════════════════════════════════════════════════
   PORTFOLIO SECTION
   Ajout pour la galerie avec lightbox
   ═══════════════════════════════════════════════════════════ */

.portfolio {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    aspect-ratio: 4/3;
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(219, 141, 52, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.15);
}

/* Overlay avec effet gradient */
.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(44, 62, 80, 0.3) 50%,
        rgba(44, 62, 80, 0.8) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.portfolio-item:hover::before {
    opacity: 1;
}

/* Icône zoom sur hover */
.portfolio-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 3rem;
    color: var(--white);
    z-index: 2;
    transition: transform 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

/* Caption au bas de l'image */
.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s ease;
    z-index: 3;
}

.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
}

.portfolio-caption h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.portfolio-caption p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ═══════════════════════════════════════════════════════════
   LIGHTBOX - Modal fullscreen pour les images
   ═══════════════════════════════════════════════════════════ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: lightboxZoom 0.4s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Bouton fermer */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--primary-orange);
    transform: rotate(90deg);
}

/* Flèches navigation */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

/* Caption sous l'image */
.lightbox-caption {
    text-align: center;
    color: var(--white);
    margin-top: 1.5rem;
    font-size: 1.1rem;
    padding: 0 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE PORTFOLIO
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 0.8rem 1rem;
        font-size: 1.5rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-close {
        top: -40px;
        font-size: 2.5rem;
    }
    
    .lightbox-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .portfolio-item::after {
        font-size: 2rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        padding: 0.5rem 0.8rem;
        font-size: 1.2rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   BOUTON GALERIE COMPLÈTE - AJOUT CSS
   À ajouter à la fin de portfolio.css
   ═══════════════════════════════════════════════════════════ */

/* Container du bouton centré */
.portfolio-gallery-btn-container {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
}

/* Bouton principal de la galerie */
.btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #e67e22 100%);
    color: var(--white);
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(219, 141, 52, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

/* Effet de brillance au hover */
.btn-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.btn-gallery:hover::before {
    left: 100%;
}

.btn-gallery:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(219, 141, 52, 0.6);
    background: linear-gradient(135deg, #e67e22 0%, var(--primary-orange) 100%);
}

.btn-gallery:active {
    transform: translateY(-2px) scale(1.02);
}

/* Compteur dans le lightbox */
.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE POUR LE BOUTON
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .btn-gallery {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .portfolio-gallery-btn-container {
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    .lightbox-counter {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .btn-gallery {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   FIN CSS BOUTON GALERIE - Peace & Flow!
   N0U$ $0Mm3 1@
   --- J & C ---
   ═══════════════════════════════════════════════════════════ */