.photos-page {
    padding: 120px 0 80px;
}

.photos-header {
    margin-bottom: 40px;
}

.gallery-heading-panel {
    background-color: rgba(10, 15, 20, 0.58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    max-width: 720px;
    margin-top: var(--space-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.photos-page .tracking-title {
    color: #FFFFFF;
    margin-bottom: var(--space-sm);
}

.photos-page .tracking-lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    max-width: 100%;
}

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary);
}

/* Zone de filtres */
.gallery-filters {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.filters-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group select {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    min-width: 150px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.filters-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.btn-reset {
    font-size: 0.9rem;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.3s;
}

.btn-reset:hover {
    color: var(--primary);
}

/* Compteur de résultats */
.results-count {
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--text-soft);
}

/* Grille de la galerie */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-image-wrapper img {
    transform: scale(1.08);
}

.gallery-item-info {
    padding: 12px 16px;
    flex-grow: 1;
}

.gallery-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gallery-item-date {
    font-size: 0.8rem;
    color: var(--text-soft);
}

/* État vide */
.gallery-empty {
    text-align: center;
    padding: 60px 0;
    background: #f9f9f9;
    border-radius: 12px;
}

.gallery-empty p {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-heading-panel {
        padding: var(--space-lg) var(--space-md);
        width: 100%;
        max-width: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .filters-actions {
        margin-left: 0;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
