/* =========================================================
   bwa-sps — Service Process Steps
   Source: DroneInspection.tsx lines 383-413
   BEM scoped, no global resets
   ========================================================= */

/* --- Animations --- */

.bwa-sps [data-anim] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.bwa-sps.is-inview [data-anim] {
    opacity: 1;
    transform: none;
}

/* --- Root --- */
/* section-padding bg-primary */

.bwa-sps {
    background-color: hsl(220 25% 15%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px)  { .bwa-sps { padding: 6rem 0; } }
@media (min-width: 1024px) { .bwa-sps { padding: 8rem 0; } }

/* --- Container --- */

.bwa-sps__container {
    width: 100%;
    max-width: 85rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- Header --- */
/* text-center mb-16 */

.bwa-sps__header {
    text-align: center;
    margin-bottom: 4rem;
}

/* inline-block px-4 py-1.5 rounded-full bg-white/10 text-accent text-sm font-medium mb-4 */

.bwa-sps__badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: hsl(15 90% 55%);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

/* section-title text-white max-w-2xl mx-auto */

.bwa-sps__title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    max-width: 42rem;
    margin: 0 auto 1rem !important;
}

@media (min-width: 768px)  { .bwa-sps__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .bwa-sps__title { font-size: 3rem; } }

/* section-subtitle text-white/70 mx-auto */

.bwa-sps__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.125rem;
    max-width: 42rem;
    margin: 0 auto !important;
    line-height: 1.6;
}

/* --- Grille 5 colonnes --- */
/* grid md:grid-cols-5 gap-6 */

.bwa-sps__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .bwa-sps__grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* --- Step wrapper (relatif pour le connecteur) --- */

.bwa-sps__step {
    position: relative;
    overflow: visible;
}

/* --- Card --- */
/* bg-white/10 backdrop-blur-sm rounded-xl p-6 border border-white/10 h-full */

.bwa-sps__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

/* text-4xl font-bold text-accent/50 mb-4 block */

.bwa-sps__step-number {
    display: block;
    font-size: 2.25rem;
    font-weight: 700;
    color: hsl(15 90% 55% / 0.5);
    margin-bottom: 1rem;
}

/* text-lg font-bold text-white mb-2 */

.bwa-sps__step-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    margin-top: 0 !important;
}

/* text-white/70 text-sm */

.bwa-sps__step-desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0 !important;
}

/* --- Connecteur --- */

.bwa-sps__connector {
    display: none;
}

@media (min-width: 1024px) {
    .bwa-sps__connector {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: 100%;
        width: 1.5rem; /* = gap entre les colonnes */
        height: 2px;
        background-color: hsl(15 90% 55% / 0.5);
        z-index: 1;
    }
}

/* --- Responsive padding --- */

@media (max-width: 767px) {
    .bwa-sps__container { padding-inline: 1.25rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .bwa-sps__container { padding-inline: 2rem; }
}

@media (min-width: 1024px) and (max-width: 1439px) {
    .bwa-sps__container { padding-inline: 2rem; }
}
