/**
 * Styles spécifiques pour la page Réalisations
 * Paysagiste Français
 */

/* Hero Section */
.hero-realisations {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-realisations::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern-grid.png') repeat;
    opacity: 0.1;
}

.stats-hero {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Filtres */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-filter {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-filter:hover {
    border-color: #4caf50;
    color: #4caf50;
    transform: translateY(-2px);
}

.btn-filter.active {
    background: #4caf50;
    border-color: #4caf50;
    color: white;
}

/* Cartes de réalisation */
.realisation-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.realisation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Slider Avant/Après */
.before-after-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.before-after-slider {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: col-resize;
}

.img-before, .img-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-after {
    clip-path: inset(0 50% 0 0);
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: col-resize;
    user-select: none;
    z-index: 10;
}

.slider-handle i {
    color: #4caf50;
}

/* Info réalisation */
.realisation-info {
    padding: 2rem;
}

.category-badge {
    display: inline-block;
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.realisation-info h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-details {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.detail-item i {
    color: #4caf50;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
}

/* Timeline Processus */
.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #4caf50, transparent);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-icon {
    width: 80px;
    height: 80px;
    background: white;
    border: 4px solid #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #4caf50;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    width: 40%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-content h4 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: #666;
    margin: 0;
}

/* Testimonials avec référence projet */
.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-ref {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.project-ref img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.project-name {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.testimonial-text {
    flex: 1;
    font-style: italic;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.testimonial-author strong {
    display: block;
    color: #333;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #999;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a237e 0%, #3949ab 100%);
}

.cta-box {
    padding: 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .stats-hero {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 80px;
    }
    
    .timeline-icon {
        left: 30px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: 100%;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero-realisations {
        padding: 80px 0 60px;
    }
    
    .stats-hero {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .filter-buttons {
        padding: 0 1rem;
    }
    
    .btn-filter {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
    
    .project-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .before-after-container {
        height: 250px;
    }
    
    .cta-box {
        padding: 2rem 1rem;
    }
}