/* Styles spécifiques au Catalogue Photo */

/* Catalog Hero */
.catalog-hero {
    padding: 150px 0 80px;
    background: var(--bg-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.catalog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 122, 255, 0.06) 0%, transparent 50%),
        url('../Photo/Supercar/IMG_2758.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(1px) brightness(0.25) saturate(0.8);
    z-index: -1;
    opacity: 0.18;
}

.catalog-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.catalog-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Filtres Photo */
.photo-filters-section {
    padding: 60px 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.photo-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.95rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Galerie Photo avec Masonry */
.photo-gallery-section {
    padding: 80px 0;
    background: var(--bg-tertiary);
}

.photo-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.photo-item {
    display: block;
    width: 100%;
    border-radius: var(--radius-large);
    overflow: hidden;
    background: var(--bg-primary);
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid var(--border);
}

.photo-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
}

.photo-container {
    position: relative;
    overflow: hidden;
    height: 250px;
    background: #f0f0f0;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.4s ease;
    filter: brightness(1) contrast(1.05) saturate(1.1);
    opacity: 1;
}

.photo-item:hover .photo-container img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.1) saturate(1.2);
}

.photo-overlay {
    display: none;
}

.photo-item:hover .photo-overlay {
    display: none;
}

.photo-info h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
}

.photo-info p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.photo-category {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
    align-self: flex-end;
}

.photo-btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
}

.photo-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Services Photo */
.photo-services-section {
    padding: 120px 0;
    background: var(--bg-primary);
}

.photo-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.photo-services-section .service-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-large);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    text-align: center;
}

.photo-services-section .service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.photo-services-section .service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.photo-services-section .service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.photo-services-section .service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.photo-services-section .service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.photo-services-section .service-card li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.photo-services-section .service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

.photo-services-section .service-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
}

/* États de filtrage */
.photo-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.photo-item.visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .photo-masonry {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .catalog-hero {
        padding: 100px 0 40px;
        text-align: center;
    }
    
    .catalog-hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        margin-bottom: 1rem;
    }
    
    .catalog-hero p {
        font-size: 1.1rem;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* Optimiser le background hero sur mobile */
    .catalog-hero::before {
        background-attachment: scroll;
        filter: blur(3px) brightness(0.1) saturate(0.4);
        opacity: 0.08;
    }
    
    .photo-filters-section {
        padding: 30px 0;
    }
    
    .photo-filters {
        gap: 0.75rem;
        padding: 0 1rem;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        flex: 0 0 auto;
        white-space: nowrap;
    }
    
    .photo-gallery-section {
        padding: 40px 0;
    }
    
    .photo-masonry {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .photo-item {
        margin-bottom: 0;
        border-radius: 12px;
    }
    
    .photo-container {
        height: 200px;
    }
    
    .photo-overlay {
        padding: 1rem;
    }
    
    .photo-info h3 {
        font-size: 1.125rem;
    }
    
    .photo-services-section {
        padding: 60px 0;
    }
    
    .photo-services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .photo-services-section .service-card {
        padding: 1.5rem;
    }
    
    .cta-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .cta-content {
        padding: 0 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .catalog-hero {
        padding: 80px 0 30px;
    }
    
    .catalog-hero h1 {
        font-size: 2.2rem;
    }
    
    .catalog-hero p {
        font-size: 1rem;
        padding: 0 1.5rem;
    }
    
    .photo-filters {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .photo-masonry {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .photo-container {
        height: 250px;
    }
    
    .photo-overlay {
        padding: 0.75rem;
    }
    
    .photo-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .photo-services-section .service-card {
        padding: 1.2rem;
    }
    
    .photo-services-section .service-icon {
        font-size: 2.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 0.9rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Animations d'entrée */
@keyframes photoFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.photo-item {
    animation: photoFadeIn 0.6s ease-out;
}

.photo-item:nth-child(1) { animation-delay: 0.1s; }
.photo-item:nth-child(2) { animation-delay: 0.2s; }
.photo-item:nth-child(3) { animation-delay: 0.3s; }
.photo-item:nth-child(4) { animation-delay: 0.4s; }
.photo-item:nth-child(5) { animation-delay: 0.5s; }
.photo-item:nth-child(6) { animation-delay: 0.6s; }
.photo-item:nth-child(7) { animation-delay: 0.7s; }
.photo-item:nth-child(8) { animation-delay: 0.8s; }

/* Modal photo (pour agrandissement) */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.photo-modal.show {
    opacity: 1;
    visibility: visible;
}

.photo-modal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.photo-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.photo-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Focus states pour l'accessibilité */
.filter-btn:focus,
.photo-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.photo-item:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}
