/* ===== Page Services Styles ===== */

/* Hero Section */
.services-hero {
    background: linear-gradient(135deg, var(--ats-blue-dark) 0%, var(--ats-blue-light) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--ats-white);
    position: relative;
    overflow: hidden;
}

.services-hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="rgba(255,255,255,0.02)"/></svg>');
    opacity: 0.1;
    animation: rotate 60s linear infinite;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.services-hero p {
    font-size: 20px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Section Tag */
.section-tag {
    display: inline-block;
    background: var(--ats-red);
    color: var(--ats-white);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* Introduction */
.services-intro {
    padding: 80px 0;
    text-align: center;
}

.intro-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.intro-wrapper h2 {
    font-size: 42px;
    color: var(--ats-blue-dark);
    margin: 20px 0 30px;
    line-height: 1.3;
}

.intro-text {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

/* Filtres */
.services-filter-section {
    padding: 0 0 40px;
}

.services-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 30px;
    border: 2px solid var(--ats-red);
    background: transparent;
    color: var(--ats-red);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--ats-red);
    color: var(--ats-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(227, 17, 47, 0.3);
}

/* Grille Masonry */
.services-masonry-grid {
    column-count: 3;
    column-gap: 30px;
    margin-top: 30px;
}

.service-masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
}

.service-masonry-card {
    background: var(--ats-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.service-masonry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(227, 17, 47, 0.15);
}

.service-masonry-image {
    height: 250px;
    overflow: hidden;
}

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

.service-masonry-card:hover .service-masonry-image img {
    transform: scale(1.1);
}

.service-masonry-content {
    padding: 30px;
    position: relative;
}

.service-masonry-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -65px auto 20px;
    font-size: 30px;
    color: var(--ats-white);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.service-masonry-card:hover .service-masonry-icon {
    transform: scale(1.1) rotate(360deg);
}

.service-masonry-content h3 {
    font-size: 22px;
    color: var(--ats-blue-dark);
    margin-bottom: 15px;
    text-align: center;
}

.service-masonry-content p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 14px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.feature-tag {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-tag i {
    color: var(--ats-red);
    font-size: 14px;
}

.btn-service {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ats-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.btn-service:hover {
    gap: 12px;
    color: var(--ats-blue-dark);
}

/* Catégories */
.services-categories {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background: var(--ats-white);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(227, 17, 47, 0.1);
}

.category-icon {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 40px;
    color: var(--ats-white);
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(360deg);
}

.category-card h3 {
    font-size: 22px;
    color: var(--ats-blue-dark);
    margin-bottom: 20px;
}

.category-list {
    list-style: none;
    margin-bottom: 25px;
    text-align: left;
}

.category-list li {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-list li i {
    color: var(--ats-red);
    font-size: 14px;
}

.category-link {
    color: var(--ats-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.category-link:hover {
    gap: 10px;
    color: var(--ats-blue-dark);
}

/* Processus */
.services-process {
    padding: 80px 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background: var(--ats-white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(227, 17, 47, 0.1);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--ats-red);
    color: var(--ats-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--ats-blue-dark);
    transform: scale(1.1);
}

.step-content h3 {
    font-size: 18px;
    color: var(--ats-blue-dark);
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Technologies */
.services-technologies {
    padding: 80px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: center;
}

.tech-item {
    text-align: center;
    padding: 30px;
    background: var(--ats-white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(227, 17, 47, 0.1);
}

.tech-item img {
    max-width: 120px;
    height: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.tech-item:hover img {
    filter: grayscale(0);
}

/* Statistiques */
.services-stats {
    background: linear-gradient(135deg, var(--ats-blue-dark), var(--ats-blue-light));
    padding: 80px 0;
    color: var(--ats-white);
}

.stats-grid-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card-service {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card-service:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-10px);
}

.stat-value {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--ats-white);
}

.stat-label-service {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

/* FAQ Services */
.services-faq {
    padding: 80px 0;
}

.faq-services-grid {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-service-item {
    background: var(--ats-white);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.faq-service-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.faq-service-question:hover {
    background: #f8f9fa;
}

.faq-service-question h4 {
    font-size: 16px;
    color: var(--ats-blue-dark);
    margin: 0;
    font-weight: 500;
}

.faq-service-toggle {
    width: 30px;
    height: 30px;
    background: var(--ats-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ats-white);
    transition: all 0.3s ease;
}

.faq-service-item.active .faq-service-toggle {
    background: var(--ats-blue-dark);
}

.faq-service-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-service-item.active .faq-service-answer {
    padding: 0 20px 20px;
    max-height: 200px;
}

.faq-service-answer p {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

/* CTA */
.services-cta {
    background: linear-gradient(135deg, var(--ats-red) 0%, var(--ats-red-light) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--ats-white);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .services-masonry-grid {
        column-count: 2;
    }
}

@media (max-width: 992px) {
    .services-hero h1 {
        font-size: 42px;
    }
    
    .services-masonry-grid {
        column-count: 1;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-hero h1 {
        font-size: 32px;
    }
    
    .services-hero p {
        font-size: 16px;
    }
    
    .intro-wrapper h2 {
        font-size: 28px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid-services {
        grid-template-columns: 1fr;
    }
    
    .services-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
    }
}