/* RAT SERVICES CAROUSEL */
.rat-sc { --rat-accent: #CE1327; position: relative; padding: 0 50px; }
.rat-sc__viewport { overflow: hidden; }
.rat-sc__track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); --cols: 3; }
.rat-sc__slide { min-width: calc(100% / var(--cols)); padding: 12px; }
.rat-sc__card {
    background: #fff;
    border-radius: 16px;
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all .4s cubic-bezier(.4,0,.2,1);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.rat-sc__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(206,19,39,.12);
    border-color: var(--rat-accent);
}

/* Image */
.rat-sc__img {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
}

/* Card body */
.rat-sc__card-body { padding: 20px 24px 24px; display: flex; flex-direction: column; flex: 1; }

/* Deco cercle décoratif */
.rat-sc__card-deco {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--rat-accent);
    opacity: .04;
    transition: all .4s;
}
.rat-sc__card:hover .rat-sc__card-deco { transform: scale(2.5); opacity: .08; }

/* Icône wrap */
.rat-sc__icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(206,19,39,.08), rgba(206,19,39,.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 24px 0;
    transition: all .4s;
    flex-shrink: 0;
}
.rat-sc__card:hover .rat-sc__icon-wrap {
    background: var(--rat-accent);
    transform: scale(1.08);
}

/* Icône FA */
.rat-sc__icon {
    font-size: 32px;
    color: var(--rat-accent);
    transition: color .4s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rat-sc__icon svg {
    width: 32px;
    height: 32px;
    fill: var(--rat-accent);
    transition: fill .4s;
}
.rat-sc__card:hover .rat-sc__icon { color: #fff; }
.rat-sc__card:hover .rat-sc__icon svg { fill: #fff; }

/* Texte */
.rat-sc__title { font-size: 18px; font-weight: 700; color: #222; margin-bottom: 10px; }
.rat-sc__desc  { font-size: 14px; color: #666; line-height: 1.6; flex: 1; margin-bottom: 16px; }
.rat-sc__link  {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rat-accent);
    text-decoration: none;
    transition: transform .3s;
}
.rat-sc__link:hover { transform: translateX(4px); }

/* Arrows */
.rat-sc__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    padding: 0;
    z-index: 3;
    color: #555;
}
.rat-sc__arrow svg { width: 20px; height: 20px; }
.rat-sc__arrow:hover {
    background: var(--rat-accent);
    border-color: var(--rat-accent);
    color: #fff;
    box-shadow: 0 4px 12px rgba(206,19,39,.3);
}
.rat-sc__arrow--prev { left: 0; }
.rat-sc__arrow--next { right: 0; }

/* Dots */
.rat-sc__dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.rat-sc__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    cursor: pointer;
    transition: all .3s;
    padding: 0;
}
.rat-sc__dot.is-active { background: var(--rat-accent); transform: scale(1.3); }

/* Responsive */
@media (max-width: 1024px) { .rat-sc__track { --cols: 2 !important; } }
@media (max-width: 640px) {
    .rat-sc { padding: 0 10px; }
    .rat-sc__track { --cols: 1 !important; }
    .rat-sc__arrow { display: none; }
}

/* ── ALIGNEMENT CONTENU CARTES ── */
.rat-sc__card--center {
    text-align: center;
}
.rat-sc__card--center .rat-sc__icon-wrap {
    margin-left: auto;
    margin-right: auto;
}
.rat-sc__card--center .rat-sc__link {
    display: block;
    text-align: center;
}
.rat-sc__card--center .rat-sc__link:hover {
    transform: none;
    opacity: .8;
}

.rat-sc__card--right {
    text-align: right;
}
.rat-sc__card--right .rat-sc__icon-wrap {
    margin-left: auto;
    margin-right: 24px;
}
.rat-sc__card--right .rat-sc__link {
    display: block;
    text-align: right;
}
