/* =============================================
   Theme: Professional Services Section
   Version: Premium Edition
   ============================================= */

.spotlight-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 50%, #ffffff 100%);
    overflow: hidden;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(147, 112, 219, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.spotlight-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.spotlight-header h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.spotlight-header > p:first-of-type {
    font-size: 1.15rem;
    color: #64748b;
    margin-top: 0;
    line-height: 1.8;
    font-weight: 400;
}

.spotlight-header .section-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

/* Carte Automatisation (2x2 en haut à gauche) */
.spotlight-grid .spotlight-card:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Cartes 2-3 (colonne droite ligne 1) */
.spotlight-grid .spotlight-card:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.spotlight-grid .spotlight-card:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

/* Cartes 4-5 (colonne droite ligne 2) */
.spotlight-grid .spotlight-card:nth-child(4) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.spotlight-grid .spotlight-card:nth-child(5) {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

/* Cartes 6-7 (ligne 3 complète) */
.spotlight-grid .spotlight-card:nth-child(6) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

.spotlight-grid .spotlight-card:nth-child(7) {
    grid-column: 3 / 5;
    grid-row: 3 / 4;
}

@media (max-width: 1200px) {
    .spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .spotlight-grid .spotlight-card:nth-child(n) {
        grid-column: auto !important;
        grid-row: auto !important;
    }
}

@media (max-width: 768px) {
    .spotlight-grid {
        grid-template-columns: 1fr;
    }
}

.spotlight-card {
    position: relative;
    padding: 3rem 2.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.03),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D4AF37, #9370DB);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.spotlight-card:hover::before {
    transform: scaleX(1);
}

.spotlight-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.05), transparent);
    transition: left 0.6s ease;
}

.spotlight-card:hover::after {
    left: 100%;
}

.spotlight-card:hover {
    transform: translateY(-8px);
    border-color: #cbd5e1;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.08),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.spotlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    font-size: 2.2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(147, 112, 219, 0.1));
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.spotlight-icon i {
    background: linear-gradient(135deg, #D4AF37, #9370DB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.4s ease;
}

.spotlight-card:hover .spotlight-icon {
    transform: scale(1.1) rotateY(360deg);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(147, 112, 219, 0.15));
}

.spotlight-card:hover .spotlight-icon i {
    transform: scale(1.05);
}

.spotlight-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1.2rem;
    letter-spacing: -0.3px;
    line-height: 1.4;
}

.spotlight-description {
    color: #64748b;
    line-height: 1.75;
    font-size: 1rem;
    font-weight: 400;
}

/* Carte featured */
.spotlight-card-featured {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08), rgba(75, 0, 130, 0.05));
    border: 2px solid rgba(138, 43, 226, 0.35);
}

.spotlight-card-featured .spotlight-title {
    color: #6a1b9a;
    font-weight: 700;
}

.spotlight-card-featured .spotlight-icon {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(75, 0, 130, 0.15));
}

.spotlight-card-featured .spotlight-icon i {
    background: linear-gradient(135deg, #8a2be2, #4b0082);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Lien spotlight */
.spotlight-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(75, 0, 130, 0.9));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.spotlight-link:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.9), rgba(138, 43, 226, 0.9));
}

@media (max-width: 480px) {
    .spotlight-section {
        padding: 80px 0;
    }
    
    .spotlight-header h2 {
        font-size: 2.2rem;
    }
    
    .spotlight-grid {
        gap: 2rem;
    }
    
    .spotlight-card {
        padding: 2.5rem 2rem;
    }
    
    .spotlight-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
}
