/* ========================================================
   ServicesEtCollabo.css - Styles pour la page Services et Collaborateurs
   ABK Portfolio
   ======================================================== */

/* --------------------------------------------------------
   SECTION NAVIGATION RAPIDE (index.php)
   -------------------------------------------------------- */
.nav-rapide-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.nav-rapide-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.nav-rapide-titre {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.nav-rapide-description {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.nav-rapide-boutons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

@media (min-width: 640px) {
    .nav-rapide-boutons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
}

.nav-rapide-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    max-width: 280px;
    justify-content: center;
}

@media (min-width: 640px) {
    .nav-rapide-btn {
        width: auto;
        max-width: none;
    }
}

.nav-rapide-btn-partenaire {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.nav-rapide-btn-partenaire:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.nav-rapide-btn-services {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.nav-rapide-btn-services:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.nav-rapide-btn-collaborateurs {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.nav-rapide-btn-collaborateurs:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.nav-rapide-btn i {
    width: 1.25rem;
    height: 1.25rem;
}

/* --------------------------------------------------------
   SECTION SERVICES
   -------------------------------------------------------- */
.service-carte {
    position: relative;
    overflow: hidden;
}

.service-carte::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primaire, #0ea5e9), var(--secondaire, #8b5cf6));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-carte:hover::before {
    transform: scaleX(1);
}

.service-carte .w-14 {
    transition: transform 0.3s ease;
}

.service-carte:hover .w-14 {
    transform: scale(1.1) rotate(3deg);
}

/* --------------------------------------------------------
   SECTION COLLABORATEURS
   -------------------------------------------------------- */
.collabo-carte {
    position: relative;
}

.collabo-carte::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--primaire, #0ea5e9), var(--secondaire, #8b5cf6));
    
    /* Propriétés masquées avec préfixes vendeurs pour compatibilité */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.collabo-carte:hover::after {
    opacity: 1;
}

.collabo-carte img {
    transition: transform 0.7s ease;
}

.collabo-carte:hover img {
    transform: scale(1.1);
}

/* Badge spécialités */
.collabo-carte .absolute.bottom-4 {
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.3s ease;
}

.collabo-carte:hover .absolute.bottom-4 {
    transform: translateY(0);
    opacity: 1;
}

/* --------------------------------------------------------
   LIEN RETOUR FIXE
   -------------------------------------------------------- */
.fixed.top-24 {
    animation: slideInLeft 0.5s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------------------
   RESPONSIVE ADJUSTMENTS - SERVICES
   -------------------------------------------------------- */
@media (max-width: 319px) {
    /* Ultra-small screens */
    #services {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    #services .max-w-7xl {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .service-carte {
        padding: 0.75rem !important;
        border-radius: 0.75rem !important;
    }
    
    .service-carte h3 {
        font-size: 0.875rem !important;
        line-height: 1.3 !important;
    }
    
    .service-carte p {
        font-size: 0.75rem !important;
        line-height: 1.5 !important;
    }
    
    .service-carte .w-11,
    .service-carte .w-12,
    .service-carte .w-14 {
        width: 2.25rem !important;
        height: 2.25rem !important;
    }
    
    .service-carte .w-11 svg,
    .service-carte .w-12 svg,
    .service-carte .w-14 svg {
        width: 1rem !important;
        height: 1rem !important;
    }
    
    .service-carte span {
        font-size: 0.625rem !important;
        padding: 0.125rem 0.5rem !important;
    }
}

@media (max-width: 639px) {
    .service-carte {
        padding: 1rem !important;
    }
}

@media (max-width: 640px) {
    .nav-rapide-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.8125rem;
    }
    
    .collabo-carte .h-64 {
        height: 16rem;
    }
}

@media (max-width: 768px) {
    .fixed.top-24 {
        display: none !important;
    }
}

/* --------------------------------------------------------
   ANIMATIONS SUPPLÉMENTAIRES
   -------------------------------------------------------- */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-carte:hover .w-14 {
    animation: float 2s ease infinite;
}

/* Smooth scroll offset for fixed header */
html {
    scroll-padding-top: 80px;
}

/* Focus styles for accessibility */
.nav-rapide-btn:focus,
.service-carte:focus,
.collabo-carte:focus {
    outline: 2px solid var(--primaire, #0ea5e9);
    outline-offset: 2px;
}

/* Loading state for images */
.collabo-carte img {
    background: linear-gradient(110deg, #f1f5f9 8%, #e2e8f0 18%, #f1f5f9 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

.collabo-carte img[src] {
    animation: none;
    background: transparent;
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}