/**
 * Frontend Styles
 * assets/css/frontend.css
 */

/* Base Styles */
.prestobtp-single-project,
.prestobtp-category-page,
.prestobtp-categories-home,
.prestobtp-map-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Project Header */
.project-header {
    margin-bottom: 40px;
    text-align: center;
}

.project-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.project-subtitle {
    font-size: 1.25rem;
    color: #646970;
    margin-bottom: 20px;
}

.project-categories {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.category-badge {
    display: inline-block;
    padding: 6px 15px;
    background: #0073aa;
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.category-badge:hover {
    background: #005a87;
}

.project-meta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    color: #646970;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Ribbon */
.prestobtp-ribbon,
.card-ribbon,
.category-ribbon {
    position: absolute;
    top: 20px;
    right: -5px;
    background: #dc3232;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.prestobtp-ribbon::before,
.card-ribbon::before,
.category-ribbon::before {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    border-style: solid;
    border-width: 0 5px 5px 0;
    border-color: transparent #8b1f1f transparent transparent;
}

/* Project Summary */
.project-summary {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #444;
    padding: 30px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    margin-bottom: 40px;
}

/* Gallery */
.project-gallery {
    margin-bottom: 60px;
}

.project-gallery h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
  
    overflow: hidden;
 
}

.gallery-item:hover {
    /*transform: translateY(-5px);*/
    
}

.gallery-item a {
    display: block;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    z-index: 5;
}

.badge-avant {
    background: #dc3232;
}

.badge-apres {
    background: #00a32a;
}

.image-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 12px;
    border-radius: 4px;
    z-index: 5;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.prestobtp-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 0 8px;
    font-size: 13px;
    color: #6b7280;
}

.image-overlay i {
    font-size: 24px;
}

.image-legend {
    padding: 10px;
    font-size: 14px;
    color: #646970;
    text-align: center;
    background: #f8f9fa;
}

/* Project Content */
.project-content {
    margin-bottom: 60px;
    line-height: 1.8;
}

.project-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.project-content p {
    margin-bottom: 20px;
}

/* Videos */
.project-videos {
    margin-bottom: 60px;
}

.project-videos h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.video-item iframe,
.video-item video {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.video-item h3 {
    margin: 15px 0 10px;
    font-size: 1.25rem;
}

.video-item p {
    color: #646970;
    line-height: 1.6;
}

/* Project Footer */
.project-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e1e4e8;
}

.project-location-details {
    margin-bottom: 30px;
}

.project-location-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.location-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f0f1;
    border-radius: 20px;
    font-size: 14px;
    color: #1a1a1a;
}

.project-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-secondary {
    background: #f0f0f1;
    color: #1a1a1a;
}

.btn-secondary:hover {
    background: #dcdcde;
}

/* Project Card */
.prestobtp-project-card {
    position: relative;
    
    overflow: hidden;
 
}

.prestobtp-project-card:hover {
    transform: translateY(-5px);
 
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.prestobtp-project-card:hover .card-image img {
    transform: scale(1.05);
}

.card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f1;
    color: #dcdcde;
    font-size: 48px;
}

.card-content {
    padding: 20px;
}

.card-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f1;
    color: #646970;
    border-radius: 12px;
    font-size: 12px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: #0073aa;
}

.card-subtitle {
    font-size: 14px;
    color: #646970;
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 13px;
    color: #646970;
    margin-bottom: 15px;
}

.card-meta i {
    margin-right: 4px;
}

.meta-featured {
    color: #dba617;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.card-link:hover {
    gap: 10px;
}

/* Category Card */
.prestobtp-category-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.prestobtp-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f1;
    color: #dcdcde;
    font-size: 64px;
}

.category-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.category-content {
    padding: 20px;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.category-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.category-title a:hover {
    color: #0073aa;
}

.category-description {
    font-size: 14px;
    line-height: 1.6;
    color: #646970;
    margin-bottom: 20px;
}

.category-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e1e4e8;
}

.category-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #646970;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0073aa;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s;
}

.category-link:hover {
    gap: 10px;
}

/* Filters */
.prestobtp-filters {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 14px;
}

.filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
}

.btn-reset {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f0f0f1;
    color: #646970;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-reset:hover {
    background: #dcdcde;
}

/* Grids */
.categories-grid,
.prestobtp-projects-grid,
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

/* Pagination */
.prestobtp-pagination {
    margin: 60px 0 20px;
    grid-column: 1 / -1;
}

.prestobtp-pagination .page-numbers {
    display: inline-flex;
    gap: 10px;
}

.prestobtp-pagination .page-numbers a,
.prestobtp-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.prestobtp-pagination .page-numbers a:hover {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

.prestobtp-pagination .page-numbers .current {
    background: #0073aa;
    border-color: #0073aa;
    color: #fff;
}

/* Slider */
.prestobtp-slider {
    position: relative;
    margin: 40px 0;
}

.slider-container {
    overflow: hidden;
    border-radius: 8px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    min-width: 100%;
    position: relative;
}

.slide-image {
    position: relative;
    height: 500px;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.7), transparent);
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 60px;
    transform: translateY(-50%);
    max-width: 600px;
    color: #fff;
}

.slide-ribbon {
    display: inline-block;
    padding: 6px 15px;
    background: #dc3232;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.slide-subtitle {
    font-size: 1.25rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.slide-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.8;
}

.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #fff;
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.slide-button:hover {
    background: #0073aa;
    color: #fff;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.slider-nav:hover {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active,
.slider-dot:hover {
    background: #fff;
}

/* No Results */
.no-projects,
.no-logs {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

.no-projects i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }
    
    .gallery-grid,
    .videos-grid,
    .categories-grid,
    .prestobtp-projects-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .slide-content {
        left: 30px;
        right: 30px;
        max-width: none;
    }
    
    .slide-title {
        font-size: 1.75rem;
    }
    
    .filters-form {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .project-actions,
    .slider-nav,
    .slider-dots,
    .prestobtp-filters {
        display: none !important;
    }
}

/* Dynamic menu additions (desktop + mobile walker) */
.prestobtp-menu-realisations-map > a {
    font-weight: 600;
}

.prestobtp-menu-divider {
    margin: 6px 0;
    padding: 0;
    list-style: none;
}

.prestobtp-menu-divider::before {
    content: "";
    display: block;
    border-top: 1px solid rgba(17, 32, 104, 0.25);
    width: 100%;
}

.prestobtp-menu-divider > a {
    display: none !important;
}