:root {
    --bleu_ffs_rgb: 0, 151, 173;
    --bleu_ffs: rgb(var(--bleu_ffs_rgb));
    --bleu_hover: #007d90;
    --bleu_light: #e6f6f8;
    --orange_ffs_rgb: 233, 78, 27;
    --orange_ffs: rgb(var(--orange_ffs_rgb));
    --orange_hover: #cf4500;
    --noir_ffs_rgb: 27, 27, 31;
    --noir_ffs: rgb(var(--noir_ffs_rgb));
    --text_muted: #64748b;
    --text_dark: #1e293b;
    --bg_page: #f1f5f9;
    --bg_card: #ffffff;
    --bg_option_card: #eaf2f8;
    --bg_option_card_hover: #e2eef7;
    --border_option_card: #d4e2ee;
    --border_color: #e2e8f0;
    --shadow_card: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 0 1px 1px rgba(15, 23, 42, 0.04);
    --shadow_card_hover: 0 16px 32px -4px rgba(var(--bleu_ffs_rgb), 0.16), 0 0 1px 1px rgba(var(--bleu_ffs_rgb), 0.25);
    --radius_lg: 20px;
    --radius_md: 16px;
    --radius_sm: 8px;
}

/* Structure globale */
html {
    overflow-y: auto !important;
    overflow-x: clip !important;
}

body.page-mobikarst {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh !important;
    height: auto !important;
    width: 100%;
    overflow-x: clip !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: var(--bg_page) !important;
    font-family: "OpenSans", Arial, Verdana, sans-serif;
    font-size: 15px !important;
    color: var(--noir_ffs) !important;
    line-height: 1.5 !important;
}

#mobikarst-page {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    box-sizing: border-box;
}

/* Zone principale */
.mobikarst-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 20px 40px;
    box-sizing: border-box;
    width: 100%;
}

.mobikarst-container {
    width: 100%;
    max-width: 1100px;
    margin: auto auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Titres */
.mobikarst-hero {
    text-align: center;
    margin-bottom: 34px;
}

.mobikarst-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bleu_ffs);
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.mobikarst-brand-badge .badge-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mobikarst-title {
    font-family: 'Sansation', 'OpenSans', Arial, sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 700;
    color: var(--noir_ffs);
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.mobikarst-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--bleu_ffs);
    margin: 10px auto 0;
    border-radius: 2px;
}

.mobikarst-subtitle {
    font-size: 16px;
    color: var(--text_muted);
    margin: 12px 0 0 0;
}

/* Grille des 3 cartes */
.mobikarst-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 1050px;
    margin-bottom: 32px;
}

/* Carte (inspéré de FFS) */
.mobikarst-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border: 1px solid var(--border_color);
    border-radius: var(--radius_md);
    padding: 30px 24px;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    min-height: 250px;
    box-sizing: border-box;
}

.mobikarst-card:hover {
    transform: translateY(-5px);
    color: inherit;
}

.mobikarst-card:focus-visible {
    outline: 3px solid var(--bleu_ffs);
    outline-offset: 2px;
}

.card-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.card-header-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    width: 100%;
}

.card-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background-color: rgba(15, 23, 42, 0.04);
    color: var(--noir_ffs);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-bottom: 0;
    transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.mobikarst-card:hover .card-icon-wrapper {
    transform: scale(1.08);
}

.card-icon-wrapper .material-symbols-outlined {
    font-size: 24px;
}

.card-title-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
}

.card-title {
    font-family: 'OpenSans', Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--noir_ffs);
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.2px;
    transition: color 0.2s ease;
}

.card-version-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--bleu_ffs);
    background-color: rgba(var(--bleu_ffs_rgb), 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.3px;
}

.card-desc {
    font-size: 14.5px;
    color: #475569;
    margin: 0;
    line-height: 1.45;
}

/* Pied de carte */
.card-bottom {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #475569;
    background-color: #f1f5f9;
    padding: 6px 10px;
    border-radius: var(--radius_sm);
    border: 1px solid var(--border_color);
    width: fit-content;
}

.card-badge .material-symbols-outlined {
    font-size: 16px;
    color: var(--bleu_ffs);
}

.card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-top: 4px;
    padding: 8px 16px;
    border-radius: 6px;
    width: fit-content;
    background-color: var(--bleu_ffs);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(var(--bleu_ffs_rgb), 0.3);
    transition: all 0.2s ease;
}

.card-action .material-symbols-outlined {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.mobikarst-card:hover .card-action {
    background-color: var(--bleu_hover);
    box-shadow: 0 5px 14px rgba(var(--bleu_ffs_rgb), 0.45);
}

.mobikarst-card:hover .card-action .material-symbols-outlined {
    transform: translateX(4px);
}

/* cartes (icône et survol) */
.mobikarst-card .card-icon-wrapper {
    color: var(--bleu_ffs);
    background-color: rgba(var(--bleu_ffs_rgb), 0.08);
}

.mobikarst-card:hover {
    border-color: var(--bleu_ffs);
    box-shadow: 0 10px 24px rgba(var(--bleu_ffs_rgb), 0.16);
}

.mobikarst-card:hover .card-icon-wrapper {
    background-color: var(--bleu_ffs);
    color: #ffffff;
}

/* Texte descriptif en bas */
.mobikarst-description-box {
    max-width: 760px;
    text-align: center;
    padding: 10px 20px;
    margin-top: 6px;
}

.mobikarst-description-text {
    font-size: 15px;
    color: var(--text_muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsivité tablettes */
@media screen and (max-width: 992px) {
    .mobikarst-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 720px;
        gap: 18px;
    }

    .mobikarst-card:last-child {
        grid-column: span 2;
        max-width: 460px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Responsivité smartphones / mobiles */
@media screen and (max-width: 640px) {
    .mobikarst-header {
        padding: 12px 14px;
    }

    .mobikarst-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 440px;
    }

    .mobikarst-card:last-child {
        grid-column: auto;
        max-width: 100%;
    }

    .mobikarst-card {
        padding: 24px 20px;
        min-height: auto;
    }

    .card-icon-wrapper {
        width: 40px;
        height: 40px;
        margin-bottom: 0;
    }

    .card-header-row {
        gap: 12px;
        margin-bottom: 10px;
    }

    .card-title {
        font-size: 19px;
    }

    .mobikarst-title {
        font-size: 26px;
    }

    .mobikarst-subtitle {
        font-size: 14.5px;
    }

    .mobikarst-description-text {
        font-size: 14px;
    }

    .breadcrumb-link span:last-child {
        display: inline;
    }
}