.fma { padding: 80px 0; }

.fma-title {
    text-align: center;
    font-size: clamp(20px, 3.8vw, 42px);
    font-weight: 900;
    letter-spacing: -0.02em;
    font-family: 'Jost', sans-serif;
    margin: 0 0 16px;
    white-space: nowrap;
}

.fma-subtitle {
    text-align: center;
    color: #64748b;
    margin: 0 auto 50px;
    max-width: 720px;
    line-height: 1.6;
}

.fma-grid {
    display: grid;
    gap: 24px;
    margin-top: 50px;
}

.fma-grid.cols-1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.fma-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 840px; margin-left: auto; margin-right: auto; }
.fma-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.fma-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.fma-card {
    padding: 30px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.fma-card h3 { font-weight: 800; margin: 0 0 10px; font-family: 'Jost', sans-serif; }
.fma-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(15, 77, 60, 0.08);
    color: #0f4d3c;
    font-size: 22px;
    margin-bottom: 16px;
    transition: all 0.25s ease;
}

.fma-card:hover .fma-icon {
    background: #0f4d3c;
    color: #ffffff;
    transform: translateY(-2px);
}
.fma-viewport {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-top: 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y pinch-zoom;
    overscroll-behavior-x: contain;
    padding: 12px 4px 20px;
    cursor: grab;
}
.fma-viewport:active {
    cursor: grabbing;
}
.fma-viewport::-webkit-scrollbar { display: none; }

.fma-track {
    display: flex;
    gap: 24px;
    padding: 0 12px;
}

.fma--carousel .fma-card {
    flex: 0 0 calc((100% - 24px) / 2);
    min-width: 440px;
    max-width: 580px;
    box-sizing: border-box;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    user-select: none;
    -webkit-user-select: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fma-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
    position: relative;
    z-index: 5;
}

.fma-arrow {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    padding: 0;
}
.fma-arrow:hover {
    background: #ffffff;
    color: #0f172a;
    border-color: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}
.fma-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.fma:not(.fma--has-bg) .fma-arrow {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.fma:not(.fma--has-bg) .fma-arrow:hover {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.fma-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.fma-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fma-dot.is-active {
    width: 28px;
    background: #ffffff;
}
.fma:not(.fma--has-bg) .fma-dot {
    background: #cbd5e1;
}
.fma:not(.fma--has-bg) .fma-dot.is-active {
    background: #0f4d3c;
}

@media (max-width: 991px) {
    .fma--carousel .fma-card {
        flex: 0 0 75%;
        min-width: unset;
        max-width: 520px;
    }
}

@media (max-width: 860px) {
    .fma {
        padding: 40px 0 !important;
    }
    .fma .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .fma-grid.cols-2,
    .fma-grid.cols-3,
    .fma-grid.cols-4 {
        grid-template-columns: 1fr;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .fma--carousel .fma-card {
        flex: 0 0 88%;
        min-width: unset;
        max-width: 420px;
        padding: 24px 20px;
    }
    .fma-card h3 {
        font-size: 19px;
    }
    .fma-title {
        font-size: clamp(16px, 4.6vw, 24px);
        white-space: nowrap;
    }
    .fma-arrow { width: 44px; height: 44px; }
    .fma-nav { gap: 14px; margin-top: 24px; }
}

@media (max-width: 480px) {
    .fma-title {
        font-size: clamp(14px, 4.4vw, 18px);
        white-space: nowrap;
    }
}

/* --- v2 : titre blanc sur fond image + cartes translucides --- */
.fma-title { color: var(--fma-title-color, #0f172a); }
.fma-subtitle { color: var(--fma-subtitle-color, #64748b); }
.fma-card { background: var(--fma-card-bg, rgba(255, 255, 255, 0.9)); box-shadow: var(--fma-card-shadow, 0 20px 60px rgba(0, 0, 0, 0.08)); }
.fma--has-bg .fma-title { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }

/* ===== RENAULT THEME (forké) ===== */
.fma, .fma-title, .fma-subtitle, .fma-card h3, .fma-card p { font-family: var(--maurin-font-primary); }
.fma-card { border-radius: 0; }
.fma-carousel { position: relative; }
.fma-title { text-transform: uppercase; }

