/**
 * AIDA Disponibilité Section Styles
 * Version: 1.1.0
 */

/* ============================================
   SECTION DISPONIBILITÉ
   ============================================ */
.aida-dispo-section {
    padding: 5rem 2rem;
    padding-bottom: 6rem;
    margin-bottom: 2rem;
    background: var(--aida-dark, #08080c);
    position: relative;
    overflow: hidden;
}

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

.aida-dispo-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-dispo-header {
    max-width: 800px;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 0 5%;
    position: relative;
    z-index: 1;
}

.aida-dispo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #10B981;
    margin-bottom: 0.75rem;
}

.aida-dispo-pulse {
    width: 10px;
    height: 10px;
    background: #10B981;
    border-radius: 50%;
    position: relative;
}

.aida-dispo-pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid #10B981;
    border-radius: 50%;
    animation: aida-dispo-pulse 2s ease-out infinite;
}

@keyframes aida-dispo-pulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2); opacity: 0; }
}

.aida-dispo-title {
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--aida-text, #F1F5F9);
}

.aida-dispo-subtitle {
    font-size: 1.1rem;
    color: var(--aida-text-muted, #94A3B8);
    letter-spacing: 0.05em;
}

/* ============================================
   TAGS CONTAINER
   ============================================ */
.aida-dispo-tags-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.aida-dispo-tags-row {
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Gradients de fondu sur les côtés */
.aida-dispo-tags-row::before,
.aida-dispo-tags-row::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.aida-dispo-tags-row::before {
    left: 0;
    background: linear-gradient(90deg, #08080c, transparent);
}

.aida-dispo-tags-row::after {
    right: 0;
    background: linear-gradient(-90deg, #08080c, transparent);
}

/* ============================================
   ANIMATION TRACKS
   ============================================ */
.aida-dispo-tags-track {
    display: flex;
    gap: 1rem;
}

.aida-dispo-scroll-left {
    animation: aida-scroll-left 40s linear infinite;
}

.aida-dispo-scroll-right {
    animation: aida-scroll-right 45s linear infinite;
}

.aida-dispo-scroll-left-slow {
    animation: aida-scroll-left 35s linear infinite;
}

.aida-dispo-scroll-right-slow {
    animation: aida-scroll-right 38s linear infinite;
}

@keyframes aida-scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes aida-scroll-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Pause on hover */
.aida-dispo-tags-row:hover .aida-dispo-tags-track {
    animation-play-state: paused;
}

/* ============================================
   TAGS
   ============================================ */
.aida-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(15, 15, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-family: var(--aida-font-main, 'Outfit', sans-serif);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--aida-text, #F1F5F9);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.aida-tag:hover {
    border-color: var(--tag-color, #6366F1);
    box-shadow: 0 0 20px -5px var(--tag-color, #6366F1);
    transform: scale(1.05);
}

.aida-tag-icon {
    font-size: 1rem;
}

/* Tag colors by type */
.aida-tag--region { --tag-color: #6366F1; }
.aida-tag--dept { --tag-color: #10B981; }
.aida-tag--ville { --tag-color: #F59E0B; }
.aida-tag--idf { --tag-color: #EC4899; }
.aida-tag--secteur { --tag-color: #00fff5; }

.aida-tag--region .aida-tag-icon { color: #6366F1; }
.aida-tag--dept .aida-tag-icon { color: #10B981; }
.aida-tag--ville .aida-tag-icon { color: #F59E0B; }
.aida-tag--idf .aida-tag-icon { color: #EC4899; }
.aida-tag--secteur .aida-tag-icon { color: #00fff5; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
    .aida-dispo-section {
        padding: 4rem 1rem;
    }
    
    .aida-dispo-subtitle {
        font-size: 0.95rem;
    }

    .aida-tag {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .aida-dispo-tags-container {
        gap: 0.75rem;
    }
    
    .aida-dispo-tags-row::before,
    .aida-dispo-tags-row::after {
        width: 50px;
    }
}
