/**
 * Portfolio Fullwidth Style CSS
 * Mise en page portfolio pleine largeur
 */

/* Reset et base */
.portfolio-fullwidth-wrapper {
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    padding: 0;
    margin: 0;
}

.portfolio-fullwidth-section {
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Grille Fullwidth - Images réparties équitablement */
.portfolio-fullwidth-grid {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Items - Taille égale automatique */
.fullwidth-gallery-item {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* Link */
.fullwidth-item-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    position: relative;
}

/* Image container */
.fullwidth-item-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.fullwidth-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

/* Overlay - Visible au hover */
.fullwidth-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 40px 30px;
}

/* Content */
.fullwidth-item-content {
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

/* Hover effects */
.fullwidth-gallery-item:hover .fullwidth-item-image img {
    transform: scale(1.08);
}

.fullwidth-gallery-item:hover .fullwidth-item-overlay {
    opacity: 1;
}

.fullwidth-gallery-item:hover .fullwidth-item-content {
    transform: translateY(0);
}

/* Titre */
.fullwidth-item-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Badge privé */
.fullwidth-item-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
}

.fullwidth-item-badge svg {
    width: 14px;
    height: 14px;
}

/* Message si aucune galerie */
.no-galleries-fullwidth {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-galleries-fullwidth p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #666;
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
    .portfolio-fullwidth-grid {
        flex-wrap: wrap;
        height: auto;
    }
    
    .fullwidth-gallery-item {
        flex: 1 1 50%;
        min-width: 50%;
        height: 50vh;
    }
    
    .fullwidth-item-title {
        font-size: 24px;
    }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
    .fullwidth-gallery-item {
        flex: 1 1 100%;
        min-width: 100%;
        height: 60vh;
    }
    
    .fullwidth-item-title {
        font-size: 22px;
    }
    
    .fullwidth-item-overlay {
        padding: 30px 20px;
    }
    
    .fullwidth-item-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .fullwidth-gallery-item {
        height: 70vh;
    }
    
    .fullwidth-item-title {
        font-size: 20px;
    }
}

/* Support pour 2 galeries - 50/50 */
.portfolio-fullwidth-grid:has(.fullwidth-gallery-item:nth-child(2):last-child) .fullwidth-gallery-item {
    flex: 0 0 50%;
}

/* Support pour 3 galeries - 33.33% chacune */
.portfolio-fullwidth-grid:has(.fullwidth-gallery-item:nth-child(3):last-child) .fullwidth-gallery-item {
    flex: 0 0 33.333%;
}

/* Support pour 4 galeries - 25% chacune */
.portfolio-fullwidth-grid:has(.fullwidth-gallery-item:nth-child(4):last-child) .fullwidth-gallery-item {
    flex: 0 0 25%;
}

/* Support pour 5 galeries - 20% chacune */
.portfolio-fullwidth-grid:has(.fullwidth-gallery-item:nth-child(5):last-child) .fullwidth-gallery-item {
    flex: 0 0 20%;
}

/* Support pour 6 galeries - 16.666% chacune */
.portfolio-fullwidth-grid:has(.fullwidth-gallery-item:nth-child(6):last-child) .fullwidth-gallery-item {
    flex: 0 0 16.666%;
}

/* Support pour 7 galeries et plus - répartition automatique égale */
.portfolio-fullwidth-grid .fullwidth-gallery-item {
    flex: 1;
}
