@import url(https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap);

/* ==========================================================
 * DBC · Services Carousel — Cartes verticales + tilt 3D
 * ========================================================== */

.dbc-sc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --dbc-sc-blue-1: #0d4899;
    --dbc-sc-blue-2: #2f7cc0;
    --dbc-sc-orange-1: #f49826;
    --dbc-sc-orange-2: #e25312;
    --dbc-sc-gap: 24px;
    --dbc-sc-per: 3;
    position: relative;
    padding: 60px 24px;
    max-width: 1280px;
    margin: 0 auto;
}

/* ============ HEADER ============ */
.dbc-sc__header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.dbc-sc__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--dbc-sc-blue-1);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.dbc-sc__eyebrow-line {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--dbc-sc-orange-1), var(--dbc-sc-orange-2));
    border-radius: 2px;
}

.dbc-sc__title {
    margin: 0 0 16px 0;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #0a1929;
}

.dbc-sc__title-accent {
    background: linear-gradient(135deg, var(--dbc-sc-orange-1), var(--dbc-sc-orange-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}

.dbc-sc__subtitle {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #64748b;
}

/* ============ VIEWPORT + TRACK ============ */
.dbc-sc__viewport {
    overflow: hidden;
    border-radius: 16px;
}

.dbc-sc__track {
    display: flex;
    gap: var(--dbc-sc-gap);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* ============ CARTE ============ */
.dbc-sc__card {
    position: relative;
    flex: 0 0 calc((100% - (var(--dbc-sc-per) - 1) * var(--dbc-sc-gap)) / var(--dbc-sc-per));
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(13, 72, 153, 0.08);
    box-shadow: 0 4px 14px -4px rgba(13, 72, 153, 0.08);
    transition:
        transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s ease,
        border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.dbc-sc__card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px -20px rgba(13, 72, 153, 0.25),
        0 0 0 1px var(--dbc-sc-orange-1);
}

/* Badge en haut à droite */
.dbc-sc__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--dbc-sc-orange-1), var(--dbc-sc-orange-2));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 4px 12px -2px var(--dbc-sc-orange-2);
}

/* Image */
.dbc-sc__card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.dbc-sc__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.dbc-sc__card:hover .dbc-sc__card-img img {
    transform: scale(1.08);
}

.dbc-sc__card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13, 72, 153, 0.2));
    pointer-events: none;
}

/* Body */
.dbc-sc__card-body {
    flex: 1;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #fff;
}

/* Si image présente : body avec coins bas arrondis, padding-top pour l'icône absolue */
.dbc-sc__card-img + .dbc-sc__card-body {
    border-radius: 0 0 20px 20px;
    padding-top: 42px;
    position: relative;
}

.dbc-sc__card-img + .dbc-sc__card-body .dbc-sc__card-icon {
    position: absolute;
    top: -28px;
    left: 24px;
    margin-bottom: 0;
    box-shadow: 0 10px 24px -8px rgba(13, 72, 153, 0.45);
    z-index: 3;
}

/* Icône (en haut, qui dépasse si image présente) */
.dbc-sc__card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--dbc-sc-blue-1), var(--dbc-sc-blue-2));
    color: #fff;
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.dbc-sc__card:hover .dbc-sc__card-icon {
    transform: rotate(-6deg) scale(1.05);
    background: linear-gradient(135deg, var(--dbc-sc-orange-1), var(--dbc-sc-orange-2));
}

.dbc-sc__card-icon i,
.dbc-sc__card-icon svg {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #fff;
    fill: #fff;
    line-height: 1;
}

.dbc-sc__card-title {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.3;
    color: #0a1929;
}

.dbc-sc__card-desc {
    margin: 0 0 20px 0;
    flex: 1;
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
}

.dbc-sc__card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--dbc-sc-blue-1);
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.dbc-sc__card-link svg {
    transition: transform 0.3s ease;
}

.dbc-sc__card:hover .dbc-sc__card-link {
    color: var(--dbc-sc-orange-1);
    gap: 12px;
}

.dbc-sc__card:hover .dbc-sc__card-link svg {
    transform: translateX(4px);
}

/* ============ ARROWS ============ */
.dbc-sc__arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.dbc-sc__arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--dbc-sc-blue-1);
    background: transparent;
    color: var(--dbc-sc-blue-1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dbc-sc__arrow:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--dbc-sc-orange-1), var(--dbc-sc-orange-2));
    border-color: transparent;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 8px 18px -4px var(--dbc-sc-orange-2);
}

.dbc-sc__arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============ DOTS ============ */
.dbc-sc__dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.dbc-sc__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(13, 72, 153, 0.25);
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dbc-sc__dot.is-active {
    width: 28px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--dbc-sc-orange-1), var(--dbc-sc-orange-2));
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .dbc-sc { --dbc-sc-per: 2; }
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (max-width: 640px) {
    .dbc-sc { padding: 50px 16px; --dbc-sc-per: 1; }
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    .dbc-sc__header { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .dbc-sc__track,
    .dbc-sc__card,
    .dbc-sc__card-img img,
    .dbc-sc__card-icon { transition: none !important; }
}

/* ============ FONTS DEFAULTS ============ */
.dbc-sc__eyebrow,
.dbc-sc__title,
.dbc-sc__card-title,
.dbc-sc__card-link,
.dbc-sc__badge { font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif; }

.dbc-sc__subtitle,
.dbc-sc__card-desc { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
