/* ===========================================
   CATEGORY ENTREPRISE - Rfence.fr
   Securite / Technologie / Entreprise
   Version 2026
   =========================================== */

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* --- SKIP LINK --- */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    background: #0f62fe;
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 6px 6px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    transition: top 0.15s;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
}

/* --- CONTAINER --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- HERO CATEGORIE --- */
.cat-hero {
    background-color: #161616;
    color: #fff;
    padding: 72px 24px 64px;
    position: relative;
    overflow: hidden;
}

.cat-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cat-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #0f62fe;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-hero__title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 16px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 700px;
}

.cat-hero__subtitle {
    font-size: 17px;
    color: #a8b2c1;
    margin: 0 0 32px;
    max-width: 620px;
    line-height: 1.6;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-hero__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cat-hero__count,
.cat-hero__topic {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #c6d0df;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-hero__separator {
    color: #3d4f66;
    font-size: 16px;
}

/* GRILLE DECORATIVE HERO */
.cat-hero__grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.cat-hero__grid-line {
    position: absolute;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #1e2a3a;
}

.cat-hero__grid-line:nth-child(1) { left: 20%; }
.cat-hero__grid-line:nth-child(2) { left: 40%; }
.cat-hero__grid-line:nth-child(3) { left: 60%; }
.cat-hero__grid-line:nth-child(4) { left: 80%; }
.cat-hero__grid-line:nth-child(5) { right: 0; }

/* --- DISCLAIMER BLOG --- */
.blog-disclaimer {
    background-color: #0d1a2e;
    border-left: 4px solid #0f62fe;
    padding: 0;
}

.blog-disclaimer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.blog-disclaimer__inner svg {
    flex-shrink: 0;
    color: #0f62fe;
    margin-top: 1px;
}

.blog-disclaimer__inner p {
    margin: 0;
    font-size: 13px;
    color: #8fa3bc;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* --- SECTION ARTICLES --- */
.cat-articles {
    padding: 56px 0 72px;
    background-color: #0a0f1a;
}

.cat-articles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 12px;
}

.cat-articles__info {
    font-size: 14px;
    color: #6b7a8d;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-articles__info strong {
    color: #0f62fe;
    font-weight: 700;
}

/* --- MASONRY GRID --- */
.masonry-grid {
    columns: 3;
    column-gap: 24px;
    width: 100%;
}

.masonry-card {
    break-inside: avoid;
    background-color: #111827;
    border: 1px solid #1e2a3a;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    display: inline-block;
    width: 100%;
    transition: border-color 0.2s, transform 0.2s;
}

.masonry-card:hover {
    border-color: #0f62fe;
    transform: translateY(-3px);
}

.masonry-card:focus-within {
    outline: 2px solid #0f62fe;
    outline-offset: 2px;
}

/* FEATURED CARD */
.masonry-card--featured {
    border-color: #0f62fe;
}

.masonry-card__img-wrap {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.masonry-card__img-wrap img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.masonry-card:hover .masonry-card__img-wrap img {
    transform: scale(1.03);
}

.masonry-card__overlay {
    position: absolute;
    top: 12px;
    left: 12px;
}

.masonry-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background-color: #0f62fe;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.masonry-card__body {
    padding: 20px;
}

.masonry-card__meta {
    margin-bottom: 10px;
}

.masonry-card__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #4a5568;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.masonry-card__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.masonry-card__title a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.15s;
}

.masonry-card__title a:hover,
.masonry-card__title a:focus {
    color: #0f62fe;
    outline: none;
    text-decoration: underline;
}

.masonry-card__title a:focus-visible {
    outline: 2px solid #0f62fe;
    outline-offset: 2px;
    border-radius: 2px;
}

.masonry-card__desc {
    font-size: 13px;
    color: #6b7a8d;
    margin: 0 0 14px;
    line-height: 1.55;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.masonry-card__footer {
    border-top: 1px solid #1e2a3a;
    padding-top: 12px;
    margin-top: 4px;
}

.masonry-card__read {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #42be65;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* --- VIDE --- */
.cat-empty {
    text-align: center;
    padding: 80px 24px;
    max-width: 460px;
    margin: 0 auto;
}

.cat-empty__icon {
    margin-bottom: 24px;
}

.cat-empty__title {
    font-size: 20px;
    font-weight: 700;
    color: #c6d0df;
    margin: 0 0 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cat-empty__text {
    font-size: 15px;
    color: #4a5568;
    margin: 0;
    line-height: 1.55;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* --- SECTION HEADER COMMUN --- */
.section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
}

.section-header__icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background-color: #0d1a2e;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1e2a3a;
}

.section-header__title {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: #e2e8f0;
    margin: 0 0 6px;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.section-header__subtitle {
    font-size: 14px;
    color: #6b7a8d;
    margin: 0;
    line-height: 1.55;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* --- SECTION TABLEAU --- */
.cat-table-section {
    padding: 64px 0;
    background-color: #0a0f1a;
    border-top: 1px solid #1e2a3a;
}

.table-disclaimer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7a8d;
    margin: 0 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.table-disclaimer svg {
    flex-shrink: 0;
    color: #42be65;
}

/* TABLEAU RESPONSIVE WRAPPER */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid #1e2a3a;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-width: 680px;
}

.compare-table thead tr {
    background-color: #111827;
}

.compare-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #6b7a8d;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border-bottom: 2px solid #0f62fe;
    white-space: nowrap;
}

.compare-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: #c6d0df;
    border-bottom: 1px solid #1e2a3a;
    vertical-align: middle;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.compare-table tbody tr {
    background-color: #0e1622;
    transition: background-color 0.15s;
}

.compare-table tbody tr:hover {
    background-color: #131f30;
}

.compare-table tbody tr:last-child td {
    border-bottom: none;
}

.compare-table__label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}

.label-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.label-dot--blue { background-color: #0f62fe; }
.label-dot--green { background-color: #42be65; }

.difficulty {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.difficulty--low {
    background-color: #0a2218;
    color: #42be65;
}

.difficulty--medium {
    background-color: #1a1a00;
    color: #f1c21b;
}

.difficulty--high {
    background-color: #2a0a0a;
    color: #fa4d56;
}

/* BADGE TYPE OBLIGATION/RECOMMANDATION */
.badge-type {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    white-space: nowrap;
}

.badge-type--mandatory {
    background-color: #0f62fe;
    color: #fff;
}

.badge-type--recommend {
    background-color: #1e2a3a;
    color: #8fa3bc;
}

/* --- SECTION OUTIL SECTEURS --- */
.cat-tool-section {
    padding: 64px 0;
    background-color: #060c17;
    border-top: 1px solid #1e2a3a;
}

.maturity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.maturity-card {
    background-color: #0e1622;
    border: 1px solid #1e2a3a;
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
}

.maturity-card--1 .maturity-card__level { background-color: #2a0a0a; border-bottom: 2px solid #fa4d56; }
.maturity-card--2 .maturity-card__level { background-color: #1a1200; border-bottom: 2px solid #f1c21b; }
.maturity-card--3 .maturity-card__level { background-color: #091a24; border-bottom: 2px solid #0f62fe; }
.maturity-card--4 .maturity-card__level { background-color: #0a2218; border-bottom: 2px solid #42be65; }

.maturity-card__level {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
}

.maturity-level-num {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    opacity: 0.15;
    line-height: 1;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    letter-spacing: -0.02em;
}

.maturity-card__content {
    padding: 16px 20px 20px;
}

.maturity-card__title {
    font-size: 16px;
    font-weight: 800;
    color: #e2e8f0;
    margin: 0 0 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.maturity-card__desc {
    font-size: 13px;
    color: #6b7a8d;
    line-height: 1.5;
    margin: 0 0 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.maturity-card__list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.maturity-card__list li {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #8fa3bc;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.maturity-card__list li svg {
    flex-shrink: 0;
}

.maturity-card__risk {
    margin-top: 4px;
}

.risk-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.risk-badge--critical { background-color: #fa4d56; color: #fff; }
.risk-badge--high { background-color: #ff832b; color: #fff; }
.risk-badge--medium { background-color: #f1c21b; color: #161616; }
.risk-badge--low { background-color: #42be65; color: #161616; }

.tool-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: #4a5568;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.5;
}

.tool-note svg {
    flex-shrink: 0;
    color: #42be65;
    margin-top: 1px;
}

/* --- STATS --- */
.cat-stats-section {
    padding: 64px 0;
    background-color: #0a0f1a;
    border-top: 1px solid #1e2a3a;
}

.stats-section__title {
    font-size: clamp(20px, 3vw, 24px);
    font-weight: 800;
    color: #e2e8f0;
    margin: 0 0 6px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.stats-section__note {
    font-size: 12px;
    color: #4a5568;
    text-align: center;
    margin: 0 0 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.stat-block {
    background-color: #111827;
    border: 1px solid #1e2a3a;
    border-radius: 10px;
    padding: 28px 20px 24px;
    text-align: center;
    min-width: 0;
    transition: border-color 0.2s;
}

.stat-block:hover {
    border-color: #0f62fe;
}

.stat-block__icon {
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
}

.stat-block__value {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1;
}

.stat-block__label {
    font-size: 13px;
    color: #6b7a8d;
    line-height: 1.45;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* --- THEMES --- */
.cat-themes-section {
    padding: 64px 0 72px;
    background-color: #060c17;
    border-top: 1px solid #1e2a3a;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}

.theme-item {
    background-color: #0e1622;
    border: 1px solid #1e2a3a;
    border-radius: 8px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    transition: border-color 0.2s, background-color 0.2s;
}

.theme-item:hover {
    border-color: #0f62fe;
    background-color: #111827;
}

.theme-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background-color: #0d1a2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #c6d0df;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
}

/* ===========================================
   RESPONSIVE MOBILE-FIRST
   =========================================== */

@media (max-width: 1024px) {
    .masonry-grid {
        columns: 2;
    }
}

@media (max-width: 768px) {

    /* HERO */
    .cat-hero {
        padding: 48px 16px 40px;
    }

    .cat-hero__title {
        font-size: 32px;
    }

    .cat-hero__subtitle {
        font-size: 15px;
    }

    .cat-hero__meta {
        gap: 10px;
    }

    /* MASONRY -> 1 colonne */
    .masonry-grid {
        columns: 1;
        column-gap: 0;
    }

    .masonry-card {
        margin-bottom: 16px;
    }

    /* SECTION ARTICLES */
    .cat-articles {
        padding: 40px 0 48px;
    }

    /* SECTION HEADER */
    .section-header {
        flex-direction: column;
        gap: 12px;
    }

    .section-header__icon {
        width: 44px;
        height: 44px;
    }

    /* TABLEAU */
    .cat-table-section {
        padding: 48px 0;
    }

    .table-wrap {
        border-radius: 8px;
    }

    .compare-table th,
    .compare-table td {
        padding: 11px 12px;
        font-size: 13px;
    }

    /* MATURITE / SECTEURS */
    .cat-tool-section {
        padding: 48px 0;
    }

    .maturity-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* STATS */
    .cat-stats-section {
        padding: 48px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .stat-block {
        padding: 20px 14px 18px;
    }

    .stat-block__value {
        font-size: 26px;
    }

    /* THEMES */
    .cat-themes-section {
        padding: 48px 0 56px;
    }

    .themes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .theme-item {
        padding: 14px 12px;
        gap: 10px;
    }

    .theme-item__icon {
        width: 34px;
        height: 34px;
    }

    /* DISCLAIMER */
    .blog-disclaimer__inner {
        padding: 14px 16px;
    }

    /* CONTAINER */
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {

    .cat-hero {
        padding: 36px 16px 32px;
    }

    .cat-hero__title {
        font-size: 26px;
    }

    .cat-hero__subtitle {
        font-size: 14px;
    }

    .masonry-grid {
        columns: 1;
    }

    .masonry-card__body {
        padding: 16px;
    }

    .masonry-card__title {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .themes-grid {
        grid-template-columns: 1fr;
    }

    .theme-item__name {
        font-size: 13px;
    }

    .maturity-level-num {
        font-size: 24px;
    }

    .compare-table th,
    .compare-table td {
        padding: 9px 10px;
        font-size: 12px;
    }

    .section-header__title {
        font-size: 18px;
    }

    .badge-type {
        font-size: 10px;
        padding: 2px 7px;
    }
}