/* =========================================================
   INVOXAPRO BLOG
   Charte inspirée de la page d'accueil :
   blanc + bleu #0d6efd + bleu nuit + dégradés turquoise
   ========================================================= */

:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --navy: #172033;
    --text: #4f5b6b;
    --muted: #7c8798;
    --light: #f7f9fc;
    --border: #e8edf5;
    --cyan: #20c9d9;
    --white: #ffffff;
    --shadow: 0 15px 45px rgba(31, 45, 61, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #ffffff;
    line-height: 1.8;
}

a {
    text-decoration: none;
}

.blog-navbar {
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(232,237,245,.9);
    min-height: 78px;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

.brand-logo {
    width: 190px;
    max-width: 100%;
}

.blog-navbar .nav-link {
    color: #4d5868;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 14px !important;
    transition: color .25s ease;
}

.blog-navbar .nav-link:hover,
.blog-navbar .nav-link.active {
    color: var(--primary);
}

.btn-nav-demo {
    background: var(--primary);
    color: #fff !important;
    border-radius: 9px;
    padding: 10px 18px !important;
    font-size: 13px !important;
    box-shadow: 0 7px 18px rgba(13,110,253,.2);
}

.btn-nav-demo:hover {
    background: var(--primary-dark);
}

.article-hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 95px;
    background:
        radial-gradient(circle at 85% 20%, rgba(32,201,217,.15), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 55%, #f9ffff 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.hero-shape-one {
    width: 330px;
    height: 330px;
    right: -100px;
    top: -150px;
    background: rgba(13,110,253,.08);
}

.hero-shape-two {
    width: 220px;
    height: 220px;
    left: -90px;
    bottom: -110px;
    background: rgba(32,201,217,.09);
}

.article-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    background: rgba(13,110,253,.09);
    border: 1px solid rgba(13,110,253,.12);
    border-radius: 50px;
    padding: 7px 15px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.article-hero h1 {
    color: var(--navy);
    font-size: clamp(34px, 5vw, 57px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.article-hero h1 span {
    color: var(--primary);
}

.article-intro {
    max-width: 780px;
    margin: 0 auto;
    color: #667285;
    font-size: 18px;
    line-height: 1.8;
}

.article-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    color: #7b8797;
    font-size: 13px;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.article-meta i {
    color: var(--primary);
}

.article-layout {
    padding-top: 75px;
    padding-bottom: 90px;
}

.article-cover {
    min-height: 190px;
    border-radius: 24px;
    padding: 35px;
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 42px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(13,110,253,.96), rgba(32,201,217,.9)),
        #0d6efd;
    box-shadow: 0 20px 50px rgba(13,110,253,.16);
    overflow: hidden;
    position: relative;
}

.article-cover:after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    right: -80px;
    top: -100px;
    background: rgba(255,255,255,.12);
}

.cover-icon {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: rgba(255,255,255,.15);
    font-size: 32px;
}

.article-cover span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: .82;
    margin-bottom: 5px;
}

.article-cover strong {
    display: block;
    font-size: 25px;
}

.article-content {
    font-size: 16px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content .lead {
    font-size: 20px;
    color: #38465a;
    line-height: 1.75;
    font-weight: 500;
}

.article-content h2 {
    position: relative;
    color: var(--navy);
    font-size: 29px;
    line-height: 1.35;
    font-weight: 750;
    margin: 58px 0 20px;
    padding-left: 50px;
}

.article-content h2 > span {
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    background: rgba(13,110,253,.09);
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-box {
    display: flex;
    gap: 16px;
    padding: 23px;
    background: #f5f9ff;
    border: 1px solid #dfebff;
    border-left: 4px solid var(--primary);
    border-radius: 14px;
    margin: 30px 0;
}

.highlight-box > i {
    color: var(--primary);
    font-size: 22px;
    margin-top: 3px;
}

.highlight-box strong {
    color: var(--navy);
}

.highlight-box p {
    margin: 3px 0 0;
    font-size: 14px;
}

.source-note {
    padding: 18px 20px;
    background: #fbfcfe;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #687487;
    font-size: 13px;
    margin: 25px 0;
}

.source-note i {
    color: var(--primary);
    margin-right: 7px;
}

.flow-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0;
    padding: 24px;
    border-radius: 18px;
    background: #f7faff;
    border: 1px solid var(--border);
}

.flow-box > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
}

.flow-box > div i {
    color: var(--primary);
}

.flow-box > i {
    color: #a8b2c1;
    font-size: 12px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 25px 0;
}

.check-list li {
    margin-bottom: 12px;
    color: #4d5969;
}

.check-list i {
    color: var(--primary);
    margin-right: 9px;
}

.management-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
    padding: 22px;
    background: linear-gradient(135deg, #f7fbff, #f3ffff);
    border: 1px solid #e3edf7;
    border-radius: 16px;
    margin: 28px 0;
}

.management-flow span {
    background: #fff;
    color: var(--navy);
    border: 1px solid #e3eaf3;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
}

.management-flow i {
    color: var(--primary);
    font-size: 11px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.metrics-grid div {
    min-height: 95px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(31,45,61,.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.metrics-grid i {
    color: var(--primary);
}

.metrics-grid strong {
    color: #4c5868;
    font-size: 13px;
}

.invoxa-callout {
    display: flex;
    gap: 22px;
    padding: 34px;
    margin: 45px 0;
    border-radius: 22px;
    background: linear-gradient(135deg, #f0f7ff, #f1ffff);
    border: 1px solid #dcecff;
    box-shadow: var(--shadow);
}

.invoxa-callout-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #fff;
    color: var(--primary);
    font-size: 25px;
    box-shadow: 0 8px 22px rgba(13,110,253,.08);
}

.small-title {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.invoxa-callout h2 {
    padding-left: 0;
    margin: 6px 0 12px;
    font-size: 26px;
}

.invoxa-callout h2 > span {
    display: none;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.feature-tags span {
    background: #fff;
    border: 1px solid #dfe9f6;
    color: #556274;
    border-radius: 50px;
    padding: 6px 11px;
    font-size: 11px;
    font-weight: 700;
}

.multi-company-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.company-card {
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    padding: 18px 10px;
    text-align: center;
    color: #566274;
    font-size: 12px;
    font-weight: 700;
}

.company-card i {
    display: block;
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 8px;
}

.company-card.main {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.company-card.main i {
    color: #fff;
}

.version-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin: 30px 0 45px;
}

.version-card {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(31,45,61,.05);
}

.version-card.recommended {
    border: 2px solid var(--primary);
    box-shadow: 0 14px 35px rgba(13,110,253,.12);
}

.version-badge {
    position: absolute;
    top: 0;
    right: 22px;
    padding: 7px 12px;
    border-radius: 0 0 9px 9px;
    background: var(--primary);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
}

.version-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    margin-bottom: 18px;
}

.version-icon.desktop {
    background: #f0f3f7;
    color: #586474;
}

.version-icon.web {
    background: rgba(13,110,253,.1);
    color: var(--primary);
}

.version-card h3 {
    color: var(--navy);
    font-size: 21px;
    margin-bottom: 10px;
}

.version-card p {
    color: #687487;
    font-size: 14px;
}

.version-card a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.version-card a i {
    margin-left: 5px;
    transition: transform .25s ease;
}

.version-card a:hover i {
    transform: translateX(4px);
}

.final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin: 45px 0 25px;
    padding: 30px;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, #0d6efd, #16b9c8);
    box-shadow: 0 18px 45px rgba(13,110,253,.18);
}

.final-cta span {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    opacity: .85;
}

.final-cta h3 {
    margin: 4px 0;
    font-size: 25px;
}

.final-cta p {
    margin: 0;
    font-size: 13px;
    opacity: .9;
}

.final-cta a {
    flex-shrink: 0;
    color: var(--primary);
    background: #fff;
    border-radius: 10px;
    padding: 12px 17px;
    font-size: 13px;
    font-weight: 700;
}

.final-cta a i {
    margin-left: 6px;
}

.article-disclaimer {
    display: flex;
    gap: 10px;
    padding: 18px;
    background: #fafbfd;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 25px;
    color: #7b8696;
    font-size: 11px;
    line-height: 1.6;
}

.article-disclaimer i {
    color: var(--primary);
    margin-top: 3px;
}

.article-disclaimer p {
    margin: 0;
}

.blog-sidebar {
    position: sticky;
    top: 105px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(31,45,61,.05);
}

.sidebar-card h4 {
    color: var(--navy);
    font-size: 17px;
    margin-bottom: 18px;
}

.sidebar-card h4 i {
    color: var(--primary);
    margin-right: 7px;
}

.toc-card nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.toc-card nav a {
    color: #697587;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f2f5;
    transition: color .2s ease, padding-left .2s ease;
}

.toc-card nav a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.demo-card {
    background: linear-gradient(145deg, #f1f7ff, #f1ffff);
    border-color: #dcecff;
}

.sidebar-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #fff;
    border-radius: 12px;
    margin-bottom: 16px;
}

.demo-card p {
    font-size: 13px;
    color: #697587;
}

.demo-card > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.categories-card .category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.category-list span {
    background: #f5f8fc;
    border: 1px solid #e9eef5;
    color: #657183;
    padding: 6px 9px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
}

.blog-footer {
    background: #172033;
    padding: 40px 0;
    color: #aeb7c4;
    font-size: 13px;
}

.footer-logo {
    width: 165px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.blog-footer p {
    margin: 0;
}

.blog-footer a {
    color: #fff;
}

#backToTop {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 45px;
    height: 45px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 25px rgba(13,110,253,.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .25s ease;
    z-index: 999;
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    .article-hero {
        padding: 80px 0 70px;
    }

    .article-layout {
        padding-top: 55px;
    }

    .blog-sidebar {
        position: static;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .multi-company-box {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .brand-logo {
        width: 160px;
    }

    .article-hero {
        padding: 65px 0 55px;
    }

    .article-hero h1 {
        letter-spacing: -.7px;
    }

    .article-intro {
        font-size: 15px;
    }

    .article-meta {
        gap: 10px 16px;
        font-size: 11px;
    }

    .article-layout {
        padding-top: 35px;
        padding-bottom: 60px;
    }

    .article-cover {
        padding: 25px;
        min-height: 150px;
    }

    .cover-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .article-cover strong {
        font-size: 20px;
    }

    .article-content .lead {
        font-size: 18px;
    }

    .article-content h2 {
        font-size: 24px;
        padding-left: 44px;
        margin-top: 45px;
    }

    .metrics-grid,
    .version-grid {
        grid-template-columns: 1fr;
    }

    .invoxa-callout {
        padding: 24px;
        flex-direction: column;
    }

    .final-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .final-cta a {
        width: 100%;
        text-align: center;
    }

    .flow-box {
        gap: 9px;
    }

    .management-flow {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .article-cover {
        align-items: flex-start;
    }

    .article-cover span {
        font-size: 9px;
    }

    .article-cover strong {
        font-size: 17px;
    }

    .multi-company-box {
        grid-template-columns: 1fr 1fr;
    }

    .article-disclaimer {
        font-size: 10px;
    }
}


/* =========================================================
   PARTAGE SOCIAL DE L'ARTICLE
   ========================================================= */

.article-share {
    margin: 38px 0 24px;
    padding: 22px 24px;
    border: 1px solid #e5ebf3;
    border-radius: 16px;
    background: #f8fbff;
}

.article-share-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: #172033;
    font-size: 14px;
    font-weight: 750;
}

.article-share-label i {
    color: #0d6efd;
    font-size: 15px;
}

.article-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid #e1e8f1;
    border-radius: 9px;
    background: #fff;
    color: #536174;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease,
                color .22s ease, border-color .22s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(31,45,61,.09);
}

.share-facebook:hover {
    color: #1877f2;
    border-color: rgba(24,119,242,.3);
}

.share-whatsapp:hover {
    color: #25d366;
    border-color: rgba(37,211,102,.3);
}

.share-linkedin:hover {
    color: #0a66c2;
    border-color: rgba(10,102,194,.3);
}

.share-x:hover {
    color: #111827;
    border-color: rgba(17,24,39,.25);
}

.share-copy:hover {
    color: #0d6efd;
    border-color: rgba(13,110,253,.3);
}

.share-feedback {
    min-height: 18px;
    margin-top: 9px;
    color: #0d6efd;
    font-size: 11px;
    font-weight: 650;
}

@media (max-width: 575px) {
    .article-share {
        padding: 18px;
    }

    .share-btn {
        flex: 1 1 calc(50% - 9px);
        min-width: 0;
    }

    .share-btn span {
        white-space: nowrap;
    }
}
