/**
 * AIDA Services Section Styles
 * Version: 1.0.0
 */

/* ============================================
   SERVICES SECTION
   ============================================ */
.aida-services-section {
    padding: 6rem 2rem;
    background: var(--aida-dark, #08080c);
    position: relative;
    overflow: hidden;
}

.aida-services-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(120, 119, 198, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 107, 107, 0.08), transparent);
    pointer-events: none;
}

.aida-services-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ============================================
   HEADER
   ============================================ */
.aida-services-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.aida-services-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid #ff6b6b;
    border-radius: 4px;
    font-family: var(--aida-font-mono, 'Space Mono', monospace);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.3),
                inset 0 0 20px rgba(255, 107, 107, 0.05);
    animation: aida-flicker 4s infinite;
}

@keyframes aida-flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.aida-services-title {
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--aida-text, #F1F5F9);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.aida-services-title span {
    background: linear-gradient(90deg, var(--aida-cyan, #00fff5), var(--aida-magenta, #ff00ff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.aida-services-subtitle {
    color: var(--aida-text-dim, #64748B);
    font-size: 1rem;
    font-family: var(--aida-font-mono, 'Space Mono', monospace);
}

/* ============================================
   GRID & WRAPPER
   ============================================ */
.aida-services-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.aida-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.aida-service-card {
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    padding: 2rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Couleurs néon par carte */
.aida-service-card:nth-child(1) { --neon: #00fff5; }
.aida-service-card:nth-child(2) { --neon: #ff00ff; }
.aida-service-card:nth-child(3) { --neon: #39ff14; }
.aida-service-card:nth-child(4) { --neon: #ffae00; }

/* Lignes animées */
.aida-service-card::before,
.aida-service-card::after {
    content: '';
    position: absolute;
    transition: all 0.4s ease;
}

.aida-service-card::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    opacity: 0;
}

.aida-service-card::after {
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    opacity: 0;
}

.aida-service-line-left,
.aida-service-line-right {
    position: absolute;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, transparent, var(--neon), transparent);
    transition: height 0.4s ease;
}

.aida-service-line-left {
    left: 0;
    top: 0;
}

.aida-service-line-right {
    right: 0;
    bottom: 0;
}

/* Hover effects */
.aida-service-card:hover {
    border-color: var(--neon);
    box-shadow: 0 0 60px -15px var(--neon),
                inset 0 0 60px -30px var(--neon);
    transform: translateY(-4px);
}

.aida-service-card:hover::before,
.aida-service-card:hover::after {
    opacity: 1;
}

.aida-service-card:hover .aida-service-line-left,
.aida-service-card:hover .aida-service-line-right {
    height: 100%;
}

/* In-view effects (scroll trigger - once) */
.aida-service-card.in-view {
    border-color: var(--neon);
    box-shadow: 0 0 60px -15px var(--neon),
                inset 0 0 60px -30px var(--neon);
    transform: translateY(-4px);
}

.aida-service-card.in-view::before,
.aida-service-card.in-view::after {
    opacity: 1;
}

.aida-service-card.in-view .aida-service-line-left,
.aida-service-card.in-view .aida-service-line-right {
    height: 100%;
}

.aida-service-card.in-view .aida-service-scan-line {
    animation: aida-scan 1.5s ease-out 2;
    opacity: 0.5;
}

.aida-service-card.in-view .aida-service-list li {
    color: #e2e8f0;
}

.aida-service-card.in-view .aida-service-list li::before {
    transform: translateX(3px);
}

/* Scan line effect */
.aida-service-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon), transparent);
    opacity: 0;
    animation: none;
}

.aida-service-card:hover .aida-service-scan-line {
    animation: aida-scan 1.5s ease-out 2;
    opacity: 0.5;
}

@keyframes aida-scan {
    0% { top: 0; }
    100% { top: 100%; }
}

/* ============================================
   CARD CONTENT
   ============================================ */
.aida-service-number {
    font-family: var(--aida-font-mono, 'Space Mono', monospace);
    font-size: 0.65rem;
    color: var(--neon);
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
    opacity: 0.8;
}

.aida-service-icon-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.aida-service-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--neon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    position: relative;
    box-shadow: 0 0 15px -5px var(--neon);
    flex-shrink: 0;
}

.aida-service-icon::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aida-service-card h3 {
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    color: var(--aida-text, #F1F5F9);
}

.aida-service-desc {
    color: #b8c5d6;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.aida-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.aida-service-list li {
    padding: 0.55rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #a0aec0;
    font-size: 0.9rem;
    font-family: var(--aida-font-mono, 'Space Mono', monospace);
    transition: color 0.2s ease;
}

.aida-service-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--neon);
    transition: transform 0.2s ease;
}

.aida-service-card:hover .aida-service-list li {
    color: #e2e8f0;
}

.aida-service-card:hover .aida-service-list li::before {
    transform: translateX(3px);
}

/* ============================================
   SLIDER NAVIGATION (Mobile)
   ============================================ */
.aida-services-slider-nav {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.aida-slider-dots {
    display: flex;
    gap: 0.5rem;
}

.aida-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.aida-slider-dot.active {
    transform: scale(1.2);
}

.aida-slider-dot:nth-child(1).active { background: #00fff5; box-shadow: 0 0 15px #00fff5; }
.aida-slider-dot:nth-child(2).active { background: #ff00ff; box-shadow: 0 0 15px #ff00ff; }
.aida-slider-dot:nth-child(3).active { background: #39ff14; box-shadow: 0 0 15px #39ff14; }
.aida-slider-dot:nth-child(4).active { background: #ffae00; box-shadow: 0 0 15px #ffae00; }

.aida-slider-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--aida-text-muted, #94A3B8);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aida-slider-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--aida-cyan, #00fff5);
    color: var(--aida-cyan, #00fff5);
}

.aida-services-progress {
    display: none;
    width: 100%;
    max-width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 1rem auto 0;
    overflow: hidden;
}

.aida-services-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--aida-cyan, #00fff5), var(--aida-magenta, #ff00ff));
    border-radius: 2px;
    width: 0%;
    animation: aida-progress 5s linear infinite;
}

@keyframes aida-progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .aida-services-section {
        padding: 5rem 2rem;
    }
    
    .aida-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
    .aida-services-section {
        padding: 3rem 0;
        overflow: hidden;
    }
    
    .aida-services-header {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .aida-services-title {
        font-size: 1.75rem;
    }
    
    .aida-services-wrapper {
        overflow: hidden;
        width: 100%;
        padding: 0;
        margin: 0;
    }
    
    /* Slider mobile avec scroll-snap */
    .aida-services-grid {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .aida-services-grid::-webkit-scrollbar {
        display: none;
    }
    
    .aida-service-card {
        flex: 0 0 calc(100vw - 2rem);
        width: calc(100vw - 2rem);
        margin: 0 1rem;
        padding: 1.5rem 1.25rem;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        /* Activer effets sur mobile */
        border-color: var(--neon);
        box-shadow: 0 0 40px -10px var(--neon), inset 0 0 40px -20px var(--neon);
    }
    
    .aida-service-card::before,
    .aida-service-card::after {
        opacity: 1;
    }
    
    .aida-service-card .aida-service-line-left,
    .aida-service-card .aida-service-line-right {
        height: 100%;
    }
    
    .aida-service-card:hover {
        transform: none;
    }
    
    .aida-service-card h3 {
        font-size: 1rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    .aida-service-card .aida-service-list li {
        color: #e2e8f0;
    }
    
    .aida-service-card .aida-service-list li::before {
        transform: translateX(3px);
    }
    
    /* Afficher navigation slider */
    .aida-services-slider-nav {
        display: flex;
    }
    
    .aida-services-progress {
        display: block;
    }
}

/* ============================================
   RESPONSIVE - PETIT MOBILE
   ============================================ */
@media (max-width: 380px) {
    .aida-services-title {
        font-size: 1.5rem;
    }
    
    .aida-service-card {
        padding: 1.25rem 1rem;
    }
    
    .aida-service-card h3 {
        font-size: 0.9rem;
    }
    
    .aida-service-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .aida-slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .aida-slider-dots {
        gap: 0.4rem;
    }
    
    .aida-slider-dot {
        width: 8px;
        height: 8px;
    }
}
