/* WHR SERVICES CAROUSEL — Moderne & premium */
.whr-sc{
    --whr-primary:#bd222f;
    --whr-secondary:#58585d;
    --whr-text:#0f0f10;
    --whr-text-soft:#5a5a60;
    --whr-bg-card:#ffffff;
    --whr-border:rgba(15,15,16,0.06);
    --whr-featured:#bd222f;
    --whr-shadow-sm:0 1px 3px rgba(15,15,16,0.04), 0 4px 12px rgba(15,15,16,0.04);
    --whr-shadow-md:0 4px 12px rgba(15,15,16,0.06), 0 16px 40px rgba(15,15,16,0.06);
    --whr-shadow-lg:0 8px 24px rgba(189,34,47,0.10), 0 24px 56px rgba(15,15,16,0.10);
    position:relative;
    padding:0 64px;
}

.whr-sc__viewport{overflow:hidden;}
.whr-sc__track{
    display:flex;
    transition:transform .65s cubic-bezier(.25,.8,.25,1);
    --cols:3;
}
.whr-sc__slide{
    min-width:calc(100% / var(--cols));
    padding:14px;
    display:flex;
}

/* ──────────────── CARTE ──────────────── */
.whr-sc__card{
    background:var(--whr-bg-card);
    border-radius:16px;
    text-align:left;
    position:relative;
    overflow:hidden;
    border:1px solid var(--whr-border);
    transition:all .55s cubic-bezier(.25,.8,.25,1);
    height:100%;
    width:100%;
    display:flex;
    flex-direction:column;
    box-shadow:var(--whr-shadow-sm);
}

/* Trait d'accent gauche fin — révélé au hover (signature moderne) */
.whr-sc__card::before{
    content:'';
    position:absolute;
    top:24px;bottom:24px;left:0;
    width:3px;
    background:linear-gradient(180deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    border-radius:0 3px 3px 0;
    opacity:0;
    transform:scaleY(0.6);
    transform-origin:center;
    transition:all .55s cubic-bezier(.25,.8,.25,1);
    pointer-events:none;
}

.whr-sc__card:hover{
    transform:translateY(-6px);
    box-shadow:var(--whr-shadow-lg);
    border-color:rgba(189,34,47,0.10);
}
.whr-sc__card:hover::before{
    opacity:1;
    transform:scaleY(1);
}

/* Image */
.whr-sc__img{
    width:100%;
    height:200px;
    background-size:cover;
    background-position:center;
    border-radius:16px 16px 0 0;
    position:relative;
}
.whr-sc__img::after{
    content:'';
    position:absolute;inset:0;
    background:linear-gradient(180deg, transparent 50%, rgba(15,15,16,0.10) 100%);
    border-radius:inherit;
    pointer-events:none;
}

.whr-sc__card-body{
    padding:32px 28px 28px;
    display:flex;
    flex-direction:column;
    flex:1;
    position:relative;
    z-index:1;
}

/* Décoration arrière subtile (filigrane rouge) */
.whr-sc__card-deco{
    position:absolute;
    bottom:-100px;right:-100px;
    width:220px;height:220px;
    border-radius:50%;
    background:radial-gradient(circle, var(--whr-primary), var(--whr-secondary));
    opacity:0.025;
    transition:all .7s cubic-bezier(.25,.8,.25,1);
    pointer-events:none;
    z-index:0;
}
.whr-sc__card:hover .whr-sc__card-deco{
    transform:scale(1.6);
    opacity:0.05;
}

/* ──────────────── ICÔNE (optionnelle) ──────────────── */
.whr-sc__icon-wrap{
    width:56px;height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:28px 28px 0;
    transition:all .55s cubic-bezier(.25,.8,.25,1);
    position:relative;
    z-index:1;
    /* Plus de cercle gris : juste un fond très léger qui s'anime */
    background:linear-gradient(135deg, rgba(189,34,47,0.08) 0%, rgba(88,88,93,0.04) 100%);
    border-radius:14px;
}

.whr-sc__card:hover .whr-sc__icon-wrap{
    background:linear-gradient(135deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    background-size:200% 200%;
    transform:translateY(-2px);
    box-shadow:0 10px 24px rgba(189,34,47,0.32);
    animation:whrScIconGradient 4s ease infinite;
}
@keyframes whrScIconGradient{
    0%,100%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
}

.whr-sc__icon{
    font-size:24px;
    color:var(--whr-primary);
    transition:all .55s cubic-bezier(.25,.8,.25,1);
}
.whr-sc__card:hover .whr-sc__icon{
    color:#fff;
}

/* Mode SANS icône — réduction du padding top du body pour compenser */
.whr-sc__card--noicon .whr-sc__card-body{
    padding-top:36px;
}
/* Avec image et sans icône, on garde un padding-top normal */
.whr-sc__card--noicon:has(.whr-sc__img) .whr-sc__card-body{
    padding-top:32px;
}

/* ──────────────── TEXTE ──────────────── */
.whr-sc__title{
    font-size:20px;
    font-weight:700;
    color:var(--whr-text);
    margin:0 0 12px;
    letter-spacing:-0.02em;
    line-height:1.25;
    transition:color .35s;
}
.whr-sc__card:hover .whr-sc__title{
    color:var(--whr-primary);
}
/* Sans icône, on agrandit légèrement le titre pour mieux remplir */
.whr-sc__card--noicon .whr-sc__title{
    font-size:22px;
}

.whr-sc__desc{
    font-size:14.5px;
    color:var(--whr-text-soft);
    line-height:1.7;
    flex:1;
    margin:0 0 24px;
    font-weight:400;
}

/* ──────────────── CTA ──────────────── */
.whr-sc__link{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    font-size:13px;
    font-weight:600;
    color:#fff;
    text-decoration:none;
    letter-spacing:0.6px;
    text-transform:uppercase;
    transition:all .45s cubic-bezier(.25,.8,.25,1);
    align-self:flex-start;
    padding:12px 24px;
    border-radius:999px;
    background:linear-gradient(135deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    background-size:200% 200%;
    box-shadow:0 4px 14px rgba(189,34,47,0.28);
    border:none;
    margin-top:auto;
    position:relative;
    z-index:3;
    cursor:pointer;
    animation:whrScBtnGradient 6s ease infinite;
}
@keyframes whrScBtnGradient{
    0%,100%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
}
.whr-sc__link:hover{
    transform:translateY(-2px);
    color:#fff;
    box-shadow:0 8px 24px rgba(189,34,47,0.42);
}
.whr-sc__link:active{transform:translateY(0);}

/* ──────────────── FLÈCHES ──────────────── */
.whr-sc__arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:48px;height:48px;
    border-radius:50%;
    border:1px solid rgba(15,15,16,0.08);
    background:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .45s cubic-bezier(.25,.8,.25,1);
    padding:0;
    z-index:3;
    color:var(--whr-text);
    box-shadow:var(--whr-shadow-sm);
}
.whr-sc__arrow svg{width:20px;height:20px;}
.whr-sc__arrow:hover{
    background:linear-gradient(135deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    border-color:transparent;
    color:#fff;
    transform:translateY(-50%) scale(1.06);
    box-shadow:0 10px 28px rgba(189,34,47,0.32);
}
.whr-sc__arrow--prev{left:0;}
.whr-sc__arrow--next{right:0;}

/* ──────────────── DOTS ──────────────── */
.whr-sc__dots{
    display:flex;
    justify-content:center;
    gap:8px;
    margin-top:36px;
}
.whr-sc__dot{
    width:8px;height:8px;
    border-radius:50%;
    background:rgba(15,15,16,0.18);
    border:none;
    cursor:pointer;
    transition:all .45s cubic-bezier(.25,.8,.25,1);
    padding:0;
}
.whr-sc__dot:hover{background:rgba(15,15,16,0.40);}
.whr-sc__dot.is-active{
    background:linear-gradient(90deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    width:32px;
    border-radius:6px;
    box-shadow:0 0 12px rgba(189,34,47,0.40);
}

/* ──────────────── CARTE FEATURED (mise en avant) ──────────────── */
.whr-sc__card--featured{
    background:linear-gradient(135deg, #0f0f10 0%, #2a2a2e 60%, #3a3a3e 100%);
    border:none;
    box-shadow:0 8px 24px rgba(0,0,0,0.12), 0 24px 64px rgba(189,34,47,0.20);
    position:relative;
    overflow:hidden;
}
.whr-sc__card--featured::before{
    background:linear-gradient(180deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    opacity:1;
    transform:scaleY(1);
    width:4px;
}
/* Halo lumineux sur featured */
.whr-sc__card--featured::after{
    content:'';
    position:absolute;
    top:-100px;right:-100px;
    width:280px;height:280px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(189,34,47,0.20) 0%, transparent 70%);
    pointer-events:none;
    animation:whrScFeaturedHalo 14s ease-in-out infinite;
}
@keyframes whrScFeaturedHalo{
    0%,100%{transform:translate(0,0) scale(1);}
    50%{transform:translate(-12px,12px) scale(1.05);}
}
.whr-sc__card--featured:hover{
    transform:translateY(-8px);
    box-shadow:0 16px 40px rgba(0,0,0,0.18), 0 36px 80px rgba(189,34,47,0.32);
}
.whr-sc__card--featured .whr-sc__title,
.whr-sc__card--featured:hover .whr-sc__title{color:#fff !important;font-size:22px;}
.whr-sc__card--featured .whr-sc__desc{color:rgba(255,255,255,0.78);}
.whr-sc__card--featured .whr-sc__icon-wrap{
    background:linear-gradient(135deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    background-size:200% 200%;
    box-shadow:0 8px 20px rgba(189,34,47,0.40);
    animation:whrScIconGradient 4s ease infinite;
}
.whr-sc__card--featured .whr-sc__icon{color:#fff;}
.whr-sc__card--featured:hover .whr-sc__icon-wrap{
    transform:translateY(-2px) rotate(-3deg);
    box-shadow:0 14px 32px rgba(189,34,47,0.55);
}
.whr-sc__card--featured .whr-sc__card-deco{
    background:radial-gradient(circle, var(--whr-primary), var(--whr-secondary));
    opacity:0.10;
}
.whr-sc__card--featured .whr-sc__link{
    background:#fff;
    color:var(--whr-primary);
    font-weight:700;
    box-shadow:0 6px 18px rgba(0,0,0,0.18);
    animation:none;
}
.whr-sc__card--featured .whr-sc__link:hover{
    background:linear-gradient(135deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    color:#fff;
    box-shadow:0 10px 28px rgba(189,34,47,0.42);
}

/* Badge featured premium */
.whr-sc__badge{
    position:absolute;
    top:18px;right:18px;
    z-index:3;
    background:linear-gradient(135deg, var(--whr-primary) 0%, var(--whr-secondary) 100%);
    background-size:200% 200%;
    color:#fff;
    font-size:10.5px;
    font-weight:700;
    letter-spacing:1.4px;
    text-transform:uppercase;
    padding:7px 14px;
    border-radius:999px;
    box-shadow:0 4px 12px rgba(189,34,47,0.40);
    display:inline-flex;
    align-items:center;
    gap:6px;
    animation:whrScBtnGradient 5s ease infinite;
}
.whr-sc__badge::before{
    content:'';
    width:5px;height:5px;
    background:#fff;
    border-radius:50%;
    box-shadow:0 0 0 3px rgba(255,255,255,0.30);
    animation:whrScPulse 2s ease-in-out infinite;
}
@keyframes whrScPulse{
    0%,100%{box-shadow:0 0 0 3px rgba(255,255,255,0.30);}
    50%{box-shadow:0 0 0 6px rgba(255,255,255,0.10);}
}

/* ──────────────── RESPONSIVE ──────────────── */
@media(max-width:1024px){
    .whr-sc__track{--cols:2 !important;}
}
@media(max-width:640px){
    .whr-sc{padding:0 12px;}
    .whr-sc__track{--cols:1 !important;}
    .whr-sc__arrow{display:none;}
    .whr-sc__card{border-radius:14px;}
    .whr-sc__slide{padding:8px;}
    .whr-sc__card-body{padding:26px 22px 24px;}
    .whr-sc__icon-wrap{margin:22px 22px 0;width:50px;height:50px;}
    .whr-sc__icon{font-size:22px;}
    .whr-sc__title{font-size:18px;}
    .whr-sc__card--noicon .whr-sc__title,
    .whr-sc__card--featured .whr-sc__title{font-size:19px;}
}
